From d8c5b00d62b4d27b32375b52e5f4727abada9c42 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 03:47:48 +0000 Subject: [PATCH 1/2] [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 5.28.0 --- .fern/metadata.json | 6 +- pyproject.toml | 2 +- reference.md | 228 +++++++++--------- src/whop_sdk/__init__.py | 12 - src/whop_sdk/access_tokens/client.py | 16 +- src/whop_sdk/access_tokens/raw_client.py | 12 +- src/whop_sdk/account_links/client.py | 20 +- src/whop_sdk/account_links/raw_client.py | 12 +- src/whop_sdk/accounts/client.py | 32 +-- src/whop_sdk/accounts/preferences/client.py | 8 +- src/whop_sdk/accounts/reserves/client.py | 4 +- src/whop_sdk/ad_campaigns/client.py | 36 +-- src/whop_sdk/ad_groups/client.py | 40 +-- src/whop_sdk/ads/client.py | 32 +-- src/whop_sdk/affiliates/client.py | 52 ++-- src/whop_sdk/affiliates/overrides/client.py | 20 +- src/whop_sdk/affiliates/raw_client.py | 28 +-- src/whop_sdk/ai_chats/client.py | 20 +- src/whop_sdk/api_keys/client.py | 28 +-- ...reate_api_keys_request_api_version_date.py | 1 + ...pdate_api_keys_request_api_version_date.py | 1 + src/whop_sdk/api_logs/client.py | 4 +- src/whop_sdk/app_builds/client.py | 16 +- src/whop_sdk/apps/client.py | 36 +-- src/whop_sdk/audiences/client.py | 20 +- src/whop_sdk/authorized_users/client.py | 72 +++--- src/whop_sdk/authorized_users/raw_client.py | 48 ++-- src/whop_sdk/bounties/client.py | 20 +- src/whop_sdk/bounties/submissions/client.py | 8 +- src/whop_sdk/bounty_submissions/client.py | 20 +- src/whop_sdk/card_transactions/client.py | 8 +- src/whop_sdk/cards/client.py | 16 +- src/whop_sdk/chat_channels/client.py | 28 +-- src/whop_sdk/chat_channels/raw_client.py | 16 +- .../checkout_configurations/client.py | 16 +- src/whop_sdk/client.py | 8 +- .../company_token_transactions/client.py | 32 +-- .../company_token_transactions/raw_client.py | 16 +- ...eate_company_token_transactions_request.py | 6 +- ..._company_token_transactions_request_add.py | 8 +- ...any_token_transactions_request_subtract.py | 8 +- ...any_token_transactions_request_transfer.py | 8 +- src/whop_sdk/confirmation_tokens/client.py | 8 +- src/whop_sdk/core/client_wrapper.py | 2 +- src/whop_sdk/course_chapters/client.py | 20 +- .../course_lesson_interactions/client.py | 8 +- src/whop_sdk/course_lessons/client.py | 32 +-- src/whop_sdk/course_students/client.py | 8 +- src/whop_sdk/courses/client.py | 36 +-- src/whop_sdk/courses/raw_client.py | 16 +- src/whop_sdk/deposits/__init__.py | 12 - src/whop_sdk/deposits/client.py | 44 +--- src/whop_sdk/deposits/raw_client.py | 43 +--- src/whop_sdk/deposits/types/__init__.py | 12 - .../create_deposits_request_destination.py | 7 - ...deposits_request_destination_account_id.py | 33 --- ..._request_destination_account_id_network.py | 7 - .../types/create_deposits_request_network.py | 5 - .../types/create_deposits_response.py | 7 +- src/whop_sdk/dispute_alerts/client.py | 8 +- src/whop_sdk/disputes/client.py | 32 +-- src/whop_sdk/dm_channels/client.py | 48 ++-- src/whop_sdk/dm_channels/raw_client.py | 28 +-- src/whop_sdk/dm_members/client.py | 20 +- src/whop_sdk/entries/client.py | 32 +-- src/whop_sdk/entries/raw_client.py | 16 +- src/whop_sdk/events/client.py | 16 +- src/whop_sdk/experiences/client.py | 72 +++--- src/whop_sdk/experiences/raw_client.py | 36 +-- src/whop_sdk/exports/client.py | 12 +- src/whop_sdk/fee_markups/client.py | 44 ++-- src/whop_sdk/fee_markups/raw_client.py | 28 +-- src/whop_sdk/files/client.py | 16 +- src/whop_sdk/financial_activity/client.py | 14 +- src/whop_sdk/financial_activity/raw_client.py | 10 + .../financial_reports/breakdown/client.py | 4 +- .../retrieve_breakdown_request_bucket.py | 10 +- .../retrieve_breakdown_response_bucket.py | 10 +- src/whop_sdk/financial_reports/client.py | 4 +- src/whop_sdk/forum_posts/client.py | 36 +-- src/whop_sdk/forum_posts/raw_client.py | 20 +- src/whop_sdk/forums/client.py | 28 +-- src/whop_sdk/forums/raw_client.py | 16 +- src/whop_sdk/identity_profiles/client.py | 40 +-- src/whop_sdk/identity_profiles/raw_client.py | 24 +- src/whop_sdk/invoices/client.py | 64 ++--- src/whop_sdk/invoices/raw_client.py | 24 +- .../types/create_invoices_request_product.py | 10 +- .../create_invoices_request_product_id.py | 10 +- src/whop_sdk/leads/client.py | 48 ++-- src/whop_sdk/leads/raw_client.py | 28 +-- src/whop_sdk/ledger_accounts/client.py | 4 +- src/whop_sdk/media/client.py | 8 +- src/whop_sdk/members/client.py | 8 +- src/whop_sdk/members/logs/client.py | 4 +- src/whop_sdk/memberships/client.py | 48 ++-- src/whop_sdk/messages/client.py | 20 +- src/whop_sdk/notifications/client.py | 20 +- src/whop_sdk/notifications/topics/client.py | 4 +- src/whop_sdk/partners/businesses/client.py | 8 +- .../partners/businesses/earnings/client.py | 4 +- src/whop_sdk/partners/client.py | 12 +- src/whop_sdk/payment_method_domains/client.py | 20 +- src/whop_sdk/payment_methods/client.py | 84 +++---- src/whop_sdk/payment_methods/raw_client.py | 64 ++--- src/whop_sdk/payments/client.py | 40 +-- src/whop_sdk/payout_accounts/client.py | 4 +- src/whop_sdk/payout_methods/client.py | 24 +- src/whop_sdk/payout_methods/raw_client.py | 16 +- src/whop_sdk/payouts/client.py | 20 +- src/whop_sdk/payouts/methods/client.py | 16 +- .../payouts/supported_methods/client.py | 4 +- src/whop_sdk/people/client.py | 8 +- src/whop_sdk/permissions/client.py | 4 +- src/whop_sdk/plans/client.py | 24 +- src/whop_sdk/products/client.py | 28 +-- src/whop_sdk/promo_codes/client.py | 24 +- src/whop_sdk/reactions/client.py | 16 +- src/whop_sdk/recommended_actions/client.py | 16 +- src/whop_sdk/refunds/client.py | 8 +- .../resolution_center_cases/client.py | 44 ++-- src/whop_sdk/reviews/client.py | 8 +- src/whop_sdk/setup_intents/client.py | 40 +-- src/whop_sdk/setup_intents/raw_client.py | 16 +- ...etup_intents_request_confirmation_token.py | 2 +- ...setup_intents_request_payment_method_id.py | 2 +- src/whop_sdk/shipments/client.py | 16 +- src/whop_sdk/social_accounts/client.py | 24 +- src/whop_sdk/stats/client.py | 92 +++---- src/whop_sdk/stats/raw_client.py | 60 ++--- src/whop_sdk/support_channels/client.py | 52 ++-- src/whop_sdk/support_channels/raw_client.py | 36 +-- src/whop_sdk/swaps/client.py | 16 +- src/whop_sdk/team_members/client.py | 20 +- src/whop_sdk/topups/client.py | 28 +-- src/whop_sdk/topups/raw_client.py | 20 +- src/whop_sdk/transfers/client.py | 16 +- .../account_recommended_action_chain_step.py | 2 +- ...mended_action_chain_step_execution_type.py | 4 +- .../types/api_key_api_version_date.py | 1 + src/whop_sdk/types/ledger_activity_source.py | 5 + src/whop_sdk/users/client.py | 28 +-- src/whop_sdk/users/oauth_grants/client.py | 8 +- src/whop_sdk/users/passkeys/client.py | 16 +- src/whop_sdk/users/preferences/client.py | 8 +- .../users/preferences/notifications/client.py | 4 +- .../notifications/experiences/client.py | 4 +- .../notifications/topics/client.py | 4 +- src/whop_sdk/verifications/client.py | 16 +- src/whop_sdk/webhooks/client.py | 40 +-- 150 files changed, 1611 insertions(+), 1713 deletions(-) delete mode 100644 src/whop_sdk/deposits/types/create_deposits_request_destination.py delete mode 100644 src/whop_sdk/deposits/types/create_deposits_request_destination_account_id.py delete mode 100644 src/whop_sdk/deposits/types/create_deposits_request_destination_account_id_network.py delete mode 100644 src/whop_sdk/deposits/types/create_deposits_request_network.py diff --git a/.fern/metadata.json b/.fern/metadata.json index 9b437edd..c0781382 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -15,10 +15,10 @@ "standardwebhooks": ">=1.0.1,<2" } }, - "originGitCommit": "629d32f2df15125de78454fd62e87e8b67ab5d3a", + "originGitCommit": "f67e889b0539d8ba4d02f3a80f8c33b5cb41e378", "originGitCommitIsDirty": false, "invokedBy": "ci", - "requestedVersion": "1.1.0", + "requestedVersion": "1.1.1", "ciProvider": "unknown", - "sdkVersion": "1.1.0" + "sdkVersion": "1.1.1" } \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 52ff328d..f0abe0e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "whop_sdk" -version = "1.1.0" +version = "1.1.1" description = "" readme = "README.md" authors = [] diff --git a/reference.md b/reference.md index e475ec0d..5fa8c0b6 100644 --- a/reference.md +++ b/reference.md @@ -51,7 +51,7 @@ client.access_tokens.create()
-**company_id:** `typing.Optional[str]` — The unique identifier of the company to generate the token for, starting with 'biz_'. The API key must have permission to access this company. +**account_id:** `typing.Optional[str]` — The unique identifier of the company to generate the token for, starting with 'biz_'. The API key must have permission to access this company.
@@ -132,7 +132,7 @@ client = Whop( ) client.account_links.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", refresh_url="refresh_url", return_url="return_url", use_case="account_onboarding", @@ -152,7 +152,7 @@ client.account_links.create(
-**company_id:** `str` — The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company. +**account_id:** `str` — The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company.
@@ -4858,7 +4858,7 @@ client = Whop( client.affiliates.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -4875,7 +4875,7 @@ client.affiliates.list(
-**company_id:** `str` — The unique identifier of the company to list affiliates for. +**account_id:** `str` — The unique identifier of the company to list affiliates for.
@@ -4998,7 +4998,7 @@ client = Whop( ) client.affiliates.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", user_identifier="user_identifier", ) @@ -5016,7 +5016,7 @@ client.affiliates.create(
-**company_id:** `str` — The ID of the company to create the affiliate for. +**account_id:** `str` — The ID of the company to create the affiliate for.
@@ -8585,10 +8585,10 @@ client = Whop( client.authorized_users.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), created_after=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -8637,7 +8637,7 @@ client.authorized_users.list(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company to list authorized users for. +**user_id:** `typing.Optional[str]` — Filter results to a specific user to check if they are an authorized team member.
@@ -8645,7 +8645,7 @@ client.authorized_users.list(
-**user_id:** `typing.Optional[str]` — Filter results to a specific user to check if they are an authorized team member. +**role:** `typing.Optional[AuthorizedUserRoles]`
@@ -8653,7 +8653,7 @@ client.authorized_users.list(
-**role:** `typing.Optional[AuthorizedUserRoles]` +**created_before:** `typing.Optional[datetime.datetime]` — Only return authorized users created before this timestamp.
@@ -8661,7 +8661,7 @@ client.authorized_users.list(
-**created_before:** `typing.Optional[datetime.datetime]` — Only return authorized users created before this timestamp. +**created_after:** `typing.Optional[datetime.datetime]` — Only return authorized users created after this timestamp.
@@ -8669,7 +8669,7 @@ client.authorized_users.list(
-**created_after:** `typing.Optional[datetime.datetime]` — Only return authorized users created after this timestamp. +**account_id:** `typing.Optional[str]` — The unique identifier of the company to list authorized users for.
@@ -8729,7 +8729,7 @@ client = Whop( ) client.authorized_users.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", role="owner", user_id="user_xxxxxxxxxxxxx", ) @@ -8748,7 +8748,7 @@ client.authorized_users.create(
-**company_id:** `str` — The ID of the company to add the authorized user to. +**account_id:** `str` — The ID of the company to add the authorized user to.
@@ -8917,7 +8917,7 @@ client = Whop( client.authorized_users.delete( id="ausr_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -8942,7 +8942,7 @@ client.authorized_users.delete(
-**company_id:** `typing.Optional[str]` — The ID of the company the authorized user belongs to. Optional if the authorized user ID is provided. +**account_id:** `typing.Optional[str]` — The ID of the company the authorized user belongs to. Optional if the authorized user ID is provided.
@@ -10850,8 +10850,8 @@ client = Whop( client.chat_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -10868,7 +10868,7 @@ client.chat_channels.list(
-**company_id:** `str` — The unique identifier of the company to list chat channels for. +**account_id:** `str` — The unique identifier of the company to list chat channels for.
@@ -11594,8 +11594,8 @@ client = Whop( client.company_token_transactions.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -11612,7 +11612,7 @@ client.company_token_transactions.list(
-**company_id:** `str` — The unique identifier of the company to list token transactions for. +**account_id:** `str` — The unique identifier of the company to list token transactions for.
@@ -11723,8 +11723,8 @@ client = Whop( client.company_token_transactions.create( request=CreateCompanyTokenTransactionsRequest_Transfer( + account_id="biz_xxxxxxxxxxxxxx", amount=6.9, - company_id="biz_xxxxxxxxxxxxxx", destination_user_id="destination_user_id", user_id="user_xxxxxxxxxxxxx", ), @@ -13772,7 +13772,7 @@ client.courses.list( first=42, last=42, experience_id="exp_xxxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -13829,7 +13829,7 @@ client.courses.list(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company to list courses for. +**account_id:** `typing.Optional[str]` — The unique identifier of the company to list courses for.
@@ -14327,7 +14327,7 @@ client = Whop( ) client.deposits.create( - destination="destination", + destination="biz_xxxxxxxxxxxxxx", ) ``` @@ -14344,7 +14344,7 @@ client.deposits.create(
-**destination:** `CreateDepositsRequestDestination` — Destination account ID or wallet address. Object form is supported for compatibility. Any business resolves by its account ID without authentication; a user account resolves only for that same authenticated user. +**destination:** `str` — Account ID to fund, `biz_` or `user_`. Any business resolves without authentication; a user account resolves only for that same authenticated user.
@@ -14360,22 +14360,6 @@ client.deposits.create(
-**metadata:** `typing.Optional[typing.Dict[str, typing.Any]]` — Metadata to include with the deposit response. - -
-
- -
-
- -**network:** `typing.Optional[CreateDepositsRequestNetwork]` — Destination network override. Defaults to the destination wallet's own network. - -
-
- -
-
- **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
@@ -15510,7 +15494,7 @@ client = Whop( client.dm_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -15559,7 +15543,7 @@ client.dm_channels.list(
-**company_id:** `typing.Optional[str]` — The unique identifier of a company to filter DM channels by. Only returns channels scoped to this company. +**account_id:** `typing.Optional[str]` — The unique identifier of a company to filter DM channels by. Only returns channels scoped to this company.
@@ -15645,7 +15629,7 @@ client.dm_channels.create(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company to scope this DM channel to. When set, the channel is visible only within that company context. +**account_id:** `typing.Optional[str]` — The unique identifier of the company to scope this DM channel to. When set, the channel is visible only within that company context.
@@ -16409,9 +16393,9 @@ client = Whop( client.entries.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), created_after=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -16428,7 +16412,7 @@ client.entries.list(
-**company_id:** `str` — The unique identifier of the company to list waitlist entries for. +**account_id:** `str` — The unique identifier of the company to list waitlist entries for.
@@ -17427,11 +17411,11 @@ client = Whop( client.experiences.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", app_id="app_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), created_after=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -17448,7 +17432,7 @@ client.experiences.list(
-**company_id:** `str` — The unique identifier of the company to list experiences for. +**account_id:** `str` — The unique identifier of the company to list experiences for.
@@ -17569,8 +17553,8 @@ client = Whop( ) client.experiences.create( + account_id="biz_xxxxxxxxxxxxxx", app_id="app_xxxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -17587,7 +17571,7 @@ client.experiences.create(
-**app_id:** `str` — The unique identifier of the app that powers this experience. +**account_id:** `str` — The unique identifier of the company to create this experience for.
@@ -17595,7 +17579,7 @@ client.experiences.create(
-**company_id:** `str` — The unique identifier of the company to create this experience for. +**app_id:** `str` — The unique identifier of the app that powers this experience.
@@ -18529,7 +18513,7 @@ client = Whop( client.fee_markups.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -18546,7 +18530,7 @@ client.fee_markups.list(
-**company_id:** `str` — The unique identifier of the company to list fee markups for. Pass a platform account identifier to retrieve platform default markups. +**account_id:** `str` — The unique identifier of the company to list fee markups for. Pass a platform account identifier to retrieve platform default markups.
@@ -18637,7 +18621,7 @@ client = Whop( ) client.fee_markups.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", fee_type="crypto_withdrawal_markup", ) @@ -18655,7 +18639,7 @@ client.fee_markups.create(
-**company_id:** `str` — The unique identifier of the company to create or update the fee markup for. +**account_id:** `str` — The unique identifier of the company to create or update the fee markup for.
@@ -19298,6 +19282,14 @@ client.financial_activity.list()
+**exclude_internal_movements:** `typing.Optional[bool]` — Whether to exclude balance reservations and balanced movements between the account's own balances. + +
+
+ +
+
+ **currency:** `typing.Optional[str]` — Optional currency code filter, for example `usd`.
@@ -19736,7 +19728,7 @@ client.forum_posts.create(
-**attachments:** `typing.Optional[typing.List[CreateForumPostsRequestAttachmentsItem]]` — A list of file attachments to include with the post, such as images or videos. +**account_id:** `typing.Optional[str]` — The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'.
@@ -19744,7 +19736,7 @@ client.forum_posts.create(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. +**attachments:** `typing.Optional[typing.List[CreateForumPostsRequestAttachmentsItem]]` — A list of file attachments to include with the post, such as images or videos.
@@ -20075,8 +20067,8 @@ client = Whop( client.forums.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -20093,7 +20085,7 @@ client.forums.list(
-**company_id:** `str` — The unique identifier of the company to list forums for. +**account_id:** `str` — The unique identifier of the company to list forums for.
@@ -20387,7 +20379,7 @@ client = Whop( client.identity_profiles.list_identity_profile( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -20436,7 +20428,7 @@ client.identity_profiles.list_identity_profile(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. +**profile_type:** `typing.Optional[IdentityProfileKinds]`
@@ -20444,7 +20436,7 @@ client.identity_profiles.list_identity_profile(
-**profile_type:** `typing.Optional[IdentityProfileKinds]` +**status:** `typing.Optional[IdentityProfileStatuses]`
@@ -20452,7 +20444,7 @@ client.identity_profiles.list_identity_profile(
-**status:** `typing.Optional[IdentityProfileStatuses]` +**account_id:** `typing.Optional[str]` — The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read.
@@ -20783,9 +20775,9 @@ client = Whop( client.invoices.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), created_after=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -20834,14 +20826,6 @@ client.invoices.list(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company to list invoices for. - -
-
- -
-
- **direction:** `typing.Optional[Direction]`
@@ -20898,6 +20882,14 @@ client.invoices.list(
+**account_id:** `typing.Optional[str]` — The unique identifier of the company to list invoices for. + +
+
+ +
+
+ **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
@@ -20954,8 +20946,8 @@ client = Whop( client.invoices.create( request=CreateInvoicesRequestProduct( + account_id="biz_xxxxxxxxxxxxxx", collection_method="send_invoice", - company_id="biz_xxxxxxxxxxxxxx", plan=CreateInvoicesRequestProductPlan(), product=CreateInvoicesRequestProductProduct( title="title", @@ -21693,9 +21685,9 @@ client = Whop( client.leads.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_after=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), created_before=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -21712,7 +21704,7 @@ client.leads.list(
-**company_id:** `str` — The unique identifier of the company to list leads for. +**account_id:** `str` — The unique identifier of the company to list leads for.
@@ -21830,7 +21822,7 @@ client = Whop( ) client.leads.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -21847,7 +21839,7 @@ client.leads.create(
-**company_id:** `str` — The unique identifier of the company to create the lead for, starting with 'biz_'. +**account_id:** `str` — The unique identifier of the company to create the lead for, starting with 'biz_'.
@@ -25361,9 +25353,9 @@ client.payment_methods.list( first=42, last=42, member_id="mber_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), created_after=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -25420,14 +25412,6 @@ client.payment_methods.list(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - -
-
- -
-
- **direction:** `typing.Optional[Direction]`
@@ -25508,6 +25492,14 @@ client.payment_methods.list(
+**account_id:** `typing.Optional[str]` — The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + +
+
+ +
+
+ **request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
@@ -25560,8 +25552,8 @@ client = Whop( client.payment_methods.retrieve( id="payt_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", member_id="mber_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -25586,7 +25578,7 @@ client.payment_methods.retrieve(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. +**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
@@ -25594,7 +25586,7 @@ client.payment_methods.retrieve(
-**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. +**account_id:** `typing.Optional[str]` — The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -25654,8 +25646,8 @@ client = Whop( client.payment_methods.delete_payment_method( id="payt_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", member_id="mber_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -25680,7 +25672,7 @@ client.payment_methods.delete_payment_method(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. +**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods.
@@ -25688,7 +25680,7 @@ client.payment_methods.delete_payment_method(
-**member_id:** `typing.Optional[str]` — The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. +**account_id:** `typing.Optional[str]` — The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods.
@@ -26782,7 +26774,7 @@ client = Whop( client.payout_methods.list_payout_method( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -26799,7 +26791,7 @@ client.payout_methods.list_payout_method(
-**company_id:** `str` — The unique identifier of the company to list payout methods for. +**account_id:** `str` — The unique identifier of the company to list payout methods for.
@@ -32767,9 +32759,9 @@ client = Whop( client.setup_intents.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), created_after=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -32786,7 +32778,7 @@ client.setup_intents.list(
-**company_id:** `str` — The unique identifier of the company to list setup intents for. +**account_id:** `str` — The unique identifier of the company to list setup intents for.
@@ -32905,7 +32897,7 @@ client = Whop( client.setup_intents.create( request=CreateSetupIntentsRequestConfirmationToken( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", confirmation_token="ctok_xxxxxxxxxxxxxx", ), ) @@ -34289,8 +34281,8 @@ client = Whop( ) client.stats.describe_stats( - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -34315,7 +34307,7 @@ client.stats.describe_stats(
-**company_id:** `typing.Optional[str]` — Scope query to a specific company. +**user_id:** `typing.Optional[str]` — Scope query to a specific user.
@@ -34323,7 +34315,7 @@ client.stats.describe_stats(
-**user_id:** `typing.Optional[str]` — Scope query to a specific user. +**account_id:** `typing.Optional[str]` — Scope query to a specific company.
@@ -34386,8 +34378,8 @@ client.stats.metric_stats( resource="resource", from_=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), to=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -34460,7 +34452,7 @@ client.stats.metric_stats(
-**company_id:** `typing.Optional[str]` — Scope query to a specific company. +**user_id:** `typing.Optional[str]` — Scope query to a specific user.
@@ -34468,7 +34460,7 @@ client.stats.metric_stats(
-**user_id:** `typing.Optional[str]` — Scope query to a specific user. +**account_id:** `typing.Optional[str]` — Scope query to a specific company.
@@ -34532,8 +34524,8 @@ client.stats.raw_stats( from_=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), to=datetime.datetime.fromisoformat("2023-12-01T05:00:00+00:00"), limit=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -34606,7 +34598,7 @@ client.stats.raw_stats(
-**company_id:** `typing.Optional[str]` — Scope query to a specific company. +**user_id:** `typing.Optional[str]` — Scope query to a specific user.
@@ -34614,7 +34606,7 @@ client.stats.raw_stats(
-**user_id:** `typing.Optional[str]` — Scope query to a specific user. +**account_id:** `typing.Optional[str]` — Scope query to a specific company.
@@ -35032,7 +35024,7 @@ client = Whop( client.support_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) ``` @@ -35081,7 +35073,7 @@ client.support_channels.list(
-**company_id:** `typing.Optional[str]` — The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. +**view:** `typing.Optional[SupportChannelView]`
@@ -35089,7 +35081,7 @@ client.support_channels.list(
-**view:** `typing.Optional[SupportChannelView]` +**open:** `typing.Optional[bool]` — Whether to filter by open or resolved support channels. Set to true to only return channels awaiting a response, or false for resolved channels.
@@ -35097,7 +35089,7 @@ client.support_channels.list(
-**open:** `typing.Optional[bool]` — Whether to filter by open or resolved support channels. Set to true to only return channels awaiting a response, or false for resolved channels. +**direction:** `typing.Optional[Direction]`
@@ -35105,7 +35097,7 @@ client.support_channels.list(
-**direction:** `typing.Optional[Direction]` +**order:** `typing.Optional[MessageChannelOrder]`
@@ -35113,7 +35105,7 @@ client.support_channels.list(
-**order:** `typing.Optional[MessageChannelOrder]` +**account_id:** `typing.Optional[str]` — The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to.
@@ -35172,7 +35164,7 @@ client = Whop( ) client.support_channels.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", ) @@ -35190,7 +35182,7 @@ client.support_channels.create(
-**company_id:** `str` — The unique identifier of the company to create the support channel in. +**account_id:** `str` — The unique identifier of the company to create the support channel in.
@@ -36255,8 +36247,8 @@ client = Whop( ) client.topups.create( + account_id="biz_xxxxxxxxxxxxxx", amount=6.9, - company_id="biz_xxxxxxxxxxxxxx", currency="usd", payment_method_id="pmt_xxxxxxxxxxxxxx", ) @@ -36275,7 +36267,7 @@ client.topups.create(
-**amount:** `float` — The amount to add to the balance in the specified currency. For example, 50.00 for $50.00 USD. +**account_id:** `str` — The unique identifier of the company to add funds to, starting with 'biz_'.
@@ -36283,7 +36275,7 @@ client.topups.create(
-**company_id:** `str` — The unique identifier of the company to add funds to, starting with 'biz_'. +**amount:** `float` — The amount to add to the balance in the specified currency. For example, 50.00 for $50.00 USD.
diff --git a/src/whop_sdk/__init__.py b/src/whop_sdk/__init__.py index 66ae85ec..85b38d8e 100644 --- a/src/whop_sdk/__init__.py +++ b/src/whop_sdk/__init__.py @@ -1729,10 +1729,6 @@ UpdateCoursesRequestThumbnail, ) from .deposits import ( - CreateDepositsRequestDestination, - CreateDepositsRequestDestinationAccountId, - CreateDepositsRequestDestinationAccountIdNetwork, - CreateDepositsRequestNetwork, CreateDepositsResponse, CreateDepositsResponseMethods, CreateDepositsResponseMethodsBank, @@ -3155,10 +3151,6 @@ "CreateConfirmationTokensRequestSetupFutureUsage": ".confirmation_tokens", "CreateCourseLessonsRequestThumbnail": ".course_lessons", "CreateCoursesRequestThumbnail": ".courses", - "CreateDepositsRequestDestination": ".deposits", - "CreateDepositsRequestDestinationAccountId": ".deposits", - "CreateDepositsRequestDestinationAccountIdNetwork": ".deposits", - "CreateDepositsRequestNetwork": ".deposits", "CreateDepositsResponse": ".deposits", "CreateDepositsResponseMethods": ".deposits", "CreateDepositsResponseMethodsBank": ".deposits", @@ -5724,10 +5716,6 @@ def __dir__(): "CreateConfirmationTokensRequestSetupFutureUsage", "CreateCourseLessonsRequestThumbnail", "CreateCoursesRequestThumbnail", - "CreateDepositsRequestDestination", - "CreateDepositsRequestDestinationAccountId", - "CreateDepositsRequestDestinationAccountIdNetwork", - "CreateDepositsRequestNetwork", "CreateDepositsResponse", "CreateDepositsResponseMethods", "CreateDepositsResponseMethodsBank", diff --git a/src/whop_sdk/access_tokens/client.py b/src/whop_sdk/access_tokens/client.py index d8ca7f44..503eeaac 100644 --- a/src/whop_sdk/access_tokens/client.py +++ b/src/whop_sdk/access_tokens/client.py @@ -30,7 +30,7 @@ def with_raw_response(self) -> RawAccessTokensClient: def create( self, *, - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, expires_at: typing.Optional[dt.datetime] = OMIT, scoped_actions: typing.Optional[typing.Sequence[str]] = OMIT, user_id: typing.Optional[str] = OMIT, @@ -41,7 +41,7 @@ def create( Parameters ---------- - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to generate the token for, starting with 'biz_'. The API key must have permission to access this company. expires_at : typing.Optional[dt.datetime] @@ -66,14 +66,14 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.access_tokens.create() """ _response = self._raw_client.create( - company_id=company_id, + account_id=account_id, expires_at=expires_at, scoped_actions=scoped_actions, user_id=user_id, @@ -100,7 +100,7 @@ def with_raw_response(self) -> AsyncRawAccessTokensClient: async def create( self, *, - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, expires_at: typing.Optional[dt.datetime] = OMIT, scoped_actions: typing.Optional[typing.Sequence[str]] = OMIT, user_id: typing.Optional[str] = OMIT, @@ -111,7 +111,7 @@ async def create( Parameters ---------- - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to generate the token for, starting with 'biz_'. The API key must have permission to access this company. expires_at : typing.Optional[dt.datetime] @@ -138,7 +138,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -151,7 +151,7 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.create( - company_id=company_id, + account_id=account_id, expires_at=expires_at, scoped_actions=scoped_actions, user_id=user_id, diff --git a/src/whop_sdk/access_tokens/raw_client.py b/src/whop_sdk/access_tokens/raw_client.py index f7775c6d..f09a6fbd 100644 --- a/src/whop_sdk/access_tokens/raw_client.py +++ b/src/whop_sdk/access_tokens/raw_client.py @@ -31,7 +31,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def create( self, *, - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, expires_at: typing.Optional[dt.datetime] = OMIT, scoped_actions: typing.Optional[typing.Sequence[str]] = OMIT, user_id: typing.Optional[str] = OMIT, @@ -42,7 +42,7 @@ def create( Parameters ---------- - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to generate the token for, starting with 'biz_'. The API key must have permission to access this company. expires_at : typing.Optional[dt.datetime] @@ -66,7 +66,7 @@ def create( "access_tokens", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "expires_at": expires_at, "scoped_actions": scoped_actions, "user_id": user_id, @@ -181,7 +181,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def create( self, *, - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, expires_at: typing.Optional[dt.datetime] = OMIT, scoped_actions: typing.Optional[typing.Sequence[str]] = OMIT, user_id: typing.Optional[str] = OMIT, @@ -192,7 +192,7 @@ async def create( Parameters ---------- - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to generate the token for, starting with 'biz_'. The API key must have permission to access this company. expires_at : typing.Optional[dt.datetime] @@ -216,7 +216,7 @@ async def create( "access_tokens", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "expires_at": expires_at, "scoped_actions": scoped_actions, "user_id": user_id, diff --git a/src/whop_sdk/account_links/client.py b/src/whop_sdk/account_links/client.py index 900e51cd..ab3d06b8 100644 --- a/src/whop_sdk/account_links/client.py +++ b/src/whop_sdk/account_links/client.py @@ -30,7 +30,7 @@ def with_raw_response(self) -> RawAccountLinksClient: def create( self, *, - company_id: str, + account_id: str, refresh_url: str, return_url: str, use_case: AccountLinkUseCases, @@ -41,7 +41,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company. refresh_url : str @@ -66,19 +66,19 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.account_links.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", refresh_url="refresh_url", return_url="return_url", use_case="account_onboarding", ) """ _response = self._raw_client.create( - company_id=company_id, + account_id=account_id, refresh_url=refresh_url, return_url=return_url, use_case=use_case, @@ -105,7 +105,7 @@ def with_raw_response(self) -> AsyncRawAccountLinksClient: async def create( self, *, - company_id: str, + account_id: str, refresh_url: str, return_url: str, use_case: AccountLinkUseCases, @@ -116,7 +116,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company. refresh_url : str @@ -143,7 +143,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -151,7 +151,7 @@ async def create( async def main() -> None: await client.account_links.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", refresh_url="refresh_url", return_url="return_url", use_case="account_onboarding", @@ -161,7 +161,7 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.create( - company_id=company_id, + account_id=account_id, refresh_url=refresh_url, return_url=return_url, use_case=use_case, diff --git a/src/whop_sdk/account_links/raw_client.py b/src/whop_sdk/account_links/raw_client.py index 89b9295d..2ad653eb 100644 --- a/src/whop_sdk/account_links/raw_client.py +++ b/src/whop_sdk/account_links/raw_client.py @@ -31,7 +31,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def create( self, *, - company_id: str, + account_id: str, refresh_url: str, return_url: str, use_case: AccountLinkUseCases, @@ -42,7 +42,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company. refresh_url : str @@ -66,7 +66,7 @@ def create( "account_links", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "refresh_url": refresh_url, "return_url": return_url, "use_case": use_case, @@ -181,7 +181,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def create( self, *, - company_id: str, + account_id: str, refresh_url: str, return_url: str, use_case: AccountLinkUseCases, @@ -192,7 +192,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to generate the link for, starting with 'biz_'. Must be a sub-merchant of the API key's company. refresh_url : str @@ -216,7 +216,7 @@ async def create( "account_links", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "refresh_url": refresh_url, "return_url": return_url, "use_case": use_case, diff --git a/src/whop_sdk/accounts/client.py b/src/whop_sdk/accounts/client.py index c046acfc..397f8a91 100644 --- a/src/whop_sdk/accounts/client.py +++ b/src/whop_sdk/accounts/client.py @@ -140,7 +140,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -215,7 +215,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -251,7 +251,7 @@ def me(self, *, request_options: typing.Optional[RequestOptions] = None) -> Acco from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -282,7 +282,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -474,7 +474,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -615,7 +615,7 @@ def form_company( ) client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -709,7 +709,7 @@ def suspend(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -759,7 +759,7 @@ def transfer_ownership( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -885,7 +885,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -969,7 +969,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1013,7 +1013,7 @@ async def me(self, *, request_options: typing.Optional[RequestOptions] = None) - from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1052,7 +1052,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1252,7 +1252,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1401,7 +1401,7 @@ async def form_company( ) client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1503,7 +1503,7 @@ async def suspend(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1561,7 +1561,7 @@ async def transfer_ownership( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/accounts/preferences/client.py b/src/whop_sdk/accounts/preferences/client.py index 9f345817..ec03099d 100644 --- a/src/whop_sdk/accounts/preferences/client.py +++ b/src/whop_sdk/accounts/preferences/client.py @@ -55,7 +55,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -117,7 +117,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -179,7 +179,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -249,7 +249,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/accounts/reserves/client.py b/src/whop_sdk/accounts/reserves/client.py index 90b83393..1250869c 100644 --- a/src/whop_sdk/accounts/reserves/client.py +++ b/src/whop_sdk/accounts/reserves/client.py @@ -45,7 +45,7 @@ def list(self, account_id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -98,7 +98,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/ad_campaigns/client.py b/src/whop_sdk/ad_campaigns/client.py index 22460be2..da30d28f 100644 --- a/src/whop_sdk/ad_campaigns/client.py +++ b/src/whop_sdk/ad_campaigns/client.py @@ -133,7 +133,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -234,7 +234,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -304,7 +304,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -344,7 +344,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -418,7 +418,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -476,7 +476,7 @@ def duplicate( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -511,7 +511,7 @@ def pause(self, id: str, *, request_options: typing.Optional[RequestOptions] = N from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -544,7 +544,7 @@ def retry_payment(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -577,7 +577,7 @@ def unpause(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -689,7 +689,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -799,7 +799,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -877,7 +877,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -927,7 +927,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1009,7 +1009,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1075,7 +1075,7 @@ async def duplicate( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1118,7 +1118,7 @@ async def pause(self, id: str, *, request_options: typing.Optional[RequestOption from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1159,7 +1159,7 @@ async def retry_payment(self, id: str, *, request_options: typing.Optional[Reque from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1200,7 +1200,7 @@ async def unpause(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/ad_groups/client.py b/src/whop_sdk/ad_groups/client.py index 5c03a37f..70b5c091 100644 --- a/src/whop_sdk/ad_groups/client.py +++ b/src/whop_sdk/ad_groups/client.py @@ -159,7 +159,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -316,7 +316,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -407,7 +407,7 @@ def estimate_reach( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -498,7 +498,7 @@ def search_targeting_options( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -562,7 +562,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -602,7 +602,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -732,7 +732,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -806,7 +806,7 @@ def duplicate( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -845,7 +845,7 @@ def pause(self, id: str, *, request_options: typing.Optional[RequestOptions] = N from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -878,7 +878,7 @@ def unpause(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -998,7 +998,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1164,7 +1164,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1263,7 +1263,7 @@ async def estimate_reach( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1362,7 +1362,7 @@ async def search_targeting_options( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1434,7 +1434,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1484,7 +1484,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1622,7 +1622,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1704,7 +1704,7 @@ async def duplicate( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1751,7 +1751,7 @@ async def pause(self, id: str, *, request_options: typing.Optional[RequestOption from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1792,7 +1792,7 @@ async def unpause(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/ads/client.py b/src/whop_sdk/ads/client.py index 7227d389..ae22475a 100644 --- a/src/whop_sdk/ads/client.py +++ b/src/whop_sdk/ads/client.py @@ -148,7 +148,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -280,7 +280,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -352,7 +352,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -392,7 +392,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -494,7 +494,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -563,7 +563,7 @@ def duplicate( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -602,7 +602,7 @@ def pause(self, id: str, *, request_options: typing.Optional[RequestOptions] = N from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -635,7 +635,7 @@ def unpause(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -763,7 +763,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -904,7 +904,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -984,7 +984,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1032,7 +1032,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1142,7 +1142,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1219,7 +1219,7 @@ async def duplicate( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1266,7 +1266,7 @@ async def pause(self, id: str, *, request_options: typing.Optional[RequestOption from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1307,7 +1307,7 @@ async def unpause(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/affiliates/client.py b/src/whop_sdk/affiliates/client.py index f2679de3..a082e8f9 100644 --- a/src/whop_sdk/affiliates/client.py +++ b/src/whop_sdk/affiliates/client.py @@ -41,7 +41,7 @@ def with_raw_response(self) -> RawAffiliatesClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -60,7 +60,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list affiliates for. after : typing.Optional[str] @@ -97,14 +97,14 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.affiliates.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -113,7 +113,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -126,7 +126,7 @@ def list( ) def create( - self, *, company_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None + self, *, account_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None ) -> Affiliate: """ Creates or finds an affiliate for a company and user. @@ -136,7 +136,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to create the affiliate for. user_identifier : str @@ -155,17 +155,17 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.affiliates.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", user_identifier="user_identifier", ) """ _response = self._raw_client.create( - company_id=company_id, user_identifier=user_identifier, request_options=request_options + account_id=account_id, user_identifier=user_identifier, request_options=request_options ) return _response.data @@ -194,7 +194,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -230,7 +230,7 @@ def archive(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -266,7 +266,7 @@ def unarchive(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -306,7 +306,7 @@ def with_raw_response(self) -> AsyncRawAffiliatesClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -325,7 +325,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list affiliates for. after : typing.Optional[str] @@ -364,7 +364,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -374,7 +374,7 @@ async def main() -> None: response = await client.affiliates.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -387,7 +387,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -400,7 +400,7 @@ async def main() -> None: ) async def create( - self, *, company_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None + self, *, account_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None ) -> Affiliate: """ Creates or finds an affiliate for a company and user. @@ -410,7 +410,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to create the affiliate for. user_identifier : str @@ -431,7 +431,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -439,7 +439,7 @@ async def create( async def main() -> None: await client.affiliates.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", user_identifier="user_identifier", ) @@ -447,7 +447,7 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.create( - company_id=company_id, user_identifier=user_identifier, request_options=request_options + account_id=account_id, user_identifier=user_identifier, request_options=request_options ) return _response.data @@ -478,7 +478,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -522,7 +522,7 @@ async def archive(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -566,7 +566,7 @@ async def unarchive(self, id: str, *, request_options: typing.Optional[RequestOp from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/affiliates/overrides/client.py b/src/whop_sdk/affiliates/overrides/client.py index 2111fcd4..dbc17539 100644 --- a/src/whop_sdk/affiliates/overrides/client.py +++ b/src/whop_sdk/affiliates/overrides/client.py @@ -85,7 +85,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -140,7 +140,7 @@ def create( from whop_sdk.affiliates.overrides import CreateOverridesRequestBody_Standard client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -186,7 +186,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -226,7 +226,7 @@ def delete(self, id: str, override_id: str, *, request_options: typing.Optional[ from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -288,7 +288,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -375,7 +375,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -439,7 +439,7 @@ async def create( from whop_sdk.affiliates.overrides import CreateOverridesRequestBody_Standard client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -493,7 +493,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -543,7 +543,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -613,7 +613,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/affiliates/raw_client.py b/src/whop_sdk/affiliates/raw_client.py index e6b01047..c7cd21c3 100644 --- a/src/whop_sdk/affiliates/raw_client.py +++ b/src/whop_sdk/affiliates/raw_client.py @@ -37,7 +37,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -56,7 +56,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list affiliates for. after : typing.Optional[str] @@ -96,11 +96,11 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "order": order, "query": query, "status": status, + "account_id": account_id, }, request_options=request_options, ) @@ -120,7 +120,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -219,7 +219,7 @@ def list( raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) def create( - self, *, company_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None + self, *, account_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None ) -> HttpResponse[Affiliate]: """ Creates or finds an affiliate for a company and user. @@ -229,7 +229,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to create the affiliate for. user_identifier : str @@ -247,7 +247,7 @@ def create( "affiliates", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "user_identifier": user_identifier, }, headers={ @@ -723,7 +723,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -742,7 +742,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list affiliates for. after : typing.Optional[str] @@ -782,11 +782,11 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "order": order, "query": query, "status": status, + "account_id": account_id, }, request_options=request_options, ) @@ -808,7 +808,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -908,7 +908,7 @@ async def _get_next(): raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json) async def create( - self, *, company_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None + self, *, account_id: str, user_identifier: str, request_options: typing.Optional[RequestOptions] = None ) -> AsyncHttpResponse[Affiliate]: """ Creates or finds an affiliate for a company and user. @@ -918,7 +918,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to create the affiliate for. user_identifier : str @@ -936,7 +936,7 @@ async def create( "affiliates", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "user_identifier": user_identifier, }, headers={ diff --git a/src/whop_sdk/ai_chats/client.py b/src/whop_sdk/ai_chats/client.py index 28f58987..af77e631 100644 --- a/src/whop_sdk/ai_chats/client.py +++ b/src/whop_sdk/ai_chats/client.py @@ -75,7 +75,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -148,7 +148,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -189,7 +189,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -225,7 +225,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -278,7 +278,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -356,7 +356,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -438,7 +438,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -487,7 +487,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -531,7 +531,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -592,7 +592,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/api_keys/client.py b/src/whop_sdk/api_keys/client.py index f9ea405e..480b1779 100644 --- a/src/whop_sdk/api_keys/client.py +++ b/src/whop_sdk/api_keys/client.py @@ -103,7 +103,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -183,7 +183,7 @@ def create( from whop_sdk.api_keys import CreateApiKeysRequestPermissions client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -227,7 +227,7 @@ def list_permissions( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -258,7 +258,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -291,7 +291,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -349,7 +349,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -390,7 +390,7 @@ def rotate(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -482,7 +482,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -571,7 +571,7 @@ async def create( from whop_sdk.api_keys import CreateApiKeysRequestPermissions client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -623,7 +623,7 @@ async def list_permissions( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -662,7 +662,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -705,7 +705,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -771,7 +771,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -820,7 +820,7 @@ async def rotate(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.py b/src/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.py index 1ecbd0f6..d0f105c6 100644 --- a/src/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.py +++ b/src/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.py @@ -36,6 +36,7 @@ "2026-08-31", "2026-09-02", "2026-09-02-1", + "2026-09-02-2", ], typing.Any, ] diff --git a/src/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.py b/src/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.py index 0e782560..cd1b62c9 100644 --- a/src/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.py +++ b/src/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.py @@ -36,6 +36,7 @@ "2026-08-31", "2026-09-02", "2026-09-02-1", + "2026-09-02-2", ], typing.Any, ] diff --git a/src/whop_sdk/api_logs/client.py b/src/whop_sdk/api_logs/client.py index 114d486d..b52b0d31 100644 --- a/src/whop_sdk/api_logs/client.py +++ b/src/whop_sdk/api_logs/client.py @@ -94,7 +94,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -205,7 +205,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/app_builds/client.py b/src/whop_sdk/app_builds/client.py index 60efc233..e1101c39 100644 --- a/src/whop_sdk/app_builds/client.py +++ b/src/whop_sdk/app_builds/client.py @@ -97,7 +97,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -177,7 +177,7 @@ def create( from whop_sdk.app_builds import CreateAppBuildsRequestAttachment client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -221,7 +221,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -254,7 +254,7 @@ def promote(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -342,7 +342,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -431,7 +431,7 @@ async def create( from whop_sdk.app_builds import CreateAppBuildsRequestAttachment client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -483,7 +483,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -524,7 +524,7 @@ async def promote(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/apps/client.py b/src/whop_sdk/apps/client.py index fb777c90..cbbcbf62 100644 --- a/src/whop_sdk/apps/client.py +++ b/src/whop_sdk/apps/client.py @@ -126,7 +126,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -205,7 +205,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -260,7 +260,7 @@ def update_permissions_app( from whop_sdk.apps import UpdatePermissionsAppRequestRequestedPermissionsItem client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -302,7 +302,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -335,7 +335,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -453,7 +453,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -514,7 +514,7 @@ def deploy( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -584,7 +584,7 @@ def logs( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -642,7 +642,7 @@ def update_permissions( from whop_sdk.apps import UpdatePermissionsAppsRequestRequestedPermissionsItem client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -755,7 +755,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -843,7 +843,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -906,7 +906,7 @@ async def update_permissions_app( from whop_sdk.apps import UpdatePermissionsAppRequestRequestedPermissionsItem client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -956,7 +956,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -997,7 +997,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1123,7 +1123,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1192,7 +1192,7 @@ async def deploy( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1270,7 +1270,7 @@ async def logs( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1337,7 +1337,7 @@ async def update_permissions( from whop_sdk.apps import UpdatePermissionsAppsRequestRequestedPermissionsItem client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/audiences/client.py b/src/whop_sdk/audiences/client.py index 8df4db20..d6da034d 100644 --- a/src/whop_sdk/audiences/client.py +++ b/src/whop_sdk/audiences/client.py @@ -81,7 +81,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -167,7 +167,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -212,7 +212,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -258,7 +258,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -294,7 +294,7 @@ def add_people(self, id: str, *, file_id: str, request_options: typing.Optional[ from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -371,7 +371,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -466,7 +466,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -521,7 +521,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -575,7 +575,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -621,7 +621,7 @@ async def add_people( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/authorized_users/client.py b/src/whop_sdk/authorized_users/client.py index 6a45dad8..656ff0e1 100644 --- a/src/whop_sdk/authorized_users/client.py +++ b/src/whop_sdk/authorized_users/client.py @@ -40,11 +40,11 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, role: typing.Optional[AuthorizedUserRoles] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[AuthorizedUserListItem, ListAuthorizedUsersResponse]: """ @@ -68,9 +68,6 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list authorized users for. - user_id : typing.Optional[str] Filter results to a specific user to check if they are an authorized team member. @@ -82,6 +79,9 @@ def list( created_after : typing.Optional[dt.datetime] Only return authorized users created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list authorized users for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -97,14 +97,13 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.authorized_users.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", @@ -112,6 +111,7 @@ def list( created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -124,18 +124,18 @@ def list( before=before, first=first, last=last, - company_id=company_id, user_id=user_id, role=role, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) def create( self, *, - company_id: str, + account_id: str, role: GrantableAuthorizedUserRoles, user_id: str, elevation: typing.Optional[CreateAuthorizedUsersRequestElevation] = OMIT, @@ -151,7 +151,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to add the authorized user to. role : GrantableAuthorizedUserRoles @@ -179,18 +179,18 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.authorized_users.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", role="owner", user_id="user_xxxxxxxxxxxxx", ) """ _response = self._raw_client.create( - company_id=company_id, + account_id=account_id, role=role, user_id=user_id, elevation=elevation, @@ -225,7 +225,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -240,7 +240,7 @@ def delete( self, id: str, *, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> bool: """ @@ -254,7 +254,7 @@ def delete( id : str The ID of the authorized user or user to remove. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The ID of the company the authorized user belongs to. Optional if the authorized user ID is provided. request_options : typing.Optional[RequestOptions] @@ -270,16 +270,16 @@ def delete( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.authorized_users.delete( id="ausr_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) """ - _response = self._raw_client.delete(id, company_id=company_id, request_options=request_options) + _response = self._raw_client.delete(id, account_id=account_id, request_options=request_options) return _response.data @@ -305,11 +305,11 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, role: typing.Optional[AuthorizedUserRoles] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[AuthorizedUserListItem, ListAuthorizedUsersResponse]: """ @@ -333,9 +333,6 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list authorized users for. - user_id : typing.Optional[str] Filter results to a specific user to check if they are an authorized team member. @@ -347,6 +344,9 @@ async def list( created_after : typing.Optional[dt.datetime] Only return authorized users created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list authorized users for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -363,7 +363,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -373,7 +373,6 @@ async def main() -> None: response = await client.authorized_users.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", @@ -381,6 +380,7 @@ async def main() -> None: created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -397,18 +397,18 @@ async def main() -> None: before=before, first=first, last=last, - company_id=company_id, user_id=user_id, role=role, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) async def create( self, *, - company_id: str, + account_id: str, role: GrantableAuthorizedUserRoles, user_id: str, elevation: typing.Optional[CreateAuthorizedUsersRequestElevation] = OMIT, @@ -424,7 +424,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to add the authorized user to. role : GrantableAuthorizedUserRoles @@ -454,7 +454,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -462,7 +462,7 @@ async def create( async def main() -> None: await client.authorized_users.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", role="owner", user_id="user_xxxxxxxxxxxxx", ) @@ -471,7 +471,7 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.create( - company_id=company_id, + account_id=account_id, role=role, user_id=user_id, elevation=elevation, @@ -508,7 +508,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -529,7 +529,7 @@ async def delete( self, id: str, *, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> bool: """ @@ -543,7 +543,7 @@ async def delete( id : str The ID of the authorized user or user to remove. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The ID of the company the authorized user belongs to. Optional if the authorized user ID is provided. request_options : typing.Optional[RequestOptions] @@ -561,7 +561,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -570,11 +570,11 @@ async def delete( async def main() -> None: await client.authorized_users.delete( id="ausr_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) asyncio.run(main()) """ - _response = await self._raw_client.delete(id, company_id=company_id, request_options=request_options) + _response = await self._raw_client.delete(id, account_id=account_id, request_options=request_options) return _response.data diff --git a/src/whop_sdk/authorized_users/raw_client.py b/src/whop_sdk/authorized_users/raw_client.py index aec003c4..3f0cf619 100644 --- a/src/whop_sdk/authorized_users/raw_client.py +++ b/src/whop_sdk/authorized_users/raw_client.py @@ -44,11 +44,11 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, role: typing.Optional[AuthorizedUserRoles] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[AuthorizedUserListItem, ListAuthorizedUsersResponse]: """ @@ -72,9 +72,6 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list authorized users for. - user_id : typing.Optional[str] Filter results to a specific user to check if they are an authorized team member. @@ -86,6 +83,9 @@ def list( created_after : typing.Optional[dt.datetime] Only return authorized users created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list authorized users for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -102,11 +102,11 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "user_id": user_id, "role": role, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -130,11 +130,11 @@ def list( before=before, first=first, last=last, - company_id=company_id, user_id=user_id, role=role, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -227,7 +227,7 @@ def list( def create( self, *, - company_id: str, + account_id: str, role: GrantableAuthorizedUserRoles, user_id: str, elevation: typing.Optional[CreateAuthorizedUsersRequestElevation] = OMIT, @@ -243,7 +243,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to add the authorized user to. role : GrantableAuthorizedUserRoles @@ -270,7 +270,7 @@ def create( "authorized_users", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "elevation": convert_and_respect_annotation_metadata( object_=elevation, annotation=typing.Optional[CreateAuthorizedUsersRequestElevation], @@ -510,7 +510,7 @@ def delete( self, id: str, *, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[bool]: """ @@ -524,7 +524,7 @@ def delete( id : str The ID of the authorized user or user to remove. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The ID of the company the authorized user belongs to. Optional if the authorized user ID is provided. request_options : typing.Optional[RequestOptions] @@ -539,7 +539,7 @@ def delete( f"authorized_users/{encode_path_param(id)}", method="DELETE", params={ - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -651,11 +651,11 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, role: typing.Optional[AuthorizedUserRoles] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[AuthorizedUserListItem, ListAuthorizedUsersResponse]: """ @@ -679,9 +679,6 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list authorized users for. - user_id : typing.Optional[str] Filter results to a specific user to check if they are an authorized team member. @@ -693,6 +690,9 @@ async def list( created_after : typing.Optional[dt.datetime] Only return authorized users created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list authorized users for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -709,11 +709,11 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "user_id": user_id, "role": role, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -739,11 +739,11 @@ async def _get_next(): before=before, first=first, last=last, - company_id=company_id, user_id=user_id, role=role, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) @@ -837,7 +837,7 @@ async def _get_next(): async def create( self, *, - company_id: str, + account_id: str, role: GrantableAuthorizedUserRoles, user_id: str, elevation: typing.Optional[CreateAuthorizedUsersRequestElevation] = OMIT, @@ -853,7 +853,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The ID of the company to add the authorized user to. role : GrantableAuthorizedUserRoles @@ -880,7 +880,7 @@ async def create( "authorized_users", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "elevation": convert_and_respect_annotation_metadata( object_=elevation, annotation=typing.Optional[CreateAuthorizedUsersRequestElevation], @@ -1120,7 +1120,7 @@ async def delete( self, id: str, *, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[bool]: """ @@ -1134,7 +1134,7 @@ async def delete( id : str The ID of the authorized user or user to remove. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The ID of the company the authorized user belongs to. Optional if the authorized user ID is provided. request_options : typing.Optional[RequestOptions] @@ -1149,7 +1149,7 @@ async def delete( f"authorized_users/{encode_path_param(id)}", method="DELETE", params={ - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) diff --git a/src/whop_sdk/bounties/client.py b/src/whop_sdk/bounties/client.py index 5482f5a7..cea8d6a3 100644 --- a/src/whop_sdk/bounties/client.py +++ b/src/whop_sdk/bounties/client.py @@ -127,7 +127,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -232,7 +232,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -282,7 +282,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -360,7 +360,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -406,7 +406,7 @@ def cancel(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -528,7 +528,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -642,7 +642,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -700,7 +700,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -786,7 +786,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -840,7 +840,7 @@ async def cancel(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/bounties/submissions/client.py b/src/whop_sdk/bounties/submissions/client.py index 46109001..38554b3a 100644 --- a/src/whop_sdk/bounties/submissions/client.py +++ b/src/whop_sdk/bounties/submissions/client.py @@ -91,7 +91,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -145,7 +145,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -238,7 +238,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -301,7 +301,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/bounty_submissions/client.py b/src/whop_sdk/bounty_submissions/client.py index a6856dee..13254c49 100644 --- a/src/whop_sdk/bounty_submissions/client.py +++ b/src/whop_sdk/bounty_submissions/client.py @@ -102,7 +102,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -167,7 +167,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -215,7 +215,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -250,7 +250,7 @@ def delete( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -292,7 +292,7 @@ def submit( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -388,7 +388,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -462,7 +462,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -518,7 +518,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -561,7 +561,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -611,7 +611,7 @@ async def submit( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/card_transactions/client.py b/src/whop_sdk/card_transactions/client.py index 446d1217..e37d1321 100644 --- a/src/whop_sdk/card_transactions/client.py +++ b/src/whop_sdk/card_transactions/client.py @@ -103,7 +103,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -166,7 +166,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -270,7 +270,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -342,7 +342,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/cards/client.py b/src/whop_sdk/cards/client.py index f18a16c1..bb1c92f9 100644 --- a/src/whop_sdk/cards/client.py +++ b/src/whop_sdk/cards/client.py @@ -63,7 +63,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -123,7 +123,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -176,7 +176,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -260,7 +260,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -334,7 +334,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -402,7 +402,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -463,7 +463,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -555,7 +555,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/chat_channels/client.py b/src/whop_sdk/chat_channels/client.py index 71fcd07e..a44b6282 100644 --- a/src/whop_sdk/chat_channels/client.py +++ b/src/whop_sdk/chat_channels/client.py @@ -34,7 +34,7 @@ def with_raw_response(self) -> RawChatChannelsClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -50,7 +50,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list chat channels for. after : typing.Optional[str] @@ -81,15 +81,15 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.chat_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -98,7 +98,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -132,7 +132,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -197,7 +197,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -236,7 +236,7 @@ def with_raw_response(self) -> AsyncRawChatChannelsClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -252,7 +252,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list chat channels for. after : typing.Optional[str] @@ -285,7 +285,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -295,8 +295,8 @@ async def main() -> None: response = await client.chat_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -309,7 +309,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -345,7 +345,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -418,7 +418,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/chat_channels/raw_client.py b/src/whop_sdk/chat_channels/raw_client.py index 546c5170..ccfbebab 100644 --- a/src/whop_sdk/chat_channels/raw_client.py +++ b/src/whop_sdk/chat_channels/raw_client.py @@ -36,7 +36,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -52,7 +52,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list chat channels for. after : typing.Optional[str] @@ -86,8 +86,8 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "product_id": product_id, + "account_id": account_id, }, request_options=request_options, ) @@ -107,7 +107,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -495,7 +495,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -511,7 +511,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list chat channels for. after : typing.Optional[str] @@ -545,8 +545,8 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "product_id": product_id, + "account_id": account_id, }, request_options=request_options, ) @@ -568,7 +568,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, diff --git a/src/whop_sdk/checkout_configurations/client.py b/src/whop_sdk/checkout_configurations/client.py index 468866f9..ea80b97d 100644 --- a/src/whop_sdk/checkout_configurations/client.py +++ b/src/whop_sdk/checkout_configurations/client.py @@ -94,7 +94,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -184,7 +184,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -232,7 +232,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -267,7 +267,7 @@ def delete( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -351,7 +351,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -450,7 +450,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -506,7 +506,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -549,7 +549,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/client.py b/src/whop_sdk/client.py index 0d673c03..da4984a1 100644 --- a/src/whop_sdk/client.py +++ b/src/whop_sdk/client.py @@ -142,7 +142,7 @@ class Whop: from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -153,7 +153,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: WhopEnvironment = WhopEnvironment.DEFAULT, - api_version_date: typing.Optional[str] = "2026-09-02-1", + api_version_date: typing.Optional[str] = "2026-09-02-2", idempotency_key: typing.Optional[str] = None, token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None, headers: typing.Optional[typing.Dict[str, str]] = None, @@ -977,7 +977,7 @@ class AsyncWhop: from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -988,7 +988,7 @@ def __init__( *, base_url: typing.Optional[str] = None, environment: WhopEnvironment = WhopEnvironment.DEFAULT, - api_version_date: typing.Optional[str] = "2026-09-02-1", + api_version_date: typing.Optional[str] = "2026-09-02-2", idempotency_key: typing.Optional[str] = None, token: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = None, headers: typing.Optional[typing.Dict[str, str]] = None, diff --git a/src/whop_sdk/company_token_transactions/client.py b/src/whop_sdk/company_token_transactions/client.py index ce6d6d99..cabdf344 100644 --- a/src/whop_sdk/company_token_transactions/client.py +++ b/src/whop_sdk/company_token_transactions/client.py @@ -34,7 +34,7 @@ def with_raw_response(self) -> RawCompanyTokenTransactionsClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -53,7 +53,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list token transactions for. after : typing.Optional[str] @@ -86,15 +86,15 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.company_token_transactions.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -103,7 +103,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -144,14 +144,14 @@ def create( ) client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.company_token_transactions.create( request=CreateCompanyTokenTransactionsRequest_Transfer( + account_id="biz_xxxxxxxxxxxxxx", amount=6.9, - company_id="biz_xxxxxxxxxxxxxx", destination_user_id="destination_user_id", user_id="user_xxxxxxxxxxxxx", ), @@ -187,7 +187,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -217,7 +217,7 @@ def with_raw_response(self) -> AsyncRawCompanyTokenTransactionsClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -236,7 +236,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list token transactions for. after : typing.Optional[str] @@ -271,7 +271,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -281,8 +281,8 @@ async def main() -> None: response = await client.company_token_transactions.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -295,7 +295,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -338,7 +338,7 @@ async def create( ) client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -347,8 +347,8 @@ async def create( async def main() -> None: await client.company_token_transactions.create( request=CreateCompanyTokenTransactionsRequest_Transfer( + account_id="biz_xxxxxxxxxxxxxx", amount=6.9, - company_id="biz_xxxxxxxxxxxxxx", destination_user_id="destination_user_id", user_id="user_xxxxxxxxxxxxx", ), @@ -391,7 +391,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/company_token_transactions/raw_client.py b/src/whop_sdk/company_token_transactions/raw_client.py index ecb7d619..1c96757b 100644 --- a/src/whop_sdk/company_token_transactions/raw_client.py +++ b/src/whop_sdk/company_token_transactions/raw_client.py @@ -37,7 +37,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -56,7 +56,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list token transactions for. after : typing.Optional[str] @@ -92,9 +92,9 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "user_id": user_id, "transaction_type": transaction_type, + "account_id": account_id, }, request_options=request_options, ) @@ -114,7 +114,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -474,7 +474,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -493,7 +493,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list token transactions for. after : typing.Optional[str] @@ -529,9 +529,9 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "user_id": user_id, "transaction_type": transaction_type, + "account_id": account_id, }, request_options=request_options, ) @@ -553,7 +553,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, diff --git a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request.py b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request.py index 744f9340..9585848d 100644 --- a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request.py +++ b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request.py @@ -15,8 +15,8 @@ class CreateCompanyTokenTransactionsRequest_Transfer(UniversalBaseModel): """ transaction_type: typing.Literal["transfer"] = "transfer" + account_id: str amount: float - company_id: str description: typing.Optional[str] = None destination_user_id: str idempotency_key: typing.Optional[str] = None @@ -38,8 +38,8 @@ class CreateCompanyTokenTransactionsRequest_Add(UniversalBaseModel): """ transaction_type: typing.Literal["add"] = "add" + account_id: str amount: float - company_id: str description: typing.Optional[str] = None idempotency_key: typing.Optional[str] = None user_id: str @@ -60,8 +60,8 @@ class CreateCompanyTokenTransactionsRequest_Subtract(UniversalBaseModel): """ transaction_type: typing.Literal["subtract"] = "subtract" + account_id: str amount: float - company_id: str description: typing.Optional[str] = None idempotency_key: typing.Optional[str] = None user_id: str diff --git a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_add.py b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_add.py index d747c537..1ce18a1f 100644 --- a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_add.py +++ b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_add.py @@ -11,14 +11,14 @@ class CreateCompanyTokenTransactionsRequestAdd(UniversalBaseModel): Autogenerated input type of CreateCompanyTokenTransaction """ - amount: float = pydantic.Field() + account_id: str = pydantic.Field() """ - The positive number of tokens to transact. For example, 100.0 for 100 tokens. + The unique identifier of the company to create the transaction in, starting with 'biz_'. """ - company_id: str = pydantic.Field() + amount: float = pydantic.Field() """ - The unique identifier of the company to create the transaction in, starting with 'biz_'. + The positive number of tokens to transact. For example, 100.0 for 100 tokens. """ description: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_subtract.py b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_subtract.py index 85a706c3..fa39a329 100644 --- a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_subtract.py +++ b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_subtract.py @@ -11,14 +11,14 @@ class CreateCompanyTokenTransactionsRequestSubtract(UniversalBaseModel): Autogenerated input type of CreateCompanyTokenTransaction """ - amount: float = pydantic.Field() + account_id: str = pydantic.Field() """ - The positive number of tokens to transact. For example, 100.0 for 100 tokens. + The unique identifier of the company to create the transaction in, starting with 'biz_'. """ - company_id: str = pydantic.Field() + amount: float = pydantic.Field() """ - The unique identifier of the company to create the transaction in, starting with 'biz_'. + The positive number of tokens to transact. For example, 100.0 for 100 tokens. """ description: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_transfer.py b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_transfer.py index 4e12b6d8..8c0bcfc8 100644 --- a/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_transfer.py +++ b/src/whop_sdk/company_token_transactions/types/create_company_token_transactions_request_transfer.py @@ -11,14 +11,14 @@ class CreateCompanyTokenTransactionsRequestTransfer(UniversalBaseModel): Autogenerated input type of CreateCompanyTokenTransaction """ - amount: float = pydantic.Field() + account_id: str = pydantic.Field() """ - The positive number of tokens to transact. For example, 100.0 for 100 tokens. + The unique identifier of the company to create the transaction in, starting with 'biz_'. """ - company_id: str = pydantic.Field() + amount: float = pydantic.Field() """ - The unique identifier of the company to create the transaction in, starting with 'biz_'. + The positive number of tokens to transact. For example, 100.0 for 100 tokens. """ description: typing.Optional[str] = pydantic.Field(default=None) diff --git a/src/whop_sdk/confirmation_tokens/client.py b/src/whop_sdk/confirmation_tokens/client.py index 366a16c9..5388e16f 100644 --- a/src/whop_sdk/confirmation_tokens/client.py +++ b/src/whop_sdk/confirmation_tokens/client.py @@ -81,7 +81,7 @@ def create( ) client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -147,7 +147,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -229,7 +229,7 @@ async def create( ) client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -303,7 +303,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/core/client_wrapper.py b/src/whop_sdk/core/client_wrapper.py index 2ff288ca..49ca5203 100644 --- a/src/whop_sdk/core/client_wrapper.py +++ b/src/whop_sdk/core/client_wrapper.py @@ -41,7 +41,7 @@ def get_headers(self) -> typing.Dict[str, str]: "X-Fern-Runtime": f"python/{platform.python_version()}", "X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}", "X-Fern-SDK-Name": "whop_sdk", - "X-Fern-SDK-Version": "1.1.0", + "X-Fern-SDK-Version": "1.1.1", **(self.get_custom_headers() or {}), } if self._api_version_date is not None: diff --git a/src/whop_sdk/course_chapters/client.py b/src/whop_sdk/course_chapters/client.py index 0594618f..9357109c 100644 --- a/src/whop_sdk/course_chapters/client.py +++ b/src/whop_sdk/course_chapters/client.py @@ -75,7 +75,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -128,7 +128,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -164,7 +164,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -200,7 +200,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -239,7 +239,7 @@ def update(self, id: str, *, title: str, request_options: typing.Optional[Reques from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -315,7 +315,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -377,7 +377,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -421,7 +421,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -465,7 +465,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -514,7 +514,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/course_lesson_interactions/client.py b/src/whop_sdk/course_lesson_interactions/client.py index 5b11ab99..b9808441 100644 --- a/src/whop_sdk/course_lesson_interactions/client.py +++ b/src/whop_sdk/course_lesson_interactions/client.py @@ -85,7 +85,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -140,7 +140,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -228,7 +228,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -294,7 +294,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/course_lessons/client.py b/src/whop_sdk/course_lessons/client.py index 1d0c97a1..0fec73ad 100644 --- a/src/whop_sdk/course_lessons/client.py +++ b/src/whop_sdk/course_lessons/client.py @@ -94,7 +94,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -178,7 +178,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -225,7 +225,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -261,7 +261,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -362,7 +362,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -412,7 +412,7 @@ def mark_as_completed(self, lesson_id: str, *, request_options: typing.Optional[ from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -445,7 +445,7 @@ def start(self, lesson_id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -490,7 +490,7 @@ def submit_assessment( ) client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -574,7 +574,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -667,7 +667,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -722,7 +722,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -766,7 +766,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -875,7 +875,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -935,7 +935,7 @@ async def mark_as_completed( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -976,7 +976,7 @@ async def start(self, lesson_id: str, *, request_options: typing.Optional[Reques from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1029,7 +1029,7 @@ async def submit_assessment( ) client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/course_students/client.py b/src/whop_sdk/course_students/client.py index 0cbed2e1..cd750180 100644 --- a/src/whop_sdk/course_students/client.py +++ b/src/whop_sdk/course_students/client.py @@ -77,7 +77,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -128,7 +128,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -208,7 +208,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -268,7 +268,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/courses/client.py b/src/whop_sdk/courses/client.py index bad8acc7..879b2aa1 100644 --- a/src/whop_sdk/courses/client.py +++ b/src/whop_sdk/courses/client.py @@ -42,7 +42,7 @@ def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, experience_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[CourseListItem, ListCoursesResponse]: """ @@ -68,7 +68,7 @@ def list( experience_id : typing.Optional[str] The unique identifier of the experience to list courses for. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to list courses for. request_options : typing.Optional[RequestOptions] @@ -84,7 +84,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -92,7 +92,7 @@ def list( first=42, last=42, experience_id="exp_xxxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -106,7 +106,7 @@ def list( first=first, last=last, experience_id=experience_id, - company_id=company_id, + account_id=account_id, request_options=request_options, ) @@ -168,7 +168,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -215,7 +215,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -251,7 +251,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -332,7 +332,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -380,7 +380,7 @@ async def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, experience_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[CourseListItem, ListCoursesResponse]: """ @@ -406,7 +406,7 @@ async def list( experience_id : typing.Optional[str] The unique identifier of the experience to list courses for. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to list courses for. request_options : typing.Optional[RequestOptions] @@ -424,7 +424,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -435,7 +435,7 @@ async def main() -> None: first=42, last=42, experience_id="exp_xxxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -453,7 +453,7 @@ async def main() -> None: first=first, last=last, experience_id=experience_id, - company_id=company_id, + account_id=account_id, request_options=request_options, ) @@ -517,7 +517,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -572,7 +572,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -616,7 +616,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -705,7 +705,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/courses/raw_client.py b/src/whop_sdk/courses/raw_client.py index 53c4d19e..1c67d209 100644 --- a/src/whop_sdk/courses/raw_client.py +++ b/src/whop_sdk/courses/raw_client.py @@ -45,7 +45,7 @@ def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, experience_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[CourseListItem, ListCoursesResponse]: """ @@ -71,7 +71,7 @@ def list( experience_id : typing.Optional[str] The unique identifier of the experience to list courses for. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to list courses for. request_options : typing.Optional[RequestOptions] @@ -91,7 +91,7 @@ def list( "first": first, "last": last, "experience_id": experience_id, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -116,7 +116,7 @@ def list( first=first, last=last, experience_id=experience_id, - company_id=company_id, + account_id=account_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -819,7 +819,7 @@ async def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, experience_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[CourseListItem, ListCoursesResponse]: """ @@ -845,7 +845,7 @@ async def list( experience_id : typing.Optional[str] The unique identifier of the experience to list courses for. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to list courses for. request_options : typing.Optional[RequestOptions] @@ -865,7 +865,7 @@ async def list( "first": first, "last": last, "experience_id": experience_id, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -892,7 +892,7 @@ async def _get_next(): first=first, last=last, experience_id=experience_id, - company_id=company_id, + account_id=account_id, request_options=request_options, ) diff --git a/src/whop_sdk/deposits/__init__.py b/src/whop_sdk/deposits/__init__.py index fecf36e2..f9299fbe 100644 --- a/src/whop_sdk/deposits/__init__.py +++ b/src/whop_sdk/deposits/__init__.py @@ -7,10 +7,6 @@ if typing.TYPE_CHECKING: from .types import ( - CreateDepositsRequestDestination, - CreateDepositsRequestDestinationAccountId, - CreateDepositsRequestDestinationAccountIdNetwork, - CreateDepositsRequestNetwork, CreateDepositsResponse, CreateDepositsResponseMethods, CreateDepositsResponseMethodsBank, @@ -26,10 +22,6 @@ PostDepositSucceededPayloadType, ) _dynamic_imports: typing.Dict[str, str] = { - "CreateDepositsRequestDestination": ".types", - "CreateDepositsRequestDestinationAccountId": ".types", - "CreateDepositsRequestDestinationAccountIdNetwork": ".types", - "CreateDepositsRequestNetwork": ".types", "CreateDepositsResponse": ".types", "CreateDepositsResponseMethods": ".types", "CreateDepositsResponseMethodsBank": ".types", @@ -68,10 +60,6 @@ def __dir__(): __all__ = [ - "CreateDepositsRequestDestination", - "CreateDepositsRequestDestinationAccountId", - "CreateDepositsRequestDestinationAccountIdNetwork", - "CreateDepositsRequestNetwork", "CreateDepositsResponse", "CreateDepositsResponseMethods", "CreateDepositsResponseMethodsBank", diff --git a/src/whop_sdk/deposits/client.py b/src/whop_sdk/deposits/client.py index bcb17a65..db8b76e3 100644 --- a/src/whop_sdk/deposits/client.py +++ b/src/whop_sdk/deposits/client.py @@ -5,8 +5,6 @@ from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper from ..core.request_options import RequestOptions from .raw_client import AsyncRawDepositsClient, RawDepositsClient -from .types.create_deposits_request_destination import CreateDepositsRequestDestination -from .types.create_deposits_request_network import CreateDepositsRequestNetwork from .types.create_deposits_response import CreateDepositsResponse # this is used as the default value for optional parameters @@ -31,10 +29,8 @@ def with_raw_response(self) -> RawDepositsClient: def create( self, *, - destination: CreateDepositsRequestDestination, + destination: str, amount: typing.Optional[float] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - network: typing.Optional[CreateDepositsRequestNetwork] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> CreateDepositsResponse: """ @@ -42,18 +38,12 @@ def create( Parameters ---------- - destination : CreateDepositsRequestDestination - Destination account ID or wallet address. Object form is supported for compatibility. Any business resolves by its account ID without authentication; a user account resolves only for that same authenticated user. + destination : str + Account ID to fund, `biz_` or `user_`. Any business resolves without authentication; a user account resolves only for that same authenticated user. amount : typing.Optional[float] Amount to prefill on hosted deposit page. - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Metadata to include with the deposit response. - - network : typing.Optional[CreateDepositsRequestNetwork] - Destination network override. Defaults to the destination wallet's own network. - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -67,17 +57,15 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.deposits.create( - destination="destination", + destination="biz_xxxxxxxxxxxxxx", ) """ - _response = self._raw_client.create( - destination=destination, amount=amount, metadata=metadata, network=network, request_options=request_options - ) + _response = self._raw_client.create(destination=destination, amount=amount, request_options=request_options) return _response.data @@ -99,10 +87,8 @@ def with_raw_response(self) -> AsyncRawDepositsClient: async def create( self, *, - destination: CreateDepositsRequestDestination, + destination: str, amount: typing.Optional[float] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - network: typing.Optional[CreateDepositsRequestNetwork] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> CreateDepositsResponse: """ @@ -110,18 +96,12 @@ async def create( Parameters ---------- - destination : CreateDepositsRequestDestination - Destination account ID or wallet address. Object form is supported for compatibility. Any business resolves by its account ID without authentication; a user account resolves only for that same authenticated user. + destination : str + Account ID to fund, `biz_` or `user_`. Any business resolves without authentication; a user account resolves only for that same authenticated user. amount : typing.Optional[float] Amount to prefill on hosted deposit page. - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Metadata to include with the deposit response. - - network : typing.Optional[CreateDepositsRequestNetwork] - Destination network override. Defaults to the destination wallet's own network. - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -137,7 +117,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -145,13 +125,13 @@ async def create( async def main() -> None: await client.deposits.create( - destination="destination", + destination="biz_xxxxxxxxxxxxxx", ) asyncio.run(main()) """ _response = await self._raw_client.create( - destination=destination, amount=amount, metadata=metadata, network=network, request_options=request_options + destination=destination, amount=amount, request_options=request_options ) return _response.data diff --git a/src/whop_sdk/deposits/raw_client.py b/src/whop_sdk/deposits/raw_client.py index ae7cc43c..87448d85 100644 --- a/src/whop_sdk/deposits/raw_client.py +++ b/src/whop_sdk/deposits/raw_client.py @@ -9,12 +9,9 @@ from ..core.parse_error import ParsingError from ..core.pydantic_utilities import parse_obj_as from ..core.request_options import RequestOptions -from ..core.serialization import convert_and_respect_annotation_metadata from ..errors.bad_request_error import BadRequestError from ..errors.conflict_error import ConflictError from ..types.v1error_response import V1ErrorResponse -from .types.create_deposits_request_destination import CreateDepositsRequestDestination -from .types.create_deposits_request_network import CreateDepositsRequestNetwork from .types.create_deposits_response import CreateDepositsResponse from pydantic import ValidationError @@ -29,10 +26,8 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def create( self, *, - destination: CreateDepositsRequestDestination, + destination: str, amount: typing.Optional[float] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - network: typing.Optional[CreateDepositsRequestNetwork] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[CreateDepositsResponse]: """ @@ -40,18 +35,12 @@ def create( Parameters ---------- - destination : CreateDepositsRequestDestination - Destination account ID or wallet address. Object form is supported for compatibility. Any business resolves by its account ID without authentication; a user account resolves only for that same authenticated user. + destination : str + Account ID to fund, `biz_` or `user_`. Any business resolves without authentication; a user account resolves only for that same authenticated user. amount : typing.Optional[float] Amount to prefill on hosted deposit page. - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Metadata to include with the deposit response. - - network : typing.Optional[CreateDepositsRequestNetwork] - Destination network override. Defaults to the destination wallet's own network. - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -65,11 +54,7 @@ def create( method="POST", json={ "amount": amount, - "destination": convert_and_respect_annotation_metadata( - object_=destination, annotation=CreateDepositsRequestDestination, direction="write" - ), - "metadata": metadata, - "network": network, + "destination": destination, }, headers={ "content-type": "application/json", @@ -126,10 +111,8 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def create( self, *, - destination: CreateDepositsRequestDestination, + destination: str, amount: typing.Optional[float] = OMIT, - metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, - network: typing.Optional[CreateDepositsRequestNetwork] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[CreateDepositsResponse]: """ @@ -137,18 +120,12 @@ async def create( Parameters ---------- - destination : CreateDepositsRequestDestination - Destination account ID or wallet address. Object form is supported for compatibility. Any business resolves by its account ID without authentication; a user account resolves only for that same authenticated user. + destination : str + Account ID to fund, `biz_` or `user_`. Any business resolves without authentication; a user account resolves only for that same authenticated user. amount : typing.Optional[float] Amount to prefill on hosted deposit page. - metadata : typing.Optional[typing.Dict[str, typing.Any]] - Metadata to include with the deposit response. - - network : typing.Optional[CreateDepositsRequestNetwork] - Destination network override. Defaults to the destination wallet's own network. - request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -162,11 +139,7 @@ async def create( method="POST", json={ "amount": amount, - "destination": convert_and_respect_annotation_metadata( - object_=destination, annotation=CreateDepositsRequestDestination, direction="write" - ), - "metadata": metadata, - "network": network, + "destination": destination, }, headers={ "content-type": "application/json", diff --git a/src/whop_sdk/deposits/types/__init__.py b/src/whop_sdk/deposits/types/__init__.py index 7ca8b446..86317625 100644 --- a/src/whop_sdk/deposits/types/__init__.py +++ b/src/whop_sdk/deposits/types/__init__.py @@ -6,10 +6,6 @@ from importlib import import_module if typing.TYPE_CHECKING: - from .create_deposits_request_destination import CreateDepositsRequestDestination - from .create_deposits_request_destination_account_id import CreateDepositsRequestDestinationAccountId - from .create_deposits_request_destination_account_id_network import CreateDepositsRequestDestinationAccountIdNetwork - from .create_deposits_request_network import CreateDepositsRequestNetwork from .create_deposits_response import CreateDepositsResponse from .create_deposits_response_methods import CreateDepositsResponseMethods from .create_deposits_response_methods_bank import CreateDepositsResponseMethodsBank @@ -30,10 +26,6 @@ from .post_deposit_succeeded_payload_api_version import PostDepositSucceededPayloadApiVersion from .post_deposit_succeeded_payload_type import PostDepositSucceededPayloadType _dynamic_imports: typing.Dict[str, str] = { - "CreateDepositsRequestDestination": ".create_deposits_request_destination", - "CreateDepositsRequestDestinationAccountId": ".create_deposits_request_destination_account_id", - "CreateDepositsRequestDestinationAccountIdNetwork": ".create_deposits_request_destination_account_id_network", - "CreateDepositsRequestNetwork": ".create_deposits_request_network", "CreateDepositsResponse": ".create_deposits_response", "CreateDepositsResponseMethods": ".create_deposits_response_methods", "CreateDepositsResponseMethodsBank": ".create_deposits_response_methods_bank", @@ -72,10 +64,6 @@ def __dir__(): __all__ = [ - "CreateDepositsRequestDestination", - "CreateDepositsRequestDestinationAccountId", - "CreateDepositsRequestDestinationAccountIdNetwork", - "CreateDepositsRequestNetwork", "CreateDepositsResponse", "CreateDepositsResponseMethods", "CreateDepositsResponseMethodsBank", diff --git a/src/whop_sdk/deposits/types/create_deposits_request_destination.py b/src/whop_sdk/deposits/types/create_deposits_request_destination.py deleted file mode 100644 index a39c8f34..00000000 --- a/src/whop_sdk/deposits/types/create_deposits_request_destination.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -from .create_deposits_request_destination_account_id import CreateDepositsRequestDestinationAccountId - -CreateDepositsRequestDestination = typing.Union[str, CreateDepositsRequestDestinationAccountId] diff --git a/src/whop_sdk/deposits/types/create_deposits_request_destination_account_id.py b/src/whop_sdk/deposits/types/create_deposits_request_destination_account_id.py deleted file mode 100644 index 88b18e13..00000000 --- a/src/whop_sdk/deposits/types/create_deposits_request_destination_account_id.py +++ /dev/null @@ -1,33 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -import pydantic -from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel -from .create_deposits_request_destination_account_id_network import CreateDepositsRequestDestinationAccountIdNetwork - - -class CreateDepositsRequestDestinationAccountId(UniversalBaseModel): - account_id: typing.Optional[str] = pydantic.Field(default=None) - """ - Destination account ID. - """ - - address: typing.Optional[str] = pydantic.Field(default=None) - """ - Destination wallet address. - """ - - network: typing.Optional[CreateDepositsRequestDestinationAccountIdNetwork] = pydantic.Field(default=None) - """ - Destination wallet network. - """ - - if IS_PYDANTIC_V2: - model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2 - else: - - class Config: - frozen = True - smart_union = True - extra = pydantic.Extra.allow diff --git a/src/whop_sdk/deposits/types/create_deposits_request_destination_account_id_network.py b/src/whop_sdk/deposits/types/create_deposits_request_destination_account_id_network.py deleted file mode 100644 index 4b313ce0..00000000 --- a/src/whop_sdk/deposits/types/create_deposits_request_destination_account_id_network.py +++ /dev/null @@ -1,7 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateDepositsRequestDestinationAccountIdNetwork = typing.Union[ - typing.Literal["ethereum", "polygon", "base", "solana"], typing.Any -] diff --git a/src/whop_sdk/deposits/types/create_deposits_request_network.py b/src/whop_sdk/deposits/types/create_deposits_request_network.py deleted file mode 100644 index 8967755d..00000000 --- a/src/whop_sdk/deposits/types/create_deposits_request_network.py +++ /dev/null @@ -1,5 +0,0 @@ -# This file was auto-generated by Fern from our API Definition. - -import typing - -CreateDepositsRequestNetwork = typing.Union[typing.Literal["ethereum", "polygon", "base", "solana"], typing.Any] diff --git a/src/whop_sdk/deposits/types/create_deposits_response.py b/src/whop_sdk/deposits/types/create_deposits_response.py index 84292f25..a728fa5c 100644 --- a/src/whop_sdk/deposits/types/create_deposits_response.py +++ b/src/whop_sdk/deposits/types/create_deposits_response.py @@ -11,7 +11,7 @@ class CreateDepositsResponse(UniversalBaseModel): account_id: typing.Optional[str] = pydantic.Field(default=None) """ - Account ID of the destination owner. Null for raw wallet address destinations. + Account ID of the destination owner. """ amount: typing.Optional[str] = pydantic.Field(default=None) @@ -24,11 +24,6 @@ class CreateDepositsResponse(UniversalBaseModel): URL of the hosted deposit page. Only present for business destinations. """ - metadata: typing.Dict[str, typing.Any] = pydantic.Field() - """ - Metadata from the request. - """ - methods: CreateDepositsResponseMethods = pydantic.Field() """ Available deposit methods for destination. diff --git a/src/whop_sdk/dispute_alerts/client.py b/src/whop_sdk/dispute_alerts/client.py index 841dabf1..d153a840 100644 --- a/src/whop_sdk/dispute_alerts/client.py +++ b/src/whop_sdk/dispute_alerts/client.py @@ -95,7 +95,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -143,7 +143,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -239,7 +239,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -296,7 +296,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/disputes/client.py b/src/whop_sdk/disputes/client.py index b31f7a37..620ca036 100644 --- a/src/whop_sdk/disputes/client.py +++ b/src/whop_sdk/disputes/client.py @@ -118,7 +118,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -195,7 +195,7 @@ def summary( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -234,7 +234,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -276,7 +276,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -309,7 +309,7 @@ def submit(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -354,7 +354,7 @@ def submit_evidence_dispute( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -462,7 +462,7 @@ def update_evidence_dispute( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -522,7 +522,7 @@ def upload_evidence( from whop_sdk.disputes import UploadEvidenceDisputesRequestDocumentsItem client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -625,7 +625,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -711,7 +711,7 @@ async def summary( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -758,7 +758,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -808,7 +808,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -849,7 +849,7 @@ async def submit(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -902,7 +902,7 @@ async def submit_evidence_dispute( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1018,7 +1018,7 @@ async def update_evidence_dispute( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1086,7 +1086,7 @@ async def upload_evidence( from whop_sdk.disputes import UploadEvidenceDisputesRequestDocumentsItem client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/dm_channels/client.py b/src/whop_sdk/dm_channels/client.py index 654ddfe8..37bf4ae4 100644 --- a/src/whop_sdk/dm_channels/client.py +++ b/src/whop_sdk/dm_channels/client.py @@ -36,7 +36,7 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[DmChannelListItem, ListDmChannelsResponse]: """ @@ -59,7 +59,7 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of a company to filter DM channels by. Only returns channels scoped to this company. request_options : typing.Optional[RequestOptions] @@ -75,14 +75,14 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.dm_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -91,14 +91,14 @@ def list( yield page """ return self._raw_client.list( - after=after, before=before, first=first, last=last, company_id=company_id, request_options=request_options + after=after, before=before, first=first, last=last, account_id=account_id, request_options=request_options ) def create( self, *, with_user_ids: typing.Sequence[str], - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -114,7 +114,7 @@ def create( with_user_ids : typing.Sequence[str] The list of user identifiers to include in the DM channel. Each entry can be an email, username, or user ID (e.g. 'user_xxxxx'). - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to scope this DM channel to. When set, the channel is visible only within that company context. custom_name : typing.Optional[str] @@ -136,7 +136,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -146,7 +146,7 @@ def create( """ _response = self._raw_client.create( with_user_ids=with_user_ids, - company_id=company_id, + account_id=account_id, custom_name=custom_name, notifications_enabled=notifications_enabled, request_options=request_options, @@ -179,7 +179,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -216,7 +216,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -262,7 +262,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -296,7 +296,7 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[DmChannelListItem, ListDmChannelsResponse]: """ @@ -319,7 +319,7 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of a company to filter DM channels by. Only returns channels scoped to this company. request_options : typing.Optional[RequestOptions] @@ -337,7 +337,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -347,7 +347,7 @@ async def main() -> None: response = await client.dm_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -360,14 +360,14 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - after=after, before=before, first=first, last=last, company_id=company_id, request_options=request_options + after=after, before=before, first=first, last=last, account_id=account_id, request_options=request_options ) async def create( self, *, with_user_ids: typing.Sequence[str], - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -383,7 +383,7 @@ async def create( with_user_ids : typing.Sequence[str] The list of user identifiers to include in the DM channel. Each entry can be an email, username, or user ID (e.g. 'user_xxxxx'). - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to scope this DM channel to. When set, the channel is visible only within that company context. custom_name : typing.Optional[str] @@ -407,7 +407,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -423,7 +423,7 @@ async def main() -> None: """ _response = await self._raw_client.create( with_user_ids=with_user_ids, - company_id=company_id, + account_id=account_id, custom_name=custom_name, notifications_enabled=notifications_enabled, request_options=request_options, @@ -458,7 +458,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -503,7 +503,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -557,7 +557,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/dm_channels/raw_client.py b/src/whop_sdk/dm_channels/raw_client.py index 4042ba6d..8e34cc96 100644 --- a/src/whop_sdk/dm_channels/raw_client.py +++ b/src/whop_sdk/dm_channels/raw_client.py @@ -38,7 +38,7 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[DmChannelListItem, ListDmChannelsResponse]: """ @@ -61,7 +61,7 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of a company to filter DM channels by. Only returns channels scoped to this company. request_options : typing.Optional[RequestOptions] @@ -80,7 +80,7 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -104,7 +104,7 @@ def list( before=before, first=first, last=last, - company_id=company_id, + account_id=account_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -198,7 +198,7 @@ def create( self, *, with_user_ids: typing.Sequence[str], - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -214,7 +214,7 @@ def create( with_user_ids : typing.Sequence[str] The list of user identifiers to include in the DM channel. Each entry can be an email, username, or user ID (e.g. 'user_xxxxx'). - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to scope this DM channel to. When set, the channel is visible only within that company context. custom_name : typing.Optional[str] @@ -235,7 +235,7 @@ def create( "dm_channels", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "custom_name": custom_name, "notifications_enabled": notifications_enabled, "with_user_ids": with_user_ids, @@ -736,7 +736,7 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[DmChannelListItem, ListDmChannelsResponse]: """ @@ -759,7 +759,7 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of a company to filter DM channels by. Only returns channels scoped to this company. request_options : typing.Optional[RequestOptions] @@ -778,7 +778,7 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -804,7 +804,7 @@ async def _get_next(): before=before, first=first, last=last, - company_id=company_id, + account_id=account_id, request_options=request_options, ) @@ -899,7 +899,7 @@ async def create( self, *, with_user_ids: typing.Sequence[str], - company_id: typing.Optional[str] = OMIT, + account_id: typing.Optional[str] = OMIT, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, request_options: typing.Optional[RequestOptions] = None, @@ -915,7 +915,7 @@ async def create( with_user_ids : typing.Sequence[str] The list of user identifiers to include in the DM channel. Each entry can be an email, username, or user ID (e.g. 'user_xxxxx'). - company_id : typing.Optional[str] + account_id : typing.Optional[str] The unique identifier of the company to scope this DM channel to. When set, the channel is visible only within that company context. custom_name : typing.Optional[str] @@ -936,7 +936,7 @@ async def create( "dm_channels", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "custom_name": custom_name, "notifications_enabled": notifications_enabled, "with_user_ids": with_user_ids, diff --git a/src/whop_sdk/dm_members/client.py b/src/whop_sdk/dm_members/client.py index e3587321..a460cd76 100644 --- a/src/whop_sdk/dm_members/client.py +++ b/src/whop_sdk/dm_members/client.py @@ -78,7 +78,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -128,7 +128,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -166,7 +166,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -203,7 +203,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -253,7 +253,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -331,7 +331,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -390,7 +390,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -438,7 +438,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -483,7 +483,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -541,7 +541,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/entries/client.py b/src/whop_sdk/entries/client.py index d6bb3712..44c85b6f 100644 --- a/src/whop_sdk/entries/client.py +++ b/src/whop_sdk/entries/client.py @@ -34,7 +34,7 @@ def with_raw_response(self) -> RawEntriesClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -57,7 +57,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list waitlist entries for. after : typing.Optional[str] @@ -106,20 +106,20 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.entries.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -128,7 +128,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -169,7 +169,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -205,7 +205,7 @@ def approve(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -243,7 +243,7 @@ def deny(self, id: str, *, request_options: typing.Optional[RequestOptions] = No from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -273,7 +273,7 @@ def with_raw_response(self) -> AsyncRawEntriesClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -296,7 +296,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list waitlist entries for. after : typing.Optional[str] @@ -346,7 +346,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -356,13 +356,13 @@ async def main() -> None: response = await client.entries.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -375,7 +375,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -418,7 +418,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -464,7 +464,7 @@ async def approve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -510,7 +510,7 @@ async def deny(self, id: str, *, request_options: typing.Optional[RequestOptions from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/entries/raw_client.py b/src/whop_sdk/entries/raw_client.py index d269b7f8..194c50fe 100644 --- a/src/whop_sdk/entries/raw_client.py +++ b/src/whop_sdk/entries/raw_client.py @@ -37,7 +37,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -60,7 +60,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list waitlist entries for. after : typing.Optional[str] @@ -110,7 +110,6 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "order": order, "product_ids": product_ids, @@ -118,6 +117,7 @@ def list( "statuses": statuses, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -137,7 +137,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -614,7 +614,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -637,7 +637,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list waitlist entries for. after : typing.Optional[str] @@ -687,7 +687,6 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "order": order, "product_ids": product_ids, @@ -695,6 +694,7 @@ async def list( "statuses": statuses, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -716,7 +716,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, diff --git a/src/whop_sdk/events/client.py b/src/whop_sdk/events/client.py index 8b2e3d6d..69e6ea91 100644 --- a/src/whop_sdk/events/client.py +++ b/src/whop_sdk/events/client.py @@ -138,7 +138,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -277,7 +277,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -350,7 +350,7 @@ def pulse( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -396,7 +396,7 @@ def validate_pixel( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -522,7 +522,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -670,7 +670,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -751,7 +751,7 @@ async def pulse( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -806,7 +806,7 @@ async def validate_pixel( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/experiences/client.py b/src/whop_sdk/experiences/client.py index 19870511..9104f5c9 100644 --- a/src/whop_sdk/experiences/client.py +++ b/src/whop_sdk/experiences/client.py @@ -36,7 +36,7 @@ def with_raw_response(self) -> RawExperiencesClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -52,7 +52,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list experiences for. after : typing.Optional[str] @@ -94,14 +94,13 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.experiences.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", app_id="app_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( @@ -110,6 +109,7 @@ def list( created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -118,7 +118,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -133,8 +133,8 @@ def list( def create( self, *, + account_id: str, app_id: str, - company_id: str, is_public: typing.Optional[bool] = OMIT, logo: typing.Optional[CreateExperiencesRequestLogo] = OMIT, name: typing.Optional[str] = OMIT, @@ -148,12 +148,12 @@ def create( Parameters ---------- + account_id : str + The unique identifier of the company to create this experience for. + app_id : str The unique identifier of the app that powers this experience. - company_id : str - The unique identifier of the company to create this experience for. - is_public : typing.Optional[bool] Whether the experience is publicly accessible without a membership. @@ -182,18 +182,18 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.experiences.create( + account_id="biz_xxxxxxxxxxxxxx", app_id="app_xxxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.create( + account_id=account_id, app_id=app_id, - company_id=company_id, is_public=is_public, logo=logo, name=name, @@ -225,7 +225,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -259,7 +259,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -326,7 +326,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -377,7 +377,7 @@ def attach( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -419,7 +419,7 @@ def detach( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -464,7 +464,7 @@ def duplicate( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -494,7 +494,7 @@ def with_raw_response(self) -> AsyncRawExperiencesClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -510,7 +510,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list experiences for. after : typing.Optional[str] @@ -553,7 +553,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -563,7 +563,6 @@ async def main() -> None: response = await client.experiences.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", app_id="app_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( @@ -572,6 +571,7 @@ async def main() -> None: created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -584,7 +584,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -599,8 +599,8 @@ async def main() -> None: async def create( self, *, + account_id: str, app_id: str, - company_id: str, is_public: typing.Optional[bool] = OMIT, logo: typing.Optional[CreateExperiencesRequestLogo] = OMIT, name: typing.Optional[str] = OMIT, @@ -614,12 +614,12 @@ async def create( Parameters ---------- + account_id : str + The unique identifier of the company to create this experience for. + app_id : str The unique identifier of the app that powers this experience. - company_id : str - The unique identifier of the company to create this experience for. - is_public : typing.Optional[bool] Whether the experience is publicly accessible without a membership. @@ -650,7 +650,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -658,16 +658,16 @@ async def create( async def main() -> None: await client.experiences.create( + account_id="biz_xxxxxxxxxxxxxx", app_id="app_xxxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", ) asyncio.run(main()) """ _response = await self._raw_client.create( + account_id=account_id, app_id=app_id, - company_id=company_id, is_public=is_public, logo=logo, name=name, @@ -701,7 +701,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -743,7 +743,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -818,7 +818,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -877,7 +877,7 @@ async def attach( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -927,7 +927,7 @@ async def detach( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -980,7 +980,7 @@ async def duplicate( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/experiences/raw_client.py b/src/whop_sdk/experiences/raw_client.py index 23a8f2f9..7ed9ff0f 100644 --- a/src/whop_sdk/experiences/raw_client.py +++ b/src/whop_sdk/experiences/raw_client.py @@ -40,7 +40,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -56,7 +56,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list experiences for. after : typing.Optional[str] @@ -99,11 +99,11 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "product_id": product_id, "app_id": app_id, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -123,7 +123,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -224,8 +224,8 @@ def list( def create( self, *, + account_id: str, app_id: str, - company_id: str, is_public: typing.Optional[bool] = OMIT, logo: typing.Optional[CreateExperiencesRequestLogo] = OMIT, name: typing.Optional[str] = OMIT, @@ -239,12 +239,12 @@ def create( Parameters ---------- + account_id : str + The unique identifier of the company to create this experience for. + app_id : str The unique identifier of the app that powers this experience. - company_id : str - The unique identifier of the company to create this experience for. - is_public : typing.Optional[bool] Whether the experience is publicly accessible without a membership. @@ -272,8 +272,8 @@ def create( "experiences", method="POST", json={ + "account_id": account_id, "app_id": app_id, - "company_id": company_id, "is_public": is_public, "logo": convert_and_respect_annotation_metadata( object_=logo, annotation=typing.Optional[CreateExperiencesRequestLogo], direction="write" @@ -1198,7 +1198,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -1214,7 +1214,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list experiences for. after : typing.Optional[str] @@ -1257,11 +1257,11 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "product_id": product_id, "app_id": app_id, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -1283,7 +1283,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -1385,8 +1385,8 @@ async def _get_next(): async def create( self, *, + account_id: str, app_id: str, - company_id: str, is_public: typing.Optional[bool] = OMIT, logo: typing.Optional[CreateExperiencesRequestLogo] = OMIT, name: typing.Optional[str] = OMIT, @@ -1400,12 +1400,12 @@ async def create( Parameters ---------- + account_id : str + The unique identifier of the company to create this experience for. + app_id : str The unique identifier of the app that powers this experience. - company_id : str - The unique identifier of the company to create this experience for. - is_public : typing.Optional[bool] Whether the experience is publicly accessible without a membership. @@ -1433,8 +1433,8 @@ async def create( "experiences", method="POST", json={ + "account_id": account_id, "app_id": app_id, - "company_id": company_id, "is_public": is_public, "logo": convert_and_respect_annotation_metadata( object_=logo, annotation=typing.Optional[CreateExperiencesRequestLogo], direction="write" diff --git a/src/whop_sdk/exports/client.py b/src/whop_sdk/exports/client.py index 626a61a3..d8bb998f 100644 --- a/src/whop_sdk/exports/client.py +++ b/src/whop_sdk/exports/client.py @@ -83,7 +83,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -144,7 +144,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -184,7 +184,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -264,7 +264,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -333,7 +333,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -381,7 +381,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/fee_markups/client.py b/src/whop_sdk/fee_markups/client.py index 77bacb4c..2a324a7a 100644 --- a/src/whop_sdk/fee_markups/client.py +++ b/src/whop_sdk/fee_markups/client.py @@ -33,7 +33,7 @@ def with_raw_response(self) -> RawFeeMarkupsClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -48,7 +48,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list fee markups for. Pass a platform account identifier to retrieve platform default markups. after : typing.Optional[str] @@ -76,14 +76,14 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.fee_markups.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -92,13 +92,13 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, after=after, before=before, first=first, last=last, request_options=request_options + account_id=account_id, after=after, before=before, first=first, last=last, request_options=request_options ) def create( self, *, - company_id: str, + account_id: str, fee_type: FeeMarkupTypes, fixed_fee_usd: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, @@ -114,7 +114,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create or update the fee markup for. fee_type : FeeMarkupTypes @@ -145,17 +145,17 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.fee_markups.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", fee_type="crypto_withdrawal_markup", ) """ _response = self._raw_client.create( - company_id=company_id, + account_id=account_id, fee_type=fee_type, fixed_fee_usd=fixed_fee_usd, metadata=metadata, @@ -190,7 +190,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -220,7 +220,7 @@ def with_raw_response(self) -> AsyncRawFeeMarkupsClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -235,7 +235,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list fee markups for. Pass a platform account identifier to retrieve platform default markups. after : typing.Optional[str] @@ -265,7 +265,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -275,7 +275,7 @@ async def main() -> None: response = await client.fee_markups.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -288,13 +288,13 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, after=after, before=before, first=first, last=last, request_options=request_options + account_id=account_id, after=after, before=before, first=first, last=last, request_options=request_options ) async def create( self, *, - company_id: str, + account_id: str, fee_type: FeeMarkupTypes, fixed_fee_usd: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, @@ -310,7 +310,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create or update the fee markup for. fee_type : FeeMarkupTypes @@ -343,7 +343,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -351,7 +351,7 @@ async def create( async def main() -> None: await client.fee_markups.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", fee_type="crypto_withdrawal_markup", ) @@ -359,7 +359,7 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.create( - company_id=company_id, + account_id=account_id, fee_type=fee_type, fixed_fee_usd=fixed_fee_usd, metadata=metadata, @@ -396,7 +396,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/fee_markups/raw_client.py b/src/whop_sdk/fee_markups/raw_client.py index 3d6e0817..e60fa919 100644 --- a/src/whop_sdk/fee_markups/raw_client.py +++ b/src/whop_sdk/fee_markups/raw_client.py @@ -35,7 +35,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -50,7 +50,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list fee markups for. Pass a platform account identifier to retrieve platform default markups. after : typing.Optional[str] @@ -81,7 +81,7 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -101,7 +101,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -198,7 +198,7 @@ def list( def create( self, *, - company_id: str, + account_id: str, fee_type: FeeMarkupTypes, fixed_fee_usd: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, @@ -214,7 +214,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create or update the fee markup for. fee_type : FeeMarkupTypes @@ -244,7 +244,7 @@ def create( "fee_markups", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "fee_type": fee_type, "fixed_fee_usd": fixed_fee_usd, "metadata": metadata, @@ -482,7 +482,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -497,7 +497,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list fee markups for. Pass a platform account identifier to retrieve platform default markups. after : typing.Optional[str] @@ -528,7 +528,7 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -550,7 +550,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -648,7 +648,7 @@ async def _get_next(): async def create( self, *, - company_id: str, + account_id: str, fee_type: FeeMarkupTypes, fixed_fee_usd: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, @@ -664,7 +664,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create or update the fee markup for. fee_type : FeeMarkupTypes @@ -694,7 +694,7 @@ async def create( "fee_markups", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "fee_type": fee_type, "fixed_fee_usd": fixed_fee_usd, "metadata": metadata, diff --git a/src/whop_sdk/files/client.py b/src/whop_sdk/files/client.py index c085ca57..8217454f 100644 --- a/src/whop_sdk/files/client.py +++ b/src/whop_sdk/files/client.py @@ -83,7 +83,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -146,7 +146,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -185,7 +185,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -232,7 +232,7 @@ def complete( from whop_sdk.files import CompleteFilesRequestMultipartPartsItem client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -324,7 +324,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -396,7 +396,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -443,7 +443,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -498,7 +498,7 @@ async def complete( from whop_sdk.files import CompleteFilesRequestMultipartPartsItem client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/financial_activity/client.py b/src/whop_sdk/financial_activity/client.py index f186d648..5619f78c 100644 --- a/src/whop_sdk/financial_activity/client.py +++ b/src/whop_sdk/financial_activity/client.py @@ -41,6 +41,7 @@ def list( direction: typing.Optional[ListFinancialActivityRequestDirection] = None, resource_id: typing.Optional[str] = None, activity_id: typing.Optional[str] = None, + exclude_internal_movements: typing.Optional[bool] = None, currency: typing.Optional[str] = None, posted_after: typing.Optional[dt.datetime] = None, posted_before: typing.Optional[dt.datetime] = None, @@ -79,6 +80,9 @@ def list( activity_id : typing.Optional[str] Optional ledger activity ID (for example `line_3`). Returns at most that one activity. + exclude_internal_movements : typing.Optional[bool] + Whether to exclude balance reservations and balanced movements between the account's own balances. + currency : typing.Optional[str] Optional currency code filter, for example `usd`. @@ -113,7 +117,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -128,6 +132,7 @@ def list( direction=direction, resource_id=resource_id, activity_id=activity_id, + exclude_internal_movements=exclude_internal_movements, currency=currency, posted_after=posted_after, posted_before=posted_before, @@ -170,6 +175,7 @@ async def list( direction: typing.Optional[ListFinancialActivityRequestDirection] = None, resource_id: typing.Optional[str] = None, activity_id: typing.Optional[str] = None, + exclude_internal_movements: typing.Optional[bool] = None, currency: typing.Optional[str] = None, posted_after: typing.Optional[dt.datetime] = None, posted_before: typing.Optional[dt.datetime] = None, @@ -208,6 +214,9 @@ async def list( activity_id : typing.Optional[str] Optional ledger activity ID (for example `line_3`). Returns at most that one activity. + exclude_internal_movements : typing.Optional[bool] + Whether to exclude balance reservations and balanced movements between the account's own balances. + currency : typing.Optional[str] Optional currency code filter, for example `usd`. @@ -244,7 +253,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -265,6 +274,7 @@ async def main() -> None: direction=direction, resource_id=resource_id, activity_id=activity_id, + exclude_internal_movements=exclude_internal_movements, currency=currency, posted_after=posted_after, posted_before=posted_before, diff --git a/src/whop_sdk/financial_activity/raw_client.py b/src/whop_sdk/financial_activity/raw_client.py index 4c325ef9..c949ecca 100644 --- a/src/whop_sdk/financial_activity/raw_client.py +++ b/src/whop_sdk/financial_activity/raw_client.py @@ -40,6 +40,7 @@ def list( direction: typing.Optional[ListFinancialActivityRequestDirection] = None, resource_id: typing.Optional[str] = None, activity_id: typing.Optional[str] = None, + exclude_internal_movements: typing.Optional[bool] = None, currency: typing.Optional[str] = None, posted_after: typing.Optional[dt.datetime] = None, posted_before: typing.Optional[dt.datetime] = None, @@ -78,6 +79,9 @@ def list( activity_id : typing.Optional[str] Optional ledger activity ID (for example `line_3`). Returns at most that one activity. + exclude_internal_movements : typing.Optional[bool] + Whether to exclude balance reservations and balanced movements between the account's own balances. + currency : typing.Optional[str] Optional currency code filter, for example `usd`. @@ -119,6 +123,7 @@ def list( "direction": direction, "resource_id": resource_id, "activity_id": activity_id, + "exclude_internal_movements": exclude_internal_movements, "currency": currency, "posted_after": serialize_datetime(posted_after) if posted_after is not None else None, "posted_before": serialize_datetime(posted_before) if posted_before is not None else None, @@ -212,6 +217,7 @@ async def list( direction: typing.Optional[ListFinancialActivityRequestDirection] = None, resource_id: typing.Optional[str] = None, activity_id: typing.Optional[str] = None, + exclude_internal_movements: typing.Optional[bool] = None, currency: typing.Optional[str] = None, posted_after: typing.Optional[dt.datetime] = None, posted_before: typing.Optional[dt.datetime] = None, @@ -250,6 +256,9 @@ async def list( activity_id : typing.Optional[str] Optional ledger activity ID (for example `line_3`). Returns at most that one activity. + exclude_internal_movements : typing.Optional[bool] + Whether to exclude balance reservations and balanced movements between the account's own balances. + currency : typing.Optional[str] Optional currency code filter, for example `usd`. @@ -291,6 +300,7 @@ async def list( "direction": direction, "resource_id": resource_id, "activity_id": activity_id, + "exclude_internal_movements": exclude_internal_movements, "currency": currency, "posted_after": serialize_datetime(posted_after) if posted_after is not None else None, "posted_before": serialize_datetime(posted_before) if posted_before is not None else None, diff --git a/src/whop_sdk/financial_reports/breakdown/client.py b/src/whop_sdk/financial_reports/breakdown/client.py index ee35a2f9..6dd3bf46 100644 --- a/src/whop_sdk/financial_reports/breakdown/client.py +++ b/src/whop_sdk/financial_reports/breakdown/client.py @@ -84,7 +84,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -188,7 +188,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_request_bucket.py b/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_request_bucket.py index 453964fb..5d2a02b9 100644 --- a/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_request_bucket.py +++ b/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_request_bucket.py @@ -4,7 +4,15 @@ RetrieveBreakdownRequestBucket = typing.Union[ typing.Literal[ - "transfers", "payments", "refunds", "ads", "card_spend", "card_authorization_releases", "withdrawals", "swaps" + "transfers", + "payments", + "refunds", + "ads", + "application_fees", + "card_spend", + "card_authorization_releases", + "withdrawals", + "swaps", ], typing.Any, ] diff --git a/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_response_bucket.py b/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_response_bucket.py index c77c7f73..5988f09b 100644 --- a/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_response_bucket.py +++ b/src/whop_sdk/financial_reports/breakdown/types/retrieve_breakdown_response_bucket.py @@ -4,7 +4,15 @@ RetrieveBreakdownResponseBucket = typing.Union[ typing.Literal[ - "transfers", "payments", "refunds", "ads", "card_spend", "card_authorization_releases", "withdrawals", "swaps" + "transfers", + "payments", + "refunds", + "ads", + "application_fees", + "card_spend", + "card_authorization_releases", + "withdrawals", + "swaps", ], typing.Any, ] diff --git a/src/whop_sdk/financial_reports/client.py b/src/whop_sdk/financial_reports/client.py index 49a34880..b1010d46 100644 --- a/src/whop_sdk/financial_reports/client.py +++ b/src/whop_sdk/financial_reports/client.py @@ -115,7 +115,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -250,7 +250,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/forum_posts/client.py b/src/whop_sdk/forum_posts/client.py index 495ac728..55830544 100644 --- a/src/whop_sdk/forum_posts/client.py +++ b/src/whop_sdk/forum_posts/client.py @@ -92,7 +92,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -123,8 +123,8 @@ def create( self, *, experience_id: str, + account_id: typing.Optional[str] = OMIT, attachments: typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] = OMIT, - company_id: typing.Optional[str] = OMIT, content: typing.Optional[str] = OMIT, is_mention: typing.Optional[bool] = OMIT, parent_id: typing.Optional[str] = OMIT, @@ -148,12 +148,12 @@ def create( experience_id : str The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum. + account_id : typing.Optional[str] + The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. + attachments : typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] A list of file attachments to include with the post, such as images or videos. - company_id : typing.Optional[str] - The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. - content : typing.Optional[str] The main body of the post in Markdown format. For example, 'Check out this **update**'. Hidden if the post is paywalled and the viewer has not purchased access. @@ -197,7 +197,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -207,8 +207,8 @@ def create( """ _response = self._raw_client.create( experience_id=experience_id, + account_id=account_id, attachments=attachments, - company_id=company_id, content=content, is_mention=is_mention, parent_id=parent_id, @@ -248,7 +248,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -306,7 +306,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -401,7 +401,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -439,8 +439,8 @@ async def create( self, *, experience_id: str, + account_id: typing.Optional[str] = OMIT, attachments: typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] = OMIT, - company_id: typing.Optional[str] = OMIT, content: typing.Optional[str] = OMIT, is_mention: typing.Optional[bool] = OMIT, parent_id: typing.Optional[str] = OMIT, @@ -464,12 +464,12 @@ async def create( experience_id : str The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum. + account_id : typing.Optional[str] + The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. + attachments : typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] A list of file attachments to include with the post, such as images or videos. - company_id : typing.Optional[str] - The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. - content : typing.Optional[str] The main body of the post in Markdown format. For example, 'Check out this **update**'. Hidden if the post is paywalled and the viewer has not purchased access. @@ -515,7 +515,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -531,8 +531,8 @@ async def main() -> None: """ _response = await self._raw_client.create( experience_id=experience_id, + account_id=account_id, attachments=attachments, - company_id=company_id, content=content, is_mention=is_mention, parent_id=parent_id, @@ -574,7 +574,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -640,7 +640,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/forum_posts/raw_client.py b/src/whop_sdk/forum_posts/raw_client.py index 728f5018..0b53d1ce 100644 --- a/src/whop_sdk/forum_posts/raw_client.py +++ b/src/whop_sdk/forum_posts/raw_client.py @@ -222,8 +222,8 @@ def create( self, *, experience_id: str, + account_id: typing.Optional[str] = OMIT, attachments: typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] = OMIT, - company_id: typing.Optional[str] = OMIT, content: typing.Optional[str] = OMIT, is_mention: typing.Optional[bool] = OMIT, parent_id: typing.Optional[str] = OMIT, @@ -247,12 +247,12 @@ def create( experience_id : str The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum. + account_id : typing.Optional[str] + The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. + attachments : typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] A list of file attachments to include with the post, such as images or videos. - company_id : typing.Optional[str] - The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. - content : typing.Optional[str] The main body of the post in Markdown format. For example, 'Check out this **update**'. Hidden if the post is paywalled and the viewer has not purchased access. @@ -295,12 +295,12 @@ def create( "forum_posts", method="POST", json={ + "account_id": account_id, "attachments": convert_and_respect_annotation_metadata( object_=attachments, annotation=typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]], direction="write", ), - "company_id": company_id, "content": content, "experience_id": experience_id, "is_mention": is_mention, @@ -889,8 +889,8 @@ async def create( self, *, experience_id: str, + account_id: typing.Optional[str] = OMIT, attachments: typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] = OMIT, - company_id: typing.Optional[str] = OMIT, content: typing.Optional[str] = OMIT, is_mention: typing.Optional[bool] = OMIT, parent_id: typing.Optional[str] = OMIT, @@ -914,12 +914,12 @@ async def create( experience_id : str The unique identifier of the experience to create this post in. For example, 'exp_xxxxx'. Pass 'public' along with company_id to automatically use the company's public forum. + account_id : typing.Optional[str] + The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. + attachments : typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]] A list of file attachments to include with the post, such as images or videos. - company_id : typing.Optional[str] - The unique identifier of the company whose public forum to post in. Required when experience_id is 'public'. For example, 'biz_xxxxx'. - content : typing.Optional[str] The main body of the post in Markdown format. For example, 'Check out this **update**'. Hidden if the post is paywalled and the viewer has not purchased access. @@ -962,12 +962,12 @@ async def create( "forum_posts", method="POST", json={ + "account_id": account_id, "attachments": convert_and_respect_annotation_metadata( object_=attachments, annotation=typing.Optional[typing.Sequence[CreateForumPostsRequestAttachmentsItem]], direction="write", ), - "company_id": company_id, "content": content, "experience_id": experience_id, "is_mention": is_mention, diff --git a/src/whop_sdk/forums/client.py b/src/whop_sdk/forums/client.py index 06f368b4..854e136a 100644 --- a/src/whop_sdk/forums/client.py +++ b/src/whop_sdk/forums/client.py @@ -36,7 +36,7 @@ def with_raw_response(self) -> RawForumsClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -52,7 +52,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list forums for. after : typing.Optional[str] @@ -83,15 +83,15 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.forums.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -100,7 +100,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -134,7 +134,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -195,7 +195,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -233,7 +233,7 @@ def with_raw_response(self) -> AsyncRawForumsClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -249,7 +249,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list forums for. after : typing.Optional[str] @@ -282,7 +282,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -292,8 +292,8 @@ async def main() -> None: response = await client.forums.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", product_id="prod_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -306,7 +306,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -342,7 +342,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -411,7 +411,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/forums/raw_client.py b/src/whop_sdk/forums/raw_client.py index 259885c2..5b8808d3 100644 --- a/src/whop_sdk/forums/raw_client.py +++ b/src/whop_sdk/forums/raw_client.py @@ -39,7 +39,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -55,7 +55,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list forums for. after : typing.Optional[str] @@ -89,8 +89,8 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "product_id": product_id, + "account_id": account_id, }, request_options=request_options, ) @@ -110,7 +110,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -493,7 +493,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -509,7 +509,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list forums for. after : typing.Optional[str] @@ -543,8 +543,8 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "product_id": product_id, + "account_id": account_id, }, request_options=request_options, ) @@ -566,7 +566,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, diff --git a/src/whop_sdk/identity_profiles/client.py b/src/whop_sdk/identity_profiles/client.py index e996a1ed..ad219574 100644 --- a/src/whop_sdk/identity_profiles/client.py +++ b/src/whop_sdk/identity_profiles/client.py @@ -39,9 +39,9 @@ def list_identity_profile( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, profile_type: typing.Optional[IdentityProfileKinds] = None, status: typing.Optional[IdentityProfileStatuses] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[IdentityProfileListItem, ListIdentityProfileResponse]: """ @@ -64,13 +64,13 @@ def list_identity_profile( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. - profile_type : typing.Optional[IdentityProfileKinds] status : typing.Optional[IdentityProfileStatuses] + account_id : typing.Optional[str] + The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -84,14 +84,14 @@ def list_identity_profile( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.identity_profiles.list_identity_profile( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -104,9 +104,9 @@ def list_identity_profile( before=before, first=first, last=last, - company_id=company_id, profile_type=profile_type, status=status, + account_id=account_id, request_options=request_options, ) @@ -137,7 +137,7 @@ def retrieve_identity_profile( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -175,7 +175,7 @@ def unlink_identity_profile( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -235,7 +235,7 @@ def list_verifications_identity_profile( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -277,9 +277,9 @@ async def list_identity_profile( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, profile_type: typing.Optional[IdentityProfileKinds] = None, status: typing.Optional[IdentityProfileStatuses] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[IdentityProfileListItem, ListIdentityProfileResponse]: """ @@ -302,13 +302,13 @@ async def list_identity_profile( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. - profile_type : typing.Optional[IdentityProfileKinds] status : typing.Optional[IdentityProfileStatuses] + account_id : typing.Optional[str] + The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -324,7 +324,7 @@ async def list_identity_profile( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -334,7 +334,7 @@ async def main() -> None: response = await client.identity_profiles.list_identity_profile( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -351,9 +351,9 @@ async def main() -> None: before=before, first=first, last=last, - company_id=company_id, profile_type=profile_type, status=status, + account_id=account_id, request_options=request_options, ) @@ -386,7 +386,7 @@ async def retrieve_identity_profile( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -432,7 +432,7 @@ async def unlink_identity_profile( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -500,7 +500,7 @@ async def list_verifications_identity_profile( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/identity_profiles/raw_client.py b/src/whop_sdk/identity_profiles/raw_client.py index f88010cc..e086f25e 100644 --- a/src/whop_sdk/identity_profiles/raw_client.py +++ b/src/whop_sdk/identity_profiles/raw_client.py @@ -41,9 +41,9 @@ def list_identity_profile( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, profile_type: typing.Optional[IdentityProfileKinds] = None, status: typing.Optional[IdentityProfileStatuses] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[IdentityProfileListItem, ListIdentityProfileResponse]: """ @@ -66,13 +66,13 @@ def list_identity_profile( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. - profile_type : typing.Optional[IdentityProfileKinds] status : typing.Optional[IdentityProfileStatuses] + account_id : typing.Optional[str] + The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -89,9 +89,9 @@ def list_identity_profile( "before": before, "first": first, "last": last, - "company_id": company_id, "profile_type": profile_type, "status": status, + "account_id": account_id, }, request_options=request_options, ) @@ -115,9 +115,9 @@ def list_identity_profile( before=before, first=first, last=last, - company_id=company_id, profile_type=profile_type, status=status, + account_id=account_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -630,9 +630,9 @@ async def list_identity_profile( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, profile_type: typing.Optional[IdentityProfileKinds] = None, status: typing.Optional[IdentityProfileStatuses] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[IdentityProfileListItem, ListIdentityProfileResponse]: """ @@ -655,13 +655,13 @@ async def list_identity_profile( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. - profile_type : typing.Optional[IdentityProfileKinds] status : typing.Optional[IdentityProfileStatuses] + account_id : typing.Optional[str] + The unique identifier of the company to filter to. When omitted, returns IPs across all ledgers the actor can read. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -678,9 +678,9 @@ async def list_identity_profile( "before": before, "first": first, "last": last, - "company_id": company_id, "profile_type": profile_type, "status": status, + "account_id": account_id, }, request_options=request_options, ) @@ -706,9 +706,9 @@ async def _get_next(): before=before, first=first, last=last, - company_id=company_id, profile_type=profile_type, status=status, + account_id=account_id, request_options=request_options, ) diff --git a/src/whop_sdk/invoices/client.py b/src/whop_sdk/invoices/client.py index bd5b54ea..0b4e864e 100644 --- a/src/whop_sdk/invoices/client.py +++ b/src/whop_sdk/invoices/client.py @@ -45,7 +45,6 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, collection_methods: typing.Optional[ @@ -55,6 +54,7 @@ def list( order: typing.Optional[InvoicesSortableColumns] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[InvoiceListItem, ListInvoicesResponse]: """ @@ -77,9 +77,6 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list invoices for. - direction : typing.Optional[Direction] product_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] @@ -99,6 +96,9 @@ def list( created_after : typing.Optional[dt.datetime] Only return invoices created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list invoices for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -114,20 +114,20 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.invoices.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -140,7 +140,6 @@ def list( before=before, first=first, last=last, - company_id=company_id, direction=direction, product_ids=product_ids, collection_methods=collection_methods, @@ -148,6 +147,7 @@ def list( order=order, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) @@ -185,14 +185,14 @@ def create( ) client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.invoices.create( request=CreateInvoicesRequestProduct( + account_id="biz_xxxxxxxxxxxxxx", collection_method="send_invoice", - company_id="biz_xxxxxxxxxxxxxx", plan=CreateInvoicesRequestProductPlan(), product=CreateInvoicesRequestProductProduct( title="title", @@ -231,7 +231,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -267,7 +267,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -367,7 +367,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -420,7 +420,7 @@ def mark_paid(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -456,7 +456,7 @@ def mark_uncollectible(self, id: str, *, request_options: typing.Optional[Reques from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -492,7 +492,7 @@ def resend(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -528,7 +528,7 @@ def void(self, id: str, *, request_options: typing.Optional[RequestOptions] = No from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -562,7 +562,6 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, collection_methods: typing.Optional[ @@ -572,6 +571,7 @@ async def list( order: typing.Optional[InvoicesSortableColumns] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[InvoiceListItem, ListInvoicesResponse]: """ @@ -594,9 +594,6 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list invoices for. - direction : typing.Optional[Direction] product_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] @@ -616,6 +613,9 @@ async def list( created_after : typing.Optional[dt.datetime] Only return invoices created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list invoices for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -632,7 +632,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -642,13 +642,13 @@ async def main() -> None: response = await client.invoices.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -665,7 +665,6 @@ async def main() -> None: before=before, first=first, last=last, - company_id=company_id, direction=direction, product_ids=product_ids, collection_methods=collection_methods, @@ -673,6 +672,7 @@ async def main() -> None: order=order, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) @@ -712,7 +712,7 @@ async def create( ) client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -721,8 +721,8 @@ async def create( async def main() -> None: await client.invoices.create( request=CreateInvoicesRequestProduct( + account_id="biz_xxxxxxxxxxxxxx", collection_method="send_invoice", - company_id="biz_xxxxxxxxxxxxxx", plan=CreateInvoicesRequestProductPlan(), product=CreateInvoicesRequestProductProduct( title="title", @@ -766,7 +766,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -810,7 +810,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -918,7 +918,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -979,7 +979,7 @@ async def mark_paid(self, id: str, *, request_options: typing.Optional[RequestOp from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1023,7 +1023,7 @@ async def mark_uncollectible(self, id: str, *, request_options: typing.Optional[ from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1067,7 +1067,7 @@ async def resend(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1111,7 +1111,7 @@ async def void(self, id: str, *, request_options: typing.Optional[RequestOptions from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/invoices/raw_client.py b/src/whop_sdk/invoices/raw_client.py index 21cc36d6..8888a413 100644 --- a/src/whop_sdk/invoices/raw_client.py +++ b/src/whop_sdk/invoices/raw_client.py @@ -49,7 +49,6 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, collection_methods: typing.Optional[ @@ -59,6 +58,7 @@ def list( order: typing.Optional[InvoicesSortableColumns] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[InvoiceListItem, ListInvoicesResponse]: """ @@ -81,9 +81,6 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list invoices for. - direction : typing.Optional[Direction] product_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] @@ -103,6 +100,9 @@ def list( created_after : typing.Optional[dt.datetime] Only return invoices created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list invoices for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -119,7 +119,6 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "product_ids": product_ids, "collection_methods": collection_methods, @@ -127,6 +126,7 @@ def list( "order": order, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -150,7 +150,6 @@ def list( before=before, first=first, last=last, - company_id=company_id, direction=direction, product_ids=product_ids, collection_methods=collection_methods, @@ -158,6 +157,7 @@ def list( order=order, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -1337,7 +1337,6 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, product_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None, collection_methods: typing.Optional[ @@ -1347,6 +1346,7 @@ async def list( order: typing.Optional[InvoicesSortableColumns] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[InvoiceListItem, ListInvoicesResponse]: """ @@ -1369,9 +1369,6 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list invoices for. - direction : typing.Optional[Direction] product_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]] @@ -1391,6 +1388,9 @@ async def list( created_after : typing.Optional[dt.datetime] Only return invoices created after this timestamp. + account_id : typing.Optional[str] + The unique identifier of the company to list invoices for. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -1407,7 +1407,6 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "product_ids": product_ids, "collection_methods": collection_methods, @@ -1415,6 +1414,7 @@ async def list( "order": order, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -1440,7 +1440,6 @@ async def _get_next(): before=before, first=first, last=last, - company_id=company_id, direction=direction, product_ids=product_ids, collection_methods=collection_methods, @@ -1448,6 +1447,7 @@ async def _get_next(): order=order, created_before=created_before, created_after=created_after, + account_id=account_id, request_options=request_options, ) diff --git a/src/whop_sdk/invoices/types/create_invoices_request_product.py b/src/whop_sdk/invoices/types/create_invoices_request_product.py index db4966f5..9aa21b01 100644 --- a/src/whop_sdk/invoices/types/create_invoices_request_product.py +++ b/src/whop_sdk/invoices/types/create_invoices_request_product.py @@ -17,6 +17,11 @@ class CreateInvoicesRequestProduct(UniversalBaseModel): Autogenerated input type of CreateInvoice """ + account_id: str = pydantic.Field() + """ + The unique identifier of the company to create this invoice for. + """ + automatically_finalizes_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) """ The date and time when the invoice will be automatically finalized. For charge_automatically, triggers an automatic charge. For send_invoice, sends the invoice email to the customer at the specified time. @@ -37,11 +42,6 @@ class CreateInvoicesRequestProduct(UniversalBaseModel): How the invoice should be collected. Use charge_automatically to charge a stored payment method, or send_invoice to email the customer. """ - company_id: str = pydantic.Field() - """ - The unique identifier of the company to create this invoice for. - """ - customer_name: typing.Optional[str] = pydantic.Field(default=None) """ The name of the customer. Required when creating an invoice for a customer who is not yet a member of the company. diff --git a/src/whop_sdk/invoices/types/create_invoices_request_product_id.py b/src/whop_sdk/invoices/types/create_invoices_request_product_id.py index 25e7d622..f4314bff 100644 --- a/src/whop_sdk/invoices/types/create_invoices_request_product_id.py +++ b/src/whop_sdk/invoices/types/create_invoices_request_product_id.py @@ -16,6 +16,11 @@ class CreateInvoicesRequestProductId(UniversalBaseModel): Autogenerated input type of CreateInvoice """ + account_id: str = pydantic.Field() + """ + The unique identifier of the company to create this invoice for. + """ + automatically_finalizes_at: typing.Optional[dt.datetime] = pydantic.Field(default=None) """ The date and time when the invoice will be automatically finalized. For charge_automatically, triggers an automatic charge. For send_invoice, sends the invoice email to the customer at the specified time. @@ -36,11 +41,6 @@ class CreateInvoicesRequestProductId(UniversalBaseModel): How the invoice should be collected. Use charge_automatically to charge a stored payment method, or send_invoice to email the customer. """ - company_id: str = pydantic.Field() - """ - The unique identifier of the company to create this invoice for. - """ - customer_name: typing.Optional[str] = pydantic.Field(default=None) """ The name of the customer. Required when creating an invoice for a customer who is not yet a member of the company. diff --git a/src/whop_sdk/leads/client.py b/src/whop_sdk/leads/client.py index 914a3294..5741159f 100644 --- a/src/whop_sdk/leads/client.py +++ b/src/whop_sdk/leads/client.py @@ -33,7 +33,7 @@ def with_raw_response(self) -> RawLeadsClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -54,7 +54,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list leads for. after : typing.Optional[str] @@ -93,20 +93,20 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.leads.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -115,7 +115,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -129,7 +129,7 @@ def list( def create( self, *, - company_id: str, + account_id: str, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, product_id: typing.Optional[str] = OMIT, referrer: typing.Optional[str] = OMIT, @@ -147,7 +147,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the lead for, starting with 'biz_'. metadata : typing.Optional[typing.Dict[str, typing.Any]] @@ -175,16 +175,16 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.leads.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.create( - company_id=company_id, + account_id=account_id, metadata=metadata, product_id=product_id, referrer=referrer, @@ -221,7 +221,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -273,7 +273,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -303,7 +303,7 @@ def with_raw_response(self) -> AsyncRawLeadsClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -324,7 +324,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list leads for. after : typing.Optional[str] @@ -364,7 +364,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -374,13 +374,13 @@ async def main() -> None: response = await client.leads.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -393,7 +393,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -407,7 +407,7 @@ async def main() -> None: async def create( self, *, - company_id: str, + account_id: str, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, product_id: typing.Optional[str] = OMIT, referrer: typing.Optional[str] = OMIT, @@ -425,7 +425,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the lead for, starting with 'biz_'. metadata : typing.Optional[typing.Dict[str, typing.Any]] @@ -455,7 +455,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -463,14 +463,14 @@ async def create( async def main() -> None: await client.leads.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) asyncio.run(main()) """ _response = await self._raw_client.create( - company_id=company_id, + account_id=account_id, metadata=metadata, product_id=product_id, referrer=referrer, @@ -509,7 +509,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -569,7 +569,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/leads/raw_client.py b/src/whop_sdk/leads/raw_client.py index 1dc40cb1..081ff7a4 100644 --- a/src/whop_sdk/leads/raw_client.py +++ b/src/whop_sdk/leads/raw_client.py @@ -36,7 +36,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -57,7 +57,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list leads for. after : typing.Optional[str] @@ -97,10 +97,10 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "created_after": serialize_datetime(created_after) if created_after is not None else None, "created_before": serialize_datetime(created_before) if created_before is not None else None, "product_ids": product_ids, + "account_id": account_id, }, request_options=request_options, ) @@ -120,7 +120,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -220,7 +220,7 @@ def list( def create( self, *, - company_id: str, + account_id: str, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, product_id: typing.Optional[str] = OMIT, referrer: typing.Optional[str] = OMIT, @@ -238,7 +238,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the lead for, starting with 'biz_'. metadata : typing.Optional[typing.Dict[str, typing.Any]] @@ -265,7 +265,7 @@ def create( "leads", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "metadata": metadata, "product_id": product_id, "referrer": referrer, @@ -650,7 +650,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -671,7 +671,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list leads for. after : typing.Optional[str] @@ -711,10 +711,10 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "created_after": serialize_datetime(created_after) if created_after is not None else None, "created_before": serialize_datetime(created_before) if created_before is not None else None, "product_ids": product_ids, + "account_id": account_id, }, request_options=request_options, ) @@ -736,7 +736,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -837,7 +837,7 @@ async def _get_next(): async def create( self, *, - company_id: str, + account_id: str, metadata: typing.Optional[typing.Dict[str, typing.Any]] = OMIT, product_id: typing.Optional[str] = OMIT, referrer: typing.Optional[str] = OMIT, @@ -855,7 +855,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the lead for, starting with 'biz_'. metadata : typing.Optional[typing.Dict[str, typing.Any]] @@ -882,7 +882,7 @@ async def create( "leads", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "metadata": metadata, "product_id": product_id, "referrer": referrer, diff --git a/src/whop_sdk/ledger_accounts/client.py b/src/whop_sdk/ledger_accounts/client.py index 1b12354c..c3a59342 100644 --- a/src/whop_sdk/ledger_accounts/client.py +++ b/src/whop_sdk/ledger_accounts/client.py @@ -49,7 +49,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -104,7 +104,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/media/client.py b/src/whop_sdk/media/client.py index 2c2c3ea7..462c5f0a 100644 --- a/src/whop_sdk/media/client.py +++ b/src/whop_sdk/media/client.py @@ -75,7 +75,7 @@ def generate( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -117,7 +117,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -193,7 +193,7 @@ async def generate( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -243,7 +243,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/members/client.py b/src/whop_sdk/members/client.py index 03df2881..69a93ac3 100644 --- a/src/whop_sdk/members/client.py +++ b/src/whop_sdk/members/client.py @@ -111,7 +111,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -163,7 +163,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -277,7 +277,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -338,7 +338,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/members/logs/client.py b/src/whop_sdk/members/logs/client.py index e283664f..62d91d93 100644 --- a/src/whop_sdk/members/logs/client.py +++ b/src/whop_sdk/members/logs/client.py @@ -68,7 +68,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -146,7 +146,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/memberships/client.py b/src/whop_sdk/memberships/client.py index 8e535c11..bc28f93b 100644 --- a/src/whop_sdk/memberships/client.py +++ b/src/whop_sdk/memberships/client.py @@ -110,7 +110,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -162,7 +162,7 @@ def invite( from whop_sdk.memberships import InviteMembershipsRequestBodyUserId client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -198,7 +198,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -244,7 +244,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -289,7 +289,7 @@ def add_free_days_membership( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -336,7 +336,7 @@ def cancel( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -374,7 +374,7 @@ def extend(self, id: str, *, days: int, request_options: typing.Optional[Request from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -413,7 +413,7 @@ def pause( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -446,7 +446,7 @@ def resume(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -486,7 +486,7 @@ def resync_access_membership( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -521,7 +521,7 @@ def transfer( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -561,7 +561,7 @@ def uncancel_membership( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -665,7 +665,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -726,7 +726,7 @@ async def invite( from whop_sdk.memberships import InviteMembershipsRequestBodyUserId client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -770,7 +770,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -824,7 +824,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -877,7 +877,7 @@ async def add_free_days_membership( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -934,7 +934,7 @@ async def cancel( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -982,7 +982,7 @@ async def extend( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1029,7 +1029,7 @@ async def pause( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1070,7 +1070,7 @@ async def resume(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1118,7 +1118,7 @@ async def resync_access_membership( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1161,7 +1161,7 @@ async def transfer( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1209,7 +1209,7 @@ async def uncancel_membership( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/messages/client.py b/src/whop_sdk/messages/client.py index 2266fa44..0bf9159f 100644 --- a/src/whop_sdk/messages/client.py +++ b/src/whop_sdk/messages/client.py @@ -84,7 +84,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -162,7 +162,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -210,7 +210,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -249,7 +249,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -305,7 +305,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -387,7 +387,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -474,7 +474,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -530,7 +530,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -577,7 +577,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -641,7 +641,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/notifications/client.py b/src/whop_sdk/notifications/client.py index d13c780f..77ea881c 100644 --- a/src/whop_sdk/notifications/client.py +++ b/src/whop_sdk/notifications/client.py @@ -84,7 +84,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -160,7 +160,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -213,7 +213,7 @@ def badges( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -257,7 +257,7 @@ def mark_read( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -288,7 +288,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -374,7 +374,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -459,7 +459,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -520,7 +520,7 @@ async def badges( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -572,7 +572,7 @@ async def mark_read( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -613,7 +613,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/notifications/topics/client.py b/src/whop_sdk/notifications/topics/client.py index 3708a9ff..8d5bb7a0 100644 --- a/src/whop_sdk/notifications/topics/client.py +++ b/src/whop_sdk/notifications/topics/client.py @@ -61,7 +61,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -127,7 +127,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/partners/businesses/client.py b/src/whop_sdk/partners/businesses/client.py index 4c840af1..a754ad63 100644 --- a/src/whop_sdk/partners/businesses/client.py +++ b/src/whop_sdk/partners/businesses/client.py @@ -112,7 +112,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -164,7 +164,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -278,7 +278,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -339,7 +339,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/partners/businesses/earnings/client.py b/src/whop_sdk/partners/businesses/earnings/client.py index e5463ab8..a07e9cb0 100644 --- a/src/whop_sdk/partners/businesses/earnings/client.py +++ b/src/whop_sdk/partners/businesses/earnings/client.py @@ -94,7 +94,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -205,7 +205,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/partners/client.py b/src/whop_sdk/partners/client.py index 1ba58f5a..50d4fbe2 100644 --- a/src/whop_sdk/partners/client.py +++ b/src/whop_sdk/partners/client.py @@ -54,7 +54,7 @@ def create(self, *, request_options: typing.Optional[RequestOptions] = None) -> from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -90,7 +90,7 @@ def leaderboard( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -146,7 +146,7 @@ def referred_users( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -214,7 +214,7 @@ async def create(self, *, request_options: typing.Optional[RequestOptions] = Non from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -258,7 +258,7 @@ async def leaderboard( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -322,7 +322,7 @@ async def referred_users( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/payment_method_domains/client.py b/src/whop_sdk/payment_method_domains/client.py index 34ea4311..5511140d 100644 --- a/src/whop_sdk/payment_method_domains/client.py +++ b/src/whop_sdk/payment_method_domains/client.py @@ -105,7 +105,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -163,7 +163,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -196,7 +196,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -231,7 +231,7 @@ def delete( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -264,7 +264,7 @@ def verify(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -364,7 +364,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -431,7 +431,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -476,7 +476,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -519,7 +519,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -560,7 +560,7 @@ async def verify(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/payment_methods/client.py b/src/whop_sdk/payment_methods/client.py index 9c8582b4..8127e43a 100644 --- a/src/whop_sdk/payment_methods/client.py +++ b/src/whop_sdk/payment_methods/client.py @@ -40,7 +40,6 @@ def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, member_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, @@ -53,6 +52,7 @@ def list( has_payer_document: typing.Optional[bool] = None, expired: typing.Optional[bool] = None, broken: typing.Optional[bool] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[PaymentMethodListItem, ListPaymentMethodsResponse]: """ @@ -78,9 +78,6 @@ def list( member_id : typing.Optional[str] The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - direction : typing.Optional[Direction] created_before : typing.Optional[dt.datetime] @@ -109,6 +106,9 @@ def list( broken : typing.Optional[bool] Filter by whether the stored credential has permanently stopped charging, such as a vault entry its provider closed. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -124,7 +124,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -132,13 +132,13 @@ def list( first=42, last=42, member_id="mber_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -152,7 +152,6 @@ def list( first=first, last=last, member_id=member_id, - company_id=company_id, direction=direction, created_before=created_before, created_after=created_after, @@ -163,6 +162,7 @@ def list( has_payer_document=has_payer_document, expired=expired, broken=broken, + account_id=account_id, request_options=request_options, ) @@ -170,8 +170,8 @@ def retrieve( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> PaymentMethod: """ @@ -185,12 +185,12 @@ def retrieve( id : str The unique identifier of the payment method. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -204,18 +204,18 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.payment_methods.retrieve( id="payt_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", member_id="mber_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.retrieve( - id, company_id=company_id, member_id=member_id, request_options=request_options + id, member_id=member_id, account_id=account_id, request_options=request_options ) return _response.data @@ -223,8 +223,8 @@ def delete_payment_method( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> bool: """ @@ -238,12 +238,12 @@ def delete_payment_method( id : str The unique identifier of the payment method to delete. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -257,18 +257,18 @@ def delete_payment_method( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.payment_methods.delete_payment_method( id="payt_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", member_id="mber_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.delete_payment_method( - id, company_id=company_id, member_id=member_id, request_options=request_options + id, member_id=member_id, account_id=account_id, request_options=request_options ) return _response.data @@ -296,7 +296,6 @@ async def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, member_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, @@ -309,6 +308,7 @@ async def list( has_payer_document: typing.Optional[bool] = None, expired: typing.Optional[bool] = None, broken: typing.Optional[bool] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[PaymentMethodListItem, ListPaymentMethodsResponse]: """ @@ -334,9 +334,6 @@ async def list( member_id : typing.Optional[str] The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - direction : typing.Optional[Direction] created_before : typing.Optional[dt.datetime] @@ -365,6 +362,9 @@ async def list( broken : typing.Optional[bool] Filter by whether the stored credential has permanently stopped charging, such as a vault entry its provider closed. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -381,7 +381,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -392,13 +392,13 @@ async def main() -> None: first=42, last=42, member_id="mber_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -416,7 +416,6 @@ async def main() -> None: first=first, last=last, member_id=member_id, - company_id=company_id, direction=direction, created_before=created_before, created_after=created_after, @@ -427,6 +426,7 @@ async def main() -> None: has_payer_document=has_payer_document, expired=expired, broken=broken, + account_id=account_id, request_options=request_options, ) @@ -434,8 +434,8 @@ async def retrieve( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> PaymentMethod: """ @@ -449,12 +449,12 @@ async def retrieve( id : str The unique identifier of the payment method. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -470,7 +470,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -479,15 +479,15 @@ async def retrieve( async def main() -> None: await client.payment_methods.retrieve( id="payt_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", member_id="mber_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) asyncio.run(main()) """ _response = await self._raw_client.retrieve( - id, company_id=company_id, member_id=member_id, request_options=request_options + id, member_id=member_id, account_id=account_id, request_options=request_options ) return _response.data @@ -495,8 +495,8 @@ async def delete_payment_method( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> bool: """ @@ -510,12 +510,12 @@ async def delete_payment_method( id : str The unique identifier of the payment method to delete. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -531,7 +531,7 @@ async def delete_payment_method( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -540,14 +540,14 @@ async def delete_payment_method( async def main() -> None: await client.payment_methods.delete_payment_method( id="payt_xxxxxxxxxxxxx", - company_id="biz_xxxxxxxxxxxxxx", member_id="mber_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) asyncio.run(main()) """ _response = await self._raw_client.delete_payment_method( - id, company_id=company_id, member_id=member_id, request_options=request_options + id, member_id=member_id, account_id=account_id, request_options=request_options ) return _response.data diff --git a/src/whop_sdk/payment_methods/raw_client.py b/src/whop_sdk/payment_methods/raw_client.py index 39c2054b..8c63a97e 100644 --- a/src/whop_sdk/payment_methods/raw_client.py +++ b/src/whop_sdk/payment_methods/raw_client.py @@ -43,7 +43,6 @@ def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, member_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, @@ -56,6 +55,7 @@ def list( has_payer_document: typing.Optional[bool] = None, expired: typing.Optional[bool] = None, broken: typing.Optional[bool] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[PaymentMethodListItem, ListPaymentMethodsResponse]: """ @@ -81,9 +81,6 @@ def list( member_id : typing.Optional[str] The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - direction : typing.Optional[Direction] created_before : typing.Optional[dt.datetime] @@ -112,6 +109,9 @@ def list( broken : typing.Optional[bool] Filter by whether the stored credential has permanently stopped charging, such as a vault entry its provider closed. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -129,7 +129,6 @@ def list( "first": first, "last": last, "member_id": member_id, - "company_id": company_id, "direction": direction, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, @@ -140,6 +139,7 @@ def list( "has_payer_document": has_payer_document, "expired": expired, "broken": broken, + "account_id": account_id, }, request_options=request_options, ) @@ -164,7 +164,6 @@ def list( first=first, last=last, member_id=member_id, - company_id=company_id, direction=direction, created_before=created_before, created_after=created_after, @@ -175,6 +174,7 @@ def list( has_payer_document=has_payer_document, expired=expired, broken=broken, + account_id=account_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -268,8 +268,8 @@ def retrieve( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[PaymentMethod]: """ @@ -283,12 +283,12 @@ def retrieve( id : str The unique identifier of the payment method. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -301,8 +301,8 @@ def retrieve( f"payment_methods/{encode_path_param(id)}", method="GET", params={ - "company_id": company_id, "member_id": member_id, + "account_id": account_id, }, request_options=request_options, ) @@ -406,8 +406,8 @@ def delete_payment_method( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[bool]: """ @@ -421,12 +421,12 @@ def delete_payment_method( id : str The unique identifier of the payment method to delete. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -439,8 +439,8 @@ def delete_payment_method( f"payment_methods/{encode_path_param(id)}", method="DELETE", params={ - "company_id": company_id, "member_id": member_id, + "account_id": account_id, }, request_options=request_options, ) @@ -553,7 +553,6 @@ async def list( first: typing.Optional[int] = None, last: typing.Optional[int] = None, member_id: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, direction: typing.Optional[Direction] = None, created_before: typing.Optional[dt.datetime] = None, created_after: typing.Optional[dt.datetime] = None, @@ -566,6 +565,7 @@ async def list( has_payer_document: typing.Optional[bool] = None, expired: typing.Optional[bool] = None, broken: typing.Optional[bool] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[PaymentMethodListItem, ListPaymentMethodsResponse]: """ @@ -591,9 +591,6 @@ async def list( member_id : typing.Optional[str] The unique identifier of the member to list payment methods for. Omit this and company_id to list your own saved payment methods. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - direction : typing.Optional[Direction] created_before : typing.Optional[dt.datetime] @@ -622,6 +619,9 @@ async def list( broken : typing.Optional[bool] Filter by whether the stored credential has permanently stopped charging, such as a vault entry its provider closed. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -639,7 +639,6 @@ async def list( "first": first, "last": last, "member_id": member_id, - "company_id": company_id, "direction": direction, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, @@ -650,6 +649,7 @@ async def list( "has_payer_document": has_payer_document, "expired": expired, "broken": broken, + "account_id": account_id, }, request_options=request_options, ) @@ -676,7 +676,6 @@ async def _get_next(): first=first, last=last, member_id=member_id, - company_id=company_id, direction=direction, created_before=created_before, created_after=created_after, @@ -687,6 +686,7 @@ async def _get_next(): has_payer_document=has_payer_document, expired=expired, broken=broken, + account_id=account_id, request_options=request_options, ) @@ -781,8 +781,8 @@ async def retrieve( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[PaymentMethod]: """ @@ -796,12 +796,12 @@ async def retrieve( id : str The unique identifier of the payment method. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -814,8 +814,8 @@ async def retrieve( f"payment_methods/{encode_path_param(id)}", method="GET", params={ - "company_id": company_id, "member_id": member_id, + "account_id": account_id, }, request_options=request_options, ) @@ -919,8 +919,8 @@ async def delete_payment_method( self, id: str, *, - company_id: typing.Optional[str] = None, member_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[bool]: """ @@ -934,12 +934,12 @@ async def delete_payment_method( id : str The unique identifier of the payment method to delete. - company_id : typing.Optional[str] - The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. - member_id : typing.Optional[str] The unique identifier of the member. Provide either this or company_id, not both. Omit both to address your own saved payment methods. + account_id : typing.Optional[str] + The unique identifier of the company. Provide either this or member_id, not both. Omit both to address your own saved payment methods. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -952,8 +952,8 @@ async def delete_payment_method( f"payment_methods/{encode_path_param(id)}", method="DELETE", params={ - "company_id": company_id, "member_id": member_id, + "account_id": account_id, }, request_options=request_options, ) diff --git a/src/whop_sdk/payments/client.py b/src/whop_sdk/payments/client.py index b4ceb411..25570359 100644 --- a/src/whop_sdk/payments/client.py +++ b/src/whop_sdk/payments/client.py @@ -130,7 +130,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -226,7 +226,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -272,7 +272,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -305,7 +305,7 @@ def capture(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -340,7 +340,7 @@ def list_fees( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -382,7 +382,7 @@ def refund( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -415,7 +415,7 @@ def retry(self, id: str, *, request_options: typing.Optional[RequestOptions] = N from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -448,7 +448,7 @@ def void(self, id: str, *, request_options: typing.Optional[RequestOptions] = No from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -486,7 +486,7 @@ def update_return_url( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -524,7 +524,7 @@ def retrieve_status( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -648,7 +648,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -753,7 +753,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -807,7 +807,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -848,7 +848,7 @@ async def capture(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -891,7 +891,7 @@ async def list_fees( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -941,7 +941,7 @@ async def refund( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -982,7 +982,7 @@ async def retry(self, id: str, *, request_options: typing.Optional[RequestOption from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1023,7 +1023,7 @@ async def void(self, id: str, *, request_options: typing.Optional[RequestOptions from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1069,7 +1069,7 @@ async def update_return_url( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1115,7 +1115,7 @@ async def retrieve_status( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/payout_accounts/client.py b/src/whop_sdk/payout_accounts/client.py index c00a3327..72acf5f1 100644 --- a/src/whop_sdk/payout_accounts/client.py +++ b/src/whop_sdk/payout_accounts/client.py @@ -48,7 +48,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -102,7 +102,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/payout_methods/client.py b/src/whop_sdk/payout_methods/client.py index 0fe73649..432a9f3e 100644 --- a/src/whop_sdk/payout_methods/client.py +++ b/src/whop_sdk/payout_methods/client.py @@ -29,7 +29,7 @@ def with_raw_response(self) -> RawPayoutMethodsClient: def list_payout_method( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -44,7 +44,7 @@ def list_payout_method( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list payout methods for. after : typing.Optional[str] @@ -72,14 +72,14 @@ def list_payout_method( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.payout_methods.list_payout_method( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -88,7 +88,7 @@ def list_payout_method( yield page """ return self._raw_client.list_payout_method( - company_id=company_id, after=after, before=before, first=first, last=last, request_options=request_options + account_id=account_id, after=after, before=before, first=first, last=last, request_options=request_options ) def retrieve_payout_method( @@ -118,7 +118,7 @@ def retrieve_payout_method( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -148,7 +148,7 @@ def with_raw_response(self) -> AsyncRawPayoutMethodsClient: async def list_payout_method( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -163,7 +163,7 @@ async def list_payout_method( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list payout methods for. after : typing.Optional[str] @@ -193,7 +193,7 @@ async def list_payout_method( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -203,7 +203,7 @@ async def main() -> None: response = await client.payout_methods.list_payout_method( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -216,7 +216,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list_payout_method( - company_id=company_id, after=after, before=before, first=first, last=last, request_options=request_options + account_id=account_id, after=after, before=before, first=first, last=last, request_options=request_options ) async def retrieve_payout_method( @@ -248,7 +248,7 @@ async def retrieve_payout_method( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/payout_methods/raw_client.py b/src/whop_sdk/payout_methods/raw_client.py index 0d0cf04f..2e58c298 100644 --- a/src/whop_sdk/payout_methods/raw_client.py +++ b/src/whop_sdk/payout_methods/raw_client.py @@ -31,7 +31,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list_payout_method( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -46,7 +46,7 @@ def list_payout_method( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list payout methods for. after : typing.Optional[str] @@ -77,7 +77,7 @@ def list_payout_method( "before": before, "first": first, "last": last, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -97,7 +97,7 @@ def list_payout_method( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list_payout_method( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -322,7 +322,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list_payout_method( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -337,7 +337,7 @@ async def list_payout_method( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list payout methods for. after : typing.Optional[str] @@ -368,7 +368,7 @@ async def list_payout_method( "before": before, "first": first, "last": last, - "company_id": company_id, + "account_id": account_id, }, request_options=request_options, ) @@ -390,7 +390,7 @@ async def list_payout_method( async def _get_next(): return await self.list_payout_method( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, diff --git a/src/whop_sdk/payouts/client.py b/src/whop_sdk/payouts/client.py index b7158d0b..ee0cb607 100644 --- a/src/whop_sdk/payouts/client.py +++ b/src/whop_sdk/payouts/client.py @@ -116,7 +116,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -214,7 +214,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -295,7 +295,7 @@ def create_quote( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -352,7 +352,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -400,7 +400,7 @@ def cancel( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -519,7 +519,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -626,7 +626,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -715,7 +715,7 @@ async def create_quote( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -780,7 +780,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -836,7 +836,7 @@ async def cancel( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/payouts/methods/client.py b/src/whop_sdk/payouts/methods/client.py index be6c1fd9..c2e20131 100644 --- a/src/whop_sdk/payouts/methods/client.py +++ b/src/whop_sdk/payouts/methods/client.py @@ -95,7 +95,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -171,7 +171,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -213,7 +213,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -259,7 +259,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -353,7 +353,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -438,7 +438,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -490,7 +490,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -544,7 +544,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/payouts/supported_methods/client.py b/src/whop_sdk/payouts/supported_methods/client.py index 16b544c6..b8cf5096 100644 --- a/src/whop_sdk/payouts/supported_methods/client.py +++ b/src/whop_sdk/payouts/supported_methods/client.py @@ -92,7 +92,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -203,7 +203,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/people/client.py b/src/whop_sdk/people/client.py index c19b104e..3ad11395 100644 --- a/src/whop_sdk/people/client.py +++ b/src/whop_sdk/people/client.py @@ -157,7 +157,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -232,7 +232,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -388,7 +388,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -472,7 +472,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/permissions/client.py b/src/whop_sdk/permissions/client.py index dfc32df4..3d418efd 100644 --- a/src/whop_sdk/permissions/client.py +++ b/src/whop_sdk/permissions/client.py @@ -54,7 +54,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -114,7 +114,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/plans/client.py b/src/whop_sdk/plans/client.py index 12bfedcc..a7e993a0 100644 --- a/src/whop_sdk/plans/client.py +++ b/src/whop_sdk/plans/client.py @@ -118,7 +118,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -274,7 +274,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -332,7 +332,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -365,7 +365,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -507,7 +507,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -587,7 +587,7 @@ def calculate_tax( from whop_sdk.plans import CalculateTaxPlansRequestAddress client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -697,7 +697,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -862,7 +862,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -928,7 +928,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -969,7 +969,7 @@ async def delete(self, id: str, *, request_options: typing.Optional[RequestOptio from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1119,7 +1119,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1207,7 +1207,7 @@ async def calculate_tax( from whop_sdk.plans import CalculateTaxPlansRequestAddress client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/products/client.py b/src/whop_sdk/products/client.py index 06db190c..c34d40d1 100644 --- a/src/whop_sdk/products/client.py +++ b/src/whop_sdk/products/client.py @@ -129,7 +129,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -263,7 +263,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -317,7 +317,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -350,7 +350,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -424,7 +424,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -469,7 +469,7 @@ def publish(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -502,7 +502,7 @@ def unpublish(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -624,7 +624,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -767,7 +767,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -829,7 +829,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -872,7 +872,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -954,7 +954,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1007,7 +1007,7 @@ async def publish(self, id: str, *, request_options: typing.Optional[RequestOpti from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1048,7 +1048,7 @@ async def unpublish(self, id: str, *, request_options: typing.Optional[RequestOp from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/promo_codes/client.py b/src/whop_sdk/promo_codes/client.py index 6caf1319..798a357f 100644 --- a/src/whop_sdk/promo_codes/client.py +++ b/src/whop_sdk/promo_codes/client.py @@ -107,7 +107,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -206,7 +206,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -262,7 +262,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -295,7 +295,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -328,7 +328,7 @@ def activate(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -361,7 +361,7 @@ def deactivate(self, id: str, *, request_options: typing.Optional[RequestOptions from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -461,7 +461,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -569,7 +569,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -633,7 +633,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -676,7 +676,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -717,7 +717,7 @@ async def activate(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -758,7 +758,7 @@ async def deactivate(self, id: str, *, request_options: typing.Optional[RequestO from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/reactions/client.py b/src/whop_sdk/reactions/client.py index c5953ed2..a3057ff4 100644 --- a/src/whop_sdk/reactions/client.py +++ b/src/whop_sdk/reactions/client.py @@ -79,7 +79,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -140,7 +140,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -182,7 +182,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -227,7 +227,7 @@ def delete( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -306,7 +306,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -376,7 +376,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -426,7 +426,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -479,7 +479,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/recommended_actions/client.py b/src/whop_sdk/recommended_actions/client.py index 724f7ec5..50512e34 100644 --- a/src/whop_sdk/recommended_actions/client.py +++ b/src/whop_sdk/recommended_actions/client.py @@ -50,7 +50,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -90,7 +90,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -132,7 +132,7 @@ def run( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -174,7 +174,7 @@ def list_executions( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -227,7 +227,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -275,7 +275,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -325,7 +325,7 @@ async def run( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -375,7 +375,7 @@ async def list_executions( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/refunds/client.py b/src/whop_sdk/refunds/client.py index 12526379..f3d71f2b 100644 --- a/src/whop_sdk/refunds/client.py +++ b/src/whop_sdk/refunds/client.py @@ -95,7 +95,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -143,7 +143,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -239,7 +239,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -296,7 +296,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/resolution_center_cases/client.py b/src/whop_sdk/resolution_center_cases/client.py index 095326ff..23317bad 100644 --- a/src/whop_sdk/resolution_center_cases/client.py +++ b/src/whop_sdk/resolution_center_cases/client.py @@ -145,7 +145,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -211,7 +211,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -305,7 +305,7 @@ def summary( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -346,7 +346,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -396,7 +396,7 @@ def accept( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -448,7 +448,7 @@ def appeal( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -497,7 +497,7 @@ def deny( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -552,7 +552,7 @@ def events( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -604,7 +604,7 @@ def reply( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -653,7 +653,7 @@ def request_info( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -688,7 +688,7 @@ def withdraw(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -805,7 +805,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -880,7 +880,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -982,7 +982,7 @@ async def summary( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1033,7 +1033,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1091,7 +1091,7 @@ async def accept( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1151,7 +1151,7 @@ async def appeal( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1208,7 +1208,7 @@ async def deny( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1273,7 +1273,7 @@ async def events( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1334,7 +1334,7 @@ async def reply( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1391,7 +1391,7 @@ async def request_info( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1436,7 +1436,7 @@ async def withdraw( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/reviews/client.py b/src/whop_sdk/reviews/client.py index c825d0d8..68706b92 100644 --- a/src/whop_sdk/reviews/client.py +++ b/src/whop_sdk/reviews/client.py @@ -88,7 +88,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -146,7 +146,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -235,7 +235,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -302,7 +302,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/setup_intents/client.py b/src/whop_sdk/setup_intents/client.py index df1b759f..d09ea04d 100644 --- a/src/whop_sdk/setup_intents/client.py +++ b/src/whop_sdk/setup_intents/client.py @@ -37,7 +37,7 @@ def with_raw_response(self) -> RawSetupIntentsClient: def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -57,7 +57,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list setup intents for. after : typing.Optional[str] @@ -95,20 +95,20 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.setup_intents.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -117,7 +117,7 @@ def list( yield page """ return self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -157,13 +157,13 @@ def create( from whop_sdk.setup_intents import CreateSetupIntentsRequestConfirmationToken client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.setup_intents.create( request=CreateSetupIntentsRequestConfirmationToken( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", confirmation_token="ctok_xxxxxxxxxxxxxx", ), ) @@ -198,7 +198,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -236,7 +236,7 @@ def update_return_url( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -274,7 +274,7 @@ def retrieve_status( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -304,7 +304,7 @@ def with_raw_response(self) -> AsyncRawSetupIntentsClient: async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -324,7 +324,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list setup intents for. after : typing.Optional[str] @@ -363,7 +363,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -373,13 +373,13 @@ async def main() -> None: response = await client.setup_intents.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", created_before=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), created_after=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -392,7 +392,7 @@ async def main() -> None: asyncio.run(main()) """ return await self._raw_client.list( - company_id=company_id, + account_id=account_id, after=after, before=before, first=first, @@ -434,7 +434,7 @@ async def create( from whop_sdk.setup_intents import CreateSetupIntentsRequestConfirmationToken client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -443,7 +443,7 @@ async def create( async def main() -> None: await client.setup_intents.create( request=CreateSetupIntentsRequestConfirmationToken( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", confirmation_token="ctok_xxxxxxxxxxxxxx", ), ) @@ -483,7 +483,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -529,7 +529,7 @@ async def update_return_url( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -575,7 +575,7 @@ async def retrieve_status( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/setup_intents/raw_client.py b/src/whop_sdk/setup_intents/raw_client.py index fc545e48..eb98bcd7 100644 --- a/src/whop_sdk/setup_intents/raw_client.py +++ b/src/whop_sdk/setup_intents/raw_client.py @@ -41,7 +41,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -61,7 +61,7 @@ def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list setup intents for. after : typing.Optional[str] @@ -100,10 +100,10 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -123,7 +123,7 @@ def list( _parsed_next = _parsed_response.page_info.end_cursor _has_next = _parsed_next is not None and _parsed_next != "" _get_next = lambda: self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, @@ -646,7 +646,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def list( self, *, - company_id: str, + account_id: str, after: typing.Optional[str] = None, before: typing.Optional[str] = None, first: typing.Optional[int] = None, @@ -666,7 +666,7 @@ async def list( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to list setup intents for. after : typing.Optional[str] @@ -705,10 +705,10 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "direction": direction, "created_before": serialize_datetime(created_before) if created_before is not None else None, "created_after": serialize_datetime(created_after) if created_after is not None else None, + "account_id": account_id, }, request_options=request_options, ) @@ -730,7 +730,7 @@ async def list( async def _get_next(): return await self.list( - company_id=company_id, + account_id=account_id, after=_parsed_next, before=before, first=first, diff --git a/src/whop_sdk/setup_intents/types/create_setup_intents_request_confirmation_token.py b/src/whop_sdk/setup_intents/types/create_setup_intents_request_confirmation_token.py index 9e58c827..2d397e1b 100644 --- a/src/whop_sdk/setup_intents/types/create_setup_intents_request_confirmation_token.py +++ b/src/whop_sdk/setup_intents/types/create_setup_intents_request_confirmation_token.py @@ -12,7 +12,7 @@ class CreateSetupIntentsRequestConfirmationToken(UniversalBaseModel): Autogenerated input type of CreateSetupIntent """ - company_id: str = pydantic.Field() + account_id: str = pydantic.Field() """ The ID of the company to save the payment method for. """ diff --git a/src/whop_sdk/setup_intents/types/create_setup_intents_request_payment_method_id.py b/src/whop_sdk/setup_intents/types/create_setup_intents_request_payment_method_id.py index b78ebe1a..98c32281 100644 --- a/src/whop_sdk/setup_intents/types/create_setup_intents_request_payment_method_id.py +++ b/src/whop_sdk/setup_intents/types/create_setup_intents_request_payment_method_id.py @@ -12,7 +12,7 @@ class CreateSetupIntentsRequestPaymentMethodId(UniversalBaseModel): Autogenerated input type of CreateSetupIntent """ - company_id: str = pydantic.Field() + account_id: str = pydantic.Field() """ The ID of the company to save the payment method for. """ diff --git a/src/whop_sdk/shipments/client.py b/src/whop_sdk/shipments/client.py index 4a6e4fa8..3235e808 100644 --- a/src/whop_sdk/shipments/client.py +++ b/src/whop_sdk/shipments/client.py @@ -98,7 +98,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -161,7 +161,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -200,7 +200,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -238,7 +238,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -335,7 +335,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -407,7 +407,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -454,7 +454,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -500,7 +500,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/social_accounts/client.py b/src/whop_sdk/social_accounts/client.py index bb2d0503..e068493a 100644 --- a/src/whop_sdk/social_accounts/client.py +++ b/src/whop_sdk/social_accounts/client.py @@ -109,7 +109,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -166,7 +166,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -216,7 +216,7 @@ def connect( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -269,7 +269,7 @@ def delete( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -307,7 +307,7 @@ def lead_forms( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -362,7 +362,7 @@ def posts( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -467,7 +467,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -533,7 +533,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -593,7 +593,7 @@ async def connect( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -654,7 +654,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -702,7 +702,7 @@ async def lead_forms( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -765,7 +765,7 @@ async def posts( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/stats/client.py b/src/whop_sdk/stats/client.py index 0ccf72c5..f5ccdec7 100644 --- a/src/whop_sdk/stats/client.py +++ b/src/whop_sdk/stats/client.py @@ -51,7 +51,7 @@ def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> Li from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -64,8 +64,8 @@ def describe_stats( self, *, resource: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> DescribeStatsResponse: """ @@ -79,12 +79,12 @@ def describe_stats( resource : typing.Optional[str] Resource path using : as separator (e.g., 'receipts', 'payments:membership', 'receipts:gross_revenue'). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -98,17 +98,17 @@ def describe_stats( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.stats.describe_stats( - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.describe_stats( - resource=resource, company_id=company_id, user_id=user_id, request_options=request_options + resource=resource, user_id=user_id, account_id=account_id, request_options=request_options ) return _response.data @@ -122,8 +122,8 @@ def metric_stats( time_zone: typing.Optional[str] = None, from_: typing.Optional[dt.datetime] = None, to: typing.Optional[dt.datetime] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> MetricStatsResponse: """ @@ -155,12 +155,12 @@ def metric_stats( to : typing.Optional[dt.datetime] End of time range (unix timestamp). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -176,7 +176,7 @@ def metric_stats( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -188,8 +188,8 @@ def metric_stats( to=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.metric_stats( @@ -200,8 +200,8 @@ def metric_stats( time_zone=time_zone, from_=from_, to=to, - company_id=company_id, user_id=user_id, + account_id=account_id, request_options=request_options, ) return _response.data @@ -216,8 +216,8 @@ def raw_stats( cursor: typing.Optional[str] = None, sort: typing.Optional[str] = None, sort_direction: typing.Optional[Direction] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> RawStatsResponse: """ @@ -248,12 +248,12 @@ def raw_stats( sort_direction : typing.Optional[Direction] - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -269,7 +269,7 @@ def raw_stats( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -282,8 +282,8 @@ def raw_stats( "2023-12-01 05:00:00+00:00", ), limit=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.raw_stats( @@ -294,8 +294,8 @@ def raw_stats( cursor=cursor, sort=sort, sort_direction=sort_direction, - company_id=company_id, user_id=user_id, + account_id=account_id, request_options=request_options, ) return _response.data @@ -463,7 +463,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -553,7 +553,7 @@ async def list(self, *, request_options: typing.Optional[RequestOptions] = None) from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -572,8 +572,8 @@ async def describe_stats( self, *, resource: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> DescribeStatsResponse: """ @@ -587,12 +587,12 @@ async def describe_stats( resource : typing.Optional[str] Resource path using : as separator (e.g., 'receipts', 'payments:membership', 'receipts:gross_revenue'). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -608,7 +608,7 @@ async def describe_stats( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -616,15 +616,15 @@ async def describe_stats( async def main() -> None: await client.stats.describe_stats( - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) asyncio.run(main()) """ _response = await self._raw_client.describe_stats( - resource=resource, company_id=company_id, user_id=user_id, request_options=request_options + resource=resource, user_id=user_id, account_id=account_id, request_options=request_options ) return _response.data @@ -638,8 +638,8 @@ async def metric_stats( time_zone: typing.Optional[str] = None, from_: typing.Optional[dt.datetime] = None, to: typing.Optional[dt.datetime] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> MetricStatsResponse: """ @@ -671,12 +671,12 @@ async def metric_stats( to : typing.Optional[dt.datetime] End of time range (unix timestamp). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -693,7 +693,7 @@ async def metric_stats( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -708,8 +708,8 @@ async def main() -> None: to=datetime.datetime.fromisoformat( "2023-12-01 05:00:00+00:00", ), - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) @@ -723,8 +723,8 @@ async def main() -> None: time_zone=time_zone, from_=from_, to=to, - company_id=company_id, user_id=user_id, + account_id=account_id, request_options=request_options, ) return _response.data @@ -739,8 +739,8 @@ async def raw_stats( cursor: typing.Optional[str] = None, sort: typing.Optional[str] = None, sort_direction: typing.Optional[Direction] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> RawStatsResponse: """ @@ -771,12 +771,12 @@ async def raw_stats( sort_direction : typing.Optional[Direction] - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -793,7 +793,7 @@ async def raw_stats( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -809,8 +809,8 @@ async def main() -> None: "2023-12-01 05:00:00+00:00", ), limit=42, - company_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) @@ -824,8 +824,8 @@ async def main() -> None: cursor=cursor, sort=sort, sort_direction=sort_direction, - company_id=company_id, user_id=user_id, + account_id=account_id, request_options=request_options, ) return _response.data @@ -995,7 +995,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/stats/raw_client.py b/src/whop_sdk/stats/raw_client.py index 80eb591e..0ec30032 100644 --- a/src/whop_sdk/stats/raw_client.py +++ b/src/whop_sdk/stats/raw_client.py @@ -88,8 +88,8 @@ def describe_stats( self, *, resource: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[DescribeStatsResponse]: """ @@ -103,12 +103,12 @@ def describe_stats( resource : typing.Optional[str] Resource path using : as separator (e.g., 'receipts', 'payments:membership', 'receipts:gross_revenue'). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -122,8 +122,8 @@ def describe_stats( method="GET", params={ "resource": resource, - "company_id": company_id, "user_id": user_id, + "account_id": account_id, }, request_options=request_options, ) @@ -233,8 +233,8 @@ def metric_stats( time_zone: typing.Optional[str] = None, from_: typing.Optional[dt.datetime] = None, to: typing.Optional[dt.datetime] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[MetricStatsResponse]: """ @@ -266,12 +266,12 @@ def metric_stats( to : typing.Optional[dt.datetime] End of time range (unix timestamp). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -291,8 +291,8 @@ def metric_stats( "time_zone": time_zone, "from": serialize_datetime(from_) if from_ is not None else None, "to": serialize_datetime(to) if to is not None else None, - "company_id": company_id, "user_id": user_id, + "account_id": account_id, }, request_options=request_options, ) @@ -402,8 +402,8 @@ def raw_stats( cursor: typing.Optional[str] = None, sort: typing.Optional[str] = None, sort_direction: typing.Optional[Direction] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[RawStatsResponse]: """ @@ -434,12 +434,12 @@ def raw_stats( sort_direction : typing.Optional[Direction] - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -459,8 +459,8 @@ def raw_stats( "cursor": cursor, "sort": sort, "sort_direction": sort_direction, - "company_id": company_id, "user_id": user_id, + "account_id": account_id, }, request_options=request_options, ) @@ -882,8 +882,8 @@ async def describe_stats( self, *, resource: typing.Optional[str] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[DescribeStatsResponse]: """ @@ -897,12 +897,12 @@ async def describe_stats( resource : typing.Optional[str] Resource path using : as separator (e.g., 'receipts', 'payments:membership', 'receipts:gross_revenue'). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -916,8 +916,8 @@ async def describe_stats( method="GET", params={ "resource": resource, - "company_id": company_id, "user_id": user_id, + "account_id": account_id, }, request_options=request_options, ) @@ -1027,8 +1027,8 @@ async def metric_stats( time_zone: typing.Optional[str] = None, from_: typing.Optional[dt.datetime] = None, to: typing.Optional[dt.datetime] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[MetricStatsResponse]: """ @@ -1060,12 +1060,12 @@ async def metric_stats( to : typing.Optional[dt.datetime] End of time range (unix timestamp). - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -1085,8 +1085,8 @@ async def metric_stats( "time_zone": time_zone, "from": serialize_datetime(from_) if from_ is not None else None, "to": serialize_datetime(to) if to is not None else None, - "company_id": company_id, "user_id": user_id, + "account_id": account_id, }, request_options=request_options, ) @@ -1196,8 +1196,8 @@ async def raw_stats( cursor: typing.Optional[str] = None, sort: typing.Optional[str] = None, sort_direction: typing.Optional[Direction] = None, - company_id: typing.Optional[str] = None, user_id: typing.Optional[str] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[RawStatsResponse]: """ @@ -1228,12 +1228,12 @@ async def raw_stats( sort_direction : typing.Optional[Direction] - company_id : typing.Optional[str] - Scope query to a specific company. - user_id : typing.Optional[str] Scope query to a specific user. + account_id : typing.Optional[str] + Scope query to a specific company. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -1253,8 +1253,8 @@ async def raw_stats( "cursor": cursor, "sort": sort, "sort_direction": sort_direction, - "company_id": company_id, "user_id": user_id, + "account_id": account_id, }, request_options=request_options, ) diff --git a/src/whop_sdk/support_channels/client.py b/src/whop_sdk/support_channels/client.py index 9849de3c..193ced17 100644 --- a/src/whop_sdk/support_channels/client.py +++ b/src/whop_sdk/support_channels/client.py @@ -39,11 +39,11 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, view: typing.Optional[SupportChannelView] = None, open: typing.Optional[bool] = None, direction: typing.Optional[Direction] = None, order: typing.Optional[MessageChannelOrder] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[SupportChannelListItem, ListSupportChannelsResponse]: """ @@ -66,9 +66,6 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. - view : typing.Optional[SupportChannelView] open : typing.Optional[bool] @@ -78,6 +75,9 @@ def list( order : typing.Optional[MessageChannelOrder] + account_id : typing.Optional[str] + The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -91,14 +91,14 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) response = client.support_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) for item in response: yield item @@ -111,18 +111,18 @@ def list( before=before, first=first, last=last, - company_id=company_id, view=view, open=open, direction=direction, order=order, + account_id=account_id, request_options=request_options, ) def create( self, *, - company_id: str, + account_id: str, user_id: str, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, @@ -136,7 +136,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the support channel in. user_id : str @@ -161,17 +161,17 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.support_channels.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", ) """ _response = self._raw_client.create( - company_id=company_id, + account_id=account_id, user_id=user_id, custom_name=custom_name, notifications_enabled=notifications_enabled, @@ -204,7 +204,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -238,11 +238,11 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, view: typing.Optional[SupportChannelView] = None, open: typing.Optional[bool] = None, direction: typing.Optional[Direction] = None, order: typing.Optional[MessageChannelOrder] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[SupportChannelListItem, ListSupportChannelsResponse]: """ @@ -265,9 +265,6 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. - view : typing.Optional[SupportChannelView] open : typing.Optional[bool] @@ -277,6 +274,9 @@ async def list( order : typing.Optional[MessageChannelOrder] + account_id : typing.Optional[str] + The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -292,7 +292,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -302,7 +302,7 @@ async def main() -> None: response = await client.support_channels.list( first=42, last=42, - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", ) async for item in response: yield item @@ -319,18 +319,18 @@ async def main() -> None: before=before, first=first, last=last, - company_id=company_id, view=view, open=open, direction=direction, order=order, + account_id=account_id, request_options=request_options, ) async def create( self, *, - company_id: str, + account_id: str, user_id: str, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, @@ -344,7 +344,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the support channel in. user_id : str @@ -371,7 +371,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -379,7 +379,7 @@ async def create( async def main() -> None: await client.support_channels.create( - company_id="biz_xxxxxxxxxxxxxx", + account_id="biz_xxxxxxxxxxxxxx", user_id="user_xxxxxxxxxxxxx", ) @@ -387,7 +387,7 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.create( - company_id=company_id, + account_id=account_id, user_id=user_id, custom_name=custom_name, notifications_enabled=notifications_enabled, @@ -422,7 +422,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/support_channels/raw_client.py b/src/whop_sdk/support_channels/raw_client.py index 67df8450..8d25d303 100644 --- a/src/whop_sdk/support_channels/raw_client.py +++ b/src/whop_sdk/support_channels/raw_client.py @@ -41,11 +41,11 @@ def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, view: typing.Optional[SupportChannelView] = None, open: typing.Optional[bool] = None, direction: typing.Optional[Direction] = None, order: typing.Optional[MessageChannelOrder] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> SyncPager[SupportChannelListItem, ListSupportChannelsResponse]: """ @@ -68,9 +68,6 @@ def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. - view : typing.Optional[SupportChannelView] open : typing.Optional[bool] @@ -80,6 +77,9 @@ def list( order : typing.Optional[MessageChannelOrder] + account_id : typing.Optional[str] + The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -96,11 +96,11 @@ def list( "before": before, "first": first, "last": last, - "company_id": company_id, "view": view, "open": open, "direction": direction, "order": order, + "account_id": account_id, }, request_options=request_options, ) @@ -124,11 +124,11 @@ def list( before=before, first=first, last=last, - company_id=company_id, view=view, open=open, direction=direction, order=order, + account_id=account_id, request_options=request_options, ) return SyncPager(has_next=_has_next, items=_items, get_next=_get_next, response=_parsed_response) @@ -221,7 +221,7 @@ def list( def create( self, *, - company_id: str, + account_id: str, user_id: str, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, @@ -235,7 +235,7 @@ def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the support channel in. user_id : str @@ -259,7 +259,7 @@ def create( "support_channels", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "custom_name": custom_name, "notifications_enabled": notifications_enabled, "user_id": user_id, @@ -501,11 +501,11 @@ async def list( before: typing.Optional[str] = None, first: typing.Optional[int] = None, last: typing.Optional[int] = None, - company_id: typing.Optional[str] = None, view: typing.Optional[SupportChannelView] = None, open: typing.Optional[bool] = None, direction: typing.Optional[Direction] = None, order: typing.Optional[MessageChannelOrder] = None, + account_id: typing.Optional[str] = None, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncPager[SupportChannelListItem, ListSupportChannelsResponse]: """ @@ -528,9 +528,6 @@ async def list( last : typing.Optional[int] Returns the last _n_ elements from the list. - company_id : typing.Optional[str] - The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. - view : typing.Optional[SupportChannelView] open : typing.Optional[bool] @@ -540,6 +537,9 @@ async def list( order : typing.Optional[MessageChannelOrder] + account_id : typing.Optional[str] + The unique identifier of the company to list support channels for. Includes channels of child companies. When omitted, returns support channels across all companies the user has access to. + request_options : typing.Optional[RequestOptions] Request-specific configuration. @@ -556,11 +556,11 @@ async def list( "before": before, "first": first, "last": last, - "company_id": company_id, "view": view, "open": open, "direction": direction, "order": order, + "account_id": account_id, }, request_options=request_options, ) @@ -586,11 +586,11 @@ async def _get_next(): before=before, first=first, last=last, - company_id=company_id, view=view, open=open, direction=direction, order=order, + account_id=account_id, request_options=request_options, ) @@ -684,7 +684,7 @@ async def _get_next(): async def create( self, *, - company_id: str, + account_id: str, user_id: str, custom_name: typing.Optional[str] = OMIT, notifications_enabled: typing.Optional[bool] = OMIT, @@ -698,7 +698,7 @@ async def create( Parameters ---------- - company_id : str + account_id : str The unique identifier of the company to create the support channel in. user_id : str @@ -722,7 +722,7 @@ async def create( "support_channels", method="POST", json={ - "company_id": company_id, + "account_id": account_id, "custom_name": custom_name, "notifications_enabled": notifications_enabled, "user_id": user_id, diff --git a/src/whop_sdk/swaps/client.py b/src/whop_sdk/swaps/client.py index ca9e9430..220ef1f2 100644 --- a/src/whop_sdk/swaps/client.py +++ b/src/whop_sdk/swaps/client.py @@ -55,7 +55,7 @@ def list(self, *, account_id: str, request_options: typing.Optional[RequestOptio from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -121,7 +121,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -203,7 +203,7 @@ def create_quote( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -249,7 +249,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -302,7 +302,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -376,7 +376,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -466,7 +466,7 @@ async def create_quote( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -522,7 +522,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/team_members/client.py b/src/whop_sdk/team_members/client.py index b8dd9141..81227a2b 100644 --- a/src/whop_sdk/team_members/client.py +++ b/src/whop_sdk/team_members/client.py @@ -106,7 +106,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -174,7 +174,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -210,7 +210,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -243,7 +243,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -281,7 +281,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -382,7 +382,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -459,7 +459,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -503,7 +503,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -546,7 +546,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -592,7 +592,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/topups/client.py b/src/whop_sdk/topups/client.py index 85dba5de..7b803338 100644 --- a/src/whop_sdk/topups/client.py +++ b/src/whop_sdk/topups/client.py @@ -30,8 +30,8 @@ def with_raw_response(self) -> RawTopupsClient: def create( self, *, + account_id: str, amount: float, - company_id: str, currency: Currencies, payment_method_id: str, request_options: typing.Optional[RequestOptions] = None, @@ -44,12 +44,12 @@ def create( Parameters ---------- + account_id : str + The unique identifier of the company to add funds to, starting with 'biz_'. + amount : float The amount to add to the balance in the specified currency. For example, 50.00 for $50.00 USD. - company_id : str - The unique identifier of the company to add funds to, starting with 'biz_'. - currency : Currencies The currency for the top-up amount, such as 'usd'. @@ -69,20 +69,20 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) client.topups.create( + account_id="biz_xxxxxxxxxxxxxx", amount=6.9, - company_id="biz_xxxxxxxxxxxxxx", currency="usd", payment_method_id="pmt_xxxxxxxxxxxxxx", ) """ _response = self._raw_client.create( + account_id=account_id, amount=amount, - company_id=company_id, currency=currency, payment_method_id=payment_method_id, request_options=request_options, @@ -108,8 +108,8 @@ def with_raw_response(self) -> AsyncRawTopupsClient: async def create( self, *, + account_id: str, amount: float, - company_id: str, currency: Currencies, payment_method_id: str, request_options: typing.Optional[RequestOptions] = None, @@ -122,12 +122,12 @@ async def create( Parameters ---------- + account_id : str + The unique identifier of the company to add funds to, starting with 'biz_'. + amount : float The amount to add to the balance in the specified currency. For example, 50.00 for $50.00 USD. - company_id : str - The unique identifier of the company to add funds to, starting with 'biz_'. - currency : Currencies The currency for the top-up amount, such as 'usd'. @@ -149,7 +149,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -157,8 +157,8 @@ async def create( async def main() -> None: await client.topups.create( + account_id="biz_xxxxxxxxxxxxxx", amount=6.9, - company_id="biz_xxxxxxxxxxxxxx", currency="usd", payment_method_id="pmt_xxxxxxxxxxxxxx", ) @@ -167,8 +167,8 @@ async def main() -> None: asyncio.run(main()) """ _response = await self._raw_client.create( + account_id=account_id, amount=amount, - company_id=company_id, currency=currency, payment_method_id=payment_method_id, request_options=request_options, diff --git a/src/whop_sdk/topups/raw_client.py b/src/whop_sdk/topups/raw_client.py index e9b8fe3b..d9abfec9 100644 --- a/src/whop_sdk/topups/raw_client.py +++ b/src/whop_sdk/topups/raw_client.py @@ -31,8 +31,8 @@ def __init__(self, *, client_wrapper: SyncClientWrapper): def create( self, *, + account_id: str, amount: float, - company_id: str, currency: Currencies, payment_method_id: str, request_options: typing.Optional[RequestOptions] = None, @@ -45,12 +45,12 @@ def create( Parameters ---------- + account_id : str + The unique identifier of the company to add funds to, starting with 'biz_'. + amount : float The amount to add to the balance in the specified currency. For example, 50.00 for $50.00 USD. - company_id : str - The unique identifier of the company to add funds to, starting with 'biz_'. - currency : Currencies The currency for the top-up amount, such as 'usd'. @@ -69,8 +69,8 @@ def create( "topups", method="POST", json={ + "account_id": account_id, "amount": amount, - "company_id": company_id, "currency": currency, "payment_method_id": payment_method_id, }, @@ -184,8 +184,8 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper): async def create( self, *, + account_id: str, amount: float, - company_id: str, currency: Currencies, payment_method_id: str, request_options: typing.Optional[RequestOptions] = None, @@ -198,12 +198,12 @@ async def create( Parameters ---------- + account_id : str + The unique identifier of the company to add funds to, starting with 'biz_'. + amount : float The amount to add to the balance in the specified currency. For example, 50.00 for $50.00 USD. - company_id : str - The unique identifier of the company to add funds to, starting with 'biz_'. - currency : Currencies The currency for the top-up amount, such as 'usd'. @@ -222,8 +222,8 @@ async def create( "topups", method="POST", json={ + "account_id": account_id, "amount": amount, - "company_id": company_id, "currency": currency, "payment_method_id": payment_method_id, }, diff --git a/src/whop_sdk/transfers/client.py b/src/whop_sdk/transfers/client.py index 3ac3b485..c37dc292 100644 --- a/src/whop_sdk/transfers/client.py +++ b/src/whop_sdk/transfers/client.py @@ -99,7 +99,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -187,7 +187,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -250,7 +250,7 @@ def list_recipients( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -291,7 +291,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -383,7 +383,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -480,7 +480,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -551,7 +551,7 @@ async def list_recipients( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -601,7 +601,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/types/account_recommended_action_chain_step.py b/src/whop_sdk/types/account_recommended_action_chain_step.py index fc0f142c..fd4f1ce5 100644 --- a/src/whop_sdk/types/account_recommended_action_chain_step.py +++ b/src/whop_sdk/types/account_recommended_action_chain_step.py @@ -36,7 +36,7 @@ class AccountRecommendedActionChainStep(UniversalBaseModel): execution_type: AccountRecommendedActionChainStepExecutionType = pydantic.Field() """ - Whether the client should navigate to the CTA or open the programmatic execution dialog + Whether the client should navigate to the CTA, open the programmatic execution dialog, or run the CTA as a Whop AI prompt """ input: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None) diff --git a/src/whop_sdk/types/account_recommended_action_chain_step_execution_type.py b/src/whop_sdk/types/account_recommended_action_chain_step_execution_type.py index 6547ca37..f1bde2b1 100644 --- a/src/whop_sdk/types/account_recommended_action_chain_step_execution_type.py +++ b/src/whop_sdk/types/account_recommended_action_chain_step_execution_type.py @@ -2,4 +2,6 @@ import typing -AccountRecommendedActionChainStepExecutionType = typing.Union[typing.Literal["redirect", "programatic"], typing.Any] +AccountRecommendedActionChainStepExecutionType = typing.Union[ + typing.Literal["redirect", "programatic", "whop_ai"], typing.Any +] diff --git a/src/whop_sdk/types/api_key_api_version_date.py b/src/whop_sdk/types/api_key_api_version_date.py index f489c990..e983b007 100644 --- a/src/whop_sdk/types/api_key_api_version_date.py +++ b/src/whop_sdk/types/api_key_api_version_date.py @@ -36,6 +36,7 @@ "2026-08-31", "2026-09-02", "2026-09-02-1", + "2026-09-02-2", ], typing.Any, ] diff --git a/src/whop_sdk/types/ledger_activity_source.py b/src/whop_sdk/types/ledger_activity_source.py index a83c65cd..9b7b3a7b 100644 --- a/src/whop_sdk/types/ledger_activity_source.py +++ b/src/whop_sdk/types/ledger_activity_source.py @@ -55,6 +55,11 @@ class LedgerActivitySource(UniversalBaseModel): """ id: str + notes: typing.Optional[str] = pydantic.Field(default=None) + """ + Memo attached to the transfer source, or null when none was provided. + """ + object: str payer_name: typing.Optional[str] = pydantic.Field(default=None) """ diff --git a/src/whop_sdk/users/client.py b/src/whop_sdk/users/client.py index 085e53ae..99d3d0e6 100644 --- a/src/whop_sdk/users/client.py +++ b/src/whop_sdk/users/client.py @@ -89,7 +89,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -151,7 +151,7 @@ def me( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -210,7 +210,7 @@ def update_me( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -278,7 +278,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -344,7 +344,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -391,7 +391,7 @@ def check_access( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -427,7 +427,7 @@ def recommend_actions( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -527,7 +527,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -598,7 +598,7 @@ async def me( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -665,7 +665,7 @@ async def update_me( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -741,7 +741,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -815,7 +815,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -870,7 +870,7 @@ async def check_access( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -914,7 +914,7 @@ async def recommend_actions( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/users/oauth_grants/client.py b/src/whop_sdk/users/oauth_grants/client.py index 505be7c9..44db62e9 100644 --- a/src/whop_sdk/users/oauth_grants/client.py +++ b/src/whop_sdk/users/oauth_grants/client.py @@ -83,7 +83,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -168,7 +168,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -264,7 +264,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -358,7 +358,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/users/passkeys/client.py b/src/whop_sdk/users/passkeys/client.py index 6a8aa823..8e0e1e48 100644 --- a/src/whop_sdk/users/passkeys/client.py +++ b/src/whop_sdk/users/passkeys/client.py @@ -80,7 +80,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -140,7 +140,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -191,7 +191,7 @@ def challenge( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -243,7 +243,7 @@ def delete( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -328,7 +328,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -397,7 +397,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -456,7 +456,7 @@ async def challenge( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -516,7 +516,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/users/preferences/client.py b/src/whop_sdk/users/preferences/client.py index c0ef1863..eeb5f167 100644 --- a/src/whop_sdk/users/preferences/client.py +++ b/src/whop_sdk/users/preferences/client.py @@ -51,7 +51,7 @@ def retrieve(self, *, request_options: typing.Optional[RequestOptions] = None) - from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -95,7 +95,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -156,7 +156,7 @@ async def retrieve(self, *, request_options: typing.Optional[RequestOptions] = N from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -208,7 +208,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/users/preferences/notifications/client.py b/src/whop_sdk/users/preferences/notifications/client.py index 5580509e..9843d42b 100644 --- a/src/whop_sdk/users/preferences/notifications/client.py +++ b/src/whop_sdk/users/preferences/notifications/client.py @@ -72,7 +72,7 @@ def set( ) client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -161,7 +161,7 @@ async def set( ) client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/users/preferences/notifications/experiences/client.py b/src/whop_sdk/users/preferences/notifications/experiences/client.py index 252836bd..baa02122 100644 --- a/src/whop_sdk/users/preferences/notifications/experiences/client.py +++ b/src/whop_sdk/users/preferences/notifications/experiences/client.py @@ -56,7 +56,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -118,7 +118,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/users/preferences/notifications/topics/client.py b/src/whop_sdk/users/preferences/notifications/topics/client.py index 2bbf9db2..60e2a4eb 100644 --- a/src/whop_sdk/users/preferences/notifications/topics/client.py +++ b/src/whop_sdk/users/preferences/notifications/topics/client.py @@ -77,7 +77,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -168,7 +168,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/verifications/client.py b/src/whop_sdk/verifications/client.py index 3477a3ff..d8fdb804 100644 --- a/src/whop_sdk/verifications/client.py +++ b/src/whop_sdk/verifications/client.py @@ -68,7 +68,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -112,7 +112,7 @@ def create( from whop_sdk.verifications import CreateVerificationsRequestBody_Individual client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -148,7 +148,7 @@ def retrieve( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -190,7 +190,7 @@ def update( from whop_sdk.verifications import UpdateVerificationsRequestBodyPersonalAddress client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -255,7 +255,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -307,7 +307,7 @@ async def create( from whop_sdk.verifications import CreateVerificationsRequestBody_Individual client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -353,7 +353,7 @@ async def retrieve( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -403,7 +403,7 @@ async def update( from whop_sdk.verifications import UpdateVerificationsRequestBodyPersonalAddress client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) diff --git a/src/whop_sdk/webhooks/client.py b/src/whop_sdk/webhooks/client.py index cacf7856..b549ffea 100644 --- a/src/whop_sdk/webhooks/client.py +++ b/src/whop_sdk/webhooks/client.py @@ -94,7 +94,7 @@ def list( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -166,7 +166,7 @@ def create( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -207,7 +207,7 @@ def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -240,7 +240,7 @@ def delete(self, id: str, *, request_options: typing.Optional[RequestOptions] = from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -298,7 +298,7 @@ def update( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -352,7 +352,7 @@ def list_deliveries( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -402,7 +402,7 @@ def replay_delivery( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -463,7 +463,7 @@ def replay( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -510,7 +510,7 @@ def test( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -568,7 +568,7 @@ def deliveries_webhook( from whop_sdk import Whop client = Whop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -660,7 +660,7 @@ async def list( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -741,7 +741,7 @@ async def create( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -790,7 +790,7 @@ async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOpt from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -833,7 +833,7 @@ async def delete( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -899,7 +899,7 @@ async def update( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -961,7 +961,7 @@ async def list_deliveries( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1020,7 +1020,7 @@ async def replay_delivery( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1089,7 +1089,7 @@ async def replay( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1144,7 +1144,7 @@ async def test( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) @@ -1210,7 +1210,7 @@ async def deliveries_webhook( from whop_sdk import AsyncWhop client = AsyncWhop( - "2026-09-02-1", + "2026-09-02-2", idempotency_key="YOUR_IDEMPOTENCY_KEY", token="YOUR_TOKEN", ) From e1a6e981bbe119f8487f3387bbcede4b82caff8b Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 3 Sep 2026 03:47:49 +0000 Subject: [PATCH 2/2] [fern-replay] advance lockfile --- .fern/replay.lock | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index 39f2b143..f9c5005f 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -72,5 +72,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.28.0 -current_generation: 5a567a61f97abbb16fd99612a194065241d403a3 + - commit_sha: 67bc3951bdf257848af3356e9b20c84841fa36a3 + tree_hash: c2ab4169cddac8d2cb157dcb6694a9ddf7cf5606 + timestamp: 2026-09-03T03:47:45.469Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.28.0 +current_generation: 67bc3951bdf257848af3356e9b20c84841fa36a3 patches: []