diff --git a/.fern/metadata.json b/.fern/metadata.json index 2b36fb39..d8155d53 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -15,7 +15,7 @@ "standardwebhooks": ">=1.0.1,<2" } }, - "originGitCommit": "e8fafcb807ed121505a7183190cb33b928cf6621", + "originGitCommit": "a2ca13468fab1d8fa43b0669cab0cf74913ca24c", "originGitCommitIsDirty": false, "invokedBy": "ci", "requestedVersion": "2.0.0", diff --git a/.fern/replay.lock b/.fern/replay.lock index f2ae66d7..8b89caef 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -1248,5 +1248,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.28.0 -current_generation: ea9d6ba2c387b7615d7f5892968b269a33277608 + - commit_sha: 832c13bfa05376cba80fd29d7fb77f43c611e178 + tree_hash: f5a46162e35950643a0cd71243252571d9a23130 + timestamp: 2026-09-25T20:23:36.585Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.28.0 +current_generation: 832c13bfa05376cba80fd29d7fb77f43c611e178 patches: [] diff --git a/reference.md b/reference.md index 72b71d3e..962b9744 100644 --- a/reference.md +++ b/reference.md @@ -13185,7 +13185,7 @@ client.company_token_transactions.retrieve(
-Retrieves a token's display-safe preview — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. +Retrieves a token's payment method and billing details — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. A bearer credential with payment:basic:read on that account also receives the collected billing address.
diff --git a/src/whop_sdk/confirmation_tokens/client.py b/src/whop_sdk/confirmation_tokens/client.py index 2d997fae..dee05634 100644 --- a/src/whop_sdk/confirmation_tokens/client.py +++ b/src/whop_sdk/confirmation_tokens/client.py @@ -27,7 +27,7 @@ def retrieve( self, id: str, *, account_id: str, request_options: typing.Optional[RequestOptions] = None ) -> ConfirmationToken: """ - Retrieves a token's display-safe preview — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. + Retrieves a token's payment method and billing details — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. A bearer credential with payment:basic:read on that account also receives the collected billing address. Parameters ---------- @@ -82,7 +82,7 @@ async def retrieve( self, id: str, *, account_id: str, request_options: typing.Optional[RequestOptions] = None ) -> ConfirmationToken: """ - Retrieves a token's display-safe preview — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. + Retrieves a token's payment method and billing details — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. A bearer credential with payment:basic:read on that account also receives the collected billing address. Parameters ---------- diff --git a/src/whop_sdk/confirmation_tokens/raw_client.py b/src/whop_sdk/confirmation_tokens/raw_client.py index 55d46414..b025ead9 100644 --- a/src/whop_sdk/confirmation_tokens/raw_client.py +++ b/src/whop_sdk/confirmation_tokens/raw_client.py @@ -23,7 +23,7 @@ def retrieve( self, id: str, *, account_id: str, request_options: typing.Optional[RequestOptions] = None ) -> HttpResponse[ConfirmationToken]: """ - Retrieves a token's display-safe preview — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. + Retrieves a token's payment method and billing details — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. A bearer credential with payment:basic:read on that account also receives the collected billing address. Parameters ---------- @@ -89,7 +89,7 @@ async def retrieve( self, id: str, *, account_id: str, request_options: typing.Optional[RequestOptions] = None ) -> AsyncHttpResponse[ConfirmationToken]: """ - Retrieves a token's display-safe preview — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. + Retrieves a token's payment method and billing details — never the underlying payment credential. Public and rate-limited: the account_id query param must match the account the token was minted for. A bearer credential with payment:basic:read on that account also receives the collected billing address. Parameters ---------- diff --git a/src/whop_sdk/types/confirmation_token.py b/src/whop_sdk/types/confirmation_token.py index c77386e3..3212c583 100644 --- a/src/whop_sdk/types/confirmation_token.py +++ b/src/whop_sdk/types/confirmation_token.py @@ -5,14 +5,20 @@ import pydantic from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel from .confirmation_token_status import ConfirmationTokenStatus +from .payment_address import PaymentAddress from .payment_billing_details_preview import PaymentBillingDetailsPreview from .payment_method_display import PaymentMethodDisplay class ConfirmationToken(UniversalBaseModel): + billing_address: typing.Optional[PaymentAddress] = pydantic.Field(default=None) + """ + The collected billing address, including the name on the address. Null when not collected or without bearer authentication with payment:basic:read on the token’s account. + """ + billing_details: typing.Optional[PaymentBillingDetailsPreview] = pydantic.Field(default=None) """ - Enough of the billing details to raise a customer record and recognise the method — email, name, country and postal code. The street address is collected for the charge but never returned; this endpoint is a display-safe preview. + Billing preview supplied at collection: email, name, country and postal code. """ created_at: str = pydantic.Field()