extend test seat preview with explicit sellability reason codes serialize preview price amount as string for a stable API contract improve diagnosis of non-sellable states for preview consumers
22 lines
517 B
Python
22 lines
517 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class TestSeatPreviewResponse(BaseModel):
|
|
scheme_id: str
|
|
scheme_version_id: str
|
|
seat_id: str | None
|
|
element_id: str | None
|
|
sector_id: str | None
|
|
group_id: str | None
|
|
row_label: str | None
|
|
seat_number: str | None
|
|
selectable: bool
|
|
has_price: bool
|
|
matched_rule_level: str | None
|
|
matched_target_ref: str | None
|
|
pricing_category_id: str | None
|
|
amount: str | None
|
|
currency: str | None
|
|
reason_code: str
|
|
reason_message: str
|