Files
svg-backend/backend/app/schemas/test_mode.py
greebo aab5a51654 feat(backend): add sellability reason codes and string price serialization to test seat preview
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
2026-03-19 20:07:19 +03:00

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