From 9b9e0f9f35072e0c954b34d59ee5676efc05336d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 6 Nov 2026 09:28:18 +0000 Subject: [PATCH] feat(api): update SDKs to meteroid 0.1.0 BEGIN_NESTED_COMMIT feat(api): update `GET /api/v1/usage/customer/{customer_id}/costs`, `GET /api/v1/usage/customer/{customer_id}/events`, `GET /api/v1/usage/subscription/{subscription_id}/costs`, `GET /api/v1/usage/subscription/{subscription_id}/events`, `POST webhook:payment.failed` and 5 more END_NESTED_COMMIT --- meteroid/api/customers.py | 6 ++++-- meteroid/models/customer_portal_token_response.py | 2 +- meteroid/models/decline_kind.py | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/meteroid/api/customers.py b/meteroid/api/customers.py index 734218e..b3bdb7b 100644 --- a/meteroid/api/customers.py +++ b/meteroid/api/customers.py @@ -479,7 +479,8 @@ async def create_portal_token( ) -> CustomerPortalTokenResponse: """Generate a portal token for a customer - Generates a JWT token that grants access to the customer portal. + Generates an opaque token that grants access to the customer portal. A call may return the + token of an earlier call with the same scopes, with up to 10% less lifetime: rely on `expires_at`. The token can be used to access invoices, payment methods, and other portal features. :param expires_in_seconds: Token lifetime in seconds. Defaults to 86400 (24 hours). Must be between 60 and 2592000 (30 days). @@ -989,7 +990,8 @@ def create_portal_token( ) -> CustomerPortalTokenResponse: """Generate a portal token for a customer - Generates a JWT token that grants access to the customer portal. + Generates an opaque token that grants access to the customer portal. A call may return the + token of an earlier call with the same scopes, with up to 10% less lifetime: rely on `expires_at`. The token can be used to access invoices, payment methods, and other portal features. :param expires_in_seconds: Token lifetime in seconds. Defaults to 86400 (24 hours). Must be between 60 and 2592000 (30 days). diff --git a/meteroid/models/customer_portal_token_response.py b/meteroid/models/customer_portal_token_response.py index c1f9495..6811c5a 100644 --- a/meteroid/models/customer_portal_token_response.py +++ b/meteroid/models/customer_portal_token_response.py @@ -24,4 +24,4 @@ class CustomerPortalTokenResponse(BaseModel): """Base URL of the customer portal""" token: str - """JWT token for portal access""" + """Opaque token for portal access""" diff --git a/meteroid/models/decline_kind.py b/meteroid/models/decline_kind.py index f2f2ffc..e8d0885 100644 --- a/meteroid/models/decline_kind.py +++ b/meteroid/models/decline_kind.py @@ -16,6 +16,7 @@ class DeclineKind(StrEnum): PROCESSING_ERROR = "PROCESSING_ERROR" OTHER = "OTHER" DO_NOT_RETRY = "DO_NOT_RETRY" + UNCONFIRMED = "UNCONFIRMED" DeclineKindLiteral: t.TypeAlias = t.Literal[ @@ -28,5 +29,6 @@ class DeclineKind(StrEnum): "PROCESSING_ERROR", "OTHER", "DO_NOT_RETRY", + "UNCONFIRMED", ] """The values of :class:`DeclineKind`, which arguments take as plain strings too."""