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
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "e8fafcb807ed121505a7183190cb33b928cf6621",
"originGitCommit": "a2ca13468fab1d8fa43b0669cab0cf74913ca24c",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.0.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -13185,7 +13185,7 @@ client.company_token_transactions.retrieve(
<dl>
<dd>

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.
</dd>
</dl>
</dd>
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/confirmation_tokens/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
----------
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/confirmation_tokens/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
----------
Expand Down
8 changes: 7 additions & 1 deletion src/whop_sdk/types/confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading