pénzügyi modul továbbfejlesztése (csomagkezelés)

This commit is contained in:
Roo
2026-07-29 09:46:10 +00:00
parent 6f28d3e70d
commit 75904cd2f8
50 changed files with 5851 additions and 312 deletions

View File

@@ -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")