Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions meteroid/api/customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion meteroid/models/customer_portal_token_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
2 changes: 2 additions & 0 deletions meteroid/models/decline_kind.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand All @@ -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."""
Loading