Module adcp.types.media_buy_status_helpers
Shared helpers for media-buy lifecycle status compatibility.
The sync create/update media-buy response arms accept legacy constructor and
handler payloads where status carried lifecycle state. completed is a
valid lifecycle enum value, but it is also the 3.1 task-envelope success status,
so the SDK only infers lifecycle status from the unambiguous subset below.
Functions
def unwrap_enum_value(value: Any) ‑> Any-
Expand source code
def unwrap_enum_value(value: Any) -> Any: return getattr(value, "value", value)