whop_sdk 1.1.5 → 2.0.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 +505 -1
- data/README.md +1 -1
- data/lib/whop_sdk/access_tokens/client.rb +6 -2
- data/lib/whop_sdk/account_links/client.rb +6 -2
- data/lib/whop_sdk/accounts/client.rb +76 -14
- data/lib/whop_sdk/accounts/fees/client.rb +101 -0
- data/lib/whop_sdk/accounts/fees/types/retrieve_fees_request.rb +13 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request.rb +73 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_bank_deposit.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_bank_deposit_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_billing.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_billing_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_buyer.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_buyer_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_card_processing.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_card_processing_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups.rb +25 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_card_spend.rb +16 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_crypto_swaps.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_deposits_value.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_payments.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_payouts_value.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_child_markups_transfers.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_covered_payout_fees.rb +25 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_cross_border.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_cross_border_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert_cdrn.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert_cdrn_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert_ethoca.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert_ethoca_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert_rdr.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert_rdr_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_alert_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_representment.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_dispute_representment_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_foreign_exchange.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_foreign_exchange_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_fraud_screening.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_fraud_screening_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_high_risk.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_high_risk_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_marketplace.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_marketplace_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups.rb +24 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_card_spend.rb +16 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_crypto_swaps.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_deposits_value.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_payments.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_payouts_value.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_markups_transfers.rb +17 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_orchestration.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_orchestration_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_payment_methods_value.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_payment_methods_value_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_payouts_value.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_payouts_value_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_pending_auto_topup.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_pending_auto_topup_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_platform_processing.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_platform_processing_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_pool_payout.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_pool_payout_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_revshare.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_revshare_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_tax_calculation.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_tax_calculation_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_tax_service.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_tax_service_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_three_ds.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_three_ds_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_transfers.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_transfers_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/preferences/client.rb +20 -9
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_ads_payment_methods.rb +3 -2
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_ads_triple_whale_integration.rb +5 -5
- data/lib/whop_sdk/accounts/reserves/client.rb +6 -2
- data/lib/whop_sdk/accounts/types/me_accounts_request.rb +11 -0
- data/lib/whop_sdk/accounts/types/retrieve_accounts_request.rb +2 -0
- data/lib/whop_sdk/{ad_campaigns/types/retry_payment_ad_campaigns_request.rb → accounts/types/retry_ads_payment_accounts_request.rb} +2 -2
- data/lib/whop_sdk/accounts/types/retry_ads_payment_accounts_response.rb +13 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request.rb +12 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request_cancellation_policy.rb +14 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request_eula.rb +13 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request_privacy_policy.rb +13 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request_return_policy.rb +14 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request_shipping_policy.rb +13 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request_terms_of_service.rb +14 -0
- data/lib/whop_sdk/ad_campaigns/client.rb +13 -46
- data/lib/whop_sdk/ad_campaigns/types/create_ad_campaigns_request.rb +2 -0
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_payment_failed_payload_data.rb +4 -0
- 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_payment_failed_payload_data_platform.rb +1 -0
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data.rb +4 -0
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_platform.rb +1 -0
- data/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request.rb +2 -0
- data/lib/whop_sdk/ad_conversion_value_rules/client.rb +324 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request.rb +27 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_adjustment_type.rb +14 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_events_item.rb +13 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_events_item_event_name.rb +23 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_fixed_value.rb +13 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_status.rb +14 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_targets_item.rb +15 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_targets_item_platform.rb +15 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/create_ad_conversion_value_rules_request_targets_item_scope.rb +16 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/delete_ad_conversion_value_rules_request.rb +11 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/delete_ad_conversion_value_rules_response.rb +13 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/list_ad_conversion_value_rules_request.rb +29 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/list_ad_conversion_value_rules_request_direction.rb +14 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/list_ad_conversion_value_rules_request_order.rb +13 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/list_ad_conversion_value_rules_request_platform.rb +15 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/list_ad_conversion_value_rules_request_status.rb +14 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/list_ad_conversion_value_rules_response.rb +13 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/list_ad_conversion_value_rules_response_page_info.rb +17 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/pause_ad_conversion_value_rules_request.rb +11 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/retrieve_ad_conversion_value_rules_request.rb +11 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/unpause_ad_conversion_value_rules_request.rb +11 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request.rb +25 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request_adjustment_type.rb +14 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request_events_item.rb +13 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request_events_item_event_name.rb +23 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request_fixed_value.rb +13 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request_targets_item.rb +15 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request_targets_item_platform.rb +15 -0
- data/lib/whop_sdk/ad_conversion_value_rules/types/update_ad_conversion_value_rules_request_targets_item_scope.rb +16 -0
- data/lib/whop_sdk/ad_groups/client.rb +15 -11
- data/lib/whop_sdk/ad_groups/types/create_ad_groups_request.rb +2 -0
- data/lib/whop_sdk/ad_groups/types/update_ad_groups_request.rb +2 -0
- data/lib/whop_sdk/ads/client.rb +13 -9
- data/lib/whop_sdk/ads/types/create_ads_request_lead_form_completion.rb +8 -1
- data/lib/whop_sdk/ads/types/create_ads_request_lead_form_completion_button_type.rb +15 -0
- data/lib/whop_sdk/ads/types/post_ad_updated_payload_data.rb +2 -0
- data/lib/whop_sdk/ads/types/post_ad_updated_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ads/types/post_ad_updated_payload_data_platform.rb +15 -0
- data/lib/whop_sdk/ads/types/update_ads_request_lead_form_completion.rb +8 -1
- data/lib/whop_sdk/ads/types/update_ads_request_lead_form_completion_button_type.rb +15 -0
- data/lib/whop_sdk/affiliates/client.rb +11 -7
- data/lib/whop_sdk/affiliates/overrides/client.rb +10 -6
- data/lib/whop_sdk/ai_chats/client.rb +10 -6
- data/lib/whop_sdk/api_keys/client.rb +12 -8
- 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/api_logs/client.rb +6 -2
- data/lib/whop_sdk/app_builds/client.rb +9 -5
- data/lib/whop_sdk/apps/client.rb +13 -9
- data/lib/whop_sdk/audiences/client.rb +10 -6
- data/lib/whop_sdk/authorized_users/client.rb +9 -5
- data/lib/whop_sdk/bounties/client.rb +11 -7
- data/lib/whop_sdk/bounties/submissions/client.rb +7 -3
- data/lib/whop_sdk/bounty_submissions/client.rb +10 -6
- data/lib/whop_sdk/card_transactions/client.rb +7 -3
- data/lib/whop_sdk/cards/client.rb +9 -5
- data/lib/whop_sdk/cashback_rules/client.rb +12 -9
- data/lib/whop_sdk/cashback_rules/types/create_cashback_rules_request.rb +2 -2
- data/lib/whop_sdk/chat_channels/client.rb +8 -4
- data/lib/whop_sdk/checkout_configurations/client.rb +9 -5
- data/lib/whop_sdk/checkout_configurations/types/create_checkout_configurations_request_payment_method_configuration.rb +2 -2
- data/lib/whop_sdk/checkout_configurations/types/create_checkout_configurations_request_plan_payment_method_configuration.rb +2 -2
- data/lib/whop_sdk/client.rb +104 -90
- data/lib/whop_sdk/company_token_transactions/client.rb +8 -4
- data/lib/whop_sdk/confirmation_tokens/client.rb +6 -63
- data/lib/whop_sdk/course_chapters/client.rb +10 -6
- data/lib/whop_sdk/course_lesson_interactions/client.rb +7 -3
- data/lib/whop_sdk/course_lessons/client.rb +13 -9
- data/lib/whop_sdk/course_students/client.rb +7 -3
- data/lib/whop_sdk/courses/client.rb +10 -6
- data/lib/whop_sdk/deposits/client.rb +6 -2
- data/lib/whop_sdk/dispute_alerts/client.rb +7 -3
- data/lib/whop_sdk/disputes/client.rb +23 -13
- data/lib/whop_sdk/disputes/types/update_disputes_request_evidence.rb +2 -0
- data/lib/whop_sdk/disputes/types/update_disputes_request_evidence_cancellation_policy_attachment.rb +2 -1
- data/lib/whop_sdk/disputes/types/update_disputes_request_evidence_documents_item.rb +17 -0
- data/lib/whop_sdk/disputes/types/update_disputes_request_evidence_documents_item_document_type.rb +24 -0
- data/lib/whop_sdk/disputes/types/update_disputes_request_evidence_refund_policy_attachment.rb +1 -1
- data/lib/whop_sdk/disputes/types/upload_evidence_disputes_request_documents_item_document_type.rb +3 -0
- data/lib/whop_sdk/dm_channels/client.rb +10 -6
- data/lib/whop_sdk/dm_members/client.rb +10 -6
- data/lib/whop_sdk/domains/client.rb +10 -6
- data/lib/whop_sdk/economic_intelligence/client.rb +12 -46
- data/lib/whop_sdk/economic_intelligence/types/list_economic_intelligence_request.rb +2 -0
- data/lib/whop_sdk/economic_intelligence/types/update_economic_intelligence_request.rb +6 -2
- data/lib/whop_sdk/economic_intelligence/types/update_economic_intelligence_request_sentiment.rb +14 -0
- data/lib/whop_sdk/environment.rb +3 -1
- data/lib/whop_sdk/events/client.rb +9 -5
- data/lib/whop_sdk/events/types/list_events_response_data_item.rb +0 -4
- data/lib/whop_sdk/experiences/client.rb +13 -9
- data/lib/whop_sdk/experiments/client.rb +13 -9
- data/lib/whop_sdk/exports/client.rb +8 -4
- data/lib/whop_sdk/fee_markups/client.rb +8 -4
- data/lib/whop_sdk/files/client.rb +9 -5
- data/lib/whop_sdk/financial_activity/client.rb +7 -3
- 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 +6 -2
- data/lib/whop_sdk/financial_reports/client.rb +7 -3
- 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 +9 -5
- data/lib/whop_sdk/forums/client.rb +8 -4
- data/lib/whop_sdk/identity_profiles/client.rb +9 -5
- data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
- data/lib/whop_sdk/invoices/client.rb +14 -10
- data/lib/whop_sdk/leads/client.rb +9 -5
- data/lib/whop_sdk/ledger_accounts/client.rb +6 -2
- data/lib/whop_sdk/media/client.rb +7 -3
- data/lib/whop_sdk/members/client.rb +8 -4
- data/lib/whop_sdk/members/logs/client.rb +6 -2
- data/lib/whop_sdk/memberships/client.rb +15 -11
- data/lib/whop_sdk/messages/client.rb +10 -6
- data/lib/whop_sdk/notifications/client.rb +11 -7
- data/lib/whop_sdk/notifications/topics/client.rb +6 -2
- data/lib/whop_sdk/partner_referral_requests/client.rb +295 -0
- data/lib/whop_sdk/partner_referral_requests/types/accept_partner_referral_requests_request.rb +11 -0
- data/lib/whop_sdk/partner_referral_requests/types/cancel_partner_referral_requests_request.rb +11 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body.rb +17 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_account_id.rb +11 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_account_url.rb +11 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_code.rb +20 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_code_request_type.rb +13 -0
- data/lib/whop_sdk/partner_referral_requests/types/decline_partner_referral_requests_request.rb +11 -0
- data/lib/whop_sdk/partner_referral_requests/types/list_partner_referral_requests_request.rb +29 -0
- data/lib/whop_sdk/partner_referral_requests/types/list_partner_referral_requests_request_direction.rb +14 -0
- data/lib/whop_sdk/partner_referral_requests/types/list_partner_referral_requests_request_order.rb +13 -0
- data/lib/whop_sdk/partner_referral_requests/types/list_partner_referral_requests_request_request_type.rb +15 -0
- data/lib/whop_sdk/partner_referral_requests/types/list_partner_referral_requests_request_status.rb +16 -0
- data/lib/whop_sdk/partner_referral_requests/types/list_partner_referral_requests_response.rb +13 -0
- data/lib/whop_sdk/partner_referral_requests/types/list_partner_referral_requests_response_page_info.rb +17 -0
- data/lib/whop_sdk/partner_referral_requests/types/retrieve_partner_referral_requests_request.rb +11 -0
- data/lib/whop_sdk/partners/businesses/client.rb +8 -4
- data/lib/whop_sdk/partners/businesses/earnings/client.rb +6 -2
- 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/earnings/types/list_earnings_response_data_item_resource.rb +5 -2
- data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_resource_created_at.rb +21 -0
- data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_resource_created_at_object.rb +17 -0
- data/lib/whop_sdk/partners/businesses/earnings/types/{list_earnings_response_data_item_resource_business_id.rb → list_earnings_response_data_item_resource_slug.rb} +2 -2
- data/lib/whop_sdk/partners/businesses/earnings/types/{list_earnings_response_data_item_resource_business_id_object.rb → list_earnings_response_data_item_resource_slug_object.rb} +1 -1
- data/lib/whop_sdk/partners/client.rb +15 -14
- data/lib/whop_sdk/partners/types/referred_users_partners_request.rb +2 -0
- data/lib/whop_sdk/partners/types/referred_users_partners_response_data_item.rb +8 -0
- data/lib/whop_sdk/payment_method_domains/client.rb +10 -6
- data/lib/whop_sdk/payment_methods/client.rb +8 -4
- data/lib/whop_sdk/payment_rules/client.rb +14 -10
- data/lib/whop_sdk/payments/client.rb +25 -16
- data/lib/whop_sdk/payments/direct/client.rb +75 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +39 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_billing_details.rb +20 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_billing_details_address.rb +24 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_payment_method.rb +18 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_payment_method_card.rb +16 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_payment_method_card_details.rb +21 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_payment_method_type.rb +15 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan.rb +43 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_currency.rb +104 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_plan_type.rb +16 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product.rb +36 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product_global_affiliate_status.rb +16 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product_visibility.rb +18 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_visibility.rb +18 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_setup_future_usage.rb +16 -0
- data/lib/whop_sdk/payments/types/create_payments_request.rb +2 -0
- data/lib/whop_sdk/payments/types/create_payments_request_shipping_address.rb +25 -0
- data/lib/whop_sdk/payout_accounts/client.rb +6 -2
- data/lib/whop_sdk/payout_methods/client.rb +7 -3
- data/lib/whop_sdk/payouts/client.rb +12 -8
- data/lib/whop_sdk/payouts/methods/client.rb +9 -5
- data/lib/whop_sdk/payouts/supported_methods/client.rb +6 -2
- data/lib/whop_sdk/people/client.rb +45 -3
- data/lib/whop_sdk/people/types/list_people_request.rb +38 -0
- data/lib/whop_sdk/permissions/client.rb +6 -2
- data/lib/whop_sdk/plans/client.rb +11 -7
- data/lib/whop_sdk/plans/types/create_plans_request.rb +4 -0
- data/lib/whop_sdk/plans/types/create_plans_request_payment_method_configuration.rb +4 -3
- data/lib/whop_sdk/plans/types/update_plans_request.rb +4 -0
- data/lib/whop_sdk/plans/types/update_plans_request_payment_method_configuration.rb +4 -3
- data/lib/whop_sdk/products/client.rb +12 -8
- data/lib/whop_sdk/promo_codes/client.rb +11 -7
- data/lib/whop_sdk/reactions/client.rb +9 -5
- data/lib/whop_sdk/refunds/client.rb +7 -3
- data/lib/whop_sdk/resolution_center_cases/client.rb +16 -12
- data/lib/whop_sdk/reviews/client.rb +7 -3
- data/lib/whop_sdk/setup_intents/client.rb +46 -54
- data/lib/whop_sdk/setup_intents/direct/client.rb +76 -0
- data/lib/whop_sdk/setup_intents/direct/types/create_direct_request.rb +25 -0
- data/lib/whop_sdk/setup_intents/direct/types/create_direct_request_billing_details.rb +20 -0
- data/lib/whop_sdk/setup_intents/direct/types/create_direct_request_billing_details_address.rb +24 -0
- data/lib/whop_sdk/setup_intents/direct/types/create_direct_request_payment_method.rb +18 -0
- data/lib/whop_sdk/setup_intents/direct/types/create_direct_request_payment_method_card.rb +16 -0
- data/lib/whop_sdk/setup_intents/direct/types/create_direct_request_payment_method_card_details.rb +21 -0
- data/lib/whop_sdk/setup_intents/direct/types/create_direct_request_payment_method_type.rb +15 -0
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_request.rb +11 -4
- data/lib/whop_sdk/setup_intents/types/list_setup_intents_request.rb +12 -8
- data/lib/whop_sdk/setup_intents/types/list_setup_intents_request_direction.rb +14 -0
- data/lib/whop_sdk/setup_intents/types/list_setup_intents_request_order.rb +13 -0
- data/lib/whop_sdk/setup_intents/types/list_setup_intents_request_status.rb +16 -0
- data/lib/whop_sdk/setup_intents/types/list_setup_intents_response.rb +2 -3
- data/lib/whop_sdk/setup_intents/types/list_setup_intents_response_page_info.rb +17 -0
- data/lib/whop_sdk/shipments/client.rb +9 -5
- data/lib/whop_sdk/social_accounts/client.rb +55 -7
- data/lib/whop_sdk/social_accounts/types/connect_social_accounts_request_platform.rb +2 -0
- data/lib/whop_sdk/social_accounts/types/list_social_accounts_request_platform.rb +2 -0
- data/lib/whop_sdk/social_accounts/types/refresh_social_accounts_request.rb +13 -0
- data/lib/whop_sdk/stats/client.rb +77 -4
- data/lib/whop_sdk/stats/types/list_stats_response_data_item.rb +2 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_request.rb +64 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_response_data_points_item.rb +2 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_response_data_points_item_breakdown_item.rb +2 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_response_data_totals_item.rb +6 -0
- data/lib/whop_sdk/support_channels/client.rb +8 -4
- data/lib/whop_sdk/swaps/client.rb +9 -5
- data/lib/whop_sdk/team_members/client.rb +10 -6
- data/lib/whop_sdk/topups/client.rb +6 -2
- data/lib/whop_sdk/transfers/client.rb +9 -5
- data/lib/whop_sdk/types/account.rb +10 -0
- data/lib/whop_sdk/types/account_covered_payout_fees.rb +19 -0
- data/lib/whop_sdk/types/account_fee.rb +33 -0
- data/lib/whop_sdk/types/account_fee_category.rb +15 -0
- data/lib/whop_sdk/types/account_fee_markup.rb +21 -0
- data/lib/whop_sdk/types/{partner_reward_link_reward_type.rb → account_fee_markup_source.rb} +3 -3
- data/lib/whop_sdk/types/account_fee_markup_unadjustable_reason.rb +11 -0
- data/lib/whop_sdk/types/account_fee_markups.rb +19 -0
- data/lib/whop_sdk/types/account_fee_rate.rb +11 -0
- data/lib/whop_sdk/types/account_fee_region.rb +26 -0
- data/lib/whop_sdk/types/account_fee_regional_rate.rb +21 -0
- data/lib/whop_sdk/types/account_fee_regional_rate_source.rb +13 -0
- data/lib/whop_sdk/types/account_fee_source.rb +13 -0
- data/lib/whop_sdk/types/{entries_sortable_columns.rb → account_fee_unadjustable_reason.rb} +2 -3
- data/lib/whop_sdk/types/account_fees.rb +69 -0
- data/lib/whop_sdk/types/{entry_list_item_user.rb → account_partner.rb} +3 -2
- data/lib/whop_sdk/types/account_partner_reward.rb +19 -0
- data/lib/whop_sdk/types/{partner_reward_link_qualification_income_source.rb → account_partner_reward_qualification_type.rb} +1 -1
- data/lib/whop_sdk/types/account_partner_reward_status.rb +16 -0
- data/lib/whop_sdk/types/account_required_action_action.rb +2 -1
- data/lib/whop_sdk/types/ad.rb +2 -0
- data/lib/whop_sdk/types/ad_campaign.rb +4 -0
- data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
- data/lib/whop_sdk/types/ad_campaign_platform.rb +1 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule.rb +29 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule_adjustment_type.rb +12 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule_event.rb +11 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule_event_event_name.rb +21 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule_status.rb +12 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule_target.rb +15 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule_target_platform.rb +13 -0
- data/lib/whop_sdk/types/ad_conversion_value_rule_target_scope.rb +14 -0
- data/lib/whop_sdk/types/ad_delivery_status.rb +1 -0
- data/lib/whop_sdk/types/ad_group.rb +6 -0
- data/lib/whop_sdk/types/ad_group_custom_location.rb +2 -0
- data/lib/whop_sdk/types/ad_group_delivery_status.rb +1 -0
- data/lib/whop_sdk/types/ad_group_geo_locations_body_custom_locations_item.rb +2 -0
- data/lib/whop_sdk/types/ad_group_platform.rb +13 -0
- data/lib/whop_sdk/types/ad_lead_form_completion.rb +6 -0
- data/lib/whop_sdk/types/ad_lead_form_completion_button_type.rb +13 -0
- data/lib/whop_sdk/types/ad_platform.rb +13 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +6 -0
- data/lib/whop_sdk/types/cashback_rule.rb +2 -2
- data/lib/whop_sdk/types/dispute.rb +2 -6
- data/lib/whop_sdk/types/dispute_alert.rb +0 -4
- data/lib/whop_sdk/types/dispute_evidence_document_document_type.rb +3 -0
- data/lib/whop_sdk/types/economic_intelligence.rb +6 -0
- data/lib/whop_sdk/types/economic_intelligence_operation.rb +11 -0
- data/lib/whop_sdk/types/economic_intelligence_sentiment.rb +12 -0
- data/lib/whop_sdk/types/funnel_comparison.rb +15 -0
- data/lib/whop_sdk/types/funnel_confidence_interval.rb +11 -0
- data/lib/whop_sdk/types/funnel_step.rb +41 -0
- data/lib/whop_sdk/types/funnel_step_result.rb +13 -0
- data/lib/whop_sdk/types/ledger_activity_line_type.rb +2 -0
- data/lib/whop_sdk/types/partner.rb +2 -0
- data/lib/whop_sdk/types/partner_referral_request.rb +27 -0
- data/lib/whop_sdk/types/partner_referral_request_request_type.rb +13 -0
- data/lib/whop_sdk/types/partner_referral_request_status.rb +14 -0
- data/lib/whop_sdk/types/partner_referral_reward.rb +19 -0
- data/lib/whop_sdk/types/partner_referral_reward_bot_qualification_type.rb +12 -0
- data/lib/whop_sdk/types/partner_referral_reward_recipient.rb +12 -0
- data/lib/whop_sdk/types/payment.rb +4 -0
- data/lib/whop_sdk/types/payment_fee_origin.rb +1 -0
- data/lib/whop_sdk/types/payment_hold.rb +15 -0
- data/lib/whop_sdk/types/payment_hold_type.rb +15 -0
- data/lib/whop_sdk/types/payment_instrument_card.rb +5 -1
- data/lib/whop_sdk/types/payment_legacy_verification_checks.rb +2 -0
- data/lib/whop_sdk/types/payment_method_types.rb +1 -0
- data/lib/whop_sdk/types/payment_verification_checks.rb +2 -0
- data/lib/whop_sdk/types/permission_action.rb +10 -0
- data/lib/whop_sdk/types/plan.rb +6 -0
- data/lib/whop_sdk/types/plan_list_item.rb +6 -0
- data/lib/whop_sdk/types/product.rb +4 -0
- data/lib/whop_sdk/types/product_list_item.rb +2 -0
- data/lib/whop_sdk/types/retrieve_stats_request_steps.rb +27 -0
- data/lib/whop_sdk/types/setup_intent.rb +19 -8
- data/lib/whop_sdk/types/setup_intent_legacy.rb +28 -0
- data/lib/whop_sdk/types/{setup_intent_checkout_configuration.rb → setup_intent_legacy_checkout_configuration.rb} +1 -1
- data/lib/whop_sdk/types/{setup_intent_company.rb → setup_intent_legacy_company.rb} +1 -1
- data/lib/whop_sdk/types/{setup_intent_member.rb → setup_intent_legacy_member.rb} +2 -2
- data/lib/whop_sdk/types/{setup_intent_member_user.rb → setup_intent_legacy_member_user.rb} +1 -1
- data/lib/whop_sdk/types/{setup_intent_payment_method.rb → setup_intent_legacy_payment_method.rb} +3 -3
- data/lib/whop_sdk/types/{setup_intent_payment_method_card.rb → setup_intent_legacy_payment_method_card.rb} +1 -1
- data/lib/whop_sdk/types/{setup_intent_payment_method_mailing_address.rb → setup_intent_legacy_payment_method_mailing_address.rb} +1 -1
- data/lib/whop_sdk/types/setup_intent_status.rb +14 -0
- data/lib/whop_sdk/types/social_account_parent_platform.rb +2 -0
- data/lib/whop_sdk/types/social_account_platform.rb +2 -0
- data/lib/whop_sdk/types/specific_fee_origins.rb +1 -0
- data/lib/whop_sdk/types/trading_account.rb +23 -0
- data/lib/whop_sdk/types/trading_account_object.rb +11 -0
- data/lib/whop_sdk/types/trading_account_provider.rb +11 -0
- data/lib/whop_sdk/types/trading_cumulative_funding.rb +13 -0
- data/lib/whop_sdk/types/trading_hyperliquid_account.rb +17 -0
- data/lib/whop_sdk/types/trading_hyperliquid_order.rb +11 -0
- data/lib/whop_sdk/types/trading_hyperliquid_position.rb +17 -0
- data/lib/whop_sdk/types/trading_margin_summary.rb +17 -0
- data/lib/whop_sdk/types/trading_order.rb +37 -0
- data/lib/whop_sdk/types/trading_order_object.rb +11 -0
- data/lib/whop_sdk/types/trading_order_order_type.rb +14 -0
- data/lib/whop_sdk/types/trading_order_side.rb +12 -0
- data/lib/whop_sdk/types/trading_order_status.rb +15 -0
- data/lib/whop_sdk/types/trading_order_time_in_force.rb +13 -0
- data/lib/whop_sdk/types/trading_position.rb +25 -0
- data/lib/whop_sdk/types/trading_position_leverage.rb +11 -0
- data/lib/whop_sdk/types/trading_position_leverage_type.rb +12 -0
- data/lib/whop_sdk/types/trading_position_object.rb +11 -0
- data/lib/whop_sdk/types/trading_position_side.rb +12 -0
- data/lib/whop_sdk/types/trading_websocket_subscription.rb +11 -0
- data/lib/whop_sdk/types/trading_websocket_subscription_channel.rb +15 -0
- data/lib/whop_sdk/types/user.rb +2 -0
- data/lib/whop_sdk/types/waitlist_entry.rb +33 -0
- data/lib/whop_sdk/types/waitlist_entry_approval_failure_reason.rb +14 -0
- data/lib/whop_sdk/types/waitlist_entry_custom_field_response.rb +13 -0
- data/lib/whop_sdk/types/waitlist_entry_status.rb +14 -0
- data/lib/whop_sdk/types/webhook_event.rb +1 -1
- data/lib/whop_sdk/types/webhook_events_item.rb +2 -1
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +2 -1
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +2 -1
- data/lib/whop_sdk/users/client.rb +19 -11
- data/lib/whop_sdk/users/oauth_grants/client.rb +7 -3
- data/lib/whop_sdk/users/passkeys/client.rb +9 -5
- data/lib/whop_sdk/users/preferences/client.rb +8 -4
- data/lib/whop_sdk/users/preferences/notifications/client.rb +8 -4
- data/lib/whop_sdk/users/preferences/notifications/experiences/client.rb +6 -2
- data/lib/whop_sdk/users/preferences/notifications/topics/client.rb +6 -2
- data/lib/whop_sdk/users/types/me_users_request.rb +2 -0
- data/lib/whop_sdk/users/types/retrieve_users_request.rb +2 -0
- data/lib/whop_sdk/verifications/client.rb +9 -5
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk/waitlist_entries/client.rb +322 -0
- data/lib/whop_sdk/waitlist_entries/types/approve_all_waitlist_entries_request.rb +13 -0
- data/lib/whop_sdk/waitlist_entries/types/approve_all_waitlist_entries_response.rb +15 -0
- data/lib/whop_sdk/{entries/types/retrieve_entries_request.rb → waitlist_entries/types/approve_waitlist_entries_request.rb} +2 -2
- data/lib/whop_sdk/{entries/types/approve_entries_request.rb → waitlist_entries/types/cancel_waitlist_entries_request.rb} +2 -2
- data/lib/whop_sdk/waitlist_entries/types/create_waitlist_entries_request.rb +15 -0
- data/lib/whop_sdk/waitlist_entries/types/create_waitlist_entries_request_custom_field_responses_item.rb +13 -0
- data/lib/whop_sdk/{entries/types/deny_entries_request.rb → waitlist_entries/types/deny_waitlist_entries_request.rb} +2 -2
- data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_request.rb +33 -0
- data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_request_direction.rb +14 -0
- data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_request_order.rb +13 -0
- data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_request_status.rb +16 -0
- data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_response.rb +13 -0
- data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_response_page_info.rb +17 -0
- data/lib/whop_sdk/waitlist_entries/types/retrieve_waitlist_entries_request.rb +11 -0
- data/lib/whop_sdk/webhooks/client.rb +14 -10
- data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +4 -1
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +4 -1
- data/lib/whop_sdk.rb +292 -90
- data/reference.md +9087 -6743
- metadata +261 -59
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request.rb +0 -21
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_billing_details.rb +0 -19
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method.rb +0 -34
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_apple_pay.rb +0 -14
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_balance.rb +0 -14
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_bank_debit.rb +0 -14
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_card.rb +0 -18
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_category.rb +0 -22
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_google_pay.rb +0 -12
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_payer_document.rb +0 -15
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_payer_document_type.rb +0 -21
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_redirect.rb +0 -10
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_payment_method_saved.rb +0 -13
- data/lib/whop_sdk/confirmation_tokens/types/create_confirmation_tokens_request_setup_future_usage.rb +0 -14
- data/lib/whop_sdk/economic_intelligence/types/create_economic_intelligence_request.rb +0 -13
- data/lib/whop_sdk/entries/client.rb +0 -219
- data/lib/whop_sdk/entries/types/approve_entries_response.rb +0 -12
- data/lib/whop_sdk/entries/types/list_entries_request.rb +0 -33
- data/lib/whop_sdk/entries/types/list_entries_response.rb +0 -14
- data/lib/whop_sdk/partners/links/client.rb +0 -75
- data/lib/whop_sdk/partners/links/types/list_links_request.rb +0 -21
- data/lib/whop_sdk/partners/links/types/list_links_request_status_item.rb +0 -18
- data/lib/whop_sdk/partners/links/types/list_links_response.rb +0 -17
- data/lib/whop_sdk/partners/links/types/list_links_response_page_info.rb +0 -19
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_request_confirmation_token.rb +0 -22
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_request_payment_method_id.rb +0 -22
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response.rb +0 -32
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response_checkout_configuration.rb +0 -12
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response_company.rb +0 -12
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response_member.rb +0 -14
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response_member_user.rb +0 -18
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response_payment_method.rb +0 -20
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response_payment_method_card.rb +0 -18
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_response_payment_method_mailing_address.rb +0 -24
- data/lib/whop_sdk/types/dispute_alert_not_actionable_reason.rb +0 -15
- data/lib/whop_sdk/types/entry_list_item.rb +0 -20
- data/lib/whop_sdk/types/entry_list_item_plan.rb +0 -10
- data/lib/whop_sdk/types/entry_list_item_product.rb +0 -12
- data/lib/whop_sdk/types/partner_reward_link.rb +0 -31
- data/lib/whop_sdk/types/partner_reward_link_status.rb +0 -14
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestPayoutsValueRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestPendingAutoTopup < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestPendingAutoTopupRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestPendingAutoTopupRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestPlatformProcessing < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestPlatformProcessingRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/whop_sdk/accounts/fees/types/update_fees_request_platform_processing_regions_value.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestPlatformProcessingRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestPoolPayout < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestPoolPayoutRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestPoolPayoutRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestRevshare < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestRevshareRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestRevshareRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestTaxCalculation < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestTaxCalculationRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestTaxCalculationRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestTaxService < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestTaxServiceRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestTaxServiceRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestThreeDs < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestThreeDsRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestThreeDsRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
# The fields of a fee the caller may change. Only the keys sent are replaced.
|
|
8
|
+
class UpdateFeesRequestTransfers < Internal::Types::Model
|
|
9
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :regions, -> { Internal::Types::Hash[String, Whop_sdk::Accounts::Fees::Types::UpdateFeesRequestTransfersRegionsValue] }, optional: true, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Fees
|
|
6
|
+
module Types
|
|
7
|
+
class UpdateFeesRequestTransfersRegionsValue < Internal::Types::Model
|
|
8
|
+
field :fixed, -> { Integer }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :percentage, -> { Integer }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -5,10 +5,14 @@ module Whop_sdk
|
|
|
5
5
|
module Preferences
|
|
6
6
|
class Client
|
|
7
7
|
# @param client [Whop_sdk::Internal::Http::RawClient]
|
|
8
|
+
# @param base_url [String, nil]
|
|
9
|
+
# @param environment [Hash[Symbol, String], nil]
|
|
8
10
|
#
|
|
9
11
|
# @return [void]
|
|
10
|
-
def initialize(client:)
|
|
12
|
+
def initialize(client:, base_url: nil, environment: nil)
|
|
11
13
|
@client = client
|
|
14
|
+
@base_url = base_url
|
|
15
|
+
@environment = environment
|
|
12
16
|
end
|
|
13
17
|
|
|
14
18
|
# Retrieves the account's preferences: a singleton settings document keyed by preference name.
|
|
@@ -29,7 +33,7 @@ module Whop_sdk
|
|
|
29
33
|
def retrieve(request_options: {}, **params)
|
|
30
34
|
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
31
35
|
request = Whop_sdk::Internal::JSON::Request.new(
|
|
32
|
-
base_url: request_options[:base_url],
|
|
36
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
33
37
|
method: "GET",
|
|
34
38
|
path: "accounts/#{URI.encode_uri_component(params[:account_id].to_s)}/preferences",
|
|
35
39
|
request_options: request_options
|
|
@@ -49,12 +53,19 @@ module Whop_sdk
|
|
|
49
53
|
end
|
|
50
54
|
|
|
51
55
|
# Updates the account's preferences. Each top-level key present in the body is replaced as a whole; omitted keys
|
|
52
|
-
# are left untouched.
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
#
|
|
56
|
+
# are left untouched.
|
|
57
|
+
#
|
|
58
|
+
# Required scopes depend on the preferences being updated:
|
|
59
|
+
#
|
|
60
|
+
# | Preferences | Required scope |
|
|
61
|
+
# | --- | --- |
|
|
62
|
+
# | `ads_payment_methods`, `ads_reporting_currency`, `ads_scheduling_timezone`, `ads_triple_whale_integration`,
|
|
63
|
+
# `ads_certifications` | `ad_campaign:create` |
|
|
64
|
+
# | `cards_auto_top_up`, `cards_notifications` | `payout:account:update` |
|
|
65
|
+
# | `dispute_fighter_enabled` | `payment:dispute` |
|
|
66
|
+
# | `economic_intelligence` | `company:update` |
|
|
67
|
+
#
|
|
68
|
+
# When updating preferences from multiple rows, all corresponding scopes are required for the account.
|
|
58
69
|
#
|
|
59
70
|
# @param request_options [Hash]
|
|
60
71
|
# @param params [Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequest]
|
|
@@ -76,7 +87,7 @@ module Whop_sdk
|
|
|
76
87
|
body = request_data.except(*non_body_param_names)
|
|
77
88
|
|
|
78
89
|
request = Whop_sdk::Internal::JSON::Request.new(
|
|
79
|
-
base_url: request_options[:base_url],
|
|
90
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
80
91
|
method: "PATCH",
|
|
81
92
|
path: "accounts/#{URI.encode_uri_component(params[:account_id].to_s)}/preferences",
|
|
82
93
|
body: body,
|
data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_ads_payment_methods.rb
CHANGED
|
@@ -4,8 +4,9 @@ module Whop_sdk
|
|
|
4
4
|
module Accounts
|
|
5
5
|
module Preferences
|
|
6
6
|
module Types
|
|
7
|
-
# How the account pays for Whop Ads spend. `primary` is
|
|
8
|
-
# primary fails.
|
|
7
|
+
# How the account pays for Whop Ads spend. Requires `primary`; `backup` is optional and covers the charge when
|
|
8
|
+
# the primary fails. Requires the `ad_campaign:create` scope on your API key. Configuring a `card` requires a
|
|
9
|
+
# user token; account API keys can configure only `platform_balance` sources.
|
|
9
10
|
class UpdatePreferencesRequestAdsPaymentMethods < Internal::Types::Model
|
|
10
11
|
field :backup, -> { Whop_sdk::Accounts::Preferences::Types::UpdatePreferencesRequestAdsPaymentMethodsBackup }, optional: true, nullable: false
|
|
11
12
|
|
|
@@ -4,12 +4,12 @@ module Whop_sdk
|
|
|
4
4
|
module Accounts
|
|
5
5
|
module Preferences
|
|
6
6
|
module Types
|
|
7
|
-
# Connects or disconnects the Triple Whale integration
|
|
8
|
-
# requires a shop domain to report spend against — either
|
|
9
|
-
# without a connected Shopify store, e.g. WooCommerce, a
|
|
10
|
-
# or a Shopify store connected on the Fulfillment page.
|
|
7
|
+
# Connects or disconnects the Triple Whale integration, or changes the shop it reports to. Requires the
|
|
8
|
+
# `ad_campaign:create` scope on your API key. Connecting requires a shop domain to report spend against — either
|
|
9
|
+
# an explicit `shop_domain` (required for any merchant without a connected Shopify store, e.g. WooCommerce, a
|
|
10
|
+
# custom checkout, or a white-label platform's merchant) or a Shopify store connected on the Fulfillment page.
|
|
11
11
|
class UpdatePreferencesRequestAdsTripleWhaleIntegration < Internal::Types::Model
|
|
12
|
-
field :api_key, -> { String }, optional:
|
|
12
|
+
field :api_key, -> { String }, optional: true, nullable: false
|
|
13
13
|
|
|
14
14
|
field :shop_domain, -> { String }, optional: true, nullable: false
|
|
15
15
|
end
|
|
@@ -5,10 +5,14 @@ module Whop_sdk
|
|
|
5
5
|
module Reserves
|
|
6
6
|
class Client
|
|
7
7
|
# @param client [Whop_sdk::Internal::Http::RawClient]
|
|
8
|
+
# @param base_url [String, nil]
|
|
9
|
+
# @param environment [Hash[Symbol, String], nil]
|
|
8
10
|
#
|
|
9
11
|
# @return [void]
|
|
10
|
-
def initialize(client:)
|
|
12
|
+
def initialize(client:, base_url: nil, environment: nil)
|
|
11
13
|
@client = client
|
|
14
|
+
@base_url = base_url
|
|
15
|
+
@environment = environment
|
|
12
16
|
end
|
|
13
17
|
|
|
14
18
|
# Lists what the account's held balance is made of, one entry per currency: the total held, why each part is
|
|
@@ -30,7 +34,7 @@ module Whop_sdk
|
|
|
30
34
|
def list(request_options: {}, **params)
|
|
31
35
|
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
32
36
|
request = Whop_sdk::Internal::JSON::Request.new(
|
|
33
|
-
base_url: request_options[:base_url],
|
|
37
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
34
38
|
method: "GET",
|
|
35
39
|
path: "accounts/#{URI.encode_uri_component(params[:account_id].to_s)}/reserves",
|
|
36
40
|
request_options: request_options
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
module Whop_sdk
|
|
4
|
-
module
|
|
4
|
+
module Accounts
|
|
5
5
|
module Types
|
|
6
|
-
class
|
|
6
|
+
class RetryAdsPaymentAccountsRequest < Internal::Types::Model
|
|
7
7
|
field :id, -> { String }, optional: false, nullable: false
|
|
8
8
|
end
|
|
9
9
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
class RetryAdsPaymentAccountsResponse < Internal::Types::Model
|
|
7
|
+
field :account_id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :queued, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -18,12 +18,16 @@ module Whop_sdk
|
|
|
18
18
|
|
|
19
19
|
field :business_type, -> { String }, optional: true, nullable: false
|
|
20
20
|
|
|
21
|
+
field :cancellation_policy, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestCancellationPolicy }, optional: true, nullable: false
|
|
22
|
+
|
|
21
23
|
field :collect_vat_id, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
22
24
|
|
|
23
25
|
field :country, -> { String }, optional: true, nullable: false
|
|
24
26
|
|
|
25
27
|
field :description, -> { String }, optional: true, nullable: false
|
|
26
28
|
|
|
29
|
+
field :eula, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestEula }, optional: true, nullable: false
|
|
30
|
+
|
|
27
31
|
field :featured_affiliate_product_id, -> { String }, optional: true, nullable: false
|
|
28
32
|
|
|
29
33
|
field :home_preferences, -> { Internal::Types::Array[Whop_sdk::Accounts::Types::UpdateAccountsRequestHomePreferencesItem] }, optional: true, nullable: false
|
|
@@ -48,14 +52,20 @@ module Whop_sdk
|
|
|
48
52
|
|
|
49
53
|
field :other_industry_description, -> { String }, optional: true, nullable: false
|
|
50
54
|
|
|
55
|
+
field :privacy_policy, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestPrivacyPolicy }, optional: true, nullable: false
|
|
56
|
+
|
|
51
57
|
field :product_tax_code_id, -> { String }, optional: true, nullable: false
|
|
52
58
|
|
|
53
59
|
field :require2fa, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "require_2fa"
|
|
54
60
|
|
|
61
|
+
field :return_policy, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestReturnPolicy }, optional: true, nullable: false
|
|
62
|
+
|
|
55
63
|
field :route, -> { String }, optional: true, nullable: false
|
|
56
64
|
|
|
57
65
|
field :send_customer_emails, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
58
66
|
|
|
67
|
+
field :shipping_policy, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestShippingPolicy }, optional: true, nullable: false
|
|
68
|
+
|
|
59
69
|
field :show_joined_whops, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
60
70
|
|
|
61
71
|
field :show_reviews_dtc, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -76,6 +86,8 @@ module Whop_sdk
|
|
|
76
86
|
|
|
77
87
|
field :tax_type, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestTaxType }, optional: true, nullable: false
|
|
78
88
|
|
|
89
|
+
field :terms_of_service, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestTermsOfService }, optional: true, nullable: false
|
|
90
|
+
|
|
79
91
|
field :three_ds_level, -> { Whop_sdk::Accounts::Types::UpdateAccountsRequestThreeDsLevel }, optional: true, nullable: false
|
|
80
92
|
|
|
81
93
|
field :title, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
# The account's cancellation policy document. Attached to new disputes as the cancellation policy evidence, with
|
|
7
|
+
# the terms of service as the fallback. PDF only. Pass a JSON object containing an `id` from [Create
|
|
8
|
+
# File](/api-reference/files/create-file), or `null` to remove it.
|
|
9
|
+
class UpdateAccountsRequestCancellationPolicy < Internal::Types::Model
|
|
10
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
# The account's end-user license agreement document. PDF only. Pass a JSON object containing an `id` from [Create
|
|
7
|
+
# File](/api-reference/files/create-file), or `null` to remove it.
|
|
8
|
+
class UpdateAccountsRequestEula < Internal::Types::Model
|
|
9
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
# The account's privacy policy document. PDF only. Pass a JSON object containing an `id` from [Create
|
|
7
|
+
# File](/api-reference/files/create-file), or `null` to remove it.
|
|
8
|
+
class UpdateAccountsRequestPrivacyPolicy < Internal::Types::Model
|
|
9
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
# The account's return and refund policy document. Attached to new disputes as the refund policy evidence, with
|
|
7
|
+
# the terms of service as the fallback. PDF only. Pass a JSON object containing an `id` from [Create
|
|
8
|
+
# File](/api-reference/files/create-file), or `null` to remove it.
|
|
9
|
+
class UpdateAccountsRequestReturnPolicy < Internal::Types::Model
|
|
10
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
# The account's shipping policy document. Sent with physical-goods dispute evidence. PDF only. Pass a JSON object
|
|
7
|
+
# containing an `id` from [Create File](/api-reference/files/create-file), or `null` to remove it.
|
|
8
|
+
class UpdateAccountsRequestShippingPolicy < Internal::Types::Model
|
|
9
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Accounts
|
|
5
|
+
module Types
|
|
6
|
+
# The account's terms of service document. Attached to new disputes as the cancellation policy evidence when no
|
|
7
|
+
# cancellation policy is set. PDF only. Pass a JSON object containing an `id` from [Create
|
|
8
|
+
# File](/api-reference/files/create-file), or `null` to remove it.
|
|
9
|
+
class UpdateAccountsRequestTermsOfService < Internal::Types::Model
|
|
10
|
+
field :id, -> { String }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|