whop_sdk 2.4.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 +565 -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 +74 -20
- 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/list_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload.rb +25 -0
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_api_version.rb +13 -0
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_type.rb +13 -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/transfer_ownership_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request.rb +4 -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 +6 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +6 -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 -6
- 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 +5 -2
- 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 +44 -12
- data/lib/whop_sdk/disputes/types/accept_disputes_request.rb +11 -0
- 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/external_accounts/types/connect_external_accounts_request_platform.rb +1 -0
- 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_activity/types/list_financial_activity_request_line_types_item.rb +2 -0
- data/lib/whop_sdk/financial_reports/breakdown/client.rb +3 -1
- 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/forum_posts/client.rb +1 -1
- data/lib/whop_sdk/forums/client.rb +1 -1
- data/lib/whop_sdk/identity_profiles/client.rb +7 -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 +147 -1
- data/lib/whop_sdk/partners/businesses/earnings/client.rb +2 -1
- 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 +23 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +2 -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 +4 -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 +17 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_response.rb +15 -0
- data/lib/whop_sdk/partners/client.rb +44 -11
- data/lib/whop_sdk/partners/types/fee_options_partners_response.rb +13 -0
- data/lib/whop_sdk/partners/types/{referred_users_partners_request_user_id.rb → fee_options_partners_response_object.rb} +2 -2
- 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/partners/types/referred_users_partners_request.rb +0 -2
- data/lib/whop_sdk/payment_method_domains/client.rb +13 -8
- 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/refund_payments_request.rb +2 -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 +17 -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/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/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/setup_intents/types/create_setup_intents_request.rb +2 -0
- data/lib/whop_sdk/shipments/client.rb +2 -2
- data/lib/whop_sdk/social_accounts/types/connect_social_accounts_request_platform.rb +1 -0
- data/lib/whop_sdk/stats/client.rb +4 -3
- data/lib/whop_sdk/stats/reports/client.rb +8 -10
- 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 +5 -8
- 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 +14 -4
- data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +10 -0
- data/lib/whop_sdk/swaps/client.rb +6 -6
- data/lib/whop_sdk/team_members/client.rb +16 -10
- data/lib/whop_sdk/team_members/types/list_team_members_request.rb +8 -0
- 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/transfers/types/create_transfers_request_body_balance.rb +2 -2
- data/lib/whop_sdk/types/account.rb +8 -4
- 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/account_required_action_action.rb +1 -0
- data/lib/whop_sdk/types/account_search_result.rb +15 -0
- data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +6 -0
- data/lib/whop_sdk/types/cancel_options.rb +1 -0
- data/lib/whop_sdk/types/dispute.rb +2 -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/ledger_activity_line_type.rb +2 -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 +18 -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_list_item_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/payment_method_types.rb +3 -0
- data/lib/whop_sdk/types/payment_method_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/payment_rule_condition_value.rb +2 -2
- data/lib/whop_sdk/types/permission_action.rb +5 -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/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/team_member.rb +4 -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_fees.rb +17 -0
- 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 +4 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +4 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +4 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +4 -0
- data/lib/whop_sdk/users/client.rb +18 -18
- 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/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 +16 -11
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +8 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_documents.rb +18 -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 +4 -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 +4 -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 +4 -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 +4 -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/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 +4 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +4 -0
- data/lib/whop_sdk.rb +168 -12
- data/reference.md +1803 -575
- metadata +168 -12
- 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/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/topup.rb +0 -23
- 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,13 @@ 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
|
-
#
|
|
71
|
-
#
|
|
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` and `owners`
|
|
68
|
+
# add company formation documents and owners to the verification, and once everything is in this call sends the
|
|
69
|
+
# business for review — call it again after Update Verification to send it. Until then it stays `pending` and the
|
|
70
|
+
# hosted session collects anything left out. Once the account has an `approved` verification, every mode except
|
|
71
|
+
# `verification_id` is rejected — unlink it first to start a new one.
|
|
72
72
|
#
|
|
73
73
|
# @param request_options [Hash]
|
|
74
74
|
# @param params [Whop_sdk::Verifications::Types::CreateVerificationsRequestBody]
|
|
@@ -114,7 +114,7 @@ module Whop_sdk
|
|
|
114
114
|
end
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
-
#
|
|
117
|
+
# Retrieves a verification by ID, including its status and any information or documents still required.
|
|
118
118
|
#
|
|
119
119
|
# @param request_options [Hash]
|
|
120
120
|
# @param params [Hash]
|
|
@@ -151,8 +151,13 @@ module Whop_sdk
|
|
|
151
151
|
end
|
|
152
152
|
end
|
|
153
153
|
|
|
154
|
-
# Updates editable profile details or submits answers for items returned in `requested_information`.
|
|
155
|
-
# verification
|
|
154
|
+
# Updates editable profile details or submits answers for items returned in `requested_information`. On a business
|
|
155
|
+
# verification still collecting details, company details, `documents`, and `owners` also go to the verification
|
|
156
|
+
# provider; call Create Verification again to send the business for review once everything is in. Under review,
|
|
157
|
+
# `registration_number`, `incorporation_date`, `place_of_incorporation`, and `documents` are refused. While the
|
|
158
|
+
# review waits on owners, owners can still be added, changed, or removed with `remove`; otherwise only an owner's
|
|
159
|
+
# missing documents can still be sent. Once a verification is `approved` its profile details are locked and can no
|
|
160
|
+
# longer be edited.
|
|
156
161
|
#
|
|
157
162
|
# @param request_options [Hash]
|
|
158
163
|
# @param params [Whop_sdk::Verifications::Types::UpdateVerificationsRequestBody]
|
|
@@ -20,12 +20,20 @@ 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
|
|
|
31
|
+
field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItem] }, optional: true, nullable: false
|
|
32
|
+
|
|
27
33
|
field :place_of_incorporation, -> { String }, optional: true, nullable: false
|
|
28
34
|
|
|
35
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
36
|
+
|
|
29
37
|
field :share_token, -> { String }, optional: true, nullable: false
|
|
30
38
|
|
|
31
39
|
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
|
data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item.rb
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
# An owner of the business. Send `verification_id` to add someone with an approved verification on this account or
|
|
7
|
+
# on a member of its team, or a new owner's details and documents to verify them from this request. An owner
|
|
8
|
+
# already on the verification is not added twice, so a retried request is safe.
|
|
9
|
+
class CreateVerificationsRequestBodyBusinessOwnersItem < Internal::Types::Model
|
|
10
|
+
field :address, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemAddress }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :date_of_birth, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :document_type, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemDocumentType }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :documents, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemDocuments }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :first_name, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :last_name, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :ownership_percentage, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemRolesItem] }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :tax_identification_number, -> { String }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :verification_id, -> { String }, optional: true, nullable: false
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
# The new owner's home address, with `line1`, `city`, `state`, and `postal_code`.
|
|
7
|
+
class CreateVerificationsRequestBodyBusinessOwnersItemAddress < Internal::Types::Model
|
|
8
|
+
field :city, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :line1, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :line2, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :postal_code, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :state, -> { String }, optional: true, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsRequestBodyBusinessOwnersItemDocumentType
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ID_CARD = "id_card"
|
|
10
|
+
DRIVERS = "drivers"
|
|
11
|
+
RESIDENCE_PERMIT = "residence_permit"
|
|
12
|
+
PASSPORT = "passport"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
# The owner's identity document and selfie, each the ID of a ready file uploaded with Create File and not yet
|
|
7
|
+
# attached to anything else, prefixed `file_`. Send every slot for `document_type` plus `selfie`. Document files
|
|
8
|
+
# can be a PDF, JPEG, or PNG and the selfie a JPEG or PNG, each up to 10MB. They're sent to the verification
|
|
9
|
+
# provider in the background: the owner reads `processing` until then, and `action_required`, with a
|
|
10
|
+
# `rejection_reason` on each document, if a file couldn't be used.
|
|
11
|
+
class CreateVerificationsRequestBodyBusinessOwnersItemDocuments < Internal::Types::Model
|
|
12
|
+
field :drivers_back, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :drivers_front, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :id_card_back, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :id_card_front, -> { String }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :passport_front, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :residence_permit_back, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :residence_permit_front, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :selfie, -> { String }, optional: true, nullable: false
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsRequestBodyBusinessOwnersItemRolesItem
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UBO = "ubo"
|
|
10
|
+
DIRECTOR = "director"
|
|
11
|
+
REPRESENTATIVE = "representative"
|
|
12
|
+
SHAREHOLDER = "shareholder"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/whop_sdk/verifications/types/create_verifications_request_body_individual_document_type.rb
CHANGED
|
@@ -6,10 +6,10 @@ module Whop_sdk
|
|
|
6
6
|
module CreateVerificationsRequestBodyIndividualDocumentType
|
|
7
7
|
extend Whop_sdk::Internal::Types::Enum
|
|
8
8
|
|
|
9
|
-
ID_CARD = "
|
|
10
|
-
DRIVERS = "
|
|
11
|
-
RESIDENCE_PERMIT = "
|
|
12
|
-
PASSPORT = "
|
|
9
|
+
ID_CARD = "id_card"
|
|
10
|
+
DRIVERS = "drivers"
|
|
11
|
+
RESIDENCE_PERMIT = "residence_permit"
|
|
12
|
+
PASSPORT = "passport"
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -26,8 +26,12 @@ module Whop_sdk
|
|
|
26
26
|
|
|
27
27
|
field :last_name, -> { String }, optional: true, nullable: false
|
|
28
28
|
|
|
29
|
+
field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItem] }, optional: false, nullable: false
|
|
30
|
+
|
|
29
31
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
32
|
|
|
33
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
34
|
+
|
|
31
35
|
field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
|
|
32
36
|
|
|
33
37
|
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class CreateVerificationsResponseOwnersItem < Internal::Types::Model
|
|
7
|
+
field :first_name, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :last_name, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :ownership_percentage, -> { Integer }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRolesItem] }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :status, -> { Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemStatus }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class CreateVerificationsResponseOwnersItemRequiredDocumentsItem < Internal::Types::Model
|
|
7
|
+
field :document, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :rejection_reason, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :status, -> { Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRequiredDocumentsItemStatus }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsResponseOwnersItemRequiredDocumentsItemStatus
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING_UPLOAD = "pending_upload"
|
|
10
|
+
SUBMITTED = "submitted"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsResponseOwnersItemRolesItem
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UBO = "ubo"
|
|
10
|
+
DIRECTOR = "director"
|
|
11
|
+
REPRESENTATIVE = "representative"
|
|
12
|
+
SHAREHOLDER = "shareholder"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsResponseOwnersItemStatus
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NOT_STARTED = "not_started"
|
|
10
|
+
PENDING = "pending"
|
|
11
|
+
PROCESSING = "processing"
|
|
12
|
+
MANUAL_REVIEW = "manual_review"
|
|
13
|
+
APPROVED = "approved"
|
|
14
|
+
REJECTED = "rejected"
|
|
15
|
+
ACTION_REQUIRED = "action_required"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -26,8 +26,12 @@ module Whop_sdk
|
|
|
26
26
|
|
|
27
27
|
field :last_name, -> { String }, optional: true, nullable: false
|
|
28
28
|
|
|
29
|
+
field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItem] }, optional: false, nullable: false
|
|
30
|
+
|
|
29
31
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
32
|
|
|
33
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
34
|
+
|
|
31
35
|
field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequestedInformationItem] }, optional: true, nullable: false
|
|
32
36
|
|
|
33
37
|
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemRequiredDocumentsItem] }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class ListVerificationsResponseDataItemOwnersItem < Internal::Types::Model
|
|
7
|
+
field :first_name, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :last_name, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :ownership_percentage, -> { Integer }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRolesItem] }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :status, -> { Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemStatus }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItem < Internal::Types::Model
|
|
7
|
+
field :document, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :rejection_reason, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :status, -> { Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItemStatus }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItemStatus
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING_UPLOAD = "pending_upload"
|
|
10
|
+
SUBMITTED = "submitted"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module ListVerificationsResponseDataItemOwnersItemRolesItem
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UBO = "ubo"
|
|
10
|
+
DIRECTOR = "director"
|
|
11
|
+
REPRESENTATIVE = "representative"
|
|
12
|
+
SHAREHOLDER = "shareholder"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_status.rb
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module ListVerificationsResponseDataItemOwnersItemStatus
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NOT_STARTED = "not_started"
|
|
10
|
+
PENDING = "pending"
|
|
11
|
+
PROCESSING = "processing"
|
|
12
|
+
MANUAL_REVIEW = "manual_review"
|
|
13
|
+
APPROVED = "approved"
|
|
14
|
+
REJECTED = "rejected"
|
|
15
|
+
ACTION_REQUIRED = "action_required"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -26,8 +26,12 @@ module Whop_sdk
|
|
|
26
26
|
|
|
27
27
|
field :last_name, -> { String }, optional: true, nullable: false
|
|
28
28
|
|
|
29
|
+
field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItem] }, optional: false, nullable: false
|
|
30
|
+
|
|
29
31
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
32
|
|
|
33
|
+
field :registration_number, -> { String }, optional: true, nullable: false
|
|
34
|
+
|
|
31
35
|
field :requested_information, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequestedInformationItem] }, optional: true, nullable: false
|
|
32
36
|
|
|
33
37
|
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseRequiredDocumentsItem] }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class RetrieveVerificationsResponseOwnersItem < Internal::Types::Model
|
|
7
|
+
field :first_name, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :last_name, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :ownership_percentage, -> { Integer }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItemRolesItem] }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :status, -> { Whop_sdk::Verifications::Types::RetrieveVerificationsResponseOwnersItemStatus }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|