pénzügyi modul továbbfejlesztése (csomagkezelés)
This commit is contained in:
@@ -50,7 +50,8 @@ class PurchaseResponse(BaseModel):
|
||||
Response schema for a completed package purchase.
|
||||
|
||||
Contains the full receipt: payment details, subscription info,
|
||||
and commission distribution results.
|
||||
commission distribution results, and optionally a checkout_url
|
||||
for paid tiers in simulate_redirect mode.
|
||||
"""
|
||||
success: bool = Field(..., description="Whether the purchase was successful")
|
||||
payment_intent_id: Optional[int] = Field(None, description="The PaymentIntent ID")
|
||||
@@ -63,6 +64,8 @@ class PurchaseResponse(BaseModel):
|
||||
currency: str = Field("EUR", description="The payment currency")
|
||||
gateway: str = Field("mock", description="The payment gateway used")
|
||||
gateway_intent_id: Optional[str] = Field(None, description="The gateway's intent ID")
|
||||
checkout_url: Optional[str] = Field(None, description="Checkout URL for payment redirect (simulate_redirect mode)")
|
||||
payment_status: Optional[str] = Field(None, description="Payment status: PENDING, COMPLETED, etc.")
|
||||
is_org_subscription: bool = Field(False, description="Whether this is an org-level subscription")
|
||||
commission: Optional[CommissionInfo] = Field(None, description="Commission distribution results")
|
||||
error: Optional[str] = Field(None, description="Error message if success=False")
|
||||
|
||||
Reference in New Issue
Block a user