whop_sdk 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +253 -1
- data/lib/whop_sdk/accounts/client.rb +66 -1
- data/lib/whop_sdk/accounts/types/list_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request.rb +23 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request_direction.rb +14 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request_order.rb +13 -0
- data/lib/whop_sdk/accounts/types/search_accounts_response.rb +13 -0
- data/lib/whop_sdk/accounts/types/search_accounts_response_page_info.rb +17 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request.rb +2 -0
- data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +4 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +4 -0
- data/lib/whop_sdk/client.rb +1 -6
- data/lib/whop_sdk/deposits/client.rb +3 -1
- data/lib/whop_sdk/deposits/types/create_deposits_request.rb +2 -0
- data/lib/whop_sdk/deposits/types/create_deposits_response_methods.rb +2 -0
- data/lib/whop_sdk/deposits/types/create_deposits_response_methods_card.rb +14 -0
- data/lib/whop_sdk/disputes/client.rb +39 -0
- data/lib/whop_sdk/disputes/types/accept_disputes_request.rb +11 -0
- data/lib/whop_sdk/external_accounts/types/connect_external_accounts_request_platform.rb +1 -0
- data/lib/whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item.rb +2 -0
- data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_request_line_types_item.rb +2 -0
- data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_response_rows_item_line_category.rb +2 -0
- data/lib/whop_sdk/identity_profiles/client.rb +3 -0
- data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
- data/lib/whop_sdk/partners/businesses/client.rb +57 -10
- data/lib/whop_sdk/partners/businesses/earnings/client.rb +2 -1
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +1 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_request.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response.rb +45 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_account.rb +26 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner.rb +20 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_earnings_usd.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_my_partner_tier.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_object.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_payout_percentages.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_pending_owner_invites_item.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_status.rb +16 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_volume_usd.rb +19 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response_pending_owner_invites_item.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +2 -2
- data/lib/whop_sdk/partners/client.rb +38 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response.rb +13 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_object.rb +13 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item.rb +19 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee.rb +18 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee_regions_item.rb +15 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_income_stream.rb +20 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_unadjustable_reason.rb +16 -0
- data/lib/whop_sdk/payment_method_domains/client.rb +11 -5
- data/lib/whop_sdk/payments/types/refund_payments_request.rb +2 -0
- data/lib/whop_sdk/payouts/client.rb +7 -5
- data/lib/whop_sdk/payouts/types/cancel_payouts_response.rb +2 -0
- data/lib/whop_sdk/payouts/types/create_payouts_response.rb +2 -0
- data/lib/whop_sdk/payouts/types/list_payouts_response_data_item.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_created_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_updated_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/retrieve_payouts_response.rb +2 -0
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_request.rb +2 -0
- data/lib/whop_sdk/social_accounts/types/connect_social_accounts_request_platform.rb +1 -0
- data/lib/whop_sdk/stats/client.rb +2 -0
- data/lib/whop_sdk/stats/reports/client.rb +4 -2
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request.rb +2 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request_breakdown_by.rb +1 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item.rb +2 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item_product_category.rb +15 -0
- data/lib/whop_sdk/stats/time_series/client.rb +2 -0
- data/lib/whop_sdk/stats/time_series/types/retrieve_time_series_request.rb +2 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_request.rb +2 -0
- data/lib/whop_sdk/support_channels/client.rb +2 -0
- data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +2 -0
- data/lib/whop_sdk/team_members/client.rb +10 -1
- data/lib/whop_sdk/team_members/types/list_team_members_request.rb +8 -0
- data/lib/whop_sdk/transfers/client.rb +2 -2
- data/lib/whop_sdk/transfers/types/create_transfers_request_body_balance.rb +2 -2
- data/lib/whop_sdk/types/account.rb +6 -2
- data/lib/whop_sdk/types/account_required_action_action.rb +1 -0
- data/lib/whop_sdk/types/account_search_result.rb +15 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +4 -0
- data/lib/whop_sdk/types/dispute.rb +2 -0
- data/lib/whop_sdk/types/ledger_activity_line_type.rb +2 -0
- data/lib/whop_sdk/types/partner_advance.rb +4 -4
- data/lib/whop_sdk/types/partner_advance_status.rb +1 -0
- data/lib/whop_sdk/types/payment_method_list_item_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/payment_method_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/permission_action.rb +2 -0
- data/lib/whop_sdk/types/refund.rb +2 -0
- data/lib/whop_sdk/types/refund_legacy.rb +2 -0
- data/lib/whop_sdk/types/refund_list_item.rb +2 -0
- data/lib/whop_sdk/types/team_member.rb +4 -0
- data/lib/whop_sdk/types/user_fees.rb +17 -0
- data/lib/whop_sdk/types/webhook_event.rb +3 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +3 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +3 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +3 -0
- data/lib/whop_sdk/users/client.rb +5 -0
- data/lib/whop_sdk/users/fees/client.rb +59 -0
- data/lib/whop_sdk/users/fees/types/retrieve_fees_request.rb +13 -0
- data/lib/whop_sdk/verifications/client.rb +12 -5
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +2 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item.rb +38 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_address.rb +22 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_document_type.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_documents.rb +30 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_individual_document_type.rb +4 -4
- data/lib/whop_sdk/verifications/types/create_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +2 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address.rb +10 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_documents.rb +18 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item.rb +43 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_address.rb +22 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_document_type.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_documents.rb +30 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +3 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +3 -0
- data/lib/whop_sdk.rb +69 -3
- data/reference.md +500 -130
- metadata +71 -5
- data/lib/whop_sdk/topups/client.rb +0 -64
- data/lib/whop_sdk/topups/types/create_topups_request.rb +0 -17
- data/lib/whop_sdk/types/topup.rb +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 339cd510d10808b3e09c9b93eed4a31019ca700df3d31697e033848cbc87ca1d
|
|
4
|
+
data.tar.gz: eb9bec2156a34327cb6120668c0579ecf7b0ecedb9cb0782e8765c756797ce31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 062b190fda2a99e82425e69409173ab95f930e1b6bf616026c664ac087e2c16d1d1b8a6358f6b503384be610f80ab61d313eb1a61c74204152f1a838594910be
|
|
7
|
+
data.tar.gz: a8cfbbc11d70a5e94a1ae37c1d8d446d8f05b9d5a09569c22c117d12771e1b9d2241d5eb39b143fe26706de779054a892126aa8a29be59fdb3b4c63ef7dd429f
|
data/.fern/metadata.json
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"standardwebhooks": ">= 1.0"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"originGitCommit": "
|
|
16
|
+
"originGitCommit": "d902c70ed110b68d36e3b3bc731486152b0618cd",
|
|
17
17
|
"originGitCommitIsDirty": false,
|
|
18
18
|
"invokedBy": "ci",
|
|
19
|
-
"requestedVersion": "2.
|
|
19
|
+
"requestedVersion": "2.6.0",
|
|
20
20
|
"ciProvider": "unknown",
|
|
21
|
-
"sdkVersion": "2.
|
|
21
|
+
"sdkVersion": "2.6.0"
|
|
22
22
|
}
|
data/.fern/replay.lock
CHANGED
|
@@ -2598,5 +2598,257 @@ generations:
|
|
|
2598
2598
|
cli_version: unknown
|
|
2599
2599
|
generator_versions:
|
|
2600
2600
|
fernapi/fern-ruby-sdk: 1.28.3
|
|
2601
|
-
|
|
2601
|
+
- commit_sha: 2a2da4c148936b49bb5b33ce0087003b6d9c90dc
|
|
2602
|
+
tree_hash: bf0d2901e761ffaefccf8da5fc485073da2eabc6
|
|
2603
|
+
timestamp: 2026-10-14T18:37:27.708Z
|
|
2604
|
+
cli_version: unknown
|
|
2605
|
+
generator_versions:
|
|
2606
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2607
|
+
- commit_sha: e635124601b2cf97cbd7c9e2317f092bb5c2b5a2
|
|
2608
|
+
tree_hash: bc78d350cdd22559cd18d4d80c2fff7081409fa6
|
|
2609
|
+
timestamp: 2026-10-14T20:08:40.973Z
|
|
2610
|
+
cli_version: unknown
|
|
2611
|
+
generator_versions:
|
|
2612
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2613
|
+
- commit_sha: 43daac5099a61a2d1ece7bd5fcde66baf5fe5e6f
|
|
2614
|
+
tree_hash: 85909e85ba8ebce064f1331f5d0804e40bafe8b7
|
|
2615
|
+
timestamp: 2026-10-14T20:21:52.778Z
|
|
2616
|
+
cli_version: unknown
|
|
2617
|
+
generator_versions:
|
|
2618
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2619
|
+
- commit_sha: 31ef600b29a34c38f15ac93b36ecfd1ded6b6b76
|
|
2620
|
+
tree_hash: a6f0bf84cb4a08071533e36efcdc0119c8199213
|
|
2621
|
+
timestamp: 2026-10-14T20:33:43.955Z
|
|
2622
|
+
cli_version: unknown
|
|
2623
|
+
generator_versions:
|
|
2624
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2625
|
+
- commit_sha: 830d6e4f7bf268ca2e5416fdb4ba8caa5b5825eb
|
|
2626
|
+
tree_hash: 0c8150120fbdc7eb6531f5d0dfe115eafeb3283a
|
|
2627
|
+
timestamp: 2026-10-14T20:54:30.218Z
|
|
2628
|
+
cli_version: unknown
|
|
2629
|
+
generator_versions:
|
|
2630
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2631
|
+
- commit_sha: 09e74bd8540cc9d06c649d327b262d2f66f8185a
|
|
2632
|
+
tree_hash: ff83d55355311e5cd26bc98b6e449c2c8f8f6039
|
|
2633
|
+
timestamp: 2026-10-14T21:07:17.277Z
|
|
2634
|
+
cli_version: unknown
|
|
2635
|
+
generator_versions:
|
|
2636
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2637
|
+
- commit_sha: 9095bcd5c680c9cc21a652cdbce4787801b71ece
|
|
2638
|
+
tree_hash: 3db9b20fbbeacd5cce59e423bcb562dbb4b63604
|
|
2639
|
+
timestamp: 2026-10-14T21:27:43.426Z
|
|
2640
|
+
cli_version: unknown
|
|
2641
|
+
generator_versions:
|
|
2642
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2643
|
+
- commit_sha: bcea29fa9cf919fa13ff1a2f566b8825e98ae6b5
|
|
2644
|
+
tree_hash: 9b89b9c3afa46c07f2d1e113325cbdebedb7ab39
|
|
2645
|
+
timestamp: 2026-10-14T21:44:10.308Z
|
|
2646
|
+
cli_version: unknown
|
|
2647
|
+
generator_versions:
|
|
2648
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2649
|
+
- commit_sha: bc9ba2588869e56ca29d0eadf788bee8c1a0d1e4
|
|
2650
|
+
tree_hash: c2ca64755243c8d17f53c87c1cf956d1eca022f3
|
|
2651
|
+
timestamp: 2026-10-14T22:42:10.619Z
|
|
2652
|
+
cli_version: unknown
|
|
2653
|
+
generator_versions:
|
|
2654
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2655
|
+
- commit_sha: ee995db54d390b62906b6855b2d82d892379cedc
|
|
2656
|
+
tree_hash: 69a4f31aa5658fe8d0c200050858424c1626e9df
|
|
2657
|
+
timestamp: 2026-10-14T22:57:14.943Z
|
|
2658
|
+
cli_version: unknown
|
|
2659
|
+
generator_versions:
|
|
2660
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2661
|
+
- commit_sha: 8bcebc814d494207f8f8cfc0ee699751134683dd
|
|
2662
|
+
tree_hash: f9e4cb6fc2e395ed4ddd1d07524f6dbcfde54094
|
|
2663
|
+
timestamp: 2026-10-14T23:08:29.477Z
|
|
2664
|
+
cli_version: unknown
|
|
2665
|
+
generator_versions:
|
|
2666
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2667
|
+
- commit_sha: e438db41bbb17527a1b5149dc720905684279650
|
|
2668
|
+
tree_hash: 6843b31e86f2de4bdb30b9b14e4b63ca48861126
|
|
2669
|
+
timestamp: 2026-10-14T23:20:34.926Z
|
|
2670
|
+
cli_version: unknown
|
|
2671
|
+
generator_versions:
|
|
2672
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2673
|
+
- commit_sha: 9360a1879fc8dc6d208597d89dc22000d4962711
|
|
2674
|
+
tree_hash: 3e674cb85e34824d8e56b459638194b43cf37a1f
|
|
2675
|
+
timestamp: 2026-10-14T23:31:31.068Z
|
|
2676
|
+
cli_version: unknown
|
|
2677
|
+
generator_versions:
|
|
2678
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2679
|
+
- commit_sha: 3769603f49d3c41292467d82d65f7c1b096b0e34
|
|
2680
|
+
tree_hash: 0ef41ccaa800e36738a3731f3e4322551afba1e1
|
|
2681
|
+
timestamp: 2026-10-15T00:24:40.897Z
|
|
2682
|
+
cli_version: unknown
|
|
2683
|
+
generator_versions:
|
|
2684
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2685
|
+
- commit_sha: 06cc384cfc6447051030e7ec43541a04f0a34fb4
|
|
2686
|
+
tree_hash: 9265080e36c7e0ebd543eff9bac0fd1ea9600071
|
|
2687
|
+
timestamp: 2026-10-15T00:48:55.826Z
|
|
2688
|
+
cli_version: unknown
|
|
2689
|
+
generator_versions:
|
|
2690
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2691
|
+
- commit_sha: 785545a57c592a366055a476d760c7c512dde9b4
|
|
2692
|
+
tree_hash: 2b466102c756d2ef628bc20fe0b6aeb52bf4711d
|
|
2693
|
+
timestamp: 2026-10-15T01:11:05.464Z
|
|
2694
|
+
cli_version: unknown
|
|
2695
|
+
generator_versions:
|
|
2696
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2697
|
+
- commit_sha: 6bf55a5cd8b848009ee0d8331b6ac937209eae3a
|
|
2698
|
+
tree_hash: 36c1db98b23f7886fcab21e03cff0aadebfa3149
|
|
2699
|
+
timestamp: 2026-10-15T01:40:10.287Z
|
|
2700
|
+
cli_version: unknown
|
|
2701
|
+
generator_versions:
|
|
2702
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2703
|
+
- commit_sha: ccf6d52a204a19a8e5900587d1ce8a51acb7db65
|
|
2704
|
+
tree_hash: 8c1119d02858f441fae888a6f1328532d7ccf056
|
|
2705
|
+
timestamp: 2026-10-15T01:51:20.731Z
|
|
2706
|
+
cli_version: unknown
|
|
2707
|
+
generator_versions:
|
|
2708
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2709
|
+
- commit_sha: 286b333f186f45cdfc1dd495484e2cab014b32c3
|
|
2710
|
+
tree_hash: d598de9e2c88b8a02fc7cb20abd9741e041842ad
|
|
2711
|
+
timestamp: 2026-10-15T02:02:32.717Z
|
|
2712
|
+
cli_version: unknown
|
|
2713
|
+
generator_versions:
|
|
2714
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2715
|
+
- commit_sha: c143bd7a50fd139158d5c279cfe2f907555b6f62
|
|
2716
|
+
tree_hash: 5fd82cb0e9bf20c8e9278d60fbb940ed0339862c
|
|
2717
|
+
timestamp: 2026-10-15T02:49:25.635Z
|
|
2718
|
+
cli_version: unknown
|
|
2719
|
+
generator_versions:
|
|
2720
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2721
|
+
- commit_sha: cd225ca48a699fd8f40a5e6261e05acc351e71e0
|
|
2722
|
+
tree_hash: c2774c218a22c0d44be08132d666ce4fe0b65576
|
|
2723
|
+
timestamp: 2026-10-15T03:00:30.066Z
|
|
2724
|
+
cli_version: unknown
|
|
2725
|
+
generator_versions:
|
|
2726
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2727
|
+
- commit_sha: 1603c3ef6f44308b16cee34b379f9d18fa8331b1
|
|
2728
|
+
tree_hash: 989cc1d35b6c3f6bfd15a78cb2a6c4631908c249
|
|
2729
|
+
timestamp: 2026-10-15T03:12:13.258Z
|
|
2730
|
+
cli_version: unknown
|
|
2731
|
+
generator_versions:
|
|
2732
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2733
|
+
- commit_sha: bde57249348112ec50cd266fec4782394d88de20
|
|
2734
|
+
tree_hash: 31afe2fdf9aa82887cddb25f5d1e6b00d019dd3f
|
|
2735
|
+
timestamp: 2026-10-15T03:22:58.053Z
|
|
2736
|
+
cli_version: unknown
|
|
2737
|
+
generator_versions:
|
|
2738
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2739
|
+
- commit_sha: be579ca6f35b59139a87f166b12aaeb29563620c
|
|
2740
|
+
tree_hash: e46cba96147d452f32ff68d614d12fcf68da46ff
|
|
2741
|
+
timestamp: 2026-10-15T04:25:31.441Z
|
|
2742
|
+
cli_version: unknown
|
|
2743
|
+
generator_versions:
|
|
2744
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2745
|
+
- commit_sha: 3b54d2f68f87a902acce19e6103298820b3dfecc
|
|
2746
|
+
tree_hash: 134fd95c7317c229f05aa675465fd9ffa9c86250
|
|
2747
|
+
timestamp: 2026-10-15T05:49:59.875Z
|
|
2748
|
+
cli_version: unknown
|
|
2749
|
+
generator_versions:
|
|
2750
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2751
|
+
- commit_sha: aa3bdb1a29ecae4182e7df6f91f01a5d4b72858e
|
|
2752
|
+
tree_hash: 2415d0f54aafce516064c5ef53a6007bd961591d
|
|
2753
|
+
timestamp: 2026-10-15T06:38:28.601Z
|
|
2754
|
+
cli_version: unknown
|
|
2755
|
+
generator_versions:
|
|
2756
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2757
|
+
- commit_sha: 9a4a3b8498f0d1cd6fc0b1497564ffc37ba9f849
|
|
2758
|
+
tree_hash: 9210c143159d94ea9e59e5926a65729afc65ecb9
|
|
2759
|
+
timestamp: 2026-10-15T06:50:40.830Z
|
|
2760
|
+
cli_version: unknown
|
|
2761
|
+
generator_versions:
|
|
2762
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2763
|
+
- commit_sha: 10c86df6a2134e9d2754a1b7a8a00fcf8c7a899f
|
|
2764
|
+
tree_hash: 6d4e139c2e3a9271d8ac718188f47dad0aab1b80
|
|
2765
|
+
timestamp: 2026-10-15T07:52:16.121Z
|
|
2766
|
+
cli_version: unknown
|
|
2767
|
+
generator_versions:
|
|
2768
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2769
|
+
- commit_sha: 8859d0469057d3925339afac5a4a45fe135157ef
|
|
2770
|
+
tree_hash: 6b454d006a39ded2190009c05fbfccbac5b98ee2
|
|
2771
|
+
timestamp: 2026-10-15T09:47:44.691Z
|
|
2772
|
+
cli_version: unknown
|
|
2773
|
+
generator_versions:
|
|
2774
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2775
|
+
- commit_sha: c5f068f8bc2750f22a13ce2b2a00e0ccfd54ac4f
|
|
2776
|
+
tree_hash: f35198de4a38031d3ef6fa286d48a16996894585
|
|
2777
|
+
timestamp: 2026-10-15T17:13:21.868Z
|
|
2778
|
+
cli_version: unknown
|
|
2779
|
+
generator_versions:
|
|
2780
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2781
|
+
- commit_sha: 019ee02cca6821f53221d89108074b87d86b0ff8
|
|
2782
|
+
tree_hash: 6ace32ee27e3359c321e0b40a24b30b3ccf7ef3f
|
|
2783
|
+
timestamp: 2026-10-15T18:22:57.787Z
|
|
2784
|
+
cli_version: unknown
|
|
2785
|
+
generator_versions:
|
|
2786
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2787
|
+
- commit_sha: eb0f6c29a3460764e5414b1a34a5627ed491d228
|
|
2788
|
+
tree_hash: e4b180e20df41f843e4c39e83b0b8482d8194ff5
|
|
2789
|
+
timestamp: 2026-10-15T18:50:53.426Z
|
|
2790
|
+
cli_version: unknown
|
|
2791
|
+
generator_versions:
|
|
2792
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2793
|
+
- commit_sha: fd6483dbcfb208f4fad3e5f1060cf5b93c571e83
|
|
2794
|
+
tree_hash: 94fae0ac6a628c40acda3e43ac71549cf1738752
|
|
2795
|
+
timestamp: 2026-10-15T21:53:06.487Z
|
|
2796
|
+
cli_version: unknown
|
|
2797
|
+
generator_versions:
|
|
2798
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2799
|
+
- commit_sha: 5b8ca80260abf427fb328d754fb1e6b2518d4449
|
|
2800
|
+
tree_hash: 66e54d1315189de440b08f72d796b527e2aa61a0
|
|
2801
|
+
timestamp: 2026-10-15T23:14:10.025Z
|
|
2802
|
+
cli_version: unknown
|
|
2803
|
+
generator_versions:
|
|
2804
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2805
|
+
- commit_sha: df4b4c2cced7d0a7d512c82d05fba11b3990d769
|
|
2806
|
+
tree_hash: 3dacec4e6ff3540b5d51eb8b6d0baf6bfc3fe8f9
|
|
2807
|
+
timestamp: 2026-10-15T23:27:58.586Z
|
|
2808
|
+
cli_version: unknown
|
|
2809
|
+
generator_versions:
|
|
2810
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2811
|
+
- commit_sha: 18a43219a3df98ef6536854c38504a7a4badfc99
|
|
2812
|
+
tree_hash: ba7e9111f9d310b847b7cb2441201d28788bc1ae
|
|
2813
|
+
timestamp: 2026-10-15T23:48:36.545Z
|
|
2814
|
+
cli_version: unknown
|
|
2815
|
+
generator_versions:
|
|
2816
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2817
|
+
- commit_sha: 3d033480f1e785b51b897e8fc14750842d3ac179
|
|
2818
|
+
tree_hash: 6d42455288d141399fc5bc93146dc38d444c85d1
|
|
2819
|
+
timestamp: 2026-10-16T00:05:57.728Z
|
|
2820
|
+
cli_version: unknown
|
|
2821
|
+
generator_versions:
|
|
2822
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2823
|
+
- commit_sha: 2dd81b010da2004f6e7bf64b26aaa8b4e4332b3b
|
|
2824
|
+
tree_hash: a30773c501f6a2ca2dfc0381cc534a075f2f79ca
|
|
2825
|
+
timestamp: 2026-10-16T00:18:02.598Z
|
|
2826
|
+
cli_version: unknown
|
|
2827
|
+
generator_versions:
|
|
2828
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2829
|
+
- commit_sha: d621b4f2ca13eb3e3215076f0d95abe6df34505a
|
|
2830
|
+
tree_hash: 5ff11359265c540aea341adeb278272458c4ee77
|
|
2831
|
+
timestamp: 2026-10-16T00:58:36.342Z
|
|
2832
|
+
cli_version: unknown
|
|
2833
|
+
generator_versions:
|
|
2834
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2835
|
+
- commit_sha: 8fb1655866befd274d3aa6a71807d0a80bd21a98
|
|
2836
|
+
tree_hash: 0e7b5eddef4061a84cf0aea2894e01c3b1f2778d
|
|
2837
|
+
timestamp: 2026-10-16T01:20:04.322Z
|
|
2838
|
+
cli_version: unknown
|
|
2839
|
+
generator_versions:
|
|
2840
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2841
|
+
- commit_sha: f4ddd58a5546727ac51f4c0fed83ca6053f386d7
|
|
2842
|
+
tree_hash: cc35cd4af64adb1ebeaa77878c052276d7f8ee04
|
|
2843
|
+
timestamp: 2026-10-16T14:50:36.507Z
|
|
2844
|
+
cli_version: unknown
|
|
2845
|
+
generator_versions:
|
|
2846
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2847
|
+
- commit_sha: 9c9fb29d43439584f23e3baf734c578a5b68ee5a
|
|
2848
|
+
tree_hash: f90801cb94d640dd3d9fff31e0c574bf788acbb9
|
|
2849
|
+
timestamp: 2026-10-16T18:16:05.827Z
|
|
2850
|
+
cli_version: unknown
|
|
2851
|
+
generator_versions:
|
|
2852
|
+
fernapi/fern-ruby-sdk: 1.28.3
|
|
2853
|
+
current_generation: 9c9fb29d43439584f23e3baf734c578a5b68ee5a
|
|
2602
2854
|
patches: []
|
|
@@ -37,6 +37,7 @@ module Whop_sdk
|
|
|
37
37
|
# @option params [Integer, nil] :volume_min
|
|
38
38
|
# @option params [Integer, nil] :volume_max
|
|
39
39
|
# @option params [String, nil] :parent_account_id
|
|
40
|
+
# @option params [String, nil] :owner_id
|
|
40
41
|
#
|
|
41
42
|
# @example
|
|
42
43
|
# client.accounts.list
|
|
@@ -58,6 +59,7 @@ module Whop_sdk
|
|
|
58
59
|
query_params["volume_min"] = params[:volume_min] if params.key?(:volume_min)
|
|
59
60
|
query_params["volume_max"] = params[:volume_max] if params.key?(:volume_max)
|
|
60
61
|
query_params["parent_account_id"] = params[:parent_account_id] if params.key?(:parent_account_id)
|
|
62
|
+
query_params["owner_id"] = params[:owner_id] if params.key?(:owner_id)
|
|
61
63
|
|
|
62
64
|
Whop_sdk::Internal::CursorItemIterator.new(
|
|
63
65
|
cursor_field: :end_cursor,
|
|
@@ -168,6 +170,68 @@ module Whop_sdk
|
|
|
168
170
|
end
|
|
169
171
|
end
|
|
170
172
|
|
|
173
|
+
# Finds accounts by name among the accounts the credential can list. Support searches cover every company and
|
|
174
|
+
# return only the 50 best matches.
|
|
175
|
+
#
|
|
176
|
+
# @param request_options [Hash]
|
|
177
|
+
# @param params [Hash]
|
|
178
|
+
# @option request_options [String] :base_url
|
|
179
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
180
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
181
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
182
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
183
|
+
# @option params [Integer, nil] :first
|
|
184
|
+
# @option params [String, nil] :after
|
|
185
|
+
# @option params [Integer, nil] :last
|
|
186
|
+
# @option params [String, nil] :before
|
|
187
|
+
# @option params [String] :query
|
|
188
|
+
# @option params [Whop_sdk::Accounts::Types::SearchAccountsRequestOrder, nil] :order
|
|
189
|
+
# @option params [Whop_sdk::Accounts::Types::SearchAccountsRequestDirection, nil] :direction
|
|
190
|
+
#
|
|
191
|
+
# @example
|
|
192
|
+
# client.accounts.search(query: "query")
|
|
193
|
+
#
|
|
194
|
+
# @return [Whop_sdk::Accounts::Types::SearchAccountsResponse]
|
|
195
|
+
def search(request_options: {}, **params)
|
|
196
|
+
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
197
|
+
query_params = {}
|
|
198
|
+
query_params["first"] = params[:first] if params.key?(:first)
|
|
199
|
+
query_params["after"] = params[:after] if params.key?(:after)
|
|
200
|
+
query_params["last"] = params[:last] if params.key?(:last)
|
|
201
|
+
query_params["before"] = params[:before] if params.key?(:before)
|
|
202
|
+
query_params["query"] = params[:query] if params.key?(:query)
|
|
203
|
+
query_params["order"] = params[:order] if params.key?(:order)
|
|
204
|
+
query_params["direction"] = params[:direction] if params.key?(:direction)
|
|
205
|
+
|
|
206
|
+
Whop_sdk::Internal::CursorItemIterator.new(
|
|
207
|
+
cursor_field: :end_cursor,
|
|
208
|
+
item_field: :data,
|
|
209
|
+
initial_cursor: query_params["after"]
|
|
210
|
+
) do |next_cursor|
|
|
211
|
+
query_params["after"] = next_cursor
|
|
212
|
+
request = Whop_sdk::Internal::JSON::Request.new(
|
|
213
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
214
|
+
method: "GET",
|
|
215
|
+
path: "accounts/search",
|
|
216
|
+
query: query_params,
|
|
217
|
+
request_options: request_options
|
|
218
|
+
)
|
|
219
|
+
begin
|
|
220
|
+
response = @client.send(request)
|
|
221
|
+
rescue Net::HTTPRequestTimeout
|
|
222
|
+
raise Whop_sdk::Errors::TimeoutError
|
|
223
|
+
end
|
|
224
|
+
code = response.code.to_i
|
|
225
|
+
if code.between?(200, 299)
|
|
226
|
+
parsed_response = (response.body.to_s.empty? ? nil : Whop_sdk::Accounts::Types::SearchAccountsResponse.load(response.body))
|
|
227
|
+
[parsed_response, response]
|
|
228
|
+
else
|
|
229
|
+
error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
|
|
230
|
+
raise error_class.new(response.body, code: code)
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
171
235
|
# Retrieves an account visible to the credential by ID or public route, including its crypto wallet.
|
|
172
236
|
#
|
|
173
237
|
# @param request_options [Hash]
|
|
@@ -459,7 +523,8 @@ module Whop_sdk
|
|
|
459
523
|
|
|
460
524
|
# Transfers ownership of the account to another user, identified by user ID or email address. If the recipient
|
|
461
525
|
# already holds the owner role, ownership moves immediately; otherwise they get an invite and ownership moves when
|
|
462
|
-
# they accept.
|
|
526
|
+
# they accept. The Whop CLI and MCP can hand off a business their user owns as a partner (`as_partner: true`) with
|
|
527
|
+
# the `partner:handoff` scope; other OAuth apps cannot transfer ownership.
|
|
463
528
|
#
|
|
464
529
|
# @param request_options [Hash]
|
|
465
530
|
# @param params [Whop_sdk::Accounts::Types::TransferOwnershipAccountsRequest]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
class SearchAccountsRequest < Internal::Types::Model
|
|
7
|
+
field :first, -> { Integer }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :after, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :last, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :before, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :query, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :order, -> { Whop_sdk::Accounts::Types::SearchAccountsRequestOrder }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :direction, -> { Whop_sdk::Accounts::Types::SearchAccountsRequestDirection }, optional: true, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
class SearchAccountsResponse < Internal::Types::Model
|
|
7
|
+
field :data, -> { Internal::Types::Array[Whop_sdk::Types::AccountSearchResult] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :page_info, -> { Whop_sdk::Accounts::Types::SearchAccountsResponsePageInfo }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
class SearchAccountsResponsePageInfo < Internal::Types::Model
|
|
7
|
+
field :end_cursor, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :has_next_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :has_previous_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :start_cursor, -> { String }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -94,6 +94,8 @@ module Whop_sdk
|
|
|
94
94
|
|
|
95
95
|
field :website, -> { String }, optional: true, nullable: false
|
|
96
96
|
|
|
97
|
+
field :whop_partner_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
98
|
+
|
|
97
99
|
field :industry_type, -> { Object }, optional: true, nullable: false
|
|
98
100
|
end
|
|
99
101
|
end
|
|
@@ -72,6 +72,10 @@ module Whop_sdk
|
|
|
72
72
|
TWO_THOUSAND_TWENTY_SIX10092 = "2026-10-09-2"
|
|
73
73
|
TWO_THOUSAND_TWENTY_SIX1013 = "2026-10-13"
|
|
74
74
|
TWO_THOUSAND_TWENTY_SIX10131 = "2026-10-13-1"
|
|
75
|
+
TWO_THOUSAND_TWENTY_SIX1014 = "2026-10-14"
|
|
76
|
+
TWO_THOUSAND_TWENTY_SIX10141 = "2026-10-14-1"
|
|
77
|
+
TWO_THOUSAND_TWENTY_SIX1015 = "2026-10-15"
|
|
78
|
+
TWO_THOUSAND_TWENTY_SIX10151 = "2026-10-15-1"
|
|
75
79
|
end
|
|
76
80
|
end
|
|
77
81
|
end
|
|
@@ -72,6 +72,10 @@ module Whop_sdk
|
|
|
72
72
|
TWO_THOUSAND_TWENTY_SIX10092 = "2026-10-09-2"
|
|
73
73
|
TWO_THOUSAND_TWENTY_SIX1013 = "2026-10-13"
|
|
74
74
|
TWO_THOUSAND_TWENTY_SIX10131 = "2026-10-13-1"
|
|
75
|
+
TWO_THOUSAND_TWENTY_SIX1014 = "2026-10-14"
|
|
76
|
+
TWO_THOUSAND_TWENTY_SIX10141 = "2026-10-14-1"
|
|
77
|
+
TWO_THOUSAND_TWENTY_SIX1015 = "2026-10-15"
|
|
78
|
+
TWO_THOUSAND_TWENTY_SIX10151 = "2026-10-15-1"
|
|
75
79
|
end
|
|
76
80
|
end
|
|
77
81
|
end
|
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Whop_sdk
|
|
|
10
10
|
# @param max_retries [Integer]
|
|
11
11
|
#
|
|
12
12
|
# @return [void]
|
|
13
|
-
def initialize(token:, base_url: nil, environment: Whop_sdk::Environment::PRODUCTION, api_version_date: "2026-10-
|
|
13
|
+
def initialize(token:, base_url: nil, environment: Whop_sdk::Environment::PRODUCTION, api_version_date: "2026-10-15-1", idempotency_key: nil, max_retries: 2)
|
|
14
14
|
@base_url = base_url
|
|
15
15
|
@environment = environment
|
|
16
16
|
|
|
@@ -458,11 +458,6 @@ module Whop_sdk
|
|
|
458
458
|
@team_members ||= Whop_sdk::TeamMembers::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
|
|
459
459
|
end
|
|
460
460
|
|
|
461
|
-
# @return [Whop_sdk::Topups::Client]
|
|
462
|
-
def topups
|
|
463
|
-
@topups ||= Whop_sdk::Topups::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
|
|
464
|
-
end
|
|
465
|
-
|
|
466
461
|
# @return [Whop_sdk::Trades::Client]
|
|
467
462
|
def trades
|
|
468
463
|
@trades ||= Whop_sdk::Trades::Client.new(client: @raw_client, base_url: @base_url, environment: @environment)
|
|
@@ -16,7 +16,9 @@ module Whop_sdk
|
|
|
16
16
|
|
|
17
17
|
# Returns the deposit methods for an account or user, including crypto addresses, bank transfer instructions, and,
|
|
18
18
|
# for a business, a hosted deposit page. Bitcoin deposits are converted to USDT on Plasma in the destination's
|
|
19
|
-
# wallet. Business destinations require no authentication.
|
|
19
|
+
# wallet. Business destinations require no authentication. Pass `payment_method_id` to also charge a business's
|
|
20
|
+
# saved payment method for `amount` in USD and add it to the business's balance; that requires authentication with
|
|
21
|
+
# the `payment:charge` scope. The charge has no fees or taxes and does not count as revenue.
|
|
20
22
|
#
|
|
21
23
|
# @param request_options [Hash]
|
|
22
24
|
# @param params [Whop_sdk::Deposits::Types::CreateDepositsRequest]
|
|
@@ -7,6 +7,8 @@ module Whop_sdk
|
|
|
7
7
|
class CreateDepositsResponseMethods < Internal::Types::Model
|
|
8
8
|
field :bank, -> { Whop_sdk::Deposits::Types::CreateDepositsResponseMethodsBank }, optional: false, nullable: true
|
|
9
9
|
|
|
10
|
+
field :card, -> { Whop_sdk::Deposits::Types::CreateDepositsResponseMethodsCard }, optional: false, nullable: true
|
|
11
|
+
|
|
10
12
|
field :crypto, -> { Internal::Types::Array[Whop_sdk::Deposits::Types::CreateDepositsResponseMethodsCryptoItem] }, optional: false, nullable: false
|
|
11
13
|
end
|
|
12
14
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Deposits
|
|
5
|
+
module Types
|
|
6
|
+
# The charge to a saved payment method. Null unless `payment_method_id` was passed.
|
|
7
|
+
class CreateDepositsResponseMethodsCard < Internal::Types::Model
|
|
8
|
+
field :payment_id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :payment_method_id, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -215,6 +215,45 @@ module Whop_sdk
|
|
|
215
215
|
end
|
|
216
216
|
end
|
|
217
217
|
|
|
218
|
+
# Accepts a chargeback, conceding it to the customer instead of contesting it. The payment processor closes the
|
|
219
|
+
# dispute as `lost`. This is final — the dispute cannot be contested afterwards. Only a dispute whose `acceptable`
|
|
220
|
+
# is true can be accepted.
|
|
221
|
+
#
|
|
222
|
+
# @param request_options [Hash]
|
|
223
|
+
# @param params [Hash]
|
|
224
|
+
# @option request_options [String] :base_url
|
|
225
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
226
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
227
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
228
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
229
|
+
# @option params [String] :id
|
|
230
|
+
#
|
|
231
|
+
# @example
|
|
232
|
+
# client.disputes.accept(id: "id")
|
|
233
|
+
#
|
|
234
|
+
# @return [Whop_sdk::Types::Dispute]
|
|
235
|
+
def accept(request_options: {}, **params)
|
|
236
|
+
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
237
|
+
request = Whop_sdk::Internal::JSON::Request.new(
|
|
238
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
239
|
+
method: "POST",
|
|
240
|
+
path: "disputes/#{URI.encode_uri_component(params[:id].to_s)}/accept",
|
|
241
|
+
request_options: request_options
|
|
242
|
+
)
|
|
243
|
+
begin
|
|
244
|
+
response = @client.send(request)
|
|
245
|
+
rescue Net::HTTPRequestTimeout
|
|
246
|
+
raise Whop_sdk::Errors::TimeoutError
|
|
247
|
+
end
|
|
248
|
+
code = response.code.to_i
|
|
249
|
+
if code.between?(200, 299)
|
|
250
|
+
(response.body.to_s.empty? ? nil : Whop_sdk::Types::Dispute.load(response.body))
|
|
251
|
+
else
|
|
252
|
+
error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
|
|
253
|
+
raise error_class.new(response.body, code: code)
|
|
254
|
+
end
|
|
255
|
+
end
|
|
256
|
+
|
|
218
257
|
# Sends a dispute's evidence to the payment processor. This is final — it cannot be edited or sent again.
|
|
219
258
|
#
|
|
220
259
|
# @param request_options [Hash]
|
data/lib/whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item.rb
CHANGED
|
@@ -76,6 +76,8 @@ module Whop_sdk
|
|
|
76
76
|
MISC_REVERSAL = "misc_reversal"
|
|
77
77
|
ONBOARDING_REWARD = "onboarding_reward"
|
|
78
78
|
ONCHAIN_DEPOSIT = "onchain_deposit"
|
|
79
|
+
ONCHAIN_INTERNAL_TRANSFER_INCOMING = "onchain_internal_transfer_incoming"
|
|
80
|
+
ONCHAIN_INTERNAL_TRANSFER_OUTGOING = "onchain_internal_transfer_outgoing"
|
|
79
81
|
ONCHAIN_SWAP_SOURCE = "onchain_swap_source"
|
|
80
82
|
ONCHAIN_SWAP_TARGET = "onchain_swap_target"
|
|
81
83
|
ONCHAIN_WALLET_TRANSFER_INCOMING = "onchain_wallet_transfer_incoming"
|
data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_request_line_types_item.rb
CHANGED
|
@@ -76,6 +76,8 @@ module Whop_sdk
|
|
|
76
76
|
MISC_REVERSAL = "misc_reversal"
|
|
77
77
|
ONBOARDING_REWARD = "onboarding_reward"
|
|
78
78
|
ONCHAIN_DEPOSIT = "onchain_deposit"
|
|
79
|
+
ONCHAIN_INTERNAL_TRANSFER_INCOMING = "onchain_internal_transfer_incoming"
|
|
80
|
+
ONCHAIN_INTERNAL_TRANSFER_OUTGOING = "onchain_internal_transfer_outgoing"
|
|
79
81
|
ONCHAIN_SWAP_SOURCE = "onchain_swap_source"
|
|
80
82
|
ONCHAIN_SWAP_TARGET = "onchain_swap_target"
|
|
81
83
|
ONCHAIN_WALLET_TRANSFER_INCOMING = "onchain_wallet_transfer_incoming"
|