whop_sdk 2.4.0 → 2.5.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 +313 -1
- data/lib/whop_sdk/access_tokens/client.rb +2 -3
- data/lib/whop_sdk/account_links/client.rb +2 -2
- data/lib/whop_sdk/accounts/client.rb +8 -19
- data/lib/whop_sdk/accounts/fees/client.rb +5 -6
- data/lib/whop_sdk/accounts/financing_applications/client.rb +18 -24
- data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request_answers_item_money.rb +1 -0
- data/lib/whop_sdk/accounts/preferences/client.rb +1 -0
- data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response.rb +2 -0
- data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response_feedback_options_item.rb +17 -0
- data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response_feedback_options_item_category.rb +21 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request.rb +2 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_feedback_options_item.rb +17 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_feedback_options_item_category.rb +21 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_response.rb +2 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_response_feedback_options_item.rb +17 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_response_feedback_options_item_category.rb +21 -0
- data/lib/whop_sdk/accounts/types/form_company_accounts_request.rb +0 -6
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload.rb +25 -0
- data/lib/whop_sdk/{partners/types/referred_users_partners_request_user_id.rb → accounts/types/post_account_financing_disabled_payload_api_version.rb} +3 -3
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_type.rb +13 -0
- data/lib/whop_sdk/accounts/types/transfer_ownership_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request.rb +2 -6
- data/lib/whop_sdk/ad_campaigns/client.rb +4 -4
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_payment_failed_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ad_conversion_value_rules/client.rb +11 -9
- data/lib/whop_sdk/ad_groups/client.rb +7 -11
- data/lib/whop_sdk/ads/client.rb +1 -2
- data/lib/whop_sdk/affiliates/client.rb +5 -5
- data/lib/whop_sdk/api_keys/client.rb +2 -2
- data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +2 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +2 -0
- data/lib/whop_sdk/app_builds/client.rb +2 -2
- data/lib/whop_sdk/app_builds/types/create_app_builds_request_attachment.rb +2 -1
- data/lib/whop_sdk/apps/client.rb +2 -4
- data/lib/whop_sdk/audiences/client.rb +5 -5
- data/lib/whop_sdk/authorized_users/client.rb +3 -4
- data/lib/whop_sdk/bounty_submissions/client.rb +7 -10
- data/lib/whop_sdk/bounty_submissions/types/submit_bounty_submissions_request_deliverable.rb +3 -1
- data/lib/whop_sdk/card_transactions/client.rb +5 -6
- data/lib/whop_sdk/cards/client.rb +4 -4
- data/lib/whop_sdk/cashback_rules/client.rb +16 -20
- data/lib/whop_sdk/chat_channels/client.rb +2 -2
- data/lib/whop_sdk/checkout_configurations/client.rb +2 -1
- data/lib/whop_sdk/claim_links/client.rb +8 -8
- data/lib/whop_sdk/client.rb +1 -1
- data/lib/whop_sdk/company_token_transactions/client.rb +3 -4
- data/lib/whop_sdk/confirmation_tokens/client.rb +3 -3
- data/lib/whop_sdk/course_lesson_interactions/client.rb +2 -1
- data/lib/whop_sdk/courses/client.rb +4 -2
- data/lib/whop_sdk/deposits/client.rb +3 -2
- data/lib/whop_sdk/disputes/client.rb +5 -12
- data/lib/whop_sdk/dm_channels/client.rb +5 -6
- data/lib/whop_sdk/domains/client.rb +4 -0
- data/lib/whop_sdk/domains/types/create_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/create_domains_request_apple_pay.rb +13 -0
- data/lib/whop_sdk/domains/types/create_domains_request_pixel.rb +12 -0
- data/lib/whop_sdk/domains/types/list_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/list_domains_request_apple_pay.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_order.rb +2 -0
- data/lib/whop_sdk/domains/types/list_domains_request_pixel.rb +17 -0
- data/lib/whop_sdk/domains/types/update_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/update_domains_request_apple_pay.rb +13 -0
- data/lib/whop_sdk/domains/types/update_domains_request_pixel.rb +12 -0
- data/lib/whop_sdk/economic_intelligence/client.rb +6 -8
- data/lib/whop_sdk/events/client.rb +12 -16
- data/lib/whop_sdk/experiences/client.rb +15 -9
- data/lib/whop_sdk/experiments/client.rb +16 -29
- data/lib/whop_sdk/exports/client.rb +1 -1
- data/lib/whop_sdk/external_accounts/client.rb +3 -5
- data/lib/whop_sdk/fee_markups/client.rb +5 -6
- data/lib/whop_sdk/feedback_submissions/client.rb +0 -1
- data/lib/whop_sdk/files/client.rb +2 -2
- data/lib/whop_sdk/financial_reports/breakdown/client.rb +3 -1
- data/lib/whop_sdk/forum_posts/client.rb +1 -1
- data/lib/whop_sdk/forums/client.rb +1 -1
- data/lib/whop_sdk/identity_profiles/client.rb +4 -4
- data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
- data/lib/whop_sdk/invoices/client.rb +1 -1
- data/lib/whop_sdk/leads/client.rb +3 -3
- data/lib/whop_sdk/members/client.rb +21 -1
- data/lib/whop_sdk/members/logs/client.rb +1 -1
- data/lib/whop_sdk/members/notes/client.rb +121 -0
- data/lib/whop_sdk/members/notes/types/create_notes_request.rb +15 -0
- data/lib/whop_sdk/members/notes/types/list_notes_request.rb +21 -0
- data/lib/whop_sdk/members/notes/types/list_notes_response.rb +15 -0
- data/lib/whop_sdk/members/notes/types/list_notes_response_page_info.rb +19 -0
- data/lib/whop_sdk/members/types/list_members_request.rb +10 -0
- data/lib/whop_sdk/members/types/list_members_request_membership_status.rb +14 -0
- data/lib/whop_sdk/members/types/list_members_request_most_recent_actions_item.rb +25 -0
- data/lib/whop_sdk/members/types/list_members_request_order.rb +1 -0
- data/lib/whop_sdk/memberships/client.rb +30 -28
- data/lib/whop_sdk/memberships/types/cancel_memberships_request.rb +2 -0
- data/lib/whop_sdk/memberships/types/list_memberships_request.rb +10 -0
- data/lib/whop_sdk/memberships/types/list_memberships_request_status.rb +4 -0
- data/lib/whop_sdk/memberships/types/list_memberships_request_statuses_item.rb +24 -0
- data/lib/whop_sdk/messages/client.rb +5 -7
- data/lib/whop_sdk/notifications/client.rb +6 -9
- data/lib/whop_sdk/partner_referral_requests/client.rb +3 -3
- data/lib/whop_sdk/partners/businesses/client.rb +99 -0
- data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_request_income_source_item.rb +1 -0
- data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_income_source.rb +1 -0
- data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request_acknowledgments_item.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_response.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_response.rb +15 -0
- data/lib/whop_sdk/partners/client.rb +6 -11
- data/lib/whop_sdk/partners/types/referred_users_partners_request.rb +0 -2
- data/lib/whop_sdk/payment_method_domains/client.rb +4 -5
- data/lib/whop_sdk/payment_methods/client.rb +4 -5
- data/lib/whop_sdk/payment_quotes/client.rb +8 -10
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request.rb +2 -2
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_line_items_item.rb +13 -0
- data/lib/whop_sdk/payment_rules/client.rb +19 -8
- data/lib/whop_sdk/payments/client.rb +26 -24
- data/lib/whop_sdk/payments/direct/client.rb +5 -6
- data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +2 -2
- data/lib/whop_sdk/payments/direct/types/create_direct_request_line_items_item.rb +15 -0
- data/lib/whop_sdk/payments/types/create_payments_request.rb +2 -2
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item.rb +13 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan.rb +46 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_currency.rb +102 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_override_tax_type.rb +15 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_plan_type.rb +14 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product.rb +34 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_global_affiliate_status.rb +14 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_visibility.rb +16 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_visibility.rb +16 -0
- data/lib/whop_sdk/payments/types/resume_payments_request.rb +2 -0
- data/lib/whop_sdk/payout_methods/client.rb +1 -1
- data/lib/whop_sdk/payouts/client.rb +15 -12
- data/lib/whop_sdk/payouts/methods/client.rb +2 -2
- data/lib/whop_sdk/payouts/methods/types/create_methods_request.rb +2 -0
- data/lib/whop_sdk/payouts/methods/types/list_methods_response_limits_standard_error_code.rb +1 -1
- data/lib/whop_sdk/payouts/paypal_link_sessions/client.rb +67 -0
- data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_request.rb +21 -0
- data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_response.rb +15 -0
- data/lib/whop_sdk/payouts/supported_methods/client.rb +2 -1
- data/lib/whop_sdk/payouts/supported_methods/types/list_supported_methods_response_data_item.rb +2 -0
- data/lib/whop_sdk/people/client.rb +3 -5
- data/lib/whop_sdk/plans/client.rb +1 -1
- data/lib/whop_sdk/products/client.rb +2 -2
- data/lib/whop_sdk/promo_codes/client.rb +1 -1
- data/lib/whop_sdk/refunds/client.rb +1 -2
- data/lib/whop_sdk/reviews/client.rb +59 -19
- data/lib/whop_sdk/reviews/types/delete_reviews_request.rb +11 -0
- data/lib/whop_sdk/reviews/types/delete_reviews_response.rb +13 -0
- data/lib/whop_sdk/reviews/types/list_reviews_request.rb +14 -8
- data/lib/whop_sdk/reviews/types/list_reviews_request_direction.rb +14 -0
- data/lib/whop_sdk/reviews/types/list_reviews_request_order.rb +14 -0
- data/lib/whop_sdk/reviews/types/list_reviews_response.rb +1 -2
- data/lib/whop_sdk/reviews/types/list_reviews_response_page_info.rb +17 -0
- data/lib/whop_sdk/setup_intents/client.rb +8 -10
- data/lib/whop_sdk/setup_intents/direct/client.rb +6 -7
- data/lib/whop_sdk/shipments/client.rb +2 -2
- data/lib/whop_sdk/stats/client.rb +2 -3
- data/lib/whop_sdk/stats/reports/client.rb +6 -10
- data/lib/whop_sdk/stats/time_series/client.rb +3 -8
- data/lib/whop_sdk/support_channels/client.rb +12 -4
- data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +8 -0
- data/lib/whop_sdk/swaps/client.rb +6 -6
- data/lib/whop_sdk/team_members/client.rb +7 -10
- data/lib/whop_sdk/topups/client.rb +2 -2
- data/lib/whop_sdk/trades/client.rb +6 -8
- data/lib/whop_sdk/trades/types/create_trades_request.rb +21 -1
- data/lib/whop_sdk/trades/types/create_trades_request_instrument_type.rb +14 -0
- data/lib/whop_sdk/trades/types/create_trades_request_order_type.rb +14 -0
- data/lib/whop_sdk/trades/types/create_trades_request_side.rb +14 -0
- data/lib/whop_sdk/trades/types/create_trades_request_type.rb +3 -1
- data/lib/whop_sdk/trades/types/list_trades_request_type.rb +3 -1
- data/lib/whop_sdk/transfers/client.rb +6 -3
- data/lib/whop_sdk/types/account.rb +2 -2
- data/lib/whop_sdk/types/account_level.rb +19 -0
- data/lib/whop_sdk/types/account_payment_controls_restricted_payment_methods_item.rb +39 -0
- data/lib/whop_sdk/types/account_preferences.rb +2 -0
- data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +2 -0
- data/lib/whop_sdk/types/cancel_options.rb +1 -0
- data/lib/whop_sdk/types/dispute_evidence_document.rb +12 -0
- data/lib/whop_sdk/types/domain.rb +6 -0
- data/lib/whop_sdk/types/domain_apple_pay.rb +9 -0
- data/lib/whop_sdk/types/domain_apple_pay_state.rb +14 -0
- data/lib/whop_sdk/types/domain_issue.rb +2 -0
- data/lib/whop_sdk/types/domain_issue_capability.rb +2 -0
- data/lib/whop_sdk/types/domain_issue_code.rb +6 -2
- data/lib/whop_sdk/types/domain_list_item.rb +6 -0
- data/lib/whop_sdk/types/domain_pixel.rb +9 -0
- data/lib/whop_sdk/types/domain_pixel_state.rb +13 -0
- data/lib/whop_sdk/types/domain_stats.rb +9 -0
- data/lib/whop_sdk/types/domain_website.rb +1 -1
- data/lib/whop_sdk/types/domain_website_app.rb +11 -0
- data/lib/whop_sdk/types/feedback_option.rb +13 -0
- data/lib/whop_sdk/types/feedback_option_category.rb +17 -0
- data/lib/whop_sdk/types/file.rb +12 -0
- data/lib/whop_sdk/types/financing_access_change.rb +19 -0
- data/lib/whop_sdk/types/financing_access_change_disabled_payment_methods_item.rb +33 -0
- data/lib/whop_sdk/types/financing_access_change_object.rb +11 -0
- data/lib/whop_sdk/types/financing_access_change_provider.rb +15 -0
- data/lib/whop_sdk/types/financing_access_change_reason.rb +11 -0
- data/lib/whop_sdk/types/member.rb +10 -0
- data/lib/whop_sdk/types/member_most_recent_action.rb +23 -0
- data/lib/whop_sdk/types/member_note.rb +19 -0
- data/lib/whop_sdk/types/membership.rb +24 -0
- data/lib/whop_sdk/types/membership_cancel_option.rb +18 -0
- data/lib/whop_sdk/types/membership_collection_method.rb +12 -0
- data/lib/whop_sdk/types/membership_feedback_option.rb +9 -0
- data/lib/whop_sdk/types/membership_legacy.rb +2 -0
- data/lib/whop_sdk/types/membership_legacy_feedback_option.rb +11 -0
- data/lib/whop_sdk/types/membership_list_item.rb +2 -0
- data/lib/whop_sdk/types/membership_list_item_feedback_option.rb +11 -0
- data/lib/whop_sdk/types/membership_most_recent_action.rb +21 -0
- data/lib/whop_sdk/types/membership_product.rb +13 -0
- data/lib/whop_sdk/types/owner_level.rb +17 -0
- data/lib/whop_sdk/types/owner_level_points.rb +13 -0
- data/lib/whop_sdk/types/partner_advance.rb +41 -0
- data/lib/whop_sdk/types/partner_advance_status.rb +17 -0
- data/lib/whop_sdk/types/payment.rb +2 -0
- data/lib/whop_sdk/types/payment_input.rb +1 -4
- data/lib/whop_sdk/types/payment_input_plan.rb +2 -0
- data/lib/whop_sdk/types/payment_method_types.rb +3 -0
- data/lib/whop_sdk/types/payment_rule_condition_value.rb +2 -2
- data/lib/whop_sdk/types/permission_action.rb +3 -0
- data/lib/whop_sdk/types/review.rb +2 -3
- data/lib/whop_sdk/types/{review_company.rb → review_account.rb} +1 -2
- data/lib/whop_sdk/types/{review_attachments_item.rb → review_attachment.rb} +1 -2
- data/lib/whop_sdk/types/review_list_item.rb +3 -4
- data/lib/whop_sdk/types/review_list_item_status.rb +11 -0
- data/lib/whop_sdk/types/review_product.rb +0 -1
- data/lib/whop_sdk/types/review_user.rb +0 -1
- data/lib/whop_sdk/types/support_channel.rb +8 -0
- data/lib/whop_sdk/types/support_channel_last_message.rb +23 -0
- data/lib/whop_sdk/types/{review_list_item_attachments_item.rb → support_channel_last_message_attachments_item.rb} +1 -5
- data/lib/whop_sdk/types/support_channel_last_message_gifs_item.rb +10 -0
- data/lib/whop_sdk/types/support_channel_last_message_poll.rb +10 -0
- data/lib/whop_sdk/types/support_channel_last_message_poll_options_item.rb +10 -0
- data/lib/whop_sdk/types/support_channel_list_item.rb +8 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message.rb +23 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_attachments_item.rb +12 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_gifs_item.rb +10 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_poll.rb +10 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_poll_options_item.rb +10 -0
- data/lib/whop_sdk/types/trade.rb +17 -1
- data/lib/whop_sdk/types/trade_failure_code.rb +1 -0
- data/lib/whop_sdk/types/trade_instrument_type.rb +12 -0
- data/lib/whop_sdk/types/trade_order_type.rb +12 -0
- data/lib/whop_sdk/types/trade_side.rb +12 -0
- data/lib/whop_sdk/types/trade_status_detail.rb +0 -3
- data/lib/whop_sdk/types/trade_type.rb +3 -1
- data/lib/whop_sdk/types/user.rb +7 -1
- data/lib/whop_sdk/types/user_social_link.rb +15 -0
- data/lib/whop_sdk/types/user_social_link_website.rb +18 -0
- data/lib/whop_sdk/types/webhook_event.rb +1 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +1 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +1 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +1 -0
- data/lib/whop_sdk/users/client.rb +13 -18
- data/lib/whop_sdk/users/oauth_grants/client.rb +9 -11
- data/lib/whop_sdk/users/passkeys/client.rb +3 -3
- data/lib/whop_sdk/users/preferences/client.rb +1 -2
- data/lib/whop_sdk/users/preferences/notifications/client.rb +4 -13
- data/lib/whop_sdk/users/preferences/notifications/topics/client.rb +2 -2
- data/lib/whop_sdk/users/preferences/notifications/types/set_notifications_request_preferences_item_scope.rb +3 -1
- data/lib/whop_sdk/variants/client.rb +10 -9
- data/lib/whop_sdk/verifications/client.rb +7 -9
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +6 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_documents.rb +18 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +2 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response.rb +2 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk/waitlist_entries/client.rb +14 -14
- data/lib/whop_sdk/webhooks/client.rb +11 -12
- data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +1 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +1 -0
- data/lib/whop_sdk.rb +99 -9
- data/reference.md +1431 -573
- metadata +99 -9
- data/lib/whop_sdk/types/payment_input_line_items_item.rb +0 -11
- data/lib/whop_sdk/types/review_list_item_user.rb +0 -14
- data/lib/whop_sdk/types/user_staff_access.rb +0 -15
|
@@ -15,9 +15,9 @@ module Whop_sdk
|
|
|
15
15
|
@environment = environment
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Lists the authenticated user's own passkeys, newest first.
|
|
19
|
-
#
|
|
20
|
-
#
|
|
18
|
+
# Lists the authenticated user's own passkeys, newest first. You cannot read another user's passkeys. Requires a
|
|
19
|
+
# user session: an API key or an OAuth token is refused, because a passkey confirms the account holder before a
|
|
20
|
+
# sensitive action and no app may enumerate one.
|
|
21
21
|
#
|
|
22
22
|
# @param request_options [Hash]
|
|
23
23
|
# @param params [Hash]
|
|
@@ -15,8 +15,7 @@ module Whop_sdk
|
|
|
15
15
|
@environment = environment
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Retrieves the authenticated user's settings document.
|
|
19
|
-
# the session user.
|
|
18
|
+
# Retrieves the authenticated user's settings document.
|
|
20
19
|
#
|
|
21
20
|
# @param request_options [Hash]
|
|
22
21
|
# @param _params [Hash]
|
|
@@ -16,19 +16,10 @@ module Whop_sdk
|
|
|
16
16
|
@environment = environment
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
# Sets the authenticated user's notification preferences
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
# other scope sets a topic override, which is binary — `all` or `nothing`. A topic override with no `channel`
|
|
24
|
-
# applies to every delivery channel.
|
|
25
|
-
#
|
|
26
|
-
# `level: null` clears the preference. Preferences are stored as overrides, so clearing one means the scope
|
|
27
|
-
# inherits its default again rather than being switched off.
|
|
28
|
-
#
|
|
29
|
-
# The batch is applied in one transaction: if any entry is rejected, none are written. Experience levels are
|
|
30
|
-
# applied before topic overrides, because setting a level replaces every topic preference for that experience
|
|
31
|
-
# — so an override sent alongside a level wins. The response reports what each scope now resolves to, in the
|
|
19
|
+
# Sets the authenticated user's notification preferences, each addressed by `scope` rather than by ID. The
|
|
20
|
+
# batch is applied in one transaction: if any entry is rejected, none are written. Experience levels are
|
|
21
|
+
# applied before topic overrides, because setting a level replaces every topic preference for that experience,
|
|
22
|
+
# so an override sent alongside a level wins. The response reports what each scope now resolves to, in the
|
|
32
23
|
# order the entries were sent.
|
|
33
24
|
#
|
|
34
25
|
# @param request_options [Hash]
|
|
@@ -18,8 +18,8 @@ module Whop_sdk
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
# Lists the authenticated user's topic-scoped notification preferences, plus user-agnostic platform
|
|
21
|
-
# defaults.
|
|
22
|
-
#
|
|
21
|
+
# defaults. Per-experience levels are listed separately, by `GET
|
|
22
|
+
# /users/me/preferences/notifications/experiences`.
|
|
23
23
|
#
|
|
24
24
|
# @param request_options [Hash]
|
|
25
25
|
# @param params [Hash]
|
|
@@ -5,7 +5,9 @@ module Whop_sdk
|
|
|
5
5
|
module Preferences
|
|
6
6
|
module Notifications
|
|
7
7
|
module Types
|
|
8
|
-
# What the preference applies to. `null` on a dimension means the preference is not narrowed there.
|
|
8
|
+
# What the preference applies to. `null` on a dimension means the preference is not narrowed there. A scope
|
|
9
|
+
# read back from either list endpoint can be sent as-is. A scope naming an experience with no topic sets that
|
|
10
|
+
# experience's level; any other scope sets a topic override.
|
|
9
11
|
class SetNotificationsRequestPreferencesItemScope < Internal::Types::Model
|
|
10
12
|
field :account_id, -> { String }, optional: true, nullable: false
|
|
11
13
|
|
|
@@ -14,8 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
18
|
-
#
|
|
17
|
+
# Lists an account's variants. To list a product's public, buyable variants without authentication, omit
|
|
18
|
+
# `account_id` and pass `product_ids`.
|
|
19
19
|
#
|
|
20
20
|
# @param request_options [Hash]
|
|
21
21
|
# @param params [Hash]
|
|
@@ -102,8 +102,8 @@ module Whop_sdk
|
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
|
|
105
|
-
#
|
|
106
|
-
#
|
|
105
|
+
# Creates a pricing variant for a product, defining the billing interval, price, and availability customers buy it
|
|
106
|
+
# with.
|
|
107
107
|
#
|
|
108
108
|
# @param request_options [Hash]
|
|
109
109
|
# @param params [Whop_sdk::Variants::Types::CreateVariantsRequest]
|
|
@@ -140,7 +140,8 @@ module Whop_sdk
|
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
# Retrieves
|
|
143
|
+
# Retrieves a variant. Requires no authentication; fields that need a permission are `null` for callers without
|
|
144
|
+
# it.
|
|
144
145
|
#
|
|
145
146
|
# @param request_options [Hash]
|
|
146
147
|
# @param params [Hash]
|
|
@@ -191,8 +192,7 @@ module Whop_sdk
|
|
|
191
192
|
end
|
|
192
193
|
end
|
|
193
194
|
|
|
194
|
-
#
|
|
195
|
-
# affected.
|
|
195
|
+
# Deletes a variant from a product. It stops selling immediately; existing memberships on it are unaffected.
|
|
196
196
|
#
|
|
197
197
|
# @param request_options [Hash]
|
|
198
198
|
# @param params [Hash]
|
|
@@ -229,7 +229,7 @@ module Whop_sdk
|
|
|
229
229
|
end
|
|
230
230
|
end
|
|
231
231
|
|
|
232
|
-
#
|
|
232
|
+
# Updates a variant's pricing, billing interval, visibility, stock, and other settings.
|
|
233
233
|
#
|
|
234
234
|
# @param request_options [Hash]
|
|
235
235
|
# @param params [Whop_sdk::Variants::Types::UpdateVariantsRequest]
|
|
@@ -271,7 +271,8 @@ module Whop_sdk
|
|
|
271
271
|
end
|
|
272
272
|
end
|
|
273
273
|
|
|
274
|
-
# Previews tax for a variant before checkout, based on
|
|
274
|
+
# Deprecated. Quote tax with `POST /payment_quotes` instead. Previews tax for a variant before checkout, based on
|
|
275
|
+
# the buyer's location.
|
|
275
276
|
#
|
|
276
277
|
# @param request_options [Hash]
|
|
277
278
|
# @param params [Whop_sdk::Variants::Types::CalculateTaxVariantsRequest]
|
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Lists the verifications for an account or user, including their status and any required actions.
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Hash]
|
|
20
20
|
# @param params [Hash]
|
|
@@ -62,13 +62,11 @@ module Whop_sdk
|
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
# Starts a hosted verification session for an account or user, or returns the active session when one already
|
|
65
|
-
# exists
|
|
66
|
-
#
|
|
67
|
-
#
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
# verification — unlink it first to start a new one — while `verification_id` replaces whichever verification of
|
|
71
|
-
# that kind the account currently has.
|
|
65
|
+
# exists; any fields you send prefill it. To skip the hosted session, send `documents` to verify the person from
|
|
66
|
+
# files in this request, `share_token` to reuse a verification another Sumsub account completed, or
|
|
67
|
+
# `verification_id` to reuse one the signed-in user completed on Whop. For a business, `documents` adds company
|
|
68
|
+
# formation documents to the verification and the hosted session collects the rest. Once the account has an
|
|
69
|
+
# `approved` verification, every mode except `verification_id` is rejected — unlink it first to start a new one.
|
|
72
70
|
#
|
|
73
71
|
# @param request_options [Hash]
|
|
74
72
|
# @param params [Whop_sdk::Verifications::Types::CreateVerificationsRequestBody]
|
|
@@ -114,7 +112,7 @@ module Whop_sdk
|
|
|
114
112
|
end
|
|
115
113
|
end
|
|
116
114
|
|
|
117
|
-
#
|
|
115
|
+
# Retrieves a verification by ID, including its status and any information or documents still required.
|
|
118
116
|
#
|
|
119
117
|
# @param request_options [Hash]
|
|
120
118
|
# @param params [Hash]
|
|
@@ -20,12 +20,18 @@ module Whop_sdk
|
|
|
20
20
|
|
|
21
21
|
field :date_of_birth, -> { String }, optional: true, nullable: false
|
|
22
22
|
|
|
23
|
+
field :documents, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessDocuments }, optional: true, nullable: false
|
|
24
|
+
|
|
23
25
|
field :first_name, -> { String }, optional: true, nullable: false
|
|
24
26
|
|
|
27
|
+
field :incorporation_date, -> { String }, optional: true, nullable: false
|
|
28
|
+
|
|
25
29
|
field :last_name, -> { String }, optional: true, nullable: false
|
|
26
30
|
|
|
27
31
|
field :place_of_incorporation, -> { String }, optional: true, nullable: false
|
|
28
32
|
|
|
33
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
34
|
+
|
|
29
35
|
field :share_token, -> { String }, optional: true, nullable: false
|
|
30
36
|
|
|
31
37
|
field :tax_identification_number, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
# Company formation documents, each the ID of a file uploaded with Create File and not yet attached to anything
|
|
7
|
+
# else, prefixed `file_`. Send the ID once its `upload_status` is `ready`. Each file must be a PDF, JPEG, or PNG
|
|
8
|
+
# of up to 10MB. They are filed under the business's country, from `country`, `address`, or an earlier request. A
|
|
9
|
+
# document of a kind already on file is kept unless it was rejected, so a retried request does not add a second
|
|
10
|
+
# copy. The hosted session at `session_url` collects anything still missing.
|
|
11
|
+
class CreateVerificationsRequestBodyBusinessDocuments < Internal::Types::Model
|
|
12
|
+
field :articles_of_incorporation, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :certificate_of_incorporation, -> { String }, optional: true, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -28,6 +28,8 @@ module Whop_sdk
|
|
|
28
28
|
|
|
29
29
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
30
|
|
|
31
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
32
|
+
|
|
31
33
|
field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
|
|
32
34
|
|
|
33
35
|
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
|
|
@@ -28,6 +28,8 @@ module Whop_sdk
|
|
|
28
28
|
|
|
29
29
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
30
|
|
|
31
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
32
|
+
|
|
31
33
|
field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequestedInformationItem] }, optional: true, nullable: false
|
|
32
34
|
|
|
33
35
|
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequiredDocumentsItem] }, optional: true, nullable: false
|
|
@@ -28,6 +28,8 @@ module Whop_sdk
|
|
|
28
28
|
|
|
29
29
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
30
|
|
|
31
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
32
|
+
|
|
31
33
|
field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
|
|
32
34
|
|
|
33
35
|
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
|
|
@@ -28,6 +28,8 @@ module Whop_sdk
|
|
|
28
28
|
|
|
29
29
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
30
|
|
|
31
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
32
|
+
|
|
31
33
|
field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::UpdateVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
|
|
32
34
|
|
|
33
35
|
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::UpdateVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
|
data/lib/whop_sdk/version.rb
CHANGED
|
@@ -14,9 +14,9 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Lists
|
|
18
|
-
# signups
|
|
19
|
-
#
|
|
17
|
+
# Lists the waitlist signups you can see. `waitlist_entry:read` returns the user's own signups and
|
|
18
|
+
# `plan:waitlist:read` returns signups to the seller accounts they are authorized on; with both, you get both
|
|
19
|
+
# sets. Account credentials see only their own account's signups.
|
|
20
20
|
#
|
|
21
21
|
# @param request_options [Hash]
|
|
22
22
|
# @param params [Hash]
|
|
@@ -87,9 +87,9 @@ module Whop_sdk
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
# Joins a free waitlist variant as the authenticated user. Requires waitlist_entry:create
|
|
91
|
-
# the existing pending
|
|
92
|
-
#
|
|
90
|
+
# Joins a free waitlist variant as the authenticated user. Requires `waitlist_entry:create`. Joining again returns
|
|
91
|
+
# the existing pending signup, or the approved one while its membership is valid. Paid variants are rejected;
|
|
92
|
+
# joining collects no payment method and grants no membership.
|
|
93
93
|
#
|
|
94
94
|
# @param request_options [Hash]
|
|
95
95
|
# @param params [Whop_sdk::WaitlistEntries::Types::CreateWaitlistEntriesRequest]
|
|
@@ -127,9 +127,9 @@ module Whop_sdk
|
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
# Queues approval of every pending signup for an account, optionally narrowed to a variant. Requires
|
|
130
|
-
# plan:waitlist:manage
|
|
131
|
-
# with `status` set to `pending` to follow progress, and retrieve a signup to read its outcome. Signups
|
|
132
|
-
# after this request are excluded.
|
|
130
|
+
# `plan:waitlist:manage`. Paid signups may charge saved payment methods. Approval runs asynchronously: list
|
|
131
|
+
# signups with `status` set to `pending` to follow progress, and retrieve a signup to read its outcome. Signups
|
|
132
|
+
# created after this request are excluded.
|
|
133
133
|
#
|
|
134
134
|
# @param request_options [Hash]
|
|
135
135
|
# @param params [Whop_sdk::WaitlistEntries::Types::ApproveAllWaitlistEntriesRequest]
|
|
@@ -166,8 +166,8 @@ module Whop_sdk
|
|
|
166
166
|
end
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
# Retrieves a signup
|
|
170
|
-
# plan:waitlist:read
|
|
169
|
+
# Retrieves a signup the caller owns, with `waitlist_entry:read`, or one submitted to an account they can read,
|
|
170
|
+
# with `plan:waitlist:read`.
|
|
171
171
|
#
|
|
172
172
|
# @param request_options [Hash]
|
|
173
173
|
# @param params [Hash]
|
|
@@ -204,7 +204,7 @@ module Whop_sdk
|
|
|
204
204
|
end
|
|
205
205
|
end
|
|
206
206
|
|
|
207
|
-
# Queues approval of a pending signup. Requires plan:waitlist:manage on its seller account. Paid signups may
|
|
207
|
+
# Queues approval of a pending signup. Requires `plan:waitlist:manage` on its seller account. Paid signups may
|
|
208
208
|
# charge their saved payment method. Returns the signup's current state; retrieve it to read `status` and
|
|
209
209
|
# `approval_failure_reason` after processing.
|
|
210
210
|
#
|
|
@@ -243,7 +243,7 @@ module Whop_sdk
|
|
|
243
243
|
end
|
|
244
244
|
end
|
|
245
245
|
|
|
246
|
-
# Withdraws the caller's pending
|
|
246
|
+
# Withdraws the caller's own pending signup. Requires `waitlist_entry:cancel`. Does not cancel an approved
|
|
247
247
|
# membership.
|
|
248
248
|
#
|
|
249
249
|
# @param request_options [Hash]
|
|
@@ -281,7 +281,7 @@ module Whop_sdk
|
|
|
281
281
|
end
|
|
282
282
|
end
|
|
283
283
|
|
|
284
|
-
# Denies a pending signup. Requires plan:waitlist:manage on its seller account.
|
|
284
|
+
# Denies a pending signup. Requires `plan:waitlist:manage` on its seller account.
|
|
285
285
|
#
|
|
286
286
|
# @param request_options [Hash]
|
|
287
287
|
# @param params [Hash]
|
|
@@ -151,7 +151,8 @@ module Whop_sdk
|
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
# Permanently deletes a webhook endpoint.
|
|
154
|
+
# Permanently deletes a webhook endpoint. To stop deliveries without deleting it, set `enabled` to `false` with
|
|
155
|
+
# `PATCH /webhooks/:id`.
|
|
155
156
|
#
|
|
156
157
|
# @param request_options [Hash]
|
|
157
158
|
# @param params [Hash]
|
|
@@ -283,11 +284,10 @@ module Whop_sdk
|
|
|
283
284
|
end
|
|
284
285
|
end
|
|
285
286
|
|
|
286
|
-
# Re-sends the exact payload of a past delivery to the webhook's current URL and returns the delivery result.
|
|
287
|
-
#
|
|
288
|
-
# already processed.
|
|
289
|
-
#
|
|
290
|
-
# v1; deliveries are retained for 30 days.
|
|
287
|
+
# Re-sends the exact payload of a past delivery to the webhook's current URL and returns the delivery result. The
|
|
288
|
+
# replay keeps the original `webhook-id` unless you pass `regenerate_id`, so consumers that deduplicate on it can
|
|
289
|
+
# drop events they already processed. Only available for enabled webhooks on API version `v1`; deliveries are
|
|
290
|
+
# retained for 30 days.
|
|
291
291
|
#
|
|
292
292
|
# @param request_options [Hash]
|
|
293
293
|
# @param params [Whop_sdk::Webhooks::Types::ReplayDeliveryWebhooksRequest]
|
|
@@ -333,12 +333,11 @@ module Whop_sdk
|
|
|
333
333
|
end
|
|
334
334
|
end
|
|
335
335
|
|
|
336
|
-
# Re-sends the webhook's past deliveries within a time window, optionally limited to specific events or to
|
|
337
|
-
#
|
|
338
|
-
# each re-send appears as a new entry in the webhook's delivery log. Each matching message is re-sent
|
|
339
|
-
#
|
|
340
|
-
#
|
|
341
|
-
# are retained for 30 days.
|
|
336
|
+
# Re-sends the webhook's past deliveries within a time window, optionally limited to specific events or to failed
|
|
337
|
+
# deliveries. Use it to recover events your endpoint missed. The replay runs asynchronously and nothing about it
|
|
338
|
+
# is stored: each re-send appears as a new entry in the webhook's delivery log. Each matching message is re-sent
|
|
339
|
+
# once, with its original `webhook-id` unless you pass `regenerate_ids`. Only available for enabled webhooks on
|
|
340
|
+
# API version `v1`; deliveries are retained for 30 days.
|
|
342
341
|
#
|
|
343
342
|
# @param request_options [Hash]
|
|
344
343
|
# @param params [Whop_sdk::Webhooks::Types::ReplayWebhooksRequest]
|
|
@@ -9,6 +9,7 @@ module Whop_sdk
|
|
|
9
9
|
ACCOUNT_UPDATED = "account.updated"
|
|
10
10
|
ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
|
|
11
11
|
ACCOUNT_FINANCING_DENIED = "account.financing_denied"
|
|
12
|
+
ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
|
|
12
13
|
INVOICE_CREATED = "invoice.created"
|
|
13
14
|
INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
|
|
14
15
|
INVOICE_PAID = "invoice.paid"
|
|
@@ -9,6 +9,7 @@ module Whop_sdk
|
|
|
9
9
|
ACCOUNT_UPDATED = "account.updated"
|
|
10
10
|
ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
|
|
11
11
|
ACCOUNT_FINANCING_DENIED = "account.financing_denied"
|
|
12
|
+
ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
|
|
12
13
|
INVOICE_CREATED = "invoice.created"
|
|
13
14
|
INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
|
|
14
15
|
INVOICE_PAID = "invoice.paid"
|