Добавлен поллер накладной

This commit is contained in:
Раис Юсупалиев
2026-05-23 20:24:23 +03:00
parent c494d50566
commit 5526f90cb3
23 changed files with 1481 additions and 61 deletions
+11
View File
@@ -0,0 +1,11 @@
"""Pure rules for CDEK order polling lifecycle."""
TERMINAL_ORDER_STATUSES: frozenset[str] = frozenset(
{"INVALID", "DELIVERED", "NOT_DELIVERED", "CANCELLED"}
)
def is_terminal_order_status(code: str | None) -> bool:
if code is None:
return False
return code in TERMINAL_ORDER_STATUSES