Fixes https://github.com/webrecorder/browsertrix/issues/1905 - adds a new top-level `/api/subscriptions` endpoint and SubOps handler on the backend. - enable subscriptions API endpoints available only if `billing_enabled` is set in helm chart - new POST /subscriptions/create, /subscriptions/update, /subscriptions/cancel API endpoints - Subscriptions mongo collection storing timestamped /subscription API events - GET /subscriptions/events API to get subscription events, support for filtering and sorting - Subscription data model - Support for setting and handling readOnlyOnCancel on org - /orgs/<id>/billing-portal to lookup portalUrl using external API - subscription in org getter and list views - mark org as readOnly for subscription status `paused_payment_failed`, clears it on status `active` --------- Co-authored-by: Tessa Walsh <tessa@bitarchivist.net> |
||
|---|---|---|
| .. | ||
| backend.yaml | ||
| configmap.yaml | ||
| frontend.yaml | ||
| ingress.yaml | ||
| minio.yaml | ||
| mongo.yaml | ||
| namespaces.yaml | ||
| networkpolicies.yaml | ||
| operators.yaml | ||
| priorities.yaml | ||
| role.yaml | ||
| secrets.yaml | ||
| service.yaml | ||
| signer.yaml | ||