whop_sdk 2.3.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 +403 -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/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/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/ad_groups/types/post_ad_group_updated_payload.rb +25 -0
- data/lib/whop_sdk/{partners/types/referred_users_partners_request_user_id.rb → ad_groups/types/post_ad_group_updated_payload_api_version.rb} +3 -3
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data.rb +77 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type.rb +15 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type.rb +14 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location.rb +21 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status.rb +27 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item.rb +15 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal.rb +30 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform.rb +15 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status.rb +16 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_type.rb +13 -0
- data/lib/whop_sdk/ad_pixels/client.rb +241 -0
- data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request.rb +17 -0
- data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request_platform.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/delete_ad_pixels_request.rb +11 -0
- data/lib/whop_sdk/ad_pixels/types/delete_ad_pixels_response.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request.rb +23 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request_direction.rb +14 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request_order.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_response.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_response_page_info.rb +17 -0
- data/lib/whop_sdk/ad_pixels/types/retrieve_ad_pixels_request.rb +11 -0
- data/lib/whop_sdk/ad_pixels/types/update_ad_pixels_request.rb +13 -0
- 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 +5 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +5 -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/apps/types/create_apps_request.rb +2 -0
- data/lib/whop_sdk/apps/types/list_apps_request_order.rb +1 -0
- 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 +9 -6
- data/lib/whop_sdk/card_transactions/types/list_card_transactions_request.rb +2 -0
- data/lib/whop_sdk/card_transactions/types/retrieve_card_transactions_request.rb +2 -0
- 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 +6 -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 +9 -3
- 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 +9 -3
- 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/list_domains_request_platform.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_registration.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_verification.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_website.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 -6
- 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 +17 -35
- 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 +2 -3
- 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/notifications/topics/client.rb +1 -1
- data/lib/whop_sdk/partner_referral_requests/client.rb +3 -3
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_code.rb +1 -2
- 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 +4 -2
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_address.rb +1 -1
- 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 +64 -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/generate_pdf_payments_request.rb +11 -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 +2 -2
- 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 +9 -9
- data/lib/whop_sdk/transfers/types/create_transfers_request_body.rb +17 -0
- data/lib/whop_sdk/transfers/types/{create_transfers_request.rb → create_transfers_request_body_balance.rb} +6 -10
- data/lib/whop_sdk/transfers/types/{create_transfers_request_feed_type.rb → create_transfers_request_body_balance_feed_type.rb} +1 -1
- data/lib/whop_sdk/transfers/types/create_transfers_request_body_claim_link.rb +18 -0
- data/lib/whop_sdk/transfers/types/create_transfers_response.rb +0 -2
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer.rb +15 -17
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/{create_transfers_request_type.rb → create_transfers_response_transfer_destination_object.rb} +3 -4
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item.rb +16 -14
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_destination.rb +18 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_origin.rb +18 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data.rb +16 -18
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data.rb +16 -18
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data.rb +16 -18
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response.rb +16 -18
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_object.rb +14 -0
- 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/ad_pixel.rb +25 -0
- data/lib/whop_sdk/types/ad_pixel_platform.rb +11 -0
- data/lib/whop_sdk/types/ad_pixel_status.rb +13 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +5 -0
- data/lib/whop_sdk/types/app.rb +3 -3
- data/lib/whop_sdk/types/app_list_item.rb +3 -3
- 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 +8 -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 +3 -0
- data/lib/whop_sdk/types/domain_issue_code.rb +6 -2
- data/lib/whop_sdk/types/domain_list_item.rb +8 -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_platform.rb +9 -0
- data/lib/whop_sdk/types/domain_platform_state.rb +14 -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 -2
- 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_pdf.rb +11 -0
- data/lib/whop_sdk/types/payment_quote_located_by.rb +1 -0
- 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/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 +9 -1
- data/lib/whop_sdk/types/user_preferences.rb +2 -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 +2 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +2 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +2 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +2 -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/users/preferences/types/update_preferences_request.rb +2 -0
- data/lib/whop_sdk/variants/client.rb +18 -11
- data/lib/whop_sdk/variants/types/list_variants_request.rb +2 -0
- data/lib/whop_sdk/variants/types/retrieve_variants_request.rb +2 -0
- 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 +2 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +2 -0
- data/lib/whop_sdk.rb +152 -41
- data/reference.md +1944 -664
- metadata +152 -41
- data/lib/whop_sdk/transfers/types/create_transfers_response_send.rb +0 -20
- data/lib/whop_sdk/transfers/types/create_transfers_response_send_destination.rb +0 -13
- data/lib/whop_sdk/transfers/types/create_transfers_response_send_source.rb +0 -13
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_user.rb +0 -15
- 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
|
@@ -25,6 +25,7 @@ module Whop_sdk
|
|
|
25
25
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
26
26
|
# @option request_options [Integer] :timeout_in_seconds
|
|
27
27
|
# @option params [String, nil] :referring_account_id
|
|
28
|
+
# @option params [Whop_sdk::Partners::Businesses::Types::ListBusinessesRequestAdvanceStatus, nil] :advance_status
|
|
28
29
|
# @option params [Whop_sdk::Partners::Businesses::Types::ListBusinessesRequestStatus, nil] :status
|
|
29
30
|
# @option params [Boolean, nil] :has_earnings
|
|
30
31
|
# @option params [Integer, nil] :first
|
|
@@ -48,6 +49,7 @@ module Whop_sdk
|
|
|
48
49
|
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
49
50
|
query_params = {}
|
|
50
51
|
query_params["referring_account_id"] = params[:referring_account_id] if params.key?(:referring_account_id)
|
|
52
|
+
query_params["advance_status"] = params[:advance_status] if params.key?(:advance_status)
|
|
51
53
|
query_params["status"] = params[:status] if params.key?(:status)
|
|
52
54
|
query_params["has_earnings"] = params[:has_earnings] if params.key?(:has_earnings)
|
|
53
55
|
query_params["first"] = params[:first] if params.key?(:first)
|
|
@@ -129,6 +131,103 @@ module Whop_sdk
|
|
|
129
131
|
end
|
|
130
132
|
end
|
|
131
133
|
|
|
134
|
+
# Save annual projections for a business referred by the authenticated partner. Projections cannot be changed
|
|
135
|
+
# after saving; repeating the same values is allowed. Public API access requires a partner OAuth token; business
|
|
136
|
+
# API keys are not supported.
|
|
137
|
+
#
|
|
138
|
+
# @param request_options [Hash]
|
|
139
|
+
# @param params [Whop_sdk::Partners::Businesses::Types::UpdateBusinessesRequest]
|
|
140
|
+
# @option request_options [String] :base_url
|
|
141
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
142
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
143
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
144
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
145
|
+
# @option params [String] :id
|
|
146
|
+
#
|
|
147
|
+
# @example
|
|
148
|
+
# client.partners.businesses.update(
|
|
149
|
+
# id: "id",
|
|
150
|
+
# annual_ads_usd: "120000",
|
|
151
|
+
# annual_processing_usd: "1200000"
|
|
152
|
+
# )
|
|
153
|
+
#
|
|
154
|
+
# @return [Whop_sdk::Partners::Businesses::Types::UpdateBusinessesResponse]
|
|
155
|
+
def update(request_options: {}, **params)
|
|
156
|
+
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
157
|
+
request_data = Whop_sdk::Partners::Businesses::Types::UpdateBusinessesRequest.new(params).to_h
|
|
158
|
+
non_body_param_names = %w[id]
|
|
159
|
+
body = request_data.except(*non_body_param_names)
|
|
160
|
+
|
|
161
|
+
request = Whop_sdk::Internal::JSON::Request.new(
|
|
162
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
163
|
+
method: "PATCH",
|
|
164
|
+
path: "partners/businesses/#{URI.encode_uri_component(params[:id].to_s)}",
|
|
165
|
+
body: body,
|
|
166
|
+
request_options: request_options
|
|
167
|
+
)
|
|
168
|
+
begin
|
|
169
|
+
response = @client.send(request)
|
|
170
|
+
rescue Net::HTTPRequestTimeout
|
|
171
|
+
raise Whop_sdk::Errors::TimeoutError
|
|
172
|
+
end
|
|
173
|
+
code = response.code.to_i
|
|
174
|
+
if code.between?(200, 299)
|
|
175
|
+
(response.body.to_s.empty? ? nil : Whop_sdk::Partners::Businesses::Types::UpdateBusinessesResponse.load(response.body))
|
|
176
|
+
else
|
|
177
|
+
error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
|
|
178
|
+
raise error_class.new(response.body, code: code)
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Accept the authenticated partner's CPA offer with the reviewed terms and signed offer token. Public API access
|
|
183
|
+
# requires a partner OAuth token; business API keys are not supported.
|
|
184
|
+
#
|
|
185
|
+
# @param request_options [Hash]
|
|
186
|
+
# @param params [Whop_sdk::Partners::Businesses::Types::AcceptCommissionAdvanceBusinessesRequest]
|
|
187
|
+
# @option request_options [String] :base_url
|
|
188
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
189
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
190
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
191
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
192
|
+
# @option params [String] :id
|
|
193
|
+
#
|
|
194
|
+
# @example
|
|
195
|
+
# client.partners.businesses.accept_commission_advance(
|
|
196
|
+
# id: "id",
|
|
197
|
+
# acknowledgments: %w[commission_replacement clawback term],
|
|
198
|
+
# expected_amount_usd: "1439.99",
|
|
199
|
+
# offer_token: "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
200
|
+
# terms_version: "2026-01-01"
|
|
201
|
+
# )
|
|
202
|
+
#
|
|
203
|
+
# @return [Whop_sdk::Partners::Businesses::Types::AcceptCommissionAdvanceBusinessesResponse]
|
|
204
|
+
def accept_commission_advance(request_options: {}, **params)
|
|
205
|
+
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
206
|
+
request_data = Whop_sdk::Partners::Businesses::Types::AcceptCommissionAdvanceBusinessesRequest.new(params).to_h
|
|
207
|
+
non_body_param_names = %w[id]
|
|
208
|
+
body = request_data.except(*non_body_param_names)
|
|
209
|
+
|
|
210
|
+
request = Whop_sdk::Internal::JSON::Request.new(
|
|
211
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
212
|
+
method: "POST",
|
|
213
|
+
path: "partners/businesses/#{URI.encode_uri_component(params[:id].to_s)}/accept_commission_advance",
|
|
214
|
+
body: body,
|
|
215
|
+
request_options: request_options
|
|
216
|
+
)
|
|
217
|
+
begin
|
|
218
|
+
response = @client.send(request)
|
|
219
|
+
rescue Net::HTTPRequestTimeout
|
|
220
|
+
raise Whop_sdk::Errors::TimeoutError
|
|
221
|
+
end
|
|
222
|
+
code = response.code.to_i
|
|
223
|
+
if code.between?(200, 299)
|
|
224
|
+
(response.body.to_s.empty? ? nil : Whop_sdk::Partners::Businesses::Types::AcceptCommissionAdvanceBusinessesResponse.load(response.body))
|
|
225
|
+
else
|
|
226
|
+
error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
|
|
227
|
+
raise error_class.new(response.body, code: code)
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
132
231
|
# @return [Whop_sdk::Earnings::Client]
|
|
133
232
|
def earnings
|
|
134
233
|
@earnings ||= Whop_sdk::Partners::Businesses::Earnings::Client.new(client: @client, base_url: @base_url, environment: @environment)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Partners
|
|
5
|
+
module Businesses
|
|
6
|
+
module Types
|
|
7
|
+
class AcceptCommissionAdvanceBusinessesRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :acknowledgments, -> { Internal::Types::Array[Whop_sdk::Partners::Businesses::Types::AcceptCommissionAdvanceBusinessesRequestAcknowledgmentsItem] }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :expected_amount_usd, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :offer_token, -> { String }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :terms_version, -> { String }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Partners
|
|
5
|
+
module Businesses
|
|
6
|
+
module Types
|
|
7
|
+
module AcceptCommissionAdvanceBusinessesRequestAcknowledgmentsItem
|
|
8
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
COMMISSION_REPLACEMENT = "commission_replacement"
|
|
11
|
+
CLAWBACK = "clawback"
|
|
12
|
+
TERM = "term"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Partners
|
|
5
|
+
module Businesses
|
|
6
|
+
module Types
|
|
7
|
+
class AcceptCommissionAdvanceBusinessesResponse < Internal::Types::Model
|
|
8
|
+
field :commission_advance, -> { Whop_sdk::Types::PartnerAdvance }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -7,6 +7,8 @@ module Whop_sdk
|
|
|
7
7
|
class ListBusinessesRequest < Internal::Types::Model
|
|
8
8
|
field :referring_account_id, -> { String }, optional: true, nullable: false
|
|
9
9
|
|
|
10
|
+
field :advance_status, -> { Whop_sdk::Partners::Businesses::Types::ListBusinessesRequestAdvanceStatus }, optional: true, nullable: false
|
|
11
|
+
|
|
10
12
|
field :status, -> { Whop_sdk::Partners::Businesses::Types::ListBusinessesRequestStatus }, optional: true, nullable: false
|
|
11
13
|
|
|
12
14
|
field :has_earnings, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Partners
|
|
5
|
+
module Businesses
|
|
6
|
+
module Types
|
|
7
|
+
module ListBusinessesRequestAdvanceStatus
|
|
8
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
9
|
+
|
|
10
|
+
PROJECTED = "projected"
|
|
11
|
+
AVAILABLE = "available"
|
|
12
|
+
ACCEPTED = "accepted"
|
|
13
|
+
FUNDED = "funded"
|
|
14
|
+
CLAWED_BACK = "clawed_back"
|
|
15
|
+
COMPLETED = "completed"
|
|
16
|
+
EXPIRED = "expired"
|
|
17
|
+
OFFERED = "offered"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -9,6 +9,8 @@ module Whop_sdk
|
|
|
9
9
|
|
|
10
10
|
field :blueprint_partner, -> { Whop_sdk::Partners::Businesses::Types::ListBusinessesResponseDataItemBlueprintPartner }, optional: false, nullable: true
|
|
11
11
|
|
|
12
|
+
field :commission_advance, -> { Whop_sdk::Types::PartnerAdvance }, optional: true, nullable: false
|
|
13
|
+
|
|
12
14
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
13
15
|
|
|
14
16
|
field :earnings_usd, -> { Whop_sdk::Partners::Businesses::Types::ListBusinessesResponseDataItemEarningsUsd }, optional: false, nullable: false
|
|
@@ -9,6 +9,8 @@ module Whop_sdk
|
|
|
9
9
|
|
|
10
10
|
field :blueprint_partner, -> { Whop_sdk::Partners::Businesses::Types::RetrieveBusinessesResponseBlueprintPartner }, optional: false, nullable: true
|
|
11
11
|
|
|
12
|
+
field :commission_advance, -> { Whop_sdk::Types::PartnerAdvance }, optional: true, nullable: false
|
|
13
|
+
|
|
12
14
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
13
15
|
|
|
14
16
|
field :earnings_usd, -> { Whop_sdk::Partners::Businesses::Types::RetrieveBusinessesResponseEarningsUsd }, optional: false, nullable: false
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Partners
|
|
5
|
+
module Businesses
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateBusinessesRequest < Internal::Types::Model
|
|
8
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :annual_ads_usd, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :annual_processing_usd, -> { String }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Partners
|
|
5
|
+
module Businesses
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateBusinessesResponse < Internal::Types::Model
|
|
8
|
+
field :commission_advance, -> { Whop_sdk::Types::PartnerAdvance }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -50,9 +50,8 @@ module Whop_sdk
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
# Ranks referrers by partner business earnings
|
|
54
|
-
#
|
|
55
|
-
# callers get the rankings alone.
|
|
53
|
+
# Ranks referrers by partner business earnings over the chosen `period`, all-time by default. Authentication is
|
|
54
|
+
# optional: authenticated callers also get their own standing, anonymous callers get the rankings alone.
|
|
56
55
|
#
|
|
57
56
|
# @param request_options [Hash]
|
|
58
57
|
# @param params [Hash]
|
|
@@ -94,8 +93,7 @@ module Whop_sdk
|
|
|
94
93
|
end
|
|
95
94
|
|
|
96
95
|
# Lists the users the caller referred onto Whop, newest first by default, each with the caller's total affiliate
|
|
97
|
-
# earnings from that user across all tiers.
|
|
98
|
-
# user_id=global to list referrals across partners, with earnings for each user's current primary referrer.
|
|
96
|
+
# earnings from that user across all tiers.
|
|
99
97
|
#
|
|
100
98
|
# @param request_options [Hash]
|
|
101
99
|
# @param params [Hash]
|
|
@@ -104,7 +102,6 @@ module Whop_sdk
|
|
|
104
102
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
105
103
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
106
104
|
# @option request_options [Integer] :timeout_in_seconds
|
|
107
|
-
# @option params [Whop_sdk::Partners::Types::ReferredUsersPartnersRequestUserID, nil] :user_id
|
|
108
105
|
# @option params [String, nil] :earning_partner_id
|
|
109
106
|
# @option params [String, nil] :earning_partner_username
|
|
110
107
|
# @option params [String, nil] :referring_account_id
|
|
@@ -125,7 +122,6 @@ module Whop_sdk
|
|
|
125
122
|
def referred_users(request_options: {}, **params)
|
|
126
123
|
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
127
124
|
query_params = {}
|
|
128
|
-
query_params["user_id"] = params[:user_id] if params.key?(:user_id)
|
|
129
125
|
query_params["earning_partner_id"] = params[:earning_partner_id] if params.key?(:earning_partner_id)
|
|
130
126
|
query_params["earning_partner_username"] = params[:earning_partner_username] if params.key?(:earning_partner_username)
|
|
131
127
|
query_params["referring_account_id"] = params[:referring_account_id] if params.key?(:referring_account_id)
|
|
@@ -168,10 +164,9 @@ module Whop_sdk
|
|
|
168
164
|
end
|
|
169
165
|
end
|
|
170
166
|
|
|
171
|
-
# Retrieves the authenticated user's
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
# enrolled have a null joined_at. Create and manage referral links through /partner_referral_requests.
|
|
167
|
+
# Retrieves the authenticated user's partner profile: enrollment and verification status, certification
|
|
168
|
+
# completion, active direct business referral count, and default payout rates. Other users' profiles are not
|
|
169
|
+
# accessible. To create and manage referral links, use `/partner_referral_requests`.
|
|
175
170
|
#
|
|
176
171
|
# @param request_options [Hash]
|
|
177
172
|
# @param params [Hash]
|
|
@@ -4,8 +4,6 @@ module Whop_sdk
|
|
|
4
4
|
module Partners
|
|
5
5
|
module Types
|
|
6
6
|
class ReferredUsersPartnersRequest < Internal::Types::Model
|
|
7
|
-
field :user_id, -> { Whop_sdk::Partners::Types::ReferredUsersPartnersRequestUserID }, optional: true, nullable: false
|
|
8
|
-
|
|
9
7
|
field :earning_partner_id, -> { String }, optional: true, nullable: false
|
|
10
8
|
|
|
11
9
|
field :earning_partner_username, -> { String }, optional: true, nullable: false
|
|
@@ -14,8 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Lists payment method domains
|
|
18
|
-
# connected account.
|
|
17
|
+
# Lists the payment method domains registered for your account and its connected accounts.
|
|
19
18
|
#
|
|
20
19
|
# @param request_options [Hash]
|
|
21
20
|
# @param params [Hash]
|
|
@@ -88,8 +87,8 @@ module Whop_sdk
|
|
|
88
87
|
|
|
89
88
|
# Registers a hostname with the wallet provider and attempts verification inline. Returns `verified` when the
|
|
90
89
|
# provider fetched the domain-association file (for Apple Pay,
|
|
91
|
-
# `/.well-known/apple-developer-merchantid-domain-association`), or `pending` when it could not
|
|
92
|
-
# then retry with
|
|
90
|
+
# `/.well-known/apple-developer-merchantid-domain-association`), or `pending` when it could not: host the file,
|
|
91
|
+
# then retry with `POST /payment_method_domains/:id/verify`.
|
|
93
92
|
#
|
|
94
93
|
# @param request_options [Hash]
|
|
95
94
|
# @param params [Whop_sdk::PaymentMethodDomains::Types::CreatePaymentMethodDomainsRequest]
|
|
@@ -100,7 +99,7 @@ module Whop_sdk
|
|
|
100
99
|
# @option request_options [Integer] :timeout_in_seconds
|
|
101
100
|
#
|
|
102
101
|
# @example
|
|
103
|
-
# client.payment_method_domains.create(hostname: "pending.shinetime.
|
|
102
|
+
# client.payment_method_domains.create(hostname: "pending.shinetime.com")
|
|
104
103
|
#
|
|
105
104
|
# @return [Whop_sdk::Types::PaymentMethodDomain]
|
|
106
105
|
def create(request_options: {}, **params)
|
|
@@ -14,9 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Returns a paginated list of payment methods for a member or
|
|
18
|
-
#
|
|
19
|
-
# customer intends to pay, such as a card, bank account, or digital wallet.
|
|
17
|
+
# Returns a paginated list of saved payment methods for a member or account, or for the authenticated user when
|
|
18
|
+
# you pass neither.
|
|
20
19
|
#
|
|
21
20
|
# Required permissions:
|
|
22
21
|
# - `member:payment_methods:read`
|
|
@@ -105,8 +104,8 @@ module Whop_sdk
|
|
|
105
104
|
end
|
|
106
105
|
end
|
|
107
106
|
|
|
108
|
-
# Retrieves
|
|
109
|
-
#
|
|
107
|
+
# Retrieves a saved payment method from a member's wallet when you pass `member_id` or `account_id`, or from your
|
|
108
|
+
# own otherwise.
|
|
110
109
|
#
|
|
111
110
|
# Required permissions:
|
|
112
111
|
# - `member:payment_methods:read`
|
|
@@ -14,14 +14,12 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Prices a purchase the way a payment for it will be charged
|
|
18
|
-
# the
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
# quote is priced once, in the plans' own currency or the `presentment_currency` you ask for, and may be consumed
|
|
24
|
-
# by one payment before `expires_at`.
|
|
17
|
+
# Prices a purchase the way a payment for it will be charged. The body is the `PaymentInput` a payment takes plus
|
|
18
|
+
# where the buyer is, which a seller that collects no tax on the purchase can leave out. The purchase is priced
|
|
19
|
+
# from exactly what you send: no buyer is looked up, so no stored registration or purchase history applies. Pass
|
|
20
|
+
# the quote's `id` as `quote_id` when you create the payment to charge exactly the purchase, promo code, and tax
|
|
21
|
+
# shown here. A quote is priced once and may be consumed by one payment before `expires_at`. Cart entries must
|
|
22
|
+
# name existing variants with `plan_id`.
|
|
25
23
|
#
|
|
26
24
|
# @param request_options [Hash]
|
|
27
25
|
# @param params [Whop_sdk::PaymentQuotes::Types::CreatePaymentQuotesRequest]
|
|
@@ -58,8 +56,8 @@ module Whop_sdk
|
|
|
58
56
|
end
|
|
59
57
|
end
|
|
60
58
|
|
|
61
|
-
# Retrieves a payment quote
|
|
62
|
-
#
|
|
59
|
+
# Retrieves a payment quote. Use it to check which payment holds the quote, through `payment_id`, and when it
|
|
60
|
+
# expires.
|
|
63
61
|
#
|
|
64
62
|
# @param request_options [Hash]
|
|
65
63
|
# @param params [Hash]
|
|
@@ -8,6 +8,10 @@ module Whop_sdk
|
|
|
8
8
|
|
|
9
9
|
field :ip_address, -> { String }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :line_items, -> { Internal::Types::Array[Whop_sdk::PaymentQuotes::Types::CreatePaymentQuotesRequestLineItemsItem] }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :presentment_country, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :presentment_currency, -> { String }, optional: true, nullable: false
|
|
12
16
|
|
|
13
17
|
field :shipping_address, -> { Whop_sdk::PaymentQuotes::Types::CreatePaymentQuotesRequestShippingAddress }, optional: true, nullable: false
|
|
@@ -16,8 +20,6 @@ module Whop_sdk
|
|
|
16
20
|
|
|
17
21
|
field :account_id, -> { String }, optional: false, nullable: false
|
|
18
22
|
|
|
19
|
-
field :line_items, -> { Internal::Types::Array[Whop_sdk::Types::PaymentInputLineItemsItem] }, optional: true, nullable: false
|
|
20
|
-
|
|
21
23
|
field :plan, -> { Whop_sdk::Types::PaymentInputPlan }, optional: true, nullable: false
|
|
22
24
|
|
|
23
25
|
field :plan_id, -> { String }, optional: true, nullable: false
|
|
@@ -5,7 +5,7 @@ module Whop_sdk
|
|
|
5
5
|
module Types
|
|
6
6
|
# The buyer's billing address. Where tax is calculated when no shipping address is given, and the address a tax
|
|
7
7
|
# registration belongs to. A seller that collects tax on this purchase needs the buyer located by a `country`
|
|
8
|
-
# here, on `shipping_address`, or an `ip_address`; without one the quote is refused with
|
|
8
|
+
# here, on `shipping_address`, a `presentment_country`, or an `ip_address`; without one the quote is refused with
|
|
9
9
|
# `quote_location_required`. Only the keys you supply are kept. The payment that consumes the quote must put the
|
|
10
10
|
# buyer in the same place, by country, state and postal code, through its own `shipping_address` or its
|
|
11
11
|
# confirmation token's billing address, or it is refused with `quote_mismatch`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module PaymentQuotes
|
|
5
|
+
module Types
|
|
6
|
+
class CreatePaymentQuotesRequestLineItemsItem < Internal::Types::Model
|
|
7
|
+
field :plan_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :quantity, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -14,6 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# Lists the payment rules on an account.
|
|
18
|
+
#
|
|
17
19
|
# @param request_options [Hash]
|
|
18
20
|
# @param params [Hash]
|
|
19
21
|
# @option request_options [String] :base_url
|
|
@@ -77,6 +79,9 @@ module Whop_sdk
|
|
|
77
79
|
end
|
|
78
80
|
end
|
|
79
81
|
|
|
82
|
+
# Creates a payment rule. It is created `active` and applies its `action` to new payments that match all of its
|
|
83
|
+
# `conditions`.
|
|
84
|
+
#
|
|
80
85
|
# @param request_options [Hash]
|
|
81
86
|
# @param params [Whop_sdk::PaymentRules::Types::CreatePaymentRulesRequest]
|
|
82
87
|
# @option request_options [String] :base_url
|
|
@@ -122,7 +127,8 @@ module Whop_sdk
|
|
|
122
127
|
end
|
|
123
128
|
end
|
|
124
129
|
|
|
125
|
-
#
|
|
130
|
+
# Lists the payment attributes a rule condition can read, with the operators and values each one accepts. Small
|
|
131
|
+
# and returned in full on one page.
|
|
126
132
|
#
|
|
127
133
|
# @param request_options [Hash]
|
|
128
134
|
# @param _params [Hash]
|
|
@@ -157,6 +163,8 @@ module Whop_sdk
|
|
|
157
163
|
end
|
|
158
164
|
end
|
|
159
165
|
|
|
166
|
+
# Retrieves a payment rule.
|
|
167
|
+
#
|
|
160
168
|
# @param request_options [Hash]
|
|
161
169
|
# @param params [Hash]
|
|
162
170
|
# @option request_options [String] :base_url
|
|
@@ -192,7 +200,8 @@ module Whop_sdk
|
|
|
192
200
|
end
|
|
193
201
|
end
|
|
194
202
|
|
|
195
|
-
#
|
|
203
|
+
# Deletes a payment rule. It stops applying to new payments but is kept, so the payments it already decided still
|
|
204
|
+
# name it.
|
|
196
205
|
#
|
|
197
206
|
# @param request_options [Hash]
|
|
198
207
|
# @param params [Hash]
|
|
@@ -227,9 +236,9 @@ module Whop_sdk
|
|
|
227
236
|
raise error_class.new(response.body, code: code)
|
|
228
237
|
end
|
|
229
238
|
|
|
230
|
-
#
|
|
231
|
-
# fixed once created, so the payments it decided keep naming the rule that decided them; use
|
|
232
|
-
#
|
|
239
|
+
# Updates a payment rule's name or metadata, keeping its ID and everything recorded against it. A rule's `action`
|
|
240
|
+
# and `conditions` are fixed once created, so the payments it decided keep naming the rule that decided them; use
|
|
241
|
+
# `POST /payment_rules/:id/replace` to change them.
|
|
233
242
|
#
|
|
234
243
|
# @param request_options [Hash]
|
|
235
244
|
# @param params [Whop_sdk::PaymentRules::Types::UpdatePaymentRulesRequest]
|
|
@@ -271,6 +280,8 @@ module Whop_sdk
|
|
|
271
280
|
end
|
|
272
281
|
end
|
|
273
282
|
|
|
283
|
+
# Activates an inactive payment rule so it applies to new payments again. A deleted rule cannot be activated.
|
|
284
|
+
#
|
|
274
285
|
# @param request_options [Hash]
|
|
275
286
|
# @param params [Hash]
|
|
276
287
|
# @option request_options [String] :base_url
|
|
@@ -306,7 +317,7 @@ module Whop_sdk
|
|
|
306
317
|
end
|
|
307
318
|
end
|
|
308
319
|
|
|
309
|
-
#
|
|
320
|
+
# Deactivates a payment rule so it stops applying to new payments. It keeps its ID and can be activated again.
|
|
310
321
|
#
|
|
311
322
|
# @param request_options [Hash]
|
|
312
323
|
# @param params [Hash]
|
|
@@ -343,8 +354,8 @@ module Whop_sdk
|
|
|
343
354
|
end
|
|
344
355
|
end
|
|
345
356
|
|
|
346
|
-
#
|
|
347
|
-
# rule
|
|
357
|
+
# Changes a payment rule's `action` and `conditions` by deleting it and creating its successor in one step. The
|
|
358
|
+
# successor has a new ID and keeps the replaced rule's name, metadata, and `active` or `inactive` status.
|
|
348
359
|
#
|
|
349
360
|
# @param request_options [Hash]
|
|
350
361
|
# @param params [Whop_sdk::PaymentRules::Types::ReplacePaymentRulesRequest]
|