working auto
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user