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": "7bcc6a2b72af681cce67c15577579d8db1613a1a",
"originGitCommit": "f7cde5506d2791bbd0c2529a3db673aff245364a",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.8.1",
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.

12 changes: 10 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,14 @@ client.accounts.update(
<dl>
<dd>

**statement_descriptor:** `typing.Optional[str]` — The text on buyers' card statements for this account's payments. It must be 5 to 22 characters with at least one letter, using only A-Z and 0-9 after any `WHOP*` prefix. It must start with `WHOP*` while Whop is the merchant of record. Once the account has switched to being its own merchant of record (`merchant_of_record` in account preferences), it can be set without the prefix. `null` clears it. Requires the `payout:account:update` scope.

</dd>
</dl>

<dl>
<dd>

**store_page_config:** `typing.Optional[UpdateAccountsRequestStorePageConfig]` — Account store page display configuration.

</dd>
Expand Down Expand Up @@ -36249,7 +36257,7 @@ client.payments.create(
<dl>
<dd>

**statement_descriptor:** `typing.Optional[str]` — Overrides the text on the buyer's card statement for this payment only. Takes precedence over the product's and account's custom descriptors, and changes neither. Must start with `WHOP*` unless the business processes as the merchant of record. For businesses processing as the merchant of record, omit the `WHOP*` prefix; the descriptor appears as provided. Must be 5-22 characters, contain at least one letter, and use only Latin letters, numbers, spaces, underscores, hyphens, or asterisks.
**statement_descriptor:** `typing.Optional[str]` — Overrides the text on the buyer's card statement for this payment only. Takes precedence over the product's and account's custom descriptors, and changes neither. Must start with `WHOP*` unless the business processes as the merchant of record. For a business processing as the merchant of record, Whop removes a `WHOP*` prefix when at least 5 characters, including a letter, remain. Must be 5-22 characters, contain at least one letter, and use only Latin letters, numbers, spaces, underscores, hyphens, or asterisks.

</dd>
</dl>
Expand Down Expand Up @@ -53661,7 +53669,7 @@ client.accounts.preferences.update(
<dl>
<dd>

**merchant_of_record:** `typing.Optional[UpdatePreferencesRequestMerchantOfRecord]` — Set it to `account` to make the account the merchant of record. Only some business categories can switch. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.
**merchant_of_record:** `typing.Optional[UpdatePreferencesRequestMerchantOfRecord]` — Set it to `account` to make the account the merchant of record. Only some business categories can switch. A subaccount can also switch when Whop has approved its platform. Its business category must not be prohibited. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.

</dd>
</dl>
Expand Down
3 changes: 3 additions & 0 deletions src/whop_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
AccountLevel,
AccountLink,
AccountLinkUseCases,
AccountMerchantOfRecord,
AccountOnboardingType,
AccountOpengraphImageVariant,
AccountParent,
Expand Down Expand Up @@ -3613,6 +3614,7 @@
"AccountLevel": ".types",
"AccountLink": ".types",
"AccountLinkUseCases": ".types",
"AccountMerchantOfRecord": ".types",
"AccountOnboardingType": ".types",
"AccountOpengraphImageVariant": ".types",
"AccountParent": ".types",
Expand Down Expand Up @@ -7021,6 +7023,7 @@ def __dir__():
"AccountLevel",
"AccountLink",
"AccountLinkUseCases",
"AccountMerchantOfRecord",
"AccountOnboardingType",
"AccountOpengraphImageVariant",
"AccountParent",
Expand Down
10 changes: 10 additions & 0 deletions src/whop_sdk/accounts/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ def update(
show_reviews_dtc: typing.Optional[bool] = OMIT,
show_user_directory: typing.Optional[bool] = OMIT,
social_links: typing.Optional[typing.Sequence[typing.Dict[str, typing.Any]]] = OMIT,
statement_descriptor: typing.Optional[str] = OMIT,
store_page_config: typing.Optional[UpdateAccountsRequestStorePageConfig] = OMIT,
target_audience: typing.Optional[str] = OMIT,
tax_collection_enabled_states: typing.Optional[
Expand Down Expand Up @@ -643,6 +644,9 @@ def update(
social_links : typing.Optional[typing.Sequence[typing.Dict[str, typing.Any]]]
The full list of social links to display for the account.

statement_descriptor : typing.Optional[str]
The text on buyers' card statements for this account's payments. It must be 5 to 22 characters with at least one letter, using only A-Z and 0-9 after any `WHOP*` prefix. It must start with `WHOP*` while Whop is the merchant of record. Once the account has switched to being its own merchant of record (`merchant_of_record` in account preferences), it can be set without the prefix. `null` clears it. Requires the `payout:account:update` scope.

store_page_config : typing.Optional[UpdateAccountsRequestStorePageConfig]
Account store page display configuration.

Expand Down Expand Up @@ -739,6 +743,7 @@ def update(
show_reviews_dtc=show_reviews_dtc,
show_user_directory=show_user_directory,
social_links=social_links,
statement_descriptor=statement_descriptor,
store_page_config=store_page_config,
target_audience=target_audience,
tax_collection_enabled_states=tax_collection_enabled_states,
Expand Down Expand Up @@ -1588,6 +1593,7 @@ async def update(
show_reviews_dtc: typing.Optional[bool] = OMIT,
show_user_directory: typing.Optional[bool] = OMIT,
social_links: typing.Optional[typing.Sequence[typing.Dict[str, typing.Any]]] = OMIT,
statement_descriptor: typing.Optional[str] = OMIT,
store_page_config: typing.Optional[UpdateAccountsRequestStorePageConfig] = OMIT,
target_audience: typing.Optional[str] = OMIT,
tax_collection_enabled_states: typing.Optional[
Expand Down Expand Up @@ -1718,6 +1724,9 @@ async def update(
social_links : typing.Optional[typing.Sequence[typing.Dict[str, typing.Any]]]
The full list of social links to display for the account.

statement_descriptor : typing.Optional[str]
The text on buyers' card statements for this account's payments. It must be 5 to 22 characters with at least one letter, using only A-Z and 0-9 after any `WHOP*` prefix. It must start with `WHOP*` while Whop is the merchant of record. Once the account has switched to being its own merchant of record (`merchant_of_record` in account preferences), it can be set without the prefix. `null` clears it. Requires the `payout:account:update` scope.

store_page_config : typing.Optional[UpdateAccountsRequestStorePageConfig]
Account store page display configuration.

Expand Down Expand Up @@ -1822,6 +1831,7 @@ async def main() -> None:
show_reviews_dtc=show_reviews_dtc,
show_user_directory=show_user_directory,
social_links=social_links,
statement_descriptor=statement_descriptor,
store_page_config=store_page_config,
target_audience=target_audience,
tax_collection_enabled_states=tax_collection_enabled_states,
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/accounts/preferences/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def update(
Replaces the account's own cancel reasons, shown to members in this order when they cancel. Pass an option's `id` to keep it, for example when renaming it. Options without an `id` are added, and options left out are removed. Pass an empty array to go back to Whop's default reasons. Members who already picked an option keep the label they saw. Requires the `company:manage_checkout` scope on your API key.

merchant_of_record : typing.Optional[UpdatePreferencesRequestMerchantOfRecord]
Set it to `account` to make the account the merchant of record. Only some business categories can switch. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.
Set it to `account` to make the account the merchant of record. Only some business categories can switch. A subaccount can also switch when Whop has approved its platform. Its business category must not be prohibited. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.

off_session_payment_rules : typing.Optional[bool]
Whether this account's active payment rules apply to future off-session charges, including renewals. Off by default. Requires the payment:manage scope on your API key.
Expand Down Expand Up @@ -415,7 +415,7 @@ async def update(
Replaces the account's own cancel reasons, shown to members in this order when they cancel. Pass an option's `id` to keep it, for example when renaming it. Options without an `id` are added, and options left out are removed. Pass an empty array to go back to Whop's default reasons. Members who already picked an option keep the label they saw. Requires the `company:manage_checkout` scope on your API key.

merchant_of_record : typing.Optional[UpdatePreferencesRequestMerchantOfRecord]
Set it to `account` to make the account the merchant of record. Only some business categories can switch. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.
Set it to `account` to make the account the merchant of record. Only some business categories can switch. A subaccount can also switch when Whop has approved its platform. Its business category must not be prohibited. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.

off_session_payment_rules : typing.Optional[bool]
Whether this account's active payment rules apply to future off-session charges, including renewals. Off by default. Requires the payment:manage scope on your API key.
Expand Down
4 changes: 2 additions & 2 deletions src/whop_sdk/accounts/preferences/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def update(
Replaces the account's own cancel reasons, shown to members in this order when they cancel. Pass an option's `id` to keep it, for example when renaming it. Options without an `id` are added, and options left out are removed. Pass an empty array to go back to Whop's default reasons. Members who already picked an option keep the label they saw. Requires the `company:manage_checkout` scope on your API key.

merchant_of_record : typing.Optional[UpdatePreferencesRequestMerchantOfRecord]
Set it to `account` to make the account the merchant of record. Only some business categories can switch. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.
Set it to `account` to make the account the merchant of record. Only some business categories can switch. A subaccount can also switch when Whop has approved its platform. Its business category must not be prohibited. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.

off_session_payment_rules : typing.Optional[bool]
Whether this account's active payment rules apply to future off-session charges, including renewals. Off by default. Requires the payment:manage scope on your API key.
Expand Down Expand Up @@ -532,7 +532,7 @@ async def update(
Replaces the account's own cancel reasons, shown to members in this order when they cancel. Pass an option's `id` to keep it, for example when renaming it. Options without an `id` are added, and options left out are removed. Pass an empty array to go back to Whop's default reasons. Members who already picked an option keep the label they saw. Requires the `company:manage_checkout` scope on your API key.

merchant_of_record : typing.Optional[UpdatePreferencesRequestMerchantOfRecord]
Set it to `account` to make the account the merchant of record. Only some business categories can switch. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.
Set it to `account` to make the account the merchant of record. Only some business categories can switch. A subaccount can also switch when Whop has approved its platform. Its business category must not be prohibited. The business must be verified. The switch cannot be undone. The response shows `pending` until approval. Checkout takes no payments until then. After the switch, the account accepts only card, Apple Pay, Google Pay and crypto payments. PayPal, buy now pay later and local payment methods stop. Requires the `payout:account:update` scope on your API key.

off_session_payment_rules : typing.Optional[bool]
Whether this account's active payment rules apply to future off-session charges, including renewals. Off by default. Requires the payment:manage scope on your API key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class RetrievePreferencesResponse(UniversalBaseModel):

merchant_of_record: typing.Optional[RetrievePreferencesResponseMerchantOfRecord] = pydantic.Field(default=None)
"""
The merchant of record for the account's payments. `whop` means Whop is the merchant of record and the account can switch. `null` means Whop is the merchant of record and the account's business category cannot switch. `pending` means the account switched and waits for approval. Checkout takes no payments until then. `account` means the account is the merchant of record.
The merchant of record for the account's payments. `whop` means Whop is the merchant of record and the account can switch. `null` means Whop is the merchant of record and the account cannot switch. `pending` means the account switched and waits for approval. Checkout takes no payments until then. `account` means the account is the merchant of record.
"""

off_session_payment_rules: bool = pydantic.Field()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class UpdatePreferencesResponse(UniversalBaseModel):

merchant_of_record: typing.Optional[UpdatePreferencesResponseMerchantOfRecord] = pydantic.Field(default=None)
"""
The merchant of record for the account's payments. `whop` means Whop is the merchant of record and the account can switch. `null` means Whop is the merchant of record and the account's business category cannot switch. `pending` means the account switched and waits for approval. Checkout takes no payments until then. `account` means the account is the merchant of record.
The merchant of record for the account's payments. `whop` means Whop is the merchant of record and the account can switch. `null` means Whop is the merchant of record and the account cannot switch. `pending` means the account switched and waits for approval. Checkout takes no payments until then. `account` means the account is the merchant of record.
"""

off_session_payment_rules: bool = pydantic.Field()
Expand Down
Loading
Loading