statuspro_public_api_client.domain.order¶
statuspro_public_api_client.domain.order
¶
Domain models for StatusPro orders.
Hand-written Pydantic models for business logic, separate from the generated
attrs API models. Shapes mirror the OpenAPI Customer, Status,
OrderListItem, OrderResponse, and OrderListMeta schemas.
Classes¶
Customer
¶
Bases: _Frozen
Customer details attached to an order.
Order
¶
Bases: _Frozen
An order as returned by /orders list pages or /orders/{id}.
OrderStatus
¶
Bases: _Frozen
The status currently set on an order (nested Status schema).
Distinct from :class:Status, which is a top-level status definition
returned by /statuses and includes color instead of transition
metadata.
PageMeta
¶
Bases: _Frozen
Pagination envelope returned alongside list endpoints.
Matches the StatusPro OrderListMeta schema. current_page and
last_page are used by the transport layer to auto-walk pages.