Добавлен поллер накладной
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user