working auto

This commit is contained in:
2025-09-26 20:30:42 -04:00
parent 569e76f21e
commit 4f24570d3c
7 changed files with 146 additions and 5 deletions

View File

@@ -38,6 +38,7 @@ class TransactionAuthorizeByCardID(BaseModel):
tax_amount: Optional[Decimal] = Decimal("0.0")
service_id: Optional[int] = None
delivery_id: Optional[int] = None
auto_id: Optional[int] = None
# --- YOUR EXISTING SCHEMAS (UPDATED for Pydantic V2) ---
@@ -47,6 +48,7 @@ class TransactionBase(BaseModel):
transaction_type: int
service_id: Optional[int] = None
delivery_id: Optional[int] = None
auto_id: Optional[int] = None
card_id: Optional[int] = None
payment_gateway: int = 1
rejection_reason: Optional[str] = None
@@ -111,4 +113,4 @@ class CustomerCardResponse(Card):
# Now, add the extra customer fields the frontend needs.
# We define it as a string because we will be returning the
# two-letter abbreviation, not the database ID.
customer_state: str
customer_state: str