mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-08 07:12:39 +02:00
Merge commit '9576d1f01f' into dev
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
This commit is contained in:
commit
b5be9408f7
5 changed files with 461 additions and 46 deletions
|
|
@ -56,6 +56,26 @@ class StripeWebhookResponse(BaseModel):
|
|||
received: bool = True
|
||||
|
||||
|
||||
class FinalizeCheckoutResponse(BaseModel):
|
||||
"""Response from /stripe/finalize-checkout.
|
||||
|
||||
Returned by the success page so the UI can show the post-purchase
|
||||
balance immediately, even when the Stripe webhook hasn't been
|
||||
delivered yet. ``status`` mirrors the underlying purchase row
|
||||
(``pending`` / ``completed`` / ``failed``); the FE polls this
|
||||
endpoint until it sees ``completed`` or a final ``failed``.
|
||||
"""
|
||||
|
||||
purchase_type: str # "page_packs" | "premium_tokens"
|
||||
status: str # PagePurchaseStatus / PremiumTokenPurchaseStatus value
|
||||
pages_limit: int | None = None
|
||||
pages_used: int | None = None
|
||||
pages_granted: int | None = None
|
||||
premium_credit_micros_limit: int | None = None
|
||||
premium_credit_micros_used: int | None = None
|
||||
premium_credit_micros_granted: int | None = None
|
||||
|
||||
|
||||
class CreateTokenCheckoutSessionRequest(BaseModel):
|
||||
"""Request body for creating a premium token purchase checkout session."""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue