whop_sdk 0.0.39 → 0.0.41
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/CHANGELOG.md +11 -0
- data/README.md +3 -3
- data/lib/whop_sdk/client.rb +227 -72
- data/lib/whop_sdk/internal/transport/base_client.rb +5 -0
- data/lib/whop_sdk/internal/type/union.rb +6 -6
- data/lib/whop_sdk/models/account.rb +967 -0
- data/lib/whop_sdk/models/account_create_params.rb +43 -0
- data/lib/whop_sdk/models/account_list_params.rb +83 -0
- data/lib/whop_sdk/models/account_me_params.rb +14 -0
- data/lib/whop_sdk/models/account_recommend_actions_params.rb +20 -0
- data/lib/whop_sdk/models/account_recommend_actions_response.rb +143 -0
- data/lib/whop_sdk/models/account_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/account_social_link.rb +60 -0
- data/lib/whop_sdk/models/account_update_params.rb +512 -0
- data/lib/whop_sdk/models/accounts/preference_retrieve_params.rb +22 -0
- data/lib/whop_sdk/models/accounts/preference_retrieve_response.rb +129 -0
- data/lib/whop_sdk/models/accounts/preference_update_params.rb +142 -0
- data/lib/whop_sdk/models/accounts/preference_update_response.rb +129 -0
- data/lib/whop_sdk/models/ad.rb +808 -0
- data/lib/whop_sdk/models/ad_campaign.rb +635 -0
- data/lib/whop_sdk/models/ad_campaign_create_params.rb +194 -0
- data/lib/whop_sdk/models/{payout_method_retrieve_params.rb → ad_campaign_delete_params.rb} +2 -2
- data/lib/whop_sdk/models/ad_campaign_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ad_campaign_list_params.rb +120 -36
- data/lib/whop_sdk/models/ad_campaign_retrieve_params.rb +26 -1
- data/lib/whop_sdk/models/ad_campaign_update_params.rb +99 -6
- data/lib/whop_sdk/models/ad_create_params.rb +660 -0
- data/lib/whop_sdk/models/ad_delete_params.rb +20 -0
- data/lib/whop_sdk/models/ad_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ad_group.rb +774 -0
- data/lib/whop_sdk/models/ad_group_create_params.rb +346 -0
- data/lib/whop_sdk/models/ad_group_list_params.rb +114 -44
- data/lib/whop_sdk/models/ad_group_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_retrieve_params.rb +26 -1
- data/lib/whop_sdk/models/ad_group_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_update_params.rb +238 -3109
- data/lib/whop_sdk/models/ad_list_params.rb +127 -42
- data/lib/whop_sdk/models/ad_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_report_retrieve_params.rb +53 -23
- data/lib/whop_sdk/models/ad_report_retrieve_response.rb +403 -130
- data/lib/whop_sdk/models/ad_retrieve_params.rb +26 -1
- data/lib/whop_sdk/models/ad_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_update_params.rb +650 -0
- data/lib/whop_sdk/models/app.rb +81 -1
- data/lib/whop_sdk/models/app_build_create_params.rb +2 -2
- data/lib/whop_sdk/models/app_create_params.rb +10 -1
- data/lib/whop_sdk/models/app_list_response.rb +19 -1
- data/lib/whop_sdk/models/app_logs_params.rb +103 -0
- data/lib/whop_sdk/models/app_logs_response.rb +157 -0
- data/lib/whop_sdk/models/app_update_params.rb +21 -1
- data/lib/whop_sdk/models/audience.rb +191 -0
- data/lib/whop_sdk/models/audience_create_params.rb +96 -0
- data/lib/whop_sdk/models/audience_delete_params.rb +20 -0
- data/lib/whop_sdk/models/audience_delete_response.rb +16 -0
- data/lib/whop_sdk/models/audience_list_params.rb +46 -0
- data/lib/whop_sdk/models/authorized_user_create_params.rb +70 -1
- data/lib/whop_sdk/models/bounty_create_params.rb +70 -3
- data/lib/whop_sdk/models/bounty_create_response.rb +1 -0
- data/lib/whop_sdk/models/bounty_list_params.rb +1 -0
- data/lib/whop_sdk/models/bounty_list_response.rb +1 -0
- data/lib/whop_sdk/models/bounty_retrieve_response.rb +1 -0
- data/lib/whop_sdk/models/card_brands.rb +1 -0
- data/lib/whop_sdk/models/card_create_params.rb +88 -0
- data/lib/whop_sdk/models/card_create_response.rb +277 -0
- data/lib/whop_sdk/models/card_list_params.rb +30 -0
- data/lib/whop_sdk/models/card_list_response.rb +287 -0
- data/lib/whop_sdk/models/card_retrieve_params.rb +37 -0
- data/lib/whop_sdk/models/card_retrieve_response.rb +277 -0
- data/lib/whop_sdk/models/card_update_params.rb +181 -0
- data/lib/whop_sdk/models/card_update_response.rb +277 -0
- data/lib/whop_sdk/models/chat_message_created_webhook_event.rb +151 -0
- data/lib/whop_sdk/models/chat_reaction_created_webhook_event.rb +159 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +35 -24
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +303 -1021
- data/lib/whop_sdk/models/checkout_configuration_create_response.rb +275 -0
- data/lib/whop_sdk/models/checkout_configuration_delete_params.rb +20 -0
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +50 -41
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +136 -122
- data/lib/whop_sdk/models/checkout_configuration_retrieve_response.rb +275 -0
- data/lib/whop_sdk/models/company.rb +2 -2
- data/lib/whop_sdk/models/company_list_response.rb +2 -2
- data/lib/whop_sdk/models/course.rb +2 -2
- data/lib/whop_sdk/models/course_list_response.rb +2 -2
- data/lib/whop_sdk/models/currency.rb +3 -0
- data/lib/whop_sdk/models/deposit_create_params.rb +90 -0
- data/lib/whop_sdk/models/deposit_create_response.rb +228 -0
- data/lib/whop_sdk/models/deposit_list_params.rb +22 -0
- data/lib/whop_sdk/models/deposit_list_response.rb +101 -0
- data/lib/whop_sdk/models/dispute.rb +14 -15
- data/lib/whop_sdk/models/dispute_alert_created_webhook_event.rb +4 -4
- data/lib/whop_sdk/models/dispute_alert_retrieve_response.rb +4 -4
- data/lib/whop_sdk/models/dispute_list_response.rb +2 -3
- data/lib/whop_sdk/models/{conversion_create_params.rb → event_create_params.rb} +294 -32
- data/lib/whop_sdk/models/event_create_response.rb +16 -0
- data/lib/whop_sdk/models/event_list_params.rb +75 -0
- data/lib/whop_sdk/models/event_list_response.rb +242 -0
- data/lib/whop_sdk/models/experience.rb +5 -8
- data/lib/whop_sdk/models/experience_list_response.rb +2 -5
- data/lib/whop_sdk/models/file_create_params.rb +3 -15
- data/lib/whop_sdk/models/file_create_response.rb +3 -16
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -16
- data/lib/whop_sdk/models/file_visibility.rb +17 -0
- data/lib/whop_sdk/models/financial_activity_list_params.rb +113 -0
- data/lib/whop_sdk/models/financial_activity_list_response.rb +1174 -0
- data/lib/whop_sdk/models/forum_post.rb +2 -2
- data/lib/whop_sdk/models/forum_post_list_response.rb +2 -2
- data/lib/whop_sdk/models/granularities.rb +18 -0
- data/lib/whop_sdk/models/identity_profile_approved_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_needs_action_webhook_event.rb +432 -0
- data/lib/whop_sdk/models/identity_profile_rejected_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_updated_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/invoice_create_params.rb +34 -2
- data/lib/whop_sdk/models/invoice_update_params.rb +17 -1
- data/lib/whop_sdk/models/ledger_account_funds_available_webhook_event.rb +578 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +67 -7
- data/lib/whop_sdk/models/lesson.rb +6 -6
- data/lib/whop_sdk/models/media_asset.rb +224 -0
- data/lib/whop_sdk/models/media_generate_params.rb +105 -0
- data/lib/whop_sdk/models/media_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/member_list_response.rb +3 -2
- data/lib/whop_sdk/models/member_retrieve_response.rb +3 -2
- data/lib/whop_sdk/models/membership.rb +26 -3
- data/lib/whop_sdk/models/membership_list_response.rb +26 -3
- data/lib/whop_sdk/models/membership_trial_ending_soon_webhook_event.rb +60 -0
- data/lib/whop_sdk/models/payment.rb +213 -26
- data/lib/whop_sdk/models/payment_create_params.rb +22 -2
- data/lib/whop_sdk/models/payment_list_params.rb +9 -1
- data/lib/whop_sdk/models/payment_list_response.rb +118 -17
- data/lib/whop_sdk/models/payout_create_params.rb +58 -0
- data/lib/whop_sdk/models/payout_create_response.rb +185 -0
- data/lib/whop_sdk/models/payout_list_params.rb +70 -0
- data/lib/whop_sdk/models/payout_list_response.rb +195 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +20 -3
- data/lib/whop_sdk/models/payouts/method_list_params.rb +120 -0
- data/lib/whop_sdk/models/payouts/method_list_response.rb +315 -0
- data/lib/whop_sdk/models/person_list_params.rb +103 -0
- data/lib/whop_sdk/models/person_list_response.rb +167 -0
- data/lib/whop_sdk/models/person_retrieve_params.rb +50 -0
- data/lib/whop_sdk/models/person_retrieve_response.rb +179 -0
- data/lib/whop_sdk/models/plan.rb +311 -246
- data/lib/whop_sdk/models/plan_calculate_tax_params.rb +248 -0
- data/lib/whop_sdk/models/plan_calculate_tax_response.rb +94 -0
- data/lib/whop_sdk/models/plan_create_params.rb +137 -153
- data/lib/whop_sdk/models/plan_list_params.rb +54 -47
- data/lib/whop_sdk/models/plan_list_response.rb +105 -221
- data/lib/whop_sdk/models/plan_update_params.rb +116 -133
- data/lib/whop_sdk/models/product.rb +40 -37
- data/lib/whop_sdk/models/product_create_params.rb +48 -189
- data/lib/whop_sdk/models/product_list_item.rb +20 -11
- data/lib/whop_sdk/models/product_list_params.rb +35 -57
- data/lib/whop_sdk/models/product_update_params.rb +20 -148
- data/lib/whop_sdk/models/referral_referred_users_params.rb +66 -0
- data/lib/whop_sdk/models/referral_referred_users_response.rb +127 -0
- data/lib/whop_sdk/models/referrals/business_leaderboard_params.rb +45 -0
- data/lib/whop_sdk/models/referrals/business_leaderboard_response.rb +284 -0
- data/lib/whop_sdk/models/referrals/business_list_params.rb +175 -0
- data/lib/whop_sdk/models/referrals/business_list_response.rb +361 -0
- data/lib/whop_sdk/models/referrals/business_retrieve_params.rb +22 -0
- data/lib/whop_sdk/models/referrals/business_retrieve_response.rb +881 -0
- data/lib/whop_sdk/models/referrals/businesses/earning_list_params.rb +131 -0
- data/lib/whop_sdk/models/referrals/businesses/earning_list_response.rb +371 -0
- data/lib/whop_sdk/models/referrals/partner_create_params.rb +16 -0
- data/lib/whop_sdk/models/referrals/partner_create_response.rb +31 -0
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +86 -5
- data/lib/whop_sdk/models/refund_retrieve_response.rb +84 -5
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +86 -5
- data/lib/whop_sdk/models/resolution_center_case_platform_response.rb +0 -1
- data/lib/whop_sdk/models/result_label_keys.rb +48 -0
- data/lib/whop_sdk/models/review_list_response.rb +2 -2
- data/lib/whop_sdk/models/review_retrieve_response.rb +4 -7
- data/lib/whop_sdk/models/setup_intent.rb +10 -1
- data/lib/whop_sdk/models/social_account.rb +101 -0
- data/lib/whop_sdk/models/social_account_connect_params.rb +74 -0
- data/lib/whop_sdk/models/social_account_connect_response.rb +17 -0
- data/lib/whop_sdk/models/social_account_create_params.rb +45 -0
- data/lib/whop_sdk/models/social_account_delete_params.rb +42 -0
- data/lib/whop_sdk/models/social_account_delete_response.rb +8 -0
- data/lib/whop_sdk/models/social_account_list_params.rb +152 -0
- data/lib/whop_sdk/models/social_account_post.rb +99 -0
- data/lib/whop_sdk/models/social_account_posts_params.rb +53 -0
- data/lib/whop_sdk/models/social_account_posts_response.rb +39 -0
- data/lib/whop_sdk/models/stat_list_params.rb +14 -0
- data/lib/whop_sdk/models/stat_list_response.rb +89 -0
- data/lib/whop_sdk/models/stat_retrieve_params.rb +265 -0
- data/lib/whop_sdk/models/stat_retrieve_response.rb +88 -0
- data/lib/whop_sdk/models/swap_create_params.rb +101 -0
- data/lib/whop_sdk/models/swap_create_quote_params.rb +117 -0
- data/lib/whop_sdk/models/swap_create_quote_response.rb +130 -0
- data/lib/whop_sdk/models/swap_create_response.rb +82 -0
- data/lib/whop_sdk/models/swap_list_params.rb +22 -0
- data/lib/whop_sdk/models/swap_list_response.rb +77 -0
- data/lib/whop_sdk/models/swap_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/swap_retrieve_response.rb +66 -0
- data/lib/whop_sdk/models/tax_identifier_type.rb +2 -0
- data/lib/whop_sdk/models/transfer_create_params.rb +62 -27
- data/lib/whop_sdk/models/transfer_create_response.rb +452 -0
- data/lib/whop_sdk/models/transfer_list_params.rb +46 -40
- data/lib/whop_sdk/models/transfer_list_response.rb +29 -36
- data/lib/whop_sdk/models/transfer_retrieve_response.rb +267 -0
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +46 -30
- data/lib/whop_sdk/models/user.rb +276 -31
- data/lib/whop_sdk/models/user_balance.rb +226 -0
- data/lib/whop_sdk/models/user_check_access_response.rb +16 -9
- data/lib/whop_sdk/models/user_list_params.rb +15 -15
- data/lib/whop_sdk/models/user_retrieve_params.rb +66 -6
- data/lib/whop_sdk/models/user_update_me_params.rb +70 -0
- data/lib/whop_sdk/models/user_update_params.rb +23 -30
- data/lib/whop_sdk/models/verification_create_params.rb +414 -0
- data/lib/whop_sdk/models/verification_create_response.rb +400 -0
- data/lib/whop_sdk/models/verification_list_params.rb +40 -30
- data/lib/whop_sdk/models/verification_list_response.rb +396 -34
- data/lib/whop_sdk/models/verification_retrieve_params.rb +4 -4
- data/lib/whop_sdk/models/verification_retrieve_response.rb +373 -21
- data/lib/whop_sdk/models/verification_update_params.rb +578 -0
- data/lib/whop_sdk/models/verification_update_response.rb +400 -0
- data/lib/whop_sdk/models/webhook_event.rb +8 -0
- data/lib/whop_sdk/models/withdrawal.rb +1 -0
- data/lib/whop_sdk/models/withdrawal_create_params.rb +2 -2
- data/lib/whop_sdk/models/workforce/bounty_list_params.rb +153 -0
- data/lib/whop_sdk/models/workforce/bounty_retrieve_params.rb +22 -0
- data/lib/whop_sdk/models/workforce/workforce_bounty.rb +351 -0
- data/lib/whop_sdk/models/workforce/workforce_bounty_list_item.rb +347 -0
- data/lib/whop_sdk/models.rb +151 -7
- data/lib/whop_sdk/resources/access_tokens.rb +0 -1
- data/lib/whop_sdk/resources/account_links.rb +0 -1
- data/lib/whop_sdk/resources/accounts/preferences.rb +78 -0
- data/lib/whop_sdk/resources/accounts.rb +254 -0
- data/lib/whop_sdk/resources/ad_campaigns.rb +136 -47
- data/lib/whop_sdk/resources/ad_groups.rb +194 -47
- data/lib/whop_sdk/resources/ad_reports.rb +14 -9
- data/lib/whop_sdk/resources/ads.rb +210 -25
- data/lib/whop_sdk/resources/affiliates/overrides.rb +0 -1
- data/lib/whop_sdk/resources/affiliates.rb +0 -2
- data/lib/whop_sdk/resources/ai_chats.rb +0 -1
- data/lib/whop_sdk/resources/app_builds.rb +0 -1
- data/lib/whop_sdk/resources/apps.rb +63 -3
- data/lib/whop_sdk/resources/audiences.rb +104 -0
- data/lib/whop_sdk/resources/authorized_users.rb +3 -2
- data/lib/whop_sdk/resources/bounties.rb +9 -2
- data/lib/whop_sdk/resources/cards.rb +178 -0
- data/lib/whop_sdk/resources/chat_channels.rb +0 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +69 -42
- data/lib/whop_sdk/resources/companies.rb +0 -1
- data/lib/whop_sdk/resources/company_token_transactions.rb +0 -1
- data/lib/whop_sdk/resources/course_chapters.rb +0 -1
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +0 -1
- data/lib/whop_sdk/resources/course_lessons.rb +0 -1
- data/lib/whop_sdk/resources/course_students.rb +0 -1
- data/lib/whop_sdk/resources/courses.rb +0 -1
- data/lib/whop_sdk/resources/deposits.rb +77 -0
- data/lib/whop_sdk/resources/dispute_alerts.rb +0 -1
- data/lib/whop_sdk/resources/disputes.rb +0 -1
- data/lib/whop_sdk/resources/dm_channels.rb +0 -1
- data/lib/whop_sdk/resources/dm_members.rb +0 -1
- data/lib/whop_sdk/resources/entries.rb +0 -1
- data/lib/whop_sdk/resources/events.rb +121 -0
- data/lib/whop_sdk/resources/experiences.rb +0 -1
- data/lib/whop_sdk/resources/fee_markups.rb +0 -1
- data/lib/whop_sdk/resources/files.rb +1 -2
- data/lib/whop_sdk/resources/financial_activity.rb +76 -0
- data/lib/whop_sdk/resources/forum_posts.rb +0 -1
- data/lib/whop_sdk/resources/forums.rb +0 -1
- data/lib/whop_sdk/resources/invoices.rb +0 -1
- data/lib/whop_sdk/resources/leads.rb +0 -1
- data/lib/whop_sdk/resources/ledger_accounts.rb +0 -1
- data/lib/whop_sdk/resources/media.rb +77 -0
- data/lib/whop_sdk/resources/members.rb +0 -1
- data/lib/whop_sdk/resources/memberships.rb +0 -1
- data/lib/whop_sdk/resources/messages.rb +0 -1
- data/lib/whop_sdk/resources/notifications.rb +0 -1
- data/lib/whop_sdk/resources/payment_methods.rb +0 -1
- data/lib/whop_sdk/resources/payments.rb +3 -2
- data/lib/whop_sdk/resources/payout_accounts.rb +0 -1
- data/lib/whop_sdk/resources/payouts/methods.rb +71 -0
- data/lib/whop_sdk/resources/payouts.rb +107 -0
- data/lib/whop_sdk/resources/people.rb +99 -0
- data/lib/whop_sdk/resources/plans.rb +99 -79
- data/lib/whop_sdk/resources/products.rb +48 -93
- data/lib/whop_sdk/resources/promo_codes.rb +0 -1
- data/lib/whop_sdk/resources/reactions.rb +0 -1
- data/lib/whop_sdk/resources/referrals/businesses/earnings.rb +67 -0
- data/lib/whop_sdk/resources/referrals/businesses.rb +132 -0
- data/lib/whop_sdk/resources/referrals/partners.rb +42 -0
- data/lib/whop_sdk/resources/referrals.rb +77 -0
- data/lib/whop_sdk/resources/refunds.rb +2 -1
- data/lib/whop_sdk/resources/resolution_center_cases.rb +0 -1
- data/lib/whop_sdk/resources/reviews.rb +0 -1
- data/lib/whop_sdk/resources/setup_intents.rb +0 -1
- data/lib/whop_sdk/resources/shipments.rb +0 -1
- data/lib/whop_sdk/resources/social_accounts.rb +192 -0
- data/lib/whop_sdk/resources/stats.rb +113 -0
- data/lib/whop_sdk/resources/support_channels.rb +0 -1
- data/lib/whop_sdk/resources/swaps.rb +143 -0
- data/lib/whop_sdk/resources/topups.rb +0 -1
- data/lib/whop_sdk/resources/transfers.rb +42 -42
- data/lib/whop_sdk/resources/users.rb +82 -33
- data/lib/whop_sdk/resources/verifications.rb +81 -20
- data/lib/whop_sdk/resources/webhooks.rb +1 -2
- data/lib/whop_sdk/resources/withdrawals.rb +1 -2
- data/lib/whop_sdk/resources/workforce/bounties.rb +97 -0
- data/lib/whop_sdk/resources/workforce.rb +25 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +148 -21
- data/rbi/whop_sdk/client.rbi +211 -69
- data/rbi/whop_sdk/models/account.rbi +1532 -0
- data/rbi/whop_sdk/models/account_create_params.rbi +72 -0
- data/rbi/whop_sdk/models/account_list_params.rbi +145 -0
- data/rbi/whop_sdk/models/account_me_params.rbi +27 -0
- data/rbi/whop_sdk/models/account_recommend_actions_params.rbi +38 -0
- data/rbi/whop_sdk/models/account_recommend_actions_response.rbi +296 -0
- data/rbi/whop_sdk/models/account_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/account_social_link.rbi +96 -0
- data/rbi/whop_sdk/models/account_update_params.rbi +1141 -0
- data/rbi/whop_sdk/models/accounts/preference_retrieve_params.rbi +40 -0
- data/rbi/whop_sdk/models/accounts/preference_retrieve_response.rbi +323 -0
- data/rbi/whop_sdk/models/accounts/preference_update_params.rbi +331 -0
- data/rbi/whop_sdk/models/accounts/preference_update_response.rbi +323 -0
- data/rbi/whop_sdk/models/ad.rbi +983 -0
- data/rbi/whop_sdk/models/ad_campaign.rbi +846 -0
- data/rbi/whop_sdk/models/ad_campaign_create_params.rbi +428 -0
- data/rbi/whop_sdk/models/{payout_method_retrieve_params.rbi → ad_campaign_delete_params.rbi} +2 -2
- data/rbi/whop_sdk/models/ad_campaign_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +248 -56
- data/rbi/whop_sdk/models/ad_campaign_retrieve_params.rbi +41 -2
- data/rbi/whop_sdk/models/ad_campaign_update_params.rbi +207 -8
- data/rbi/whop_sdk/models/ad_create_params.rbi +1491 -0
- data/rbi/whop_sdk/models/ad_delete_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/ad_group.rbi +948 -0
- data/rbi/whop_sdk/models/ad_group_create_params.rbi +654 -0
- data/rbi/whop_sdk/models/ad_group_list_params.rbi +217 -67
- data/rbi/whop_sdk/models/ad_group_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_retrieve_params.rbi +41 -2
- data/rbi/whop_sdk/models/ad_group_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_update_params.rbi +494 -5988
- data/rbi/whop_sdk/models/ad_list_params.rbi +220 -59
- data/rbi/whop_sdk/models/ad_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +89 -33
- data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +566 -378
- data/rbi/whop_sdk/models/ad_retrieve_params.rbi +41 -2
- data/rbi/whop_sdk/models/ad_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_update_params.rbi +1473 -0
- data/rbi/whop_sdk/models/app.rbi +111 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +3 -3
- data/rbi/whop_sdk/models/app_create_params.rbi +10 -0
- data/rbi/whop_sdk/models/app_list_response.rbi +20 -0
- data/rbi/whop_sdk/models/app_logs_params.rbi +154 -0
- data/rbi/whop_sdk/models/app_logs_response.rbi +261 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +24 -0
- data/rbi/whop_sdk/models/audience.rbi +262 -0
- data/rbi/whop_sdk/models/audience_create_params.rbi +160 -0
- data/rbi/whop_sdk/models/audience_delete_params.rbi +35 -0
- data/rbi/whop_sdk/models/audience_delete_response.rbi +26 -0
- data/rbi/whop_sdk/models/audience_list_params.rbi +76 -0
- data/rbi/whop_sdk/models/authorized_user_create_params.rbi +102 -0
- data/rbi/whop_sdk/models/bounty_create_params.rbi +164 -4
- data/rbi/whop_sdk/models/bounty_create_response.rbi +5 -0
- data/rbi/whop_sdk/models/bounty_list_params.rbi +2 -0
- data/rbi/whop_sdk/models/bounty_list_response.rbi +5 -0
- data/rbi/whop_sdk/models/bounty_retrieve_response.rbi +5 -0
- data/rbi/whop_sdk/models/card_brands.rbi +1 -0
- data/rbi/whop_sdk/models/card_create_params.rbi +167 -0
- data/rbi/whop_sdk/models/card_create_response.rbi +446 -0
- data/rbi/whop_sdk/models/card_list_params.rbi +57 -0
- data/rbi/whop_sdk/models/card_list_response.rbi +511 -0
- data/rbi/whop_sdk/models/card_retrieve_params.rbi +63 -0
- data/rbi/whop_sdk/models/card_retrieve_response.rbi +457 -0
- data/rbi/whop_sdk/models/card_update_params.rbi +299 -0
- data/rbi/whop_sdk/models/card_update_response.rbi +446 -0
- data/rbi/whop_sdk/models/chat_message_created_webhook_event.rbi +319 -0
- data/rbi/whop_sdk/models/chat_reaction_created_webhook_event.rbi +335 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +84 -44
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +404 -1537
- data/rbi/whop_sdk/models/checkout_configuration_create_response.rbi +420 -0
- data/rbi/whop_sdk/models/checkout_configuration_delete_params.rbi +38 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +142 -51
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +202 -161
- data/rbi/whop_sdk/models/checkout_configuration_retrieve_response.rbi +422 -0
- data/rbi/whop_sdk/models/company.rbi +2 -2
- data/rbi/whop_sdk/models/company_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/course.rbi +2 -2
- data/rbi/whop_sdk/models/course_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/currency.rbi +3 -0
- data/rbi/whop_sdk/models/deposit_create_params.rbi +165 -0
- data/rbi/whop_sdk/models/deposit_create_response.rbi +437 -0
- data/rbi/whop_sdk/models/deposit_list_params.rbi +40 -0
- data/rbi/whop_sdk/models/deposit_list_response.rbi +163 -0
- data/rbi/whop_sdk/models/dispute.rbi +15 -17
- data/rbi/whop_sdk/models/dispute_alert_created_webhook_event.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_alert_retrieve_response.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_list_response.rbi +2 -4
- data/rbi/whop_sdk/models/event_create_params.rbi +891 -0
- data/rbi/whop_sdk/models/{conversion_create_response.rbi → event_create_response.rbi} +3 -8
- data/rbi/whop_sdk/models/event_list_params.rbi +111 -0
- data/rbi/whop_sdk/models/event_list_response.rbi +350 -0
- data/rbi/whop_sdk/models/experience.rbi +6 -6
- data/rbi/whop_sdk/models/experience_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/file_create_params.rbi +3 -30
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -38
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -39
- data/rbi/whop_sdk/models/file_visibility.rbi +21 -0
- data/rbi/whop_sdk/models/financial_activity_list_params.rbi +175 -0
- data/rbi/whop_sdk/models/financial_activity_list_response.rbi +2066 -0
- data/rbi/whop_sdk/models/forum_post.rbi +2 -2
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/granularities.rbi +22 -0
- data/rbi/whop_sdk/models/identity_profile_approved_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_needs_action_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_rejected_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_updated_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/invoice_create_params.rbi +32 -0
- data/rbi/whop_sdk/models/invoice_update_params.rbi +16 -0
- data/rbi/whop_sdk/models/ledger_account_funds_available_webhook_event.rbi +1001 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +111 -5
- data/rbi/whop_sdk/models/lesson.rbi +6 -6
- data/rbi/whop_sdk/models/media_asset.rbi +325 -0
- data/rbi/whop_sdk/models/media_generate_params.rbi +204 -0
- data/rbi/whop_sdk/models/media_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/member_list_response.rbi +4 -2
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +4 -2
- data/rbi/whop_sdk/models/membership.rbi +50 -7
- data/rbi/whop_sdk/models/membership_list_response.rbi +50 -7
- data/rbi/whop_sdk/models/membership_trial_ending_soon_webhook_event.rbi +85 -0
- data/rbi/whop_sdk/models/payment.rbi +295 -40
- data/rbi/whop_sdk/models/payment_create_params.rbi +30 -6
- data/rbi/whop_sdk/models/payment_list_params.rbi +8 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +188 -28
- data/rbi/whop_sdk/models/payout_create_params.rbi +83 -0
- data/rbi/whop_sdk/models/payout_create_response.rbi +352 -0
- data/rbi/whop_sdk/models/payout_list_params.rbi +112 -0
- data/rbi/whop_sdk/models/payout_list_response.rbi +353 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +64 -3
- data/rbi/whop_sdk/models/payouts/method_list_params.rbi +209 -0
- data/rbi/whop_sdk/models/payouts/method_list_response.rbi +554 -0
- data/rbi/whop_sdk/models/person_list_params.rbi +160 -0
- data/rbi/whop_sdk/models/person_list_response.rbi +282 -0
- data/rbi/whop_sdk/models/person_retrieve_params.rbi +76 -0
- data/rbi/whop_sdk/models/person_retrieve_response.rbi +349 -0
- data/rbi/whop_sdk/models/plan.rbi +346 -332
- data/rbi/whop_sdk/models/plan_calculate_tax_params.rbi +795 -0
- data/rbi/whop_sdk/models/plan_calculate_tax_response.rbi +170 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +267 -217
- data/rbi/whop_sdk/models/plan_list_params.rbi +121 -67
- data/rbi/whop_sdk/models/plan_list_response.rbi +127 -360
- data/rbi/whop_sdk/models/plan_update_params.rbi +228 -192
- data/rbi/whop_sdk/models/product.rbi +48 -44
- data/rbi/whop_sdk/models/product_create_params.rbi +69 -273
- data/rbi/whop_sdk/models/product_list_item.rbi +24 -14
- data/rbi/whop_sdk/models/product_list_params.rbi +75 -78
- data/rbi/whop_sdk/models/product_update_params.rbi +30 -207
- data/rbi/whop_sdk/models/referral_referred_users_params.rbi +106 -0
- data/rbi/whop_sdk/models/referral_referred_users_response.rbi +259 -0
- data/rbi/whop_sdk/models/referrals/business_leaderboard_params.rbi +120 -0
- data/rbi/whop_sdk/models/referrals/business_leaderboard_response.rbi +535 -0
- data/rbi/whop_sdk/models/referrals/business_list_params.rbi +376 -0
- data/rbi/whop_sdk/models/referrals/business_list_response.rbi +701 -0
- data/rbi/whop_sdk/models/referrals/business_retrieve_params.rbi +40 -0
- data/rbi/whop_sdk/models/referrals/business_retrieve_response.rbi +1846 -0
- data/rbi/whop_sdk/models/referrals/businesses/earning_list_params.rbi +308 -0
- data/rbi/whop_sdk/models/referrals/businesses/earning_list_response.rbi +693 -0
- data/rbi/whop_sdk/models/referrals/partner_create_params.rbi +32 -0
- data/rbi/whop_sdk/models/referrals/partner_create_response.rbi +48 -0
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +163 -5
- data/rbi/whop_sdk/models/refund_retrieve_response.rbi +161 -5
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +163 -5
- data/rbi/whop_sdk/models/resolution_center_case_platform_response.rbi +0 -5
- data/rbi/whop_sdk/models/result_label_keys.rbi +87 -0
- data/rbi/whop_sdk/models/review_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/review_retrieve_response.rbi +4 -4
- data/rbi/whop_sdk/models/setup_intent.rbi +13 -3
- data/rbi/whop_sdk/models/social_account.rbi +129 -0
- data/rbi/whop_sdk/models/social_account_connect_params.rbi +146 -0
- data/rbi/whop_sdk/models/social_account_connect_response.rbi +30 -0
- data/rbi/whop_sdk/models/social_account_create_params.rbi +81 -0
- data/rbi/whop_sdk/models/social_account_delete_params.rbi +67 -0
- data/rbi/whop_sdk/models/social_account_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/social_account_list_params.rbi +308 -0
- data/rbi/whop_sdk/models/social_account_post.rbi +261 -0
- data/rbi/whop_sdk/models/social_account_posts_params.rbi +82 -0
- data/rbi/whop_sdk/models/social_account_posts_response.rbi +83 -0
- data/rbi/whop_sdk/models/stat_list_params.rbi +27 -0
- data/rbi/whop_sdk/models/stat_list_response.rbi +159 -0
- data/rbi/whop_sdk/models/stat_retrieve_params.rbi +411 -0
- data/rbi/whop_sdk/models/stat_retrieve_response.rbi +198 -0
- data/rbi/whop_sdk/models/swap_create_params.rbi +128 -0
- data/rbi/whop_sdk/models/swap_create_quote_params.rbi +154 -0
- data/rbi/whop_sdk/models/swap_create_quote_response.rbi +174 -0
- data/rbi/whop_sdk/models/swap_create_response.rbi +127 -0
- data/rbi/whop_sdk/models/swap_list_params.rbi +40 -0
- data/rbi/whop_sdk/models/swap_list_response.rbi +137 -0
- data/rbi/whop_sdk/models/swap_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/swap_retrieve_response.rbi +106 -0
- data/rbi/whop_sdk/models/tax_identifier_type.rbi +2 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +94 -36
- data/rbi/whop_sdk/models/transfer_create_response.rbi +767 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +111 -60
- data/rbi/whop_sdk/models/transfer_list_response.rbi +32 -40
- data/rbi/whop_sdk/models/transfer_retrieve_response.rbi +416 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +29 -21
- data/rbi/whop_sdk/models/user.rbi +427 -45
- data/rbi/whop_sdk/models/user_balance.rbi +301 -0
- data/rbi/whop_sdk/models/user_check_access_response.rbi +46 -12
- data/rbi/whop_sdk/models/user_list_params.rbi +40 -25
- data/rbi/whop_sdk/models/user_retrieve_params.rbi +106 -8
- data/rbi/whop_sdk/models/user_update_me_params.rbi +120 -0
- data/rbi/whop_sdk/models/user_update_params.rbi +46 -45
- data/rbi/whop_sdk/models/verification_create_params.rbi +783 -0
- data/rbi/whop_sdk/models/verification_create_response.rbi +757 -0
- data/rbi/whop_sdk/models/verification_list_params.rbi +88 -34
- data/rbi/whop_sdk/models/verification_list_response.rbi +783 -39
- data/rbi/whop_sdk/models/verification_retrieve_params.rbi +4 -4
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +722 -30
- data/rbi/whop_sdk/models/verification_update_params.rbi +1187 -0
- data/rbi/whop_sdk/models/verification_update_response.rbi +757 -0
- data/rbi/whop_sdk/models/webhook_event.rbi +25 -0
- data/rbi/whop_sdk/models/withdrawal.rbi +5 -0
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/workforce/bounty_list_params.rbi +313 -0
- data/rbi/whop_sdk/models/workforce/bounty_retrieve_params.rbi +40 -0
- data/rbi/whop_sdk/models/workforce/workforce_bounty.rbi +588 -0
- data/rbi/whop_sdk/models/workforce/workforce_bounty_list_item.rbi +590 -0
- data/rbi/whop_sdk/models.rbi +160 -7
- data/rbi/whop_sdk/resources/access_tokens.rbi +0 -1
- data/rbi/whop_sdk/resources/account_links.rbi +0 -1
- data/rbi/whop_sdk/resources/accounts/preferences.rbi +62 -0
- data/rbi/whop_sdk/resources/accounts.rbi +253 -0
- data/rbi/whop_sdk/resources/ad_campaigns.rbi +173 -60
- data/rbi/whop_sdk/resources/ad_groups.rbi +287 -72
- data/rbi/whop_sdk/resources/ad_reports.rbi +29 -19
- data/rbi/whop_sdk/resources/ads.rbi +254 -39
- data/rbi/whop_sdk/resources/affiliates/overrides.rbi +0 -1
- data/rbi/whop_sdk/resources/affiliates.rbi +0 -2
- data/rbi/whop_sdk/resources/ai_chats.rbi +0 -1
- data/rbi/whop_sdk/resources/app_builds.rbi +1 -2
- data/rbi/whop_sdk/resources/apps.rbi +66 -1
- data/rbi/whop_sdk/resources/audiences.rbi +82 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +4 -1
- data/rbi/whop_sdk/resources/bounties.rbi +23 -3
- data/rbi/whop_sdk/resources/cards.rbi +160 -0
- data/rbi/whop_sdk/resources/chat_channels.rbi +0 -1
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +82 -51
- data/rbi/whop_sdk/resources/companies.rbi +0 -1
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +0 -1
- data/rbi/whop_sdk/resources/course_chapters.rbi +0 -1
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +0 -1
- data/rbi/whop_sdk/resources/course_lessons.rbi +0 -1
- data/rbi/whop_sdk/resources/course_students.rbi +0 -1
- data/rbi/whop_sdk/resources/courses.rbi +0 -1
- data/rbi/whop_sdk/resources/deposits.rbi +63 -0
- data/rbi/whop_sdk/resources/dispute_alerts.rbi +0 -1
- data/rbi/whop_sdk/resources/disputes.rbi +0 -1
- data/rbi/whop_sdk/resources/dm_channels.rbi +0 -1
- data/rbi/whop_sdk/resources/dm_members.rbi +0 -1
- data/rbi/whop_sdk/resources/entries.rbi +0 -1
- data/rbi/whop_sdk/resources/events.rbi +122 -0
- data/rbi/whop_sdk/resources/experiences.rbi +0 -1
- data/rbi/whop_sdk/resources/fee_markups.rbi +0 -1
- data/rbi/whop_sdk/resources/files.rbi +1 -3
- data/rbi/whop_sdk/resources/financial_activity.rbi +80 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +0 -1
- data/rbi/whop_sdk/resources/forums.rbi +0 -1
- data/rbi/whop_sdk/resources/invoices.rbi +0 -1
- data/rbi/whop_sdk/resources/leads.rbi +0 -1
- data/rbi/whop_sdk/resources/ledger_accounts.rbi +0 -1
- data/rbi/whop_sdk/resources/media.rbi +67 -0
- data/rbi/whop_sdk/resources/members.rbi +0 -1
- data/rbi/whop_sdk/resources/memberships.rbi +0 -1
- data/rbi/whop_sdk/resources/messages.rbi +0 -1
- data/rbi/whop_sdk/resources/notifications.rbi +0 -1
- data/rbi/whop_sdk/resources/payment_methods.rbi +0 -1
- data/rbi/whop_sdk/resources/payments.rbi +3 -1
- data/rbi/whop_sdk/resources/payout_accounts.rbi +0 -1
- data/rbi/whop_sdk/resources/payouts/methods.rbi +76 -0
- data/rbi/whop_sdk/resources/payouts.rbi +96 -0
- data/rbi/whop_sdk/resources/people.rbi +86 -0
- data/rbi/whop_sdk/resources/plans.rbi +120 -112
- data/rbi/whop_sdk/resources/products.rbi +67 -144
- data/rbi/whop_sdk/resources/promo_codes.rbi +0 -1
- data/rbi/whop_sdk/resources/reactions.rbi +0 -1
- data/rbi/whop_sdk/resources/referrals/businesses/earnings.rbi +67 -0
- data/rbi/whop_sdk/resources/referrals/businesses.rbi +122 -0
- data/rbi/whop_sdk/resources/referrals/partners.rbi +31 -0
- data/rbi/whop_sdk/resources/referrals.rbi +67 -0
- data/rbi/whop_sdk/resources/refunds.rbi +2 -1
- data/rbi/whop_sdk/resources/resolution_center_cases.rbi +0 -1
- data/rbi/whop_sdk/resources/reviews.rbi +0 -1
- data/rbi/whop_sdk/resources/setup_intents.rbi +0 -1
- data/rbi/whop_sdk/resources/shipments.rbi +0 -1
- data/rbi/whop_sdk/resources/social_accounts.rbi +161 -0
- data/rbi/whop_sdk/resources/stats.rbi +143 -0
- data/rbi/whop_sdk/resources/support_channels.rbi +0 -1
- data/rbi/whop_sdk/resources/swaps.rbi +124 -0
- data/rbi/whop_sdk/resources/topups.rbi +0 -1
- data/rbi/whop_sdk/resources/transfers.rbi +62 -59
- data/rbi/whop_sdk/resources/users.rbi +92 -48
- data/rbi/whop_sdk/resources/verifications.rbi +85 -35
- data/rbi/whop_sdk/resources/webhooks.rbi +29 -22
- data/rbi/whop_sdk/resources/withdrawals.rbi +1 -2
- data/rbi/whop_sdk/resources/workforce/bounties.rbi +94 -0
- data/rbi/whop_sdk/resources/workforce.rbi +22 -0
- data/sig/whop_sdk/client.rbs +31 -4
- data/sig/whop_sdk/models/account.rbs +706 -0
- data/sig/whop_sdk/models/account_create_params.rbs +38 -0
- data/sig/whop_sdk/models/account_list_params.rbs +88 -0
- data/sig/whop_sdk/models/account_me_params.rbs +14 -0
- data/sig/whop_sdk/models/account_recommend_actions_params.rbs +23 -0
- data/sig/whop_sdk/models/account_recommend_actions_response.rbs +129 -0
- data/sig/whop_sdk/models/account_retrieve_params.rbs +23 -0
- data/sig/whop_sdk/models/account_social_link.rbs +62 -0
- data/sig/whop_sdk/models/account_update_params.rbs +536 -0
- data/sig/whop_sdk/models/accounts/preference_retrieve_params.rbs +25 -0
- data/sig/whop_sdk/models/accounts/preference_retrieve_response.rbs +110 -0
- data/sig/whop_sdk/models/accounts/preference_update_params.rbs +133 -0
- data/sig/whop_sdk/models/accounts/preference_update_response.rbs +110 -0
- data/sig/whop_sdk/models/ad.rbs +597 -0
- data/sig/whop_sdk/models/ad_campaign.rbs +472 -0
- data/sig/whop_sdk/models/ad_campaign_create_params.rbs +179 -0
- data/sig/whop_sdk/models/{payout_method_retrieve_params.rbs → ad_campaign_delete_params.rbs} +2 -2
- data/sig/whop_sdk/models/ad_campaign_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ad_campaign_list_params.rbs +145 -41
- data/sig/whop_sdk/models/ad_campaign_retrieve_params.rbs +24 -2
- data/sig/whop_sdk/models/ad_campaign_update_params.rbs +90 -4
- data/sig/whop_sdk/models/ad_create_params.rbs +751 -0
- data/sig/whop_sdk/models/ad_delete_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ad_group.rbs +543 -0
- data/sig/whop_sdk/models/ad_group_create_params.rbs +292 -0
- data/sig/whop_sdk/models/ad_group_list_params.rbs +141 -50
- data/sig/whop_sdk/models/ad_group_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_retrieve_params.rbs +24 -2
- data/sig/whop_sdk/models/ad_group_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_update_params.rbs +200 -2354
- data/sig/whop_sdk/models/ad_list_params.rbs +157 -44
- data/sig/whop_sdk/models/ad_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +38 -16
- data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +258 -149
- data/sig/whop_sdk/models/ad_retrieve_params.rbs +24 -2
- data/sig/whop_sdk/models/ad_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_update_params.rbs +742 -0
- data/sig/whop_sdk/models/app.rbs +52 -0
- data/sig/whop_sdk/models/app_create_params.rbs +6 -1
- data/sig/whop_sdk/models/app_list_response.rbs +10 -0
- data/sig/whop_sdk/models/app_logs_params.rbs +98 -0
- data/sig/whop_sdk/models/app_logs_response.rbs +162 -0
- data/sig/whop_sdk/models/app_update_params.rbs +10 -0
- data/sig/whop_sdk/models/audience.rbs +145 -0
- data/sig/whop_sdk/models/audience_create_params.rbs +88 -0
- data/sig/whop_sdk/models/audience_delete_params.rbs +23 -0
- data/sig/whop_sdk/models/audience_delete_response.rbs +13 -0
- data/sig/whop_sdk/models/audience_list_params.rbs +42 -0
- data/sig/whop_sdk/models/authorized_user_create_params.rbs +52 -0
- data/sig/whop_sdk/models/bounty_create_params.rbs +56 -1
- data/sig/whop_sdk/models/bounty_create_response.rbs +2 -1
- data/sig/whop_sdk/models/bounty_list_params.rbs +2 -1
- data/sig/whop_sdk/models/bounty_list_response.rbs +2 -1
- data/sig/whop_sdk/models/bounty_retrieve_response.rbs +2 -1
- data/sig/whop_sdk/models/card_brands.rbs +2 -0
- data/sig/whop_sdk/models/card_create_params.rbs +85 -0
- data/sig/whop_sdk/models/card_create_response.rbs +200 -0
- data/sig/whop_sdk/models/card_list_params.rbs +32 -0
- data/sig/whop_sdk/models/card_list_response.rbs +214 -0
- data/sig/whop_sdk/models/card_retrieve_params.rbs +36 -0
- data/sig/whop_sdk/models/card_retrieve_response.rbs +200 -0
- data/sig/whop_sdk/models/card_update_params.rbs +164 -0
- data/sig/whop_sdk/models/card_update_response.rbs +200 -0
- data/sig/whop_sdk/models/chat_message_created_webhook_event.rbs +149 -0
- data/sig/whop_sdk/models/chat_reaction_created_webhook_event.rbs +154 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +16 -5
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +206 -649
- data/sig/whop_sdk/models/checkout_configuration_create_response.rbs +196 -0
- data/sig/whop_sdk/models/checkout_configuration_delete_params.rbs +20 -0
- data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +66 -32
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +88 -56
- data/sig/whop_sdk/models/checkout_configuration_retrieve_response.rbs +196 -0
- data/sig/whop_sdk/models/currency.rbs +6 -0
- data/sig/whop_sdk/models/deposit_create_params.rbs +83 -0
- data/sig/whop_sdk/models/deposit_create_response.rbs +187 -0
- data/sig/whop_sdk/models/deposit_list_params.rbs +23 -0
- data/sig/whop_sdk/models/deposit_list_response.rbs +87 -0
- data/sig/whop_sdk/models/dispute.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_created_webhook_event.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_retrieve_response.rbs +4 -4
- data/sig/whop_sdk/models/event_create_params.rbs +639 -0
- data/sig/whop_sdk/models/{conversion_create_response.rbs → event_create_response.rbs} +2 -2
- data/sig/whop_sdk/models/event_list_params.rbs +68 -0
- data/sig/whop_sdk/models/event_list_response.rbs +231 -0
- data/sig/whop_sdk/models/file_create_params.rbs +4 -18
- data/sig/whop_sdk/models/file_create_response.rbs +4 -15
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -15
- data/sig/whop_sdk/models/file_visibility.rbs +14 -0
- data/sig/whop_sdk/models/financial_activity_list_params.rbs +98 -0
- data/sig/whop_sdk/models/financial_activity_list_response.rbs +935 -0
- data/sig/whop_sdk/models/granularities.rbs +16 -0
- data/sig/whop_sdk/models/identity_profile_approved_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_needs_action_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_rejected_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_updated_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +20 -0
- data/sig/whop_sdk/models/invoice_update_params.rbs +10 -0
- data/sig/whop_sdk/models/ledger_account_funds_available_webhook_event.rbs +418 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +50 -3
- data/sig/whop_sdk/models/media_asset.rbs +160 -0
- data/sig/whop_sdk/models/media_generate_params.rbs +99 -0
- data/sig/whop_sdk/models/media_retrieve_params.rbs +20 -0
- data/sig/whop_sdk/models/membership.rbs +19 -6
- data/sig/whop_sdk/models/membership_list_response.rbs +19 -6
- data/sig/whop_sdk/models/membership_trial_ending_soon_webhook_event.rbs +45 -0
- data/sig/whop_sdk/models/payment.rbs +161 -15
- data/sig/whop_sdk/models/payment_create_params.rbs +16 -6
- data/sig/whop_sdk/models/payment_list_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +104 -15
- data/sig/whop_sdk/models/payout_create_params.rbs +50 -0
- data/sig/whop_sdk/models/payout_create_response.rbs +139 -0
- data/sig/whop_sdk/models/payout_list_params.rbs +70 -0
- data/sig/whop_sdk/models/payout_list_response.rbs +153 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +25 -4
- data/sig/whop_sdk/models/payouts/method_list_params.rbs +107 -0
- data/sig/whop_sdk/models/payouts/method_list_response.rbs +229 -0
- data/sig/whop_sdk/models/person_list_params.rbs +97 -0
- data/sig/whop_sdk/models/person_list_response.rbs +162 -0
- data/sig/whop_sdk/models/person_retrieve_params.rbs +42 -0
- data/sig/whop_sdk/models/person_retrieve_response.rbs +175 -0
- data/sig/whop_sdk/models/plan.rbs +325 -119
- data/sig/whop_sdk/models/plan_calculate_tax_params.rbs +344 -0
- data/sig/whop_sdk/models/plan_calculate_tax_response.rbs +67 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +139 -98
- data/sig/whop_sdk/models/plan_list_params.rbs +93 -54
- data/sig/whop_sdk/models/plan_list_response.rbs +75 -126
- data/sig/whop_sdk/models/plan_update_params.rbs +115 -82
- data/sig/whop_sdk/models/product.rbs +5 -0
- data/sig/whop_sdk/models/product_create_params.rbs +33 -124
- data/sig/whop_sdk/models/product_list_item.rbs +5 -0
- data/sig/whop_sdk/models/product_list_params.rbs +53 -48
- data/sig/whop_sdk/models/product_update_params.rbs +15 -88
- data/sig/whop_sdk/models/referral_referred_users_params.rbs +63 -0
- data/sig/whop_sdk/models/referral_referred_users_response.rbs +140 -0
- data/sig/whop_sdk/models/referrals/business_leaderboard_params.rbs +46 -0
- data/sig/whop_sdk/models/referrals/business_leaderboard_response.rbs +221 -0
- data/sig/whop_sdk/models/referrals/business_list_params.rbs +176 -0
- data/sig/whop_sdk/models/referrals/business_list_response.rbs +267 -0
- data/sig/whop_sdk/models/referrals/business_retrieve_params.rbs +22 -0
- data/sig/whop_sdk/models/referrals/business_retrieve_response.rbs +677 -0
- data/sig/whop_sdk/models/referrals/businesses/earning_list_params.rbs +139 -0
- data/sig/whop_sdk/models/referrals/businesses/earning_list_response.rbs +288 -0
- data/sig/whop_sdk/models/referrals/partner_create_params.rbs +17 -0
- data/sig/whop_sdk/models/referrals/partner_create_response.rbs +21 -0
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/refund_retrieve_response.rbs +43 -4
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/resolution_center_case_platform_response.rbs +0 -2
- data/sig/whop_sdk/models/result_label_keys.rbs +80 -0
- data/sig/whop_sdk/models/setup_intent.rbs +8 -3
- data/sig/whop_sdk/models/social_account.rbs +74 -0
- data/sig/whop_sdk/models/social_account_connect_params.rbs +69 -0
- data/sig/whop_sdk/models/social_account_connect_response.rbs +13 -0
- data/sig/whop_sdk/models/social_account_create_params.rbs +43 -0
- data/sig/whop_sdk/models/social_account_delete_params.rbs +36 -0
- data/sig/whop_sdk/models/social_account_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/social_account_list_params.rbs +152 -0
- data/sig/whop_sdk/models/social_account_post.rbs +111 -0
- data/sig/whop_sdk/models/social_account_posts_params.rbs +52 -0
- data/sig/whop_sdk/models/social_account_posts_response.rbs +37 -0
- data/sig/whop_sdk/models/stat_list_params.rbs +14 -0
- data/sig/whop_sdk/models/stat_list_response.rbs +72 -0
- data/sig/whop_sdk/models/stat_retrieve_params.rbs +211 -0
- data/sig/whop_sdk/models/stat_retrieve_response.rbs +81 -0
- data/sig/whop_sdk/models/swap_create_params.rbs +72 -0
- data/sig/whop_sdk/models/swap_create_quote_params.rbs +84 -0
- data/sig/whop_sdk/models/swap_create_quote_response.rbs +97 -0
- data/sig/whop_sdk/models/swap_create_response.rbs +73 -0
- data/sig/whop_sdk/models/swap_list_params.rbs +23 -0
- data/sig/whop_sdk/models/swap_list_response.rbs +68 -0
- data/sig/whop_sdk/models/swap_retrieve_params.rbs +20 -0
- data/sig/whop_sdk/models/swap_retrieve_response.rbs +55 -0
- data/sig/whop_sdk/models/tax_identifier_type.rbs +4 -0
- data/sig/whop_sdk/models/transfer_create_params.rbs +47 -10
- data/sig/whop_sdk/models/transfer_create_response.rbs +366 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +77 -42
- data/sig/whop_sdk/models/transfer_list_response.rbs +14 -14
- data/sig/whop_sdk/models/{transfer.rbs → transfer_retrieve_response.rbs} +83 -78
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +30 -22
- data/sig/whop_sdk/models/user.rbs +203 -16
- data/sig/whop_sdk/models/user_balance.rbs +171 -0
- data/sig/whop_sdk/models/user_check_access_response.rbs +19 -4
- data/sig/whop_sdk/models/user_list_params.rbs +30 -20
- data/sig/whop_sdk/models/user_retrieve_params.rbs +59 -4
- data/sig/whop_sdk/models/user_update_me_params.rbs +74 -0
- data/sig/whop_sdk/models/user_update_params.rbs +42 -24
- data/sig/whop_sdk/models/verification_create_params.rbs +364 -0
- data/sig/whop_sdk/models/verification_create_response.rbs +333 -0
- data/sig/whop_sdk/models/verification_list_params.rbs +40 -20
- data/sig/whop_sdk/models/verification_list_response.rbs +337 -20
- data/sig/whop_sdk/models/verification_retrieve_params.rbs +7 -4
- data/sig/whop_sdk/models/verification_retrieve_response.rbs +312 -14
- data/sig/whop_sdk/models/verification_update_params.rbs +570 -0
- data/sig/whop_sdk/models/verification_update_response.rbs +333 -0
- data/sig/whop_sdk/models/webhook_event.rbs +16 -0
- data/sig/whop_sdk/models/withdrawal.rbs +2 -0
- data/sig/whop_sdk/models/workforce/bounty_list_params.rbs +149 -0
- data/sig/whop_sdk/models/workforce/bounty_retrieve_params.rbs +22 -0
- data/sig/whop_sdk/models/workforce/workforce_bounty.rbs +232 -0
- data/sig/whop_sdk/models/workforce/workforce_bounty_list_item.rbs +227 -0
- data/sig/whop_sdk/models.rbs +151 -7
- data/sig/whop_sdk/resources/accounts/preferences.rbs +20 -0
- data/sig/whop_sdk/resources/accounts.rbs +76 -0
- data/sig/whop_sdk/resources/ad_campaigns.rbs +47 -15
- data/sig/whop_sdk/resources/ad_groups.rbs +77 -20
- data/sig/whop_sdk/resources/ad_reports.rbs +6 -4
- data/sig/whop_sdk/resources/ads.rbs +74 -12
- data/sig/whop_sdk/resources/apps.rbs +16 -0
- data/sig/whop_sdk/resources/audiences.rbs +28 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +1 -0
- data/sig/whop_sdk/resources/bounties.rbs +4 -0
- data/sig/whop_sdk/resources/cards.rbs +47 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +21 -11
- data/sig/whop_sdk/resources/deposits.rbs +20 -0
- data/sig/whop_sdk/resources/events.rbs +40 -0
- data/sig/whop_sdk/resources/files.rbs +1 -1
- data/sig/whop_sdk/resources/financial_activity.rbs +22 -0
- data/sig/whop_sdk/resources/media.rbs +22 -0
- data/sig/whop_sdk/resources/payments.rbs +1 -0
- data/sig/whop_sdk/resources/payouts/methods.rbs +23 -0
- data/sig/whop_sdk/resources/payouts.rbs +29 -0
- data/sig/whop_sdk/resources/people.rbs +28 -0
- data/sig/whop_sdk/resources/plans.rbs +37 -25
- data/sig/whop_sdk/resources/products.rbs +17 -31
- data/sig/whop_sdk/resources/referrals/businesses/earnings.rbs +25 -0
- data/sig/whop_sdk/resources/referrals/businesses.rbs +38 -0
- data/sig/whop_sdk/resources/referrals/partners.rbs +13 -0
- data/sig/whop_sdk/resources/referrals.rbs +21 -0
- data/sig/whop_sdk/resources/social_accounts.rbs +52 -0
- data/sig/whop_sdk/resources/stats.rbs +39 -0
- data/sig/whop_sdk/resources/swaps.rbs +41 -0
- data/sig/whop_sdk/resources/transfers.rbs +17 -14
- data/sig/whop_sdk/resources/users.rbs +26 -12
- data/sig/whop_sdk/resources/verifications.rbs +17 -7
- data/sig/whop_sdk/resources/webhooks.rbs +30 -22
- data/sig/whop_sdk/resources/workforce/bounties.rbs +30 -0
- data/sig/whop_sdk/resources/workforce.rbs +9 -0
- metadata +446 -65
- data/lib/whop_sdk/models/ad_campaign_list_response.rb +0 -126
- data/lib/whop_sdk/models/ad_campaign_pause_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_update_response.rb +0 -328
- data/lib/whop_sdk/models/ad_group_list_response.rb +0 -118
- data/lib/whop_sdk/models/ad_group_retrieve_response.rb +0 -140
- data/lib/whop_sdk/models/ad_group_update_response.rb +0 -140
- data/lib/whop_sdk/models/ad_list_response.rb +0 -89
- data/lib/whop_sdk/models/ad_retrieve_response.rb +0 -133
- data/lib/whop_sdk/models/conversion_create_response.rb +0 -19
- data/lib/whop_sdk/models/payout_destination_category.rb +0 -20
- data/lib/whop_sdk/models/payout_method_list_params.rb +0 -54
- data/lib/whop_sdk/models/payout_method_list_response.rb +0 -140
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +0 -140
- data/lib/whop_sdk/models/transfer.rb +0 -299
- data/lib/whop_sdk/models/user_list_response.rb +0 -83
- data/lib/whop_sdk/resources/conversions.rb +0 -67
- data/lib/whop_sdk/resources/payout_methods.rb +0 -76
- data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +0 -239
- data/rbi/whop_sdk/models/ad_campaign_pause_response.rbi +0 -668
- data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +0 -679
- data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +0 -675
- data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +0 -670
- data/rbi/whop_sdk/models/ad_group_list_response.rbi +0 -228
- data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +0 -277
- data/rbi/whop_sdk/models/ad_group_update_response.rbi +0 -274
- data/rbi/whop_sdk/models/ad_list_response.rbi +0 -146
- data/rbi/whop_sdk/models/ad_retrieve_response.rbi +0 -245
- data/rbi/whop_sdk/models/conversion_create_params.rbi +0 -661
- data/rbi/whop_sdk/models/payout_destination_category.rbi +0 -33
- data/rbi/whop_sdk/models/payout_method_list_params.rbi +0 -75
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +0 -234
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +0 -238
- data/rbi/whop_sdk/models/transfer.rbi +0 -407
- data/rbi/whop_sdk/models/user_list_response.rbi +0 -124
- data/rbi/whop_sdk/resources/conversions.rbi +0 -71
- data/rbi/whop_sdk/resources/payout_methods.rbi +0 -66
- data/sig/whop_sdk/models/ad_campaign_list_response.rbs +0 -98
- data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_update_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_group_list_response.rbs +0 -93
- data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_group_update_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_list_response.rbs +0 -72
- data/sig/whop_sdk/models/ad_retrieve_response.rbs +0 -102
- data/sig/whop_sdk/models/conversion_create_params.rbs +0 -349
- data/sig/whop_sdk/models/payout_destination_category.rbs +0 -19
- data/sig/whop_sdk/models/payout_method_list_params.rbs +0 -46
- data/sig/whop_sdk/models/payout_method_list_response.rbs +0 -97
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +0 -97
- data/sig/whop_sdk/models/user_list_response.rbs +0 -55
- data/sig/whop_sdk/resources/conversions.rbs +0 -25
- data/sig/whop_sdk/resources/payout_methods.rbs +0 -21
|
@@ -14,32 +14,132 @@ module WhopSDK
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Affiliate code to apply to the checkout.
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_accessor :affiliate_code
|
|
20
|
+
|
|
21
|
+
# Account ID, prefixed `biz_`.
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_reader :company_id
|
|
24
|
+
|
|
25
|
+
sig { params(company_id: String).void }
|
|
26
|
+
attr_writer :company_id
|
|
27
|
+
|
|
28
|
+
# Currency used for setup-mode payment method availability.
|
|
29
|
+
sig { returns(T.nilable(String)) }
|
|
30
|
+
attr_accessor :currency
|
|
31
|
+
|
|
32
|
+
# Custom key-value metadata copied to payments and memberships.
|
|
33
|
+
sig { returns(T.nilable(T.anything)) }
|
|
34
|
+
attr_accessor :metadata
|
|
35
|
+
|
|
36
|
+
# Checkout mode: `payment` collects payment for a plan now; `setup` saves payment
|
|
37
|
+
# details without charging. Defaults to `payment`.
|
|
18
38
|
sig do
|
|
19
39
|
returns(
|
|
20
|
-
T.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
40
|
+
T.nilable(WhopSDK::CheckoutConfigurationCreateParams::Mode::OrSymbol)
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
attr_reader :mode
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
mode: WhopSDK::CheckoutConfigurationCreateParams::Mode::OrSymbol
|
|
48
|
+
).void
|
|
49
|
+
end
|
|
50
|
+
attr_writer :mode
|
|
51
|
+
|
|
52
|
+
# Payment method overrides for this checkout. `null` uses the plan or platform
|
|
53
|
+
# defaults.
|
|
54
|
+
sig do
|
|
55
|
+
returns(
|
|
56
|
+
T.nilable(
|
|
57
|
+
WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration
|
|
24
58
|
)
|
|
25
59
|
)
|
|
26
60
|
end
|
|
27
|
-
|
|
61
|
+
attr_reader :payment_method_configuration
|
|
28
62
|
|
|
29
63
|
sig do
|
|
30
64
|
params(
|
|
31
|
-
|
|
32
|
-
T.
|
|
33
|
-
WhopSDK::CheckoutConfigurationCreateParams::
|
|
34
|
-
|
|
35
|
-
|
|
65
|
+
payment_method_configuration:
|
|
66
|
+
T.nilable(
|
|
67
|
+
WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration::OrHash
|
|
68
|
+
)
|
|
69
|
+
).void
|
|
70
|
+
end
|
|
71
|
+
attr_writer :payment_method_configuration
|
|
72
|
+
|
|
73
|
+
# Plan attributes used to create or find a plan for this checkout configuration.
|
|
74
|
+
# Mutually exclusive with `plan_id`.
|
|
75
|
+
sig do
|
|
76
|
+
returns(T.nilable(WhopSDK::CheckoutConfigurationCreateParams::Plan))
|
|
77
|
+
end
|
|
78
|
+
attr_reader :plan
|
|
79
|
+
|
|
80
|
+
sig do
|
|
81
|
+
params(
|
|
82
|
+
plan:
|
|
83
|
+
T.nilable(WhopSDK::CheckoutConfigurationCreateParams::Plan::OrHash)
|
|
84
|
+
).void
|
|
85
|
+
end
|
|
86
|
+
attr_writer :plan
|
|
87
|
+
|
|
88
|
+
# Existing plan ID, prefixed `plan_`. Mutually exclusive with `plan`.
|
|
89
|
+
sig { returns(T.nilable(String)) }
|
|
90
|
+
attr_accessor :plan_id
|
|
91
|
+
|
|
92
|
+
# URL customers are sent to after checkout.
|
|
93
|
+
sig { returns(T.nilable(String)) }
|
|
94
|
+
attr_accessor :redirect_url
|
|
95
|
+
|
|
96
|
+
# 3D Secure behavior for this checkout.
|
|
97
|
+
sig { returns(T.nilable(String)) }
|
|
98
|
+
attr_accessor :three_ds_level
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
params(
|
|
102
|
+
affiliate_code: T.nilable(String),
|
|
103
|
+
company_id: String,
|
|
104
|
+
currency: T.nilable(String),
|
|
105
|
+
metadata: T.nilable(T.anything),
|
|
106
|
+
mode: WhopSDK::CheckoutConfigurationCreateParams::Mode::OrSymbol,
|
|
107
|
+
payment_method_configuration:
|
|
108
|
+
T.nilable(
|
|
109
|
+
WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration::OrHash
|
|
36
110
|
),
|
|
111
|
+
plan:
|
|
112
|
+
T.nilable(WhopSDK::CheckoutConfigurationCreateParams::Plan::OrHash),
|
|
113
|
+
plan_id: T.nilable(String),
|
|
114
|
+
redirect_url: T.nilable(String),
|
|
115
|
+
three_ds_level: T.nilable(String),
|
|
37
116
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
38
117
|
).returns(T.attached_class)
|
|
39
118
|
end
|
|
40
119
|
def self.new(
|
|
41
|
-
#
|
|
42
|
-
|
|
120
|
+
# Affiliate code to apply to the checkout.
|
|
121
|
+
affiliate_code: nil,
|
|
122
|
+
# Account ID, prefixed `biz_`.
|
|
123
|
+
company_id: nil,
|
|
124
|
+
# Currency used for setup-mode payment method availability.
|
|
125
|
+
currency: nil,
|
|
126
|
+
# Custom key-value metadata copied to payments and memberships.
|
|
127
|
+
metadata: nil,
|
|
128
|
+
# Checkout mode: `payment` collects payment for a plan now; `setup` saves payment
|
|
129
|
+
# details without charging. Defaults to `payment`.
|
|
130
|
+
mode: nil,
|
|
131
|
+
# Payment method overrides for this checkout. `null` uses the plan or platform
|
|
132
|
+
# defaults.
|
|
133
|
+
payment_method_configuration: nil,
|
|
134
|
+
# Plan attributes used to create or find a plan for this checkout configuration.
|
|
135
|
+
# Mutually exclusive with `plan_id`.
|
|
136
|
+
plan: nil,
|
|
137
|
+
# Existing plan ID, prefixed `plan_`. Mutually exclusive with `plan`.
|
|
138
|
+
plan_id: nil,
|
|
139
|
+
# URL customers are sent to after checkout.
|
|
140
|
+
redirect_url: nil,
|
|
141
|
+
# 3D Secure behavior for this checkout.
|
|
142
|
+
three_ds_level: nil,
|
|
43
143
|
request_options: {}
|
|
44
144
|
)
|
|
45
145
|
end
|
|
@@ -47,12 +147,19 @@ module WhopSDK
|
|
|
47
147
|
sig do
|
|
48
148
|
override.returns(
|
|
49
149
|
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
150
|
+
affiliate_code: T.nilable(String),
|
|
151
|
+
company_id: String,
|
|
152
|
+
currency: T.nilable(String),
|
|
153
|
+
metadata: T.nilable(T.anything),
|
|
154
|
+
mode: WhopSDK::CheckoutConfigurationCreateParams::Mode::OrSymbol,
|
|
155
|
+
payment_method_configuration:
|
|
156
|
+
T.nilable(
|
|
157
|
+
WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration
|
|
55
158
|
),
|
|
159
|
+
plan: T.nilable(WhopSDK::CheckoutConfigurationCreateParams::Plan),
|
|
160
|
+
plan_id: T.nilable(String),
|
|
161
|
+
redirect_url: T.nilable(String),
|
|
162
|
+
three_ds_level: T.nilable(String),
|
|
56
163
|
request_options: WhopSDK::RequestOptions
|
|
57
164
|
}
|
|
58
165
|
)
|
|
@@ -60,1606 +167,366 @@ module WhopSDK
|
|
|
60
167
|
def to_hash
|
|
61
168
|
end
|
|
62
169
|
|
|
63
|
-
#
|
|
64
|
-
|
|
65
|
-
|
|
170
|
+
# Checkout mode: `payment` collects payment for a plan now; `setup` saves payment
|
|
171
|
+
# details without charging. Defaults to `payment`.
|
|
172
|
+
module Mode
|
|
173
|
+
extend WhopSDK::Internal::Type::Enum
|
|
66
174
|
|
|
67
|
-
|
|
175
|
+
TaggedSymbol =
|
|
68
176
|
T.type_alias do
|
|
69
|
-
T.
|
|
70
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan,
|
|
71
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID,
|
|
72
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
class CreateCheckoutSessionInputModePaymentWithPlan < WhopSDK::Internal::Type::BaseModel
|
|
77
|
-
OrHash =
|
|
78
|
-
T.type_alias do
|
|
79
|
-
T.any(
|
|
80
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan,
|
|
81
|
-
WhopSDK::Internal::AnyHash
|
|
82
|
-
)
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
# The plan attributes to create a new plan inline for this checkout configuration.
|
|
86
|
-
sig do
|
|
87
|
-
returns(
|
|
88
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan
|
|
89
|
-
)
|
|
90
|
-
end
|
|
91
|
-
attr_reader :plan
|
|
92
|
-
|
|
93
|
-
sig do
|
|
94
|
-
params(
|
|
95
|
-
plan:
|
|
96
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::OrHash
|
|
97
|
-
).void
|
|
177
|
+
T.all(Symbol, WhopSDK::CheckoutConfigurationCreateParams::Mode)
|
|
98
178
|
end
|
|
99
|
-
|
|
179
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
100
180
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
# defaults.
|
|
112
|
-
sig do
|
|
113
|
-
returns(
|
|
114
|
-
T.nilable(
|
|
115
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::CheckoutStyling
|
|
116
|
-
)
|
|
117
|
-
)
|
|
118
|
-
end
|
|
119
|
-
attr_reader :checkout_styling
|
|
120
|
-
|
|
121
|
-
sig do
|
|
122
|
-
params(
|
|
123
|
-
checkout_styling:
|
|
124
|
-
T.nilable(
|
|
125
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::CheckoutStyling::OrHash
|
|
126
|
-
)
|
|
127
|
-
).void
|
|
128
|
-
end
|
|
129
|
-
attr_writer :checkout_styling
|
|
130
|
-
|
|
131
|
-
# The available currencies on the platform
|
|
132
|
-
sig { returns(T.nilable(WhopSDK::Currency::OrSymbol)) }
|
|
133
|
-
attr_accessor :currency
|
|
134
|
-
|
|
135
|
-
# Custom key-value metadata to attach to the checkout configuration.
|
|
136
|
-
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
137
|
-
attr_accessor :metadata
|
|
138
|
-
|
|
139
|
-
sig do
|
|
140
|
-
returns(
|
|
141
|
-
T.nilable(
|
|
142
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Mode::OrSymbol
|
|
143
|
-
)
|
|
144
|
-
)
|
|
145
|
-
end
|
|
146
|
-
attr_reader :mode
|
|
147
|
-
|
|
148
|
-
sig do
|
|
149
|
-
params(
|
|
150
|
-
mode:
|
|
151
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Mode::OrSymbol
|
|
152
|
-
).void
|
|
153
|
-
end
|
|
154
|
-
attr_writer :mode
|
|
155
|
-
|
|
156
|
-
# The explicit payment method configuration for the checkout session. Only applies
|
|
157
|
-
# to setup mode. If not provided, the platform or company defaults will apply.
|
|
158
|
-
sig do
|
|
159
|
-
returns(
|
|
160
|
-
T.nilable(
|
|
161
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::PaymentMethodConfiguration
|
|
162
|
-
)
|
|
163
|
-
)
|
|
164
|
-
end
|
|
165
|
-
attr_reader :payment_method_configuration
|
|
166
|
-
|
|
167
|
-
sig do
|
|
168
|
-
params(
|
|
169
|
-
payment_method_configuration:
|
|
170
|
-
T.nilable(
|
|
171
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::PaymentMethodConfiguration::OrHash
|
|
172
|
-
)
|
|
173
|
-
).void
|
|
174
|
-
end
|
|
175
|
-
attr_writer :payment_method_configuration
|
|
176
|
-
|
|
177
|
-
# The URL to redirect the user to after checkout is completed.
|
|
178
|
-
sig { returns(T.nilable(String)) }
|
|
179
|
-
attr_accessor :redirect_url
|
|
180
|
-
|
|
181
|
-
# The URL of the page where the checkout is being initiated from.
|
|
182
|
-
sig { returns(T.nilable(String)) }
|
|
183
|
-
attr_accessor :source_url
|
|
181
|
+
PAYMENT =
|
|
182
|
+
T.let(
|
|
183
|
+
:payment,
|
|
184
|
+
WhopSDK::CheckoutConfigurationCreateParams::Mode::TaggedSymbol
|
|
185
|
+
)
|
|
186
|
+
SETUP =
|
|
187
|
+
T.let(
|
|
188
|
+
:setup,
|
|
189
|
+
WhopSDK::CheckoutConfigurationCreateParams::Mode::TaggedSymbol
|
|
190
|
+
)
|
|
184
191
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
affiliate_code: T.nilable(String),
|
|
191
|
-
allow_promo_codes: T.nilable(T::Boolean),
|
|
192
|
-
checkout_styling:
|
|
193
|
-
T.nilable(
|
|
194
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::CheckoutStyling::OrHash
|
|
195
|
-
),
|
|
196
|
-
currency: T.nilable(WhopSDK::Currency::OrSymbol),
|
|
197
|
-
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
198
|
-
mode:
|
|
199
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Mode::OrSymbol,
|
|
200
|
-
payment_method_configuration:
|
|
201
|
-
T.nilable(
|
|
202
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::PaymentMethodConfiguration::OrHash
|
|
203
|
-
),
|
|
204
|
-
redirect_url: T.nilable(String),
|
|
205
|
-
source_url: T.nilable(String)
|
|
206
|
-
).returns(T.attached_class)
|
|
207
|
-
end
|
|
208
|
-
def self.new(
|
|
209
|
-
# The plan attributes to create a new plan inline for this checkout configuration.
|
|
210
|
-
plan:,
|
|
211
|
-
# An affiliate tracking code to attribute the checkout to a specific affiliate.
|
|
212
|
-
affiliate_code: nil,
|
|
213
|
-
# Whether the checkout should show the promo code input field and accept promo
|
|
214
|
-
# codes. Defaults to true.
|
|
215
|
-
allow_promo_codes: nil,
|
|
216
|
-
# Checkout styling overrides for this session. Overrides plan and company
|
|
217
|
-
# defaults.
|
|
218
|
-
checkout_styling: nil,
|
|
219
|
-
# The available currencies on the platform
|
|
220
|
-
currency: nil,
|
|
221
|
-
# Custom key-value metadata to attach to the checkout configuration.
|
|
222
|
-
metadata: nil,
|
|
223
|
-
mode: nil,
|
|
224
|
-
# The explicit payment method configuration for the checkout session. Only applies
|
|
225
|
-
# to setup mode. If not provided, the platform or company defaults will apply.
|
|
226
|
-
payment_method_configuration: nil,
|
|
227
|
-
# The URL to redirect the user to after checkout is completed.
|
|
228
|
-
redirect_url: nil,
|
|
229
|
-
# The URL of the page where the checkout is being initiated from.
|
|
230
|
-
source_url: nil
|
|
192
|
+
sig do
|
|
193
|
+
override.returns(
|
|
194
|
+
T::Array[
|
|
195
|
+
WhopSDK::CheckoutConfigurationCreateParams::Mode::TaggedSymbol
|
|
196
|
+
]
|
|
231
197
|
)
|
|
232
|
-
|
|
198
|
+
end
|
|
199
|
+
def self.values
|
|
200
|
+
end
|
|
201
|
+
end
|
|
233
202
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
allow_promo_codes: T.nilable(T::Boolean),
|
|
241
|
-
checkout_styling:
|
|
242
|
-
T.nilable(
|
|
243
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::CheckoutStyling
|
|
244
|
-
),
|
|
245
|
-
currency: T.nilable(WhopSDK::Currency::OrSymbol),
|
|
246
|
-
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
247
|
-
mode:
|
|
248
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Mode::OrSymbol,
|
|
249
|
-
payment_method_configuration:
|
|
250
|
-
T.nilable(
|
|
251
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::PaymentMethodConfiguration
|
|
252
|
-
),
|
|
253
|
-
redirect_url: T.nilable(String),
|
|
254
|
-
source_url: T.nilable(String)
|
|
255
|
-
}
|
|
203
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
204
|
+
OrHash =
|
|
205
|
+
T.type_alias do
|
|
206
|
+
T.any(
|
|
207
|
+
WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration,
|
|
208
|
+
WhopSDK::Internal::AnyHash
|
|
256
209
|
)
|
|
257
210
|
end
|
|
258
|
-
def to_hash
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
262
|
-
OrHash =
|
|
263
|
-
T.type_alias do
|
|
264
|
-
T.any(
|
|
265
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan,
|
|
266
|
-
WhopSDK::Internal::AnyHash
|
|
267
|
-
)
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
# The company the plan should be created for.
|
|
271
|
-
sig { returns(String) }
|
|
272
|
-
attr_accessor :company_id
|
|
273
|
-
|
|
274
|
-
# The respective currency identifier for the plan.
|
|
275
|
-
sig { returns(WhopSDK::Currency::OrSymbol) }
|
|
276
|
-
attr_accessor :currency
|
|
277
|
-
|
|
278
|
-
# Whether this plan accepts local currency payments via adaptive pricing.
|
|
279
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
280
|
-
attr_accessor :adaptive_pricing_enabled
|
|
281
|
-
|
|
282
|
-
# The application fee amount collected by the platform from this connected
|
|
283
|
-
# account. Provided as a number in dollars (e.g., 5.00 for $5.00). Must be less
|
|
284
|
-
# than the total payment amount. Only valid for connected accounts with a parent
|
|
285
|
-
# company.
|
|
286
|
-
sig { returns(T.nilable(Float)) }
|
|
287
|
-
attr_accessor :application_fee_amount
|
|
288
|
-
|
|
289
|
-
# The interval in days at which the plan charges (renewal plans). For example, 30
|
|
290
|
-
# for monthly billing.
|
|
291
|
-
sig { returns(T.nilable(Integer)) }
|
|
292
|
-
attr_accessor :billing_period
|
|
293
|
-
|
|
294
|
-
# An array of custom field objects.
|
|
295
|
-
sig do
|
|
296
|
-
returns(
|
|
297
|
-
T.nilable(
|
|
298
|
-
T::Array[
|
|
299
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::CustomField
|
|
300
|
-
]
|
|
301
|
-
)
|
|
302
|
-
)
|
|
303
|
-
end
|
|
304
|
-
attr_accessor :custom_fields
|
|
305
|
-
|
|
306
|
-
# The description of the plan.
|
|
307
|
-
sig { returns(T.nilable(String)) }
|
|
308
|
-
attr_accessor :description
|
|
309
|
-
|
|
310
|
-
# The number of days until the membership expires (for expiration-based plans).
|
|
311
|
-
# For example, 365 for a one-year access pass.
|
|
312
|
-
sig { returns(T.nilable(Integer)) }
|
|
313
|
-
attr_accessor :expiration_days
|
|
314
|
-
|
|
315
|
-
# Whether to force the creation of a new plan even if one with the same attributes
|
|
316
|
-
# already exists.
|
|
317
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
318
|
-
attr_accessor :force_create_new_plan
|
|
319
|
-
|
|
320
|
-
# An image for the plan. This will be visible on the product page to customers.
|
|
321
|
-
sig do
|
|
322
|
-
returns(
|
|
323
|
-
T.nilable(
|
|
324
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Image
|
|
325
|
-
)
|
|
326
|
-
)
|
|
327
|
-
end
|
|
328
|
-
attr_reader :image
|
|
329
|
-
|
|
330
|
-
sig do
|
|
331
|
-
params(
|
|
332
|
-
image:
|
|
333
|
-
T.nilable(
|
|
334
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Image::OrHash
|
|
335
|
-
)
|
|
336
|
-
).void
|
|
337
|
-
end
|
|
338
|
-
attr_writer :image
|
|
339
|
-
|
|
340
|
-
# An additional amount charged upon first purchase. Provided as a number in
|
|
341
|
-
# dollars (e.g., 10.00 for $10.00).
|
|
342
|
-
sig { returns(T.nilable(Float)) }
|
|
343
|
-
attr_accessor :initial_price
|
|
344
|
-
|
|
345
|
-
# A personal description or notes section for the business.
|
|
346
|
-
sig { returns(T.nilable(String)) }
|
|
347
|
-
attr_accessor :internal_notes
|
|
348
|
-
|
|
349
|
-
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
350
|
-
# up)
|
|
351
|
-
sig { returns(T.nilable(WhopSDK::TaxType::OrSymbol)) }
|
|
352
|
-
attr_accessor :override_tax_type
|
|
353
|
-
|
|
354
|
-
# The explicit payment method configuration for the plan. If not provided, the
|
|
355
|
-
# platform or company's defaults will apply.
|
|
356
|
-
sig do
|
|
357
|
-
returns(
|
|
358
|
-
T.nilable(
|
|
359
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::PaymentMethodConfiguration
|
|
360
|
-
)
|
|
361
|
-
)
|
|
362
|
-
end
|
|
363
|
-
attr_reader :payment_method_configuration
|
|
364
|
-
|
|
365
|
-
sig do
|
|
366
|
-
params(
|
|
367
|
-
payment_method_configuration:
|
|
368
|
-
T.nilable(
|
|
369
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::PaymentMethodConfiguration::OrHash
|
|
370
|
-
)
|
|
371
|
-
).void
|
|
372
|
-
end
|
|
373
|
-
attr_writer :payment_method_configuration
|
|
374
|
-
|
|
375
|
-
# The type of plan that can be attached to a product
|
|
376
|
-
sig { returns(T.nilable(WhopSDK::PlanType::OrSymbol)) }
|
|
377
|
-
attr_accessor :plan_type
|
|
378
|
-
|
|
379
|
-
# Pass this object to create a new product for this plan. We will use the product
|
|
380
|
-
# external identifier to find or create an existing product.
|
|
381
|
-
sig do
|
|
382
|
-
returns(
|
|
383
|
-
T.nilable(
|
|
384
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Product
|
|
385
|
-
)
|
|
386
|
-
)
|
|
387
|
-
end
|
|
388
|
-
attr_reader :product
|
|
389
|
-
|
|
390
|
-
sig do
|
|
391
|
-
params(
|
|
392
|
-
product:
|
|
393
|
-
T.nilable(
|
|
394
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Product::OrHash
|
|
395
|
-
)
|
|
396
|
-
).void
|
|
397
|
-
end
|
|
398
|
-
attr_writer :product
|
|
399
211
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
212
|
+
# Payment methods explicitly disabled for checkout.
|
|
213
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
214
|
+
attr_reader :disabled
|
|
403
215
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
attr_accessor :release_method
|
|
216
|
+
sig { params(disabled: T::Array[String]).void }
|
|
217
|
+
attr_writer :disabled
|
|
407
218
|
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
attr_accessor :renewal_price
|
|
219
|
+
# Payment methods explicitly enabled for checkout.
|
|
220
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
221
|
+
attr_reader :enabled
|
|
412
222
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
attr_accessor :split_pay_required_payments
|
|
223
|
+
sig { params(enabled: T::Array[String]).void }
|
|
224
|
+
attr_writer :enabled
|
|
416
225
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
226
|
+
# Whether platform default payment methods are included.
|
|
227
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
228
|
+
attr_reader :include_platform_defaults
|
|
420
229
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
attr_accessor :title
|
|
230
|
+
sig { params(include_platform_defaults: T::Boolean).void }
|
|
231
|
+
attr_writer :include_platform_defaults
|
|
424
232
|
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
233
|
+
# Payment method overrides for this checkout. `null` uses the plan or platform
|
|
234
|
+
# defaults.
|
|
235
|
+
sig do
|
|
236
|
+
params(
|
|
237
|
+
disabled: T::Array[String],
|
|
238
|
+
enabled: T::Array[String],
|
|
239
|
+
include_platform_defaults: T::Boolean
|
|
240
|
+
).returns(T.attached_class)
|
|
241
|
+
end
|
|
242
|
+
def self.new(
|
|
243
|
+
# Payment methods explicitly disabled for checkout.
|
|
244
|
+
disabled: nil,
|
|
245
|
+
# Payment methods explicitly enabled for checkout.
|
|
246
|
+
enabled: nil,
|
|
247
|
+
# Whether platform default payment methods are included.
|
|
248
|
+
include_platform_defaults: nil
|
|
249
|
+
)
|
|
250
|
+
end
|
|
428
251
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
252
|
+
sig do
|
|
253
|
+
override.returns(
|
|
254
|
+
{
|
|
255
|
+
disabled: T::Array[String],
|
|
256
|
+
enabled: T::Array[String],
|
|
257
|
+
include_platform_defaults: T::Boolean
|
|
258
|
+
}
|
|
259
|
+
)
|
|
260
|
+
end
|
|
261
|
+
def to_hash
|
|
262
|
+
end
|
|
263
|
+
end
|
|
432
264
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
application_fee_amount: T.nilable(Float),
|
|
440
|
-
billing_period: T.nilable(Integer),
|
|
441
|
-
custom_fields:
|
|
442
|
-
T.nilable(
|
|
443
|
-
T::Array[
|
|
444
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::CustomField::OrHash
|
|
445
|
-
]
|
|
446
|
-
),
|
|
447
|
-
description: T.nilable(String),
|
|
448
|
-
expiration_days: T.nilable(Integer),
|
|
449
|
-
force_create_new_plan: T.nilable(T::Boolean),
|
|
450
|
-
image:
|
|
451
|
-
T.nilable(
|
|
452
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Image::OrHash
|
|
453
|
-
),
|
|
454
|
-
initial_price: T.nilable(Float),
|
|
455
|
-
internal_notes: T.nilable(String),
|
|
456
|
-
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
457
|
-
payment_method_configuration:
|
|
458
|
-
T.nilable(
|
|
459
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::PaymentMethodConfiguration::OrHash
|
|
460
|
-
),
|
|
461
|
-
plan_type: T.nilable(WhopSDK::PlanType::OrSymbol),
|
|
462
|
-
product:
|
|
463
|
-
T.nilable(
|
|
464
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Product::OrHash
|
|
465
|
-
),
|
|
466
|
-
product_id: T.nilable(String),
|
|
467
|
-
release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
|
|
468
|
-
renewal_price: T.nilable(Float),
|
|
469
|
-
split_pay_required_payments: T.nilable(Integer),
|
|
470
|
-
stock: T.nilable(Integer),
|
|
471
|
-
title: T.nilable(String),
|
|
472
|
-
trial_period_days: T.nilable(Integer),
|
|
473
|
-
visibility: T.nilable(WhopSDK::Visibility::OrSymbol)
|
|
474
|
-
).returns(T.attached_class)
|
|
475
|
-
end
|
|
476
|
-
def self.new(
|
|
477
|
-
# The company the plan should be created for.
|
|
478
|
-
company_id:,
|
|
479
|
-
# The respective currency identifier for the plan.
|
|
480
|
-
currency:,
|
|
481
|
-
# Whether this plan accepts local currency payments via adaptive pricing.
|
|
482
|
-
adaptive_pricing_enabled: nil,
|
|
483
|
-
# The application fee amount collected by the platform from this connected
|
|
484
|
-
# account. Provided as a number in dollars (e.g., 5.00 for $5.00). Must be less
|
|
485
|
-
# than the total payment amount. Only valid for connected accounts with a parent
|
|
486
|
-
# company.
|
|
487
|
-
application_fee_amount: nil,
|
|
488
|
-
# The interval in days at which the plan charges (renewal plans). For example, 30
|
|
489
|
-
# for monthly billing.
|
|
490
|
-
billing_period: nil,
|
|
491
|
-
# An array of custom field objects.
|
|
492
|
-
custom_fields: nil,
|
|
493
|
-
# The description of the plan.
|
|
494
|
-
description: nil,
|
|
495
|
-
# The number of days until the membership expires (for expiration-based plans).
|
|
496
|
-
# For example, 365 for a one-year access pass.
|
|
497
|
-
expiration_days: nil,
|
|
498
|
-
# Whether to force the creation of a new plan even if one with the same attributes
|
|
499
|
-
# already exists.
|
|
500
|
-
force_create_new_plan: nil,
|
|
501
|
-
# An image for the plan. This will be visible on the product page to customers.
|
|
502
|
-
image: nil,
|
|
503
|
-
# An additional amount charged upon first purchase. Provided as a number in
|
|
504
|
-
# dollars (e.g., 10.00 for $10.00).
|
|
505
|
-
initial_price: nil,
|
|
506
|
-
# A personal description or notes section for the business.
|
|
507
|
-
internal_notes: nil,
|
|
508
|
-
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
509
|
-
# up)
|
|
510
|
-
override_tax_type: nil,
|
|
511
|
-
# The explicit payment method configuration for the plan. If not provided, the
|
|
512
|
-
# platform or company's defaults will apply.
|
|
513
|
-
payment_method_configuration: nil,
|
|
514
|
-
# The type of plan that can be attached to a product
|
|
515
|
-
plan_type: nil,
|
|
516
|
-
# Pass this object to create a new product for this plan. We will use the product
|
|
517
|
-
# external identifier to find or create an existing product.
|
|
518
|
-
product: nil,
|
|
519
|
-
# The product the plan is related to. Either this or product is required.
|
|
520
|
-
product_id: nil,
|
|
521
|
-
# The methods of how a plan can be released.
|
|
522
|
-
release_method: nil,
|
|
523
|
-
# The amount the customer is charged every billing period. Provided as a number in
|
|
524
|
-
# dollars (e.g., 9.99 for $9.99/period).
|
|
525
|
-
renewal_price: nil,
|
|
526
|
-
# The number of payments required before pausing the subscription.
|
|
527
|
-
split_pay_required_payments: nil,
|
|
528
|
-
# The number of units available for purchase. If not provided, stock is unlimited.
|
|
529
|
-
stock: nil,
|
|
530
|
-
# The title of the plan. This will be visible on the product page to customers.
|
|
531
|
-
title: nil,
|
|
532
|
-
# The number of free trial days added before a renewal plan.
|
|
533
|
-
trial_period_days: nil,
|
|
534
|
-
# Visibility of a resource
|
|
535
|
-
visibility: nil
|
|
265
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
266
|
+
OrHash =
|
|
267
|
+
T.type_alias do
|
|
268
|
+
T.any(
|
|
269
|
+
WhopSDK::CheckoutConfigurationCreateParams::Plan,
|
|
270
|
+
WhopSDK::Internal::AnyHash
|
|
536
271
|
)
|
|
537
|
-
end
|
|
538
|
-
|
|
539
|
-
sig do
|
|
540
|
-
override.returns(
|
|
541
|
-
{
|
|
542
|
-
company_id: String,
|
|
543
|
-
currency: WhopSDK::Currency::OrSymbol,
|
|
544
|
-
adaptive_pricing_enabled: T.nilable(T::Boolean),
|
|
545
|
-
application_fee_amount: T.nilable(Float),
|
|
546
|
-
billing_period: T.nilable(Integer),
|
|
547
|
-
custom_fields:
|
|
548
|
-
T.nilable(
|
|
549
|
-
T::Array[
|
|
550
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::CustomField
|
|
551
|
-
]
|
|
552
|
-
),
|
|
553
|
-
description: T.nilable(String),
|
|
554
|
-
expiration_days: T.nilable(Integer),
|
|
555
|
-
force_create_new_plan: T.nilable(T::Boolean),
|
|
556
|
-
image:
|
|
557
|
-
T.nilable(
|
|
558
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Image
|
|
559
|
-
),
|
|
560
|
-
initial_price: T.nilable(Float),
|
|
561
|
-
internal_notes: T.nilable(String),
|
|
562
|
-
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
563
|
-
payment_method_configuration:
|
|
564
|
-
T.nilable(
|
|
565
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::PaymentMethodConfiguration
|
|
566
|
-
),
|
|
567
|
-
plan_type: T.nilable(WhopSDK::PlanType::OrSymbol),
|
|
568
|
-
product:
|
|
569
|
-
T.nilable(
|
|
570
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Product
|
|
571
|
-
),
|
|
572
|
-
product_id: T.nilable(String),
|
|
573
|
-
release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
|
|
574
|
-
renewal_price: T.nilable(Float),
|
|
575
|
-
split_pay_required_payments: T.nilable(Integer),
|
|
576
|
-
stock: T.nilable(Integer),
|
|
577
|
-
title: T.nilable(String),
|
|
578
|
-
trial_period_days: T.nilable(Integer),
|
|
579
|
-
visibility: T.nilable(WhopSDK::Visibility::OrSymbol)
|
|
580
|
-
}
|
|
581
|
-
)
|
|
582
|
-
end
|
|
583
|
-
def to_hash
|
|
584
|
-
end
|
|
585
|
-
|
|
586
|
-
class CustomField < WhopSDK::Internal::Type::BaseModel
|
|
587
|
-
OrHash =
|
|
588
|
-
T.type_alias do
|
|
589
|
-
T.any(
|
|
590
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::CustomField,
|
|
591
|
-
WhopSDK::Internal::AnyHash
|
|
592
|
-
)
|
|
593
|
-
end
|
|
594
|
-
|
|
595
|
-
# The type of the custom field.
|
|
596
|
-
sig { returns(Symbol) }
|
|
597
|
-
attr_accessor :field_type
|
|
598
|
-
|
|
599
|
-
# The name of the custom field.
|
|
600
|
-
sig { returns(String) }
|
|
601
|
-
attr_accessor :name
|
|
602
|
-
|
|
603
|
-
# The ID of the custom field (if being updated)
|
|
604
|
-
sig { returns(T.nilable(String)) }
|
|
605
|
-
attr_accessor :id
|
|
606
|
-
|
|
607
|
-
# The order of the field.
|
|
608
|
-
sig { returns(T.nilable(Integer)) }
|
|
609
|
-
attr_accessor :order
|
|
610
|
-
|
|
611
|
-
# The placeholder value of the field.
|
|
612
|
-
sig { returns(T.nilable(String)) }
|
|
613
|
-
attr_accessor :placeholder
|
|
614
|
-
|
|
615
|
-
# Whether or not the field is required.
|
|
616
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
617
|
-
attr_accessor :required
|
|
618
|
-
|
|
619
|
-
sig do
|
|
620
|
-
params(
|
|
621
|
-
name: String,
|
|
622
|
-
id: T.nilable(String),
|
|
623
|
-
order: T.nilable(Integer),
|
|
624
|
-
placeholder: T.nilable(String),
|
|
625
|
-
required: T.nilable(T::Boolean),
|
|
626
|
-
field_type: Symbol
|
|
627
|
-
).returns(T.attached_class)
|
|
628
|
-
end
|
|
629
|
-
def self.new(
|
|
630
|
-
# The name of the custom field.
|
|
631
|
-
name:,
|
|
632
|
-
# The ID of the custom field (if being updated)
|
|
633
|
-
id: nil,
|
|
634
|
-
# The order of the field.
|
|
635
|
-
order: nil,
|
|
636
|
-
# The placeholder value of the field.
|
|
637
|
-
placeholder: nil,
|
|
638
|
-
# Whether or not the field is required.
|
|
639
|
-
required: nil,
|
|
640
|
-
# The type of the custom field.
|
|
641
|
-
field_type: :text
|
|
642
|
-
)
|
|
643
|
-
end
|
|
644
|
-
|
|
645
|
-
sig do
|
|
646
|
-
override.returns(
|
|
647
|
-
{
|
|
648
|
-
field_type: Symbol,
|
|
649
|
-
name: String,
|
|
650
|
-
id: T.nilable(String),
|
|
651
|
-
order: T.nilable(Integer),
|
|
652
|
-
placeholder: T.nilable(String),
|
|
653
|
-
required: T.nilable(T::Boolean)
|
|
654
|
-
}
|
|
655
|
-
)
|
|
656
|
-
end
|
|
657
|
-
def to_hash
|
|
658
|
-
end
|
|
659
|
-
end
|
|
660
|
-
|
|
661
|
-
class Image < WhopSDK::Internal::Type::BaseModel
|
|
662
|
-
OrHash =
|
|
663
|
-
T.type_alias do
|
|
664
|
-
T.any(
|
|
665
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Image,
|
|
666
|
-
WhopSDK::Internal::AnyHash
|
|
667
|
-
)
|
|
668
|
-
end
|
|
669
|
-
|
|
670
|
-
# The ID of an existing file object.
|
|
671
|
-
sig { returns(String) }
|
|
672
|
-
attr_accessor :id
|
|
673
|
-
|
|
674
|
-
# An image for the plan. This will be visible on the product page to customers.
|
|
675
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
676
|
-
def self.new(
|
|
677
|
-
# The ID of an existing file object.
|
|
678
|
-
id:
|
|
679
|
-
)
|
|
680
|
-
end
|
|
681
|
-
|
|
682
|
-
sig { override.returns({ id: String }) }
|
|
683
|
-
def to_hash
|
|
684
|
-
end
|
|
685
|
-
end
|
|
686
|
-
|
|
687
|
-
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
688
|
-
OrHash =
|
|
689
|
-
T.type_alias do
|
|
690
|
-
T.any(
|
|
691
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::PaymentMethodConfiguration,
|
|
692
|
-
WhopSDK::Internal::AnyHash
|
|
693
|
-
)
|
|
694
|
-
end
|
|
695
|
-
|
|
696
|
-
# An array of payment method identifiers that are explicitly disabled. Only
|
|
697
|
-
# applies if the include_platform_defaults is true.
|
|
698
|
-
sig { returns(T::Array[WhopSDK::PaymentMethodTypes::OrSymbol]) }
|
|
699
|
-
attr_accessor :disabled
|
|
700
|
-
|
|
701
|
-
# An array of payment method identifiers that are explicitly enabled. This means
|
|
702
|
-
# these payment methods will be shown on checkout. Example use case is to only
|
|
703
|
-
# enable a specific payment method like cashapp, or extending the platform
|
|
704
|
-
# defaults with additional methods.
|
|
705
|
-
sig { returns(T::Array[WhopSDK::PaymentMethodTypes::OrSymbol]) }
|
|
706
|
-
attr_accessor :enabled
|
|
707
|
-
|
|
708
|
-
# Whether Whop's platform default payment method enablement settings are included
|
|
709
|
-
# in this configuration. The full list of default payment methods can be found in
|
|
710
|
-
# the documentation at docs.whop.com/payments.
|
|
711
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
712
|
-
attr_accessor :include_platform_defaults
|
|
713
|
-
|
|
714
|
-
# The explicit payment method configuration for the plan. If not provided, the
|
|
715
|
-
# platform or company's defaults will apply.
|
|
716
|
-
sig do
|
|
717
|
-
params(
|
|
718
|
-
disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
719
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
720
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
721
|
-
).returns(T.attached_class)
|
|
722
|
-
end
|
|
723
|
-
def self.new(
|
|
724
|
-
# An array of payment method identifiers that are explicitly disabled. Only
|
|
725
|
-
# applies if the include_platform_defaults is true.
|
|
726
|
-
disabled:,
|
|
727
|
-
# An array of payment method identifiers that are explicitly enabled. This means
|
|
728
|
-
# these payment methods will be shown on checkout. Example use case is to only
|
|
729
|
-
# enable a specific payment method like cashapp, or extending the platform
|
|
730
|
-
# defaults with additional methods.
|
|
731
|
-
enabled:,
|
|
732
|
-
# Whether Whop's platform default payment method enablement settings are included
|
|
733
|
-
# in this configuration. The full list of default payment methods can be found in
|
|
734
|
-
# the documentation at docs.whop.com/payments.
|
|
735
|
-
include_platform_defaults: nil
|
|
736
|
-
)
|
|
737
|
-
end
|
|
738
|
-
|
|
739
|
-
sig do
|
|
740
|
-
override.returns(
|
|
741
|
-
{
|
|
742
|
-
disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
743
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
744
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
745
|
-
}
|
|
746
|
-
)
|
|
747
|
-
end
|
|
748
|
-
def to_hash
|
|
749
|
-
end
|
|
750
|
-
end
|
|
751
|
-
|
|
752
|
-
class Product < WhopSDK::Internal::Type::BaseModel
|
|
753
|
-
OrHash =
|
|
754
|
-
T.type_alias do
|
|
755
|
-
T.any(
|
|
756
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Plan::Product,
|
|
757
|
-
WhopSDK::Internal::AnyHash
|
|
758
|
-
)
|
|
759
|
-
end
|
|
760
|
-
|
|
761
|
-
# A unique ID used to find or create a product. When provided during creation, we
|
|
762
|
-
# will look for an existing product with this external identifier — if found, it
|
|
763
|
-
# will be updated; otherwise, a new product will be created.
|
|
764
|
-
sig { returns(String) }
|
|
765
|
-
attr_accessor :external_identifier
|
|
766
|
-
|
|
767
|
-
# The title of the product.
|
|
768
|
-
sig { returns(String) }
|
|
769
|
-
attr_accessor :title
|
|
770
|
-
|
|
771
|
-
# Whether or not to collect shipping information at checkout from the customer.
|
|
772
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
773
|
-
attr_accessor :collect_shipping_address
|
|
774
|
-
|
|
775
|
-
# The custom statement descriptor for the product i.e. WHOP\*SPORTS, must be
|
|
776
|
-
# between 5 and 22 characters, contain at least one letter, and not contain any of
|
|
777
|
-
# the following characters: <, >, \, ', "
|
|
778
|
-
sig { returns(T.nilable(String)) }
|
|
779
|
-
attr_accessor :custom_statement_descriptor
|
|
780
|
-
|
|
781
|
-
# A written description of the product.
|
|
782
|
-
sig { returns(T.nilable(String)) }
|
|
783
|
-
attr_accessor :description
|
|
784
|
-
|
|
785
|
-
# The percentage of the revenue that goes to the global affiliate program.
|
|
786
|
-
sig { returns(T.nilable(Float)) }
|
|
787
|
-
attr_accessor :global_affiliate_percentage
|
|
788
|
-
|
|
789
|
-
# The different statuses of the global affiliate program for a product.
|
|
790
|
-
sig do
|
|
791
|
-
returns(T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol))
|
|
792
|
-
end
|
|
793
|
-
attr_accessor :global_affiliate_status
|
|
794
|
-
|
|
795
|
-
# The headline of the product.
|
|
796
|
-
sig { returns(T.nilable(String)) }
|
|
797
|
-
attr_accessor :headline
|
|
798
|
-
|
|
799
|
-
# The ID of the product tax code to apply to this product.
|
|
800
|
-
sig { returns(T.nilable(String)) }
|
|
801
|
-
attr_accessor :product_tax_code_id
|
|
802
|
-
|
|
803
|
-
# The URL to redirect the customer to after a purchase.
|
|
804
|
-
sig { returns(T.nilable(String)) }
|
|
805
|
-
attr_accessor :redirect_purchase_url
|
|
806
|
-
|
|
807
|
-
# The route of the product.
|
|
808
|
-
sig { returns(T.nilable(String)) }
|
|
809
|
-
attr_accessor :route
|
|
810
|
-
|
|
811
|
-
# Visibility of a resource
|
|
812
|
-
sig { returns(T.nilable(WhopSDK::Visibility::OrSymbol)) }
|
|
813
|
-
attr_accessor :visibility
|
|
814
|
-
|
|
815
|
-
# Pass this object to create a new product for this plan. We will use the product
|
|
816
|
-
# external identifier to find or create an existing product.
|
|
817
|
-
sig do
|
|
818
|
-
params(
|
|
819
|
-
external_identifier: String,
|
|
820
|
-
title: String,
|
|
821
|
-
collect_shipping_address: T.nilable(T::Boolean),
|
|
822
|
-
custom_statement_descriptor: T.nilable(String),
|
|
823
|
-
description: T.nilable(String),
|
|
824
|
-
global_affiliate_percentage: T.nilable(Float),
|
|
825
|
-
global_affiliate_status:
|
|
826
|
-
T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol),
|
|
827
|
-
headline: T.nilable(String),
|
|
828
|
-
product_tax_code_id: T.nilable(String),
|
|
829
|
-
redirect_purchase_url: T.nilable(String),
|
|
830
|
-
route: T.nilable(String),
|
|
831
|
-
visibility: T.nilable(WhopSDK::Visibility::OrSymbol)
|
|
832
|
-
).returns(T.attached_class)
|
|
833
|
-
end
|
|
834
|
-
def self.new(
|
|
835
|
-
# A unique ID used to find or create a product. When provided during creation, we
|
|
836
|
-
# will look for an existing product with this external identifier — if found, it
|
|
837
|
-
# will be updated; otherwise, a new product will be created.
|
|
838
|
-
external_identifier:,
|
|
839
|
-
# The title of the product.
|
|
840
|
-
title:,
|
|
841
|
-
# Whether or not to collect shipping information at checkout from the customer.
|
|
842
|
-
collect_shipping_address: nil,
|
|
843
|
-
# The custom statement descriptor for the product i.e. WHOP\*SPORTS, must be
|
|
844
|
-
# between 5 and 22 characters, contain at least one letter, and not contain any of
|
|
845
|
-
# the following characters: <, >, \, ', "
|
|
846
|
-
custom_statement_descriptor: nil,
|
|
847
|
-
# A written description of the product.
|
|
848
|
-
description: nil,
|
|
849
|
-
# The percentage of the revenue that goes to the global affiliate program.
|
|
850
|
-
global_affiliate_percentage: nil,
|
|
851
|
-
# The different statuses of the global affiliate program for a product.
|
|
852
|
-
global_affiliate_status: nil,
|
|
853
|
-
# The headline of the product.
|
|
854
|
-
headline: nil,
|
|
855
|
-
# The ID of the product tax code to apply to this product.
|
|
856
|
-
product_tax_code_id: nil,
|
|
857
|
-
# The URL to redirect the customer to after a purchase.
|
|
858
|
-
redirect_purchase_url: nil,
|
|
859
|
-
# The route of the product.
|
|
860
|
-
route: nil,
|
|
861
|
-
# Visibility of a resource
|
|
862
|
-
visibility: nil
|
|
863
|
-
)
|
|
864
|
-
end
|
|
865
|
-
|
|
866
|
-
sig do
|
|
867
|
-
override.returns(
|
|
868
|
-
{
|
|
869
|
-
external_identifier: String,
|
|
870
|
-
title: String,
|
|
871
|
-
collect_shipping_address: T.nilable(T::Boolean),
|
|
872
|
-
custom_statement_descriptor: T.nilable(String),
|
|
873
|
-
description: T.nilable(String),
|
|
874
|
-
global_affiliate_percentage: T.nilable(Float),
|
|
875
|
-
global_affiliate_status:
|
|
876
|
-
T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol),
|
|
877
|
-
headline: T.nilable(String),
|
|
878
|
-
product_tax_code_id: T.nilable(String),
|
|
879
|
-
redirect_purchase_url: T.nilable(String),
|
|
880
|
-
route: T.nilable(String),
|
|
881
|
-
visibility: T.nilable(WhopSDK::Visibility::OrSymbol)
|
|
882
|
-
}
|
|
883
|
-
)
|
|
884
|
-
end
|
|
885
|
-
def to_hash
|
|
886
|
-
end
|
|
887
|
-
end
|
|
888
272
|
end
|
|
889
273
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
T.any(
|
|
894
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::CheckoutStyling,
|
|
895
|
-
WhopSDK::Internal::AnyHash
|
|
896
|
-
)
|
|
897
|
-
end
|
|
274
|
+
# Recurring billing interval in days, such as 30 for monthly or 365 for annual.
|
|
275
|
+
sig { returns(T.nilable(Integer)) }
|
|
276
|
+
attr_accessor :billing_period
|
|
898
277
|
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
278
|
+
# Account ID for the inline plan, prefixed `biz_`. Defaults to the account
|
|
279
|
+
# resolved from the request.
|
|
280
|
+
sig { returns(T.nilable(String)) }
|
|
281
|
+
attr_accessor :company_id
|
|
903
282
|
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
283
|
+
# Three-letter ISO currency code for the plan's prices.
|
|
284
|
+
sig { returns(T.nilable(String)) }
|
|
285
|
+
attr_accessor :currency
|
|
907
286
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
287
|
+
# Customer-visible plan description.
|
|
288
|
+
sig { returns(T.nilable(String)) }
|
|
289
|
+
attr_accessor :description
|
|
911
290
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
# Checkout styling overrides for this session. Overrides plan and company
|
|
917
|
-
# defaults.
|
|
918
|
-
sig do
|
|
919
|
-
params(
|
|
920
|
-
background_color: T.nilable(String),
|
|
921
|
-
border_style: T.nilable(WhopSDK::CheckoutShape::OrSymbol),
|
|
922
|
-
button_color: T.nilable(String),
|
|
923
|
-
font_family: T.nilable(WhopSDK::CheckoutFont::OrSymbol)
|
|
924
|
-
).returns(T.attached_class)
|
|
925
|
-
end
|
|
926
|
-
def self.new(
|
|
927
|
-
# A hex color code for the checkout page background, applied to the order summary
|
|
928
|
-
# panel (e.g. #F4F4F5).
|
|
929
|
-
background_color: nil,
|
|
930
|
-
# The different border-radius styles available for checkout pages.
|
|
931
|
-
border_style: nil,
|
|
932
|
-
# A hex color code for the button color (e.g. #FF5733).
|
|
933
|
-
button_color: nil,
|
|
934
|
-
# The different font families available for checkout pages.
|
|
935
|
-
font_family: nil
|
|
936
|
-
)
|
|
937
|
-
end
|
|
938
|
-
|
|
939
|
-
sig do
|
|
940
|
-
override.returns(
|
|
941
|
-
{
|
|
942
|
-
background_color: T.nilable(String),
|
|
943
|
-
border_style: T.nilable(WhopSDK::CheckoutShape::OrSymbol),
|
|
944
|
-
button_color: T.nilable(String),
|
|
945
|
-
font_family: T.nilable(WhopSDK::CheckoutFont::OrSymbol)
|
|
946
|
-
}
|
|
947
|
-
)
|
|
948
|
-
end
|
|
949
|
-
def to_hash
|
|
950
|
-
end
|
|
951
|
-
end
|
|
952
|
-
|
|
953
|
-
module Mode
|
|
954
|
-
extend WhopSDK::Internal::Type::Enum
|
|
955
|
-
|
|
956
|
-
TaggedSymbol =
|
|
957
|
-
T.type_alias do
|
|
958
|
-
T.all(
|
|
959
|
-
Symbol,
|
|
960
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Mode
|
|
961
|
-
)
|
|
962
|
-
end
|
|
963
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
964
|
-
|
|
965
|
-
PAYMENT =
|
|
966
|
-
T.let(
|
|
967
|
-
:payment,
|
|
968
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Mode::TaggedSymbol
|
|
969
|
-
)
|
|
970
|
-
|
|
971
|
-
sig do
|
|
972
|
-
override.returns(
|
|
973
|
-
T::Array[
|
|
974
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::Mode::TaggedSymbol
|
|
975
|
-
]
|
|
976
|
-
)
|
|
977
|
-
end
|
|
978
|
-
def self.values
|
|
979
|
-
end
|
|
980
|
-
end
|
|
291
|
+
# Access duration in days for expiration-based plans.
|
|
292
|
+
sig { returns(T.nilable(Integer)) }
|
|
293
|
+
attr_accessor :expiration_days
|
|
981
294
|
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
T.any(
|
|
986
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlan::PaymentMethodConfiguration,
|
|
987
|
-
WhopSDK::Internal::AnyHash
|
|
988
|
-
)
|
|
989
|
-
end
|
|
295
|
+
# Whether to create a new plan instead of reusing a matching one.
|
|
296
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
297
|
+
attr_accessor :force_create_new_plan
|
|
990
298
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
attr_accessor :disabled
|
|
299
|
+
# Initial purchase price in the plan currency.
|
|
300
|
+
sig { returns(T.nilable(Float)) }
|
|
301
|
+
attr_accessor :initial_price
|
|
995
302
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
# defaults with additional methods.
|
|
1000
|
-
sig { returns(T::Array[WhopSDK::PaymentMethodTypes::OrSymbol]) }
|
|
1001
|
-
attr_accessor :enabled
|
|
303
|
+
# Custom key-value metadata stored on the plan.
|
|
304
|
+
sig { returns(T.nilable(T.anything)) }
|
|
305
|
+
attr_accessor :metadata
|
|
1002
306
|
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
1007
|
-
attr_accessor :include_platform_defaults
|
|
307
|
+
# Tax classification override for this plan.
|
|
308
|
+
sig { returns(T.nilable(String)) }
|
|
309
|
+
attr_accessor :override_tax_type
|
|
1008
310
|
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1015
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
1016
|
-
).returns(T.attached_class)
|
|
1017
|
-
end
|
|
1018
|
-
def self.new(
|
|
1019
|
-
# An array of payment method identifiers that are explicitly disabled. Only
|
|
1020
|
-
# applies if the include_platform_defaults is true.
|
|
1021
|
-
disabled:,
|
|
1022
|
-
# An array of payment method identifiers that are explicitly enabled. This means
|
|
1023
|
-
# these payment methods will be shown on checkout. Example use case is to only
|
|
1024
|
-
# enable a specific payment method like cashapp, or extending the platform
|
|
1025
|
-
# defaults with additional methods.
|
|
1026
|
-
enabled:,
|
|
1027
|
-
# Whether Whop's platform default payment method enablement settings are included
|
|
1028
|
-
# in this configuration. The full list of default payment methods can be found in
|
|
1029
|
-
# the documentation at docs.whop.com/payments.
|
|
1030
|
-
include_platform_defaults: nil
|
|
311
|
+
# Payment method overrides for the inline plan. `null` uses platform defaults.
|
|
312
|
+
sig do
|
|
313
|
+
returns(
|
|
314
|
+
T.nilable(
|
|
315
|
+
WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration
|
|
1031
316
|
)
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
sig do
|
|
1035
|
-
override.returns(
|
|
1036
|
-
{
|
|
1037
|
-
disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1038
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1039
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
1040
|
-
}
|
|
1041
|
-
)
|
|
1042
|
-
end
|
|
1043
|
-
def to_hash
|
|
1044
|
-
end
|
|
1045
|
-
end
|
|
317
|
+
)
|
|
1046
318
|
end
|
|
319
|
+
attr_reader :payment_method_configuration
|
|
1047
320
|
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
T.
|
|
1052
|
-
WhopSDK::CheckoutConfigurationCreateParams::
|
|
1053
|
-
WhopSDK::Internal::AnyHash
|
|
321
|
+
sig do
|
|
322
|
+
params(
|
|
323
|
+
payment_method_configuration:
|
|
324
|
+
T.nilable(
|
|
325
|
+
WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration::OrHash
|
|
1054
326
|
)
|
|
1055
|
-
|
|
327
|
+
).void
|
|
328
|
+
end
|
|
329
|
+
attr_writer :payment_method_configuration
|
|
1056
330
|
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
331
|
+
# Billing model for the plan: `renewal` (recurring) or `one_time` (single
|
|
332
|
+
# payment).
|
|
333
|
+
sig { returns(T.nilable(String)) }
|
|
334
|
+
attr_accessor :plan_type
|
|
1061
335
|
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
336
|
+
# Product ID the inline plan should belong to, prefixed `prod_`.
|
|
337
|
+
sig { returns(T.nilable(String)) }
|
|
338
|
+
attr_accessor :product_id
|
|
1065
339
|
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
attr_accessor :allow_promo_codes
|
|
340
|
+
# Sales method for the plan, such as `buy_now` or `waitlist`.
|
|
341
|
+
sig { returns(T.nilable(String)) }
|
|
342
|
+
attr_accessor :release_method
|
|
1070
343
|
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
returns(
|
|
1075
|
-
T.nilable(
|
|
1076
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::CheckoutStyling
|
|
1077
|
-
)
|
|
1078
|
-
)
|
|
1079
|
-
end
|
|
1080
|
-
attr_reader :checkout_styling
|
|
344
|
+
# Recurring price charged each billing period.
|
|
345
|
+
sig { returns(T.nilable(Float)) }
|
|
346
|
+
attr_accessor :renewal_price
|
|
1081
347
|
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
T.nilable(
|
|
1086
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::CheckoutStyling::OrHash
|
|
1087
|
-
)
|
|
1088
|
-
).void
|
|
1089
|
-
end
|
|
1090
|
-
attr_writer :checkout_styling
|
|
348
|
+
# Units available for purchase.
|
|
349
|
+
sig { returns(T.nilable(Integer)) }
|
|
350
|
+
attr_accessor :stock
|
|
1091
351
|
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
352
|
+
# Plan display name shown to customers.
|
|
353
|
+
sig { returns(T.nilable(String)) }
|
|
354
|
+
attr_accessor :title
|
|
1095
355
|
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
356
|
+
# Free trial days before the first renewal charge.
|
|
357
|
+
sig { returns(T.nilable(Integer)) }
|
|
358
|
+
attr_accessor :trial_period_days
|
|
1099
359
|
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::Mode::OrSymbol
|
|
1104
|
-
)
|
|
1105
|
-
)
|
|
1106
|
-
end
|
|
1107
|
-
attr_reader :mode
|
|
360
|
+
# Whether the plan has unlimited stock.
|
|
361
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
362
|
+
attr_accessor :unlimited_stock
|
|
1108
363
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::Mode::OrSymbol
|
|
1113
|
-
).void
|
|
1114
|
-
end
|
|
1115
|
-
attr_writer :mode
|
|
364
|
+
# Whether the plan is visible to customers or hidden from public view.
|
|
365
|
+
sig { returns(T.nilable(String)) }
|
|
366
|
+
attr_accessor :visibility
|
|
1116
367
|
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
368
|
+
# Plan attributes used to create or find a plan for this checkout configuration.
|
|
369
|
+
# Mutually exclusive with `plan_id`.
|
|
370
|
+
sig do
|
|
371
|
+
params(
|
|
372
|
+
billing_period: T.nilable(Integer),
|
|
373
|
+
company_id: T.nilable(String),
|
|
374
|
+
currency: T.nilable(String),
|
|
375
|
+
description: T.nilable(String),
|
|
376
|
+
expiration_days: T.nilable(Integer),
|
|
377
|
+
force_create_new_plan: T.nilable(T::Boolean),
|
|
378
|
+
initial_price: T.nilable(Float),
|
|
379
|
+
metadata: T.nilable(T.anything),
|
|
380
|
+
override_tax_type: T.nilable(String),
|
|
381
|
+
payment_method_configuration:
|
|
1121
382
|
T.nilable(
|
|
1122
|
-
WhopSDK::CheckoutConfigurationCreateParams::
|
|
1123
|
-
)
|
|
1124
|
-
)
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
#
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
383
|
+
WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration::OrHash
|
|
384
|
+
),
|
|
385
|
+
plan_type: T.nilable(String),
|
|
386
|
+
product_id: T.nilable(String),
|
|
387
|
+
release_method: T.nilable(String),
|
|
388
|
+
renewal_price: T.nilable(Float),
|
|
389
|
+
stock: T.nilable(Integer),
|
|
390
|
+
title: T.nilable(String),
|
|
391
|
+
trial_period_days: T.nilable(Integer),
|
|
392
|
+
unlimited_stock: T.nilable(T::Boolean),
|
|
393
|
+
visibility: T.nilable(String)
|
|
394
|
+
).returns(T.attached_class)
|
|
395
|
+
end
|
|
396
|
+
def self.new(
|
|
397
|
+
# Recurring billing interval in days, such as 30 for monthly or 365 for annual.
|
|
398
|
+
billing_period: nil,
|
|
399
|
+
# Account ID for the inline plan, prefixed `biz_`. Defaults to the account
|
|
400
|
+
# resolved from the request.
|
|
401
|
+
company_id: nil,
|
|
402
|
+
# Three-letter ISO currency code for the plan's prices.
|
|
403
|
+
currency: nil,
|
|
404
|
+
# Customer-visible plan description.
|
|
405
|
+
description: nil,
|
|
406
|
+
# Access duration in days for expiration-based plans.
|
|
407
|
+
expiration_days: nil,
|
|
408
|
+
# Whether to create a new plan instead of reusing a matching one.
|
|
409
|
+
force_create_new_plan: nil,
|
|
410
|
+
# Initial purchase price in the plan currency.
|
|
411
|
+
initial_price: nil,
|
|
412
|
+
# Custom key-value metadata stored on the plan.
|
|
413
|
+
metadata: nil,
|
|
414
|
+
# Tax classification override for this plan.
|
|
415
|
+
override_tax_type: nil,
|
|
416
|
+
# Payment method overrides for the inline plan. `null` uses platform defaults.
|
|
417
|
+
payment_method_configuration: nil,
|
|
418
|
+
# Billing model for the plan: `renewal` (recurring) or `one_time` (single
|
|
419
|
+
# payment).
|
|
420
|
+
plan_type: nil,
|
|
421
|
+
# Product ID the inline plan should belong to, prefixed `prod_`.
|
|
422
|
+
product_id: nil,
|
|
423
|
+
# Sales method for the plan, such as `buy_now` or `waitlist`.
|
|
424
|
+
release_method: nil,
|
|
425
|
+
# Recurring price charged each billing period.
|
|
426
|
+
renewal_price: nil,
|
|
427
|
+
# Units available for purchase.
|
|
428
|
+
stock: nil,
|
|
429
|
+
# Plan display name shown to customers.
|
|
430
|
+
title: nil,
|
|
431
|
+
# Free trial days before the first renewal charge.
|
|
432
|
+
trial_period_days: nil,
|
|
433
|
+
# Whether the plan has unlimited stock.
|
|
434
|
+
unlimited_stock: nil,
|
|
435
|
+
# Whether the plan is visible to customers or hidden from public view.
|
|
436
|
+
visibility: nil
|
|
437
|
+
)
|
|
438
|
+
end
|
|
1145
439
|
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
mode:
|
|
1159
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::Mode::OrSymbol,
|
|
440
|
+
sig do
|
|
441
|
+
override.returns(
|
|
442
|
+
{
|
|
443
|
+
billing_period: T.nilable(Integer),
|
|
444
|
+
company_id: T.nilable(String),
|
|
445
|
+
currency: T.nilable(String),
|
|
446
|
+
description: T.nilable(String),
|
|
447
|
+
expiration_days: T.nilable(Integer),
|
|
448
|
+
force_create_new_plan: T.nilable(T::Boolean),
|
|
449
|
+
initial_price: T.nilable(Float),
|
|
450
|
+
metadata: T.nilable(T.anything),
|
|
451
|
+
override_tax_type: T.nilable(String),
|
|
1160
452
|
payment_method_configuration:
|
|
1161
453
|
T.nilable(
|
|
1162
|
-
WhopSDK::CheckoutConfigurationCreateParams::
|
|
454
|
+
WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration
|
|
1163
455
|
),
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
# Whether the checkout should show the promo code input field and accept promo
|
|
1175
|
-
# codes. Defaults to true.
|
|
1176
|
-
allow_promo_codes: nil,
|
|
1177
|
-
# Checkout styling overrides for this session. Overrides plan and company
|
|
1178
|
-
# defaults.
|
|
1179
|
-
checkout_styling: nil,
|
|
1180
|
-
# The available currencies on the platform
|
|
1181
|
-
currency: nil,
|
|
1182
|
-
# Custom key-value metadata to attach to the checkout configuration.
|
|
1183
|
-
metadata: nil,
|
|
1184
|
-
mode: nil,
|
|
1185
|
-
# The explicit payment method configuration for the checkout session. Only applies
|
|
1186
|
-
# to setup mode. If not provided, the platform or company defaults will apply.
|
|
1187
|
-
payment_method_configuration: nil,
|
|
1188
|
-
# The URL to redirect the user to after checkout is completed.
|
|
1189
|
-
redirect_url: nil,
|
|
1190
|
-
# The URL of the page where the checkout is being initiated from.
|
|
1191
|
-
source_url: nil
|
|
456
|
+
plan_type: T.nilable(String),
|
|
457
|
+
product_id: T.nilable(String),
|
|
458
|
+
release_method: T.nilable(String),
|
|
459
|
+
renewal_price: T.nilable(Float),
|
|
460
|
+
stock: T.nilable(Integer),
|
|
461
|
+
title: T.nilable(String),
|
|
462
|
+
trial_period_days: T.nilable(Integer),
|
|
463
|
+
unlimited_stock: T.nilable(T::Boolean),
|
|
464
|
+
visibility: T.nilable(String)
|
|
465
|
+
}
|
|
1192
466
|
)
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
sig do
|
|
1196
|
-
override.returns(
|
|
1197
|
-
{
|
|
1198
|
-
plan_id: String,
|
|
1199
|
-
affiliate_code: T.nilable(String),
|
|
1200
|
-
allow_promo_codes: T.nilable(T::Boolean),
|
|
1201
|
-
checkout_styling:
|
|
1202
|
-
T.nilable(
|
|
1203
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::CheckoutStyling
|
|
1204
|
-
),
|
|
1205
|
-
currency: T.nilable(WhopSDK::Currency::OrSymbol),
|
|
1206
|
-
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
1207
|
-
mode:
|
|
1208
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::Mode::OrSymbol,
|
|
1209
|
-
payment_method_configuration:
|
|
1210
|
-
T.nilable(
|
|
1211
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::PaymentMethodConfiguration
|
|
1212
|
-
),
|
|
1213
|
-
redirect_url: T.nilable(String),
|
|
1214
|
-
source_url: T.nilable(String)
|
|
1215
|
-
}
|
|
1216
|
-
)
|
|
1217
|
-
end
|
|
1218
|
-
def to_hash
|
|
1219
|
-
end
|
|
1220
|
-
|
|
1221
|
-
class CheckoutStyling < WhopSDK::Internal::Type::BaseModel
|
|
1222
|
-
OrHash =
|
|
1223
|
-
T.type_alias do
|
|
1224
|
-
T.any(
|
|
1225
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::CheckoutStyling,
|
|
1226
|
-
WhopSDK::Internal::AnyHash
|
|
1227
|
-
)
|
|
1228
|
-
end
|
|
1229
|
-
|
|
1230
|
-
# A hex color code for the checkout page background, applied to the order summary
|
|
1231
|
-
# panel (e.g. #F4F4F5).
|
|
1232
|
-
sig { returns(T.nilable(String)) }
|
|
1233
|
-
attr_accessor :background_color
|
|
1234
|
-
|
|
1235
|
-
# The different border-radius styles available for checkout pages.
|
|
1236
|
-
sig { returns(T.nilable(WhopSDK::CheckoutShape::OrSymbol)) }
|
|
1237
|
-
attr_accessor :border_style
|
|
1238
|
-
|
|
1239
|
-
# A hex color code for the button color (e.g. #FF5733).
|
|
1240
|
-
sig { returns(T.nilable(String)) }
|
|
1241
|
-
attr_accessor :button_color
|
|
1242
|
-
|
|
1243
|
-
# The different font families available for checkout pages.
|
|
1244
|
-
sig { returns(T.nilable(WhopSDK::CheckoutFont::OrSymbol)) }
|
|
1245
|
-
attr_accessor :font_family
|
|
1246
|
-
|
|
1247
|
-
# Checkout styling overrides for this session. Overrides plan and company
|
|
1248
|
-
# defaults.
|
|
1249
|
-
sig do
|
|
1250
|
-
params(
|
|
1251
|
-
background_color: T.nilable(String),
|
|
1252
|
-
border_style: T.nilable(WhopSDK::CheckoutShape::OrSymbol),
|
|
1253
|
-
button_color: T.nilable(String),
|
|
1254
|
-
font_family: T.nilable(WhopSDK::CheckoutFont::OrSymbol)
|
|
1255
|
-
).returns(T.attached_class)
|
|
1256
|
-
end
|
|
1257
|
-
def self.new(
|
|
1258
|
-
# A hex color code for the checkout page background, applied to the order summary
|
|
1259
|
-
# panel (e.g. #F4F4F5).
|
|
1260
|
-
background_color: nil,
|
|
1261
|
-
# The different border-radius styles available for checkout pages.
|
|
1262
|
-
border_style: nil,
|
|
1263
|
-
# A hex color code for the button color (e.g. #FF5733).
|
|
1264
|
-
button_color: nil,
|
|
1265
|
-
# The different font families available for checkout pages.
|
|
1266
|
-
font_family: nil
|
|
1267
|
-
)
|
|
1268
|
-
end
|
|
1269
|
-
|
|
1270
|
-
sig do
|
|
1271
|
-
override.returns(
|
|
1272
|
-
{
|
|
1273
|
-
background_color: T.nilable(String),
|
|
1274
|
-
border_style: T.nilable(WhopSDK::CheckoutShape::OrSymbol),
|
|
1275
|
-
button_color: T.nilable(String),
|
|
1276
|
-
font_family: T.nilable(WhopSDK::CheckoutFont::OrSymbol)
|
|
1277
|
-
}
|
|
1278
|
-
)
|
|
1279
|
-
end
|
|
1280
|
-
def to_hash
|
|
1281
|
-
end
|
|
1282
|
-
end
|
|
1283
|
-
|
|
1284
|
-
module Mode
|
|
1285
|
-
extend WhopSDK::Internal::Type::Enum
|
|
1286
|
-
|
|
1287
|
-
TaggedSymbol =
|
|
1288
|
-
T.type_alias do
|
|
1289
|
-
T.all(
|
|
1290
|
-
Symbol,
|
|
1291
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::Mode
|
|
1292
|
-
)
|
|
1293
|
-
end
|
|
1294
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1295
|
-
|
|
1296
|
-
PAYMENT =
|
|
1297
|
-
T.let(
|
|
1298
|
-
:payment,
|
|
1299
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::Mode::TaggedSymbol
|
|
1300
|
-
)
|
|
1301
|
-
|
|
1302
|
-
sig do
|
|
1303
|
-
override.returns(
|
|
1304
|
-
T::Array[
|
|
1305
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::Mode::TaggedSymbol
|
|
1306
|
-
]
|
|
1307
|
-
)
|
|
1308
|
-
end
|
|
1309
|
-
def self.values
|
|
1310
|
-
end
|
|
1311
|
-
end
|
|
1312
|
-
|
|
1313
|
-
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
1314
|
-
OrHash =
|
|
1315
|
-
T.type_alias do
|
|
1316
|
-
T.any(
|
|
1317
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModePaymentWithPlanID::PaymentMethodConfiguration,
|
|
1318
|
-
WhopSDK::Internal::AnyHash
|
|
1319
|
-
)
|
|
1320
|
-
end
|
|
1321
|
-
|
|
1322
|
-
# An array of payment method identifiers that are explicitly disabled. Only
|
|
1323
|
-
# applies if the include_platform_defaults is true.
|
|
1324
|
-
sig { returns(T::Array[WhopSDK::PaymentMethodTypes::OrSymbol]) }
|
|
1325
|
-
attr_accessor :disabled
|
|
1326
|
-
|
|
1327
|
-
# An array of payment method identifiers that are explicitly enabled. This means
|
|
1328
|
-
# these payment methods will be shown on checkout. Example use case is to only
|
|
1329
|
-
# enable a specific payment method like cashapp, or extending the platform
|
|
1330
|
-
# defaults with additional methods.
|
|
1331
|
-
sig { returns(T::Array[WhopSDK::PaymentMethodTypes::OrSymbol]) }
|
|
1332
|
-
attr_accessor :enabled
|
|
1333
|
-
|
|
1334
|
-
# Whether Whop's platform default payment method enablement settings are included
|
|
1335
|
-
# in this configuration. The full list of default payment methods can be found in
|
|
1336
|
-
# the documentation at docs.whop.com/payments.
|
|
1337
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
1338
|
-
attr_accessor :include_platform_defaults
|
|
1339
|
-
|
|
1340
|
-
# The explicit payment method configuration for the checkout session. Only applies
|
|
1341
|
-
# to setup mode. If not provided, the platform or company defaults will apply.
|
|
1342
|
-
sig do
|
|
1343
|
-
params(
|
|
1344
|
-
disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1345
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1346
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
1347
|
-
).returns(T.attached_class)
|
|
1348
|
-
end
|
|
1349
|
-
def self.new(
|
|
1350
|
-
# An array of payment method identifiers that are explicitly disabled. Only
|
|
1351
|
-
# applies if the include_platform_defaults is true.
|
|
1352
|
-
disabled:,
|
|
1353
|
-
# An array of payment method identifiers that are explicitly enabled. This means
|
|
1354
|
-
# these payment methods will be shown on checkout. Example use case is to only
|
|
1355
|
-
# enable a specific payment method like cashapp, or extending the platform
|
|
1356
|
-
# defaults with additional methods.
|
|
1357
|
-
enabled:,
|
|
1358
|
-
# Whether Whop's platform default payment method enablement settings are included
|
|
1359
|
-
# in this configuration. The full list of default payment methods can be found in
|
|
1360
|
-
# the documentation at docs.whop.com/payments.
|
|
1361
|
-
include_platform_defaults: nil
|
|
1362
|
-
)
|
|
1363
|
-
end
|
|
1364
|
-
|
|
1365
|
-
sig do
|
|
1366
|
-
override.returns(
|
|
1367
|
-
{
|
|
1368
|
-
disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1369
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1370
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
1371
|
-
}
|
|
1372
|
-
)
|
|
1373
|
-
end
|
|
1374
|
-
def to_hash
|
|
1375
|
-
end
|
|
1376
|
-
end
|
|
467
|
+
end
|
|
468
|
+
def to_hash
|
|
1377
469
|
end
|
|
1378
470
|
|
|
1379
|
-
class
|
|
471
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
1380
472
|
OrHash =
|
|
1381
473
|
T.type_alias do
|
|
1382
474
|
T.any(
|
|
1383
|
-
WhopSDK::CheckoutConfigurationCreateParams::
|
|
475
|
+
WhopSDK::CheckoutConfigurationCreateParams::Plan::PaymentMethodConfiguration,
|
|
1384
476
|
WhopSDK::Internal::AnyHash
|
|
1385
477
|
)
|
|
1386
478
|
end
|
|
1387
479
|
|
|
1388
|
-
#
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
attr_accessor :company_id
|
|
1392
|
-
|
|
1393
|
-
sig { returns(Symbol) }
|
|
1394
|
-
attr_accessor :mode
|
|
1395
|
-
|
|
1396
|
-
# Whether the checkout should show the promo code input field and accept promo
|
|
1397
|
-
# codes. Defaults to true.
|
|
1398
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
1399
|
-
attr_accessor :allow_promo_codes
|
|
1400
|
-
|
|
1401
|
-
# Checkout styling overrides for this session. Overrides plan and company
|
|
1402
|
-
# defaults.
|
|
1403
|
-
sig do
|
|
1404
|
-
returns(
|
|
1405
|
-
T.nilable(
|
|
1406
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::CheckoutStyling
|
|
1407
|
-
)
|
|
1408
|
-
)
|
|
1409
|
-
end
|
|
1410
|
-
attr_reader :checkout_styling
|
|
1411
|
-
|
|
1412
|
-
sig do
|
|
1413
|
-
params(
|
|
1414
|
-
checkout_styling:
|
|
1415
|
-
T.nilable(
|
|
1416
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::CheckoutStyling::OrHash
|
|
1417
|
-
)
|
|
1418
|
-
).void
|
|
1419
|
-
end
|
|
1420
|
-
attr_writer :checkout_styling
|
|
1421
|
-
|
|
1422
|
-
# The available currencies on the platform
|
|
1423
|
-
sig { returns(T.nilable(WhopSDK::Currency::OrSymbol)) }
|
|
1424
|
-
attr_accessor :currency
|
|
480
|
+
# Payment methods explicitly disabled for this plan.
|
|
481
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
482
|
+
attr_reader :disabled
|
|
1425
483
|
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
attr_accessor :metadata
|
|
484
|
+
sig { params(disabled: T::Array[String]).void }
|
|
485
|
+
attr_writer :disabled
|
|
1429
486
|
|
|
1430
|
-
#
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
returns(
|
|
1434
|
-
T.nilable(
|
|
1435
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::PaymentMethodConfiguration
|
|
1436
|
-
)
|
|
1437
|
-
)
|
|
1438
|
-
end
|
|
1439
|
-
attr_reader :payment_method_configuration
|
|
487
|
+
# Payment methods explicitly enabled for this plan.
|
|
488
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
489
|
+
attr_reader :enabled
|
|
1440
490
|
|
|
1441
|
-
sig
|
|
1442
|
-
|
|
1443
|
-
payment_method_configuration:
|
|
1444
|
-
T.nilable(
|
|
1445
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::PaymentMethodConfiguration::OrHash
|
|
1446
|
-
)
|
|
1447
|
-
).void
|
|
1448
|
-
end
|
|
1449
|
-
attr_writer :payment_method_configuration
|
|
491
|
+
sig { params(enabled: T::Array[String]).void }
|
|
492
|
+
attr_writer :enabled
|
|
1450
493
|
|
|
1451
|
-
#
|
|
1452
|
-
sig { returns(T.nilable(
|
|
1453
|
-
|
|
494
|
+
# Whether platform default payment methods are included.
|
|
495
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
496
|
+
attr_reader :include_platform_defaults
|
|
1454
497
|
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
attr_accessor :source_url
|
|
498
|
+
sig { params(include_platform_defaults: T::Boolean).void }
|
|
499
|
+
attr_writer :include_platform_defaults
|
|
1458
500
|
|
|
1459
|
-
#
|
|
501
|
+
# Payment method overrides for the inline plan. `null` uses platform defaults.
|
|
1460
502
|
sig do
|
|
1461
503
|
params(
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
T.nilable(
|
|
1466
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::CheckoutStyling::OrHash
|
|
1467
|
-
),
|
|
1468
|
-
currency: T.nilable(WhopSDK::Currency::OrSymbol),
|
|
1469
|
-
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
1470
|
-
payment_method_configuration:
|
|
1471
|
-
T.nilable(
|
|
1472
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::PaymentMethodConfiguration::OrHash
|
|
1473
|
-
),
|
|
1474
|
-
redirect_url: T.nilable(String),
|
|
1475
|
-
source_url: T.nilable(String),
|
|
1476
|
-
mode: Symbol
|
|
504
|
+
disabled: T::Array[String],
|
|
505
|
+
enabled: T::Array[String],
|
|
506
|
+
include_platform_defaults: T::Boolean
|
|
1477
507
|
).returns(T.attached_class)
|
|
1478
508
|
end
|
|
1479
509
|
def self.new(
|
|
1480
|
-
#
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
#
|
|
1485
|
-
|
|
1486
|
-
# Checkout styling overrides for this session. Overrides plan and company
|
|
1487
|
-
# defaults.
|
|
1488
|
-
checkout_styling: nil,
|
|
1489
|
-
# The available currencies on the platform
|
|
1490
|
-
currency: nil,
|
|
1491
|
-
# Custom key-value metadata to attach to the checkout configuration.
|
|
1492
|
-
metadata: nil,
|
|
1493
|
-
# The explicit payment method configuration for the checkout session. Only applies
|
|
1494
|
-
# to setup mode. If not provided, the platform or company defaults will apply.
|
|
1495
|
-
payment_method_configuration: nil,
|
|
1496
|
-
# The URL to redirect the user to after checkout is completed.
|
|
1497
|
-
redirect_url: nil,
|
|
1498
|
-
# The URL of the page where the checkout is being initiated from.
|
|
1499
|
-
source_url: nil,
|
|
1500
|
-
mode: :setup
|
|
510
|
+
# Payment methods explicitly disabled for this plan.
|
|
511
|
+
disabled: nil,
|
|
512
|
+
# Payment methods explicitly enabled for this plan.
|
|
513
|
+
enabled: nil,
|
|
514
|
+
# Whether platform default payment methods are included.
|
|
515
|
+
include_platform_defaults: nil
|
|
1501
516
|
)
|
|
1502
517
|
end
|
|
1503
518
|
|
|
1504
519
|
sig do
|
|
1505
520
|
override.returns(
|
|
1506
521
|
{
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
checkout_styling:
|
|
1511
|
-
T.nilable(
|
|
1512
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::CheckoutStyling
|
|
1513
|
-
),
|
|
1514
|
-
currency: T.nilable(WhopSDK::Currency::OrSymbol),
|
|
1515
|
-
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
1516
|
-
payment_method_configuration:
|
|
1517
|
-
T.nilable(
|
|
1518
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::PaymentMethodConfiguration
|
|
1519
|
-
),
|
|
1520
|
-
redirect_url: T.nilable(String),
|
|
1521
|
-
source_url: T.nilable(String)
|
|
522
|
+
disabled: T::Array[String],
|
|
523
|
+
enabled: T::Array[String],
|
|
524
|
+
include_platform_defaults: T::Boolean
|
|
1522
525
|
}
|
|
1523
526
|
)
|
|
1524
527
|
end
|
|
1525
528
|
def to_hash
|
|
1526
529
|
end
|
|
1527
|
-
|
|
1528
|
-
class CheckoutStyling < WhopSDK::Internal::Type::BaseModel
|
|
1529
|
-
OrHash =
|
|
1530
|
-
T.type_alias do
|
|
1531
|
-
T.any(
|
|
1532
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::CheckoutStyling,
|
|
1533
|
-
WhopSDK::Internal::AnyHash
|
|
1534
|
-
)
|
|
1535
|
-
end
|
|
1536
|
-
|
|
1537
|
-
# A hex color code for the checkout page background, applied to the order summary
|
|
1538
|
-
# panel (e.g. #F4F4F5).
|
|
1539
|
-
sig { returns(T.nilable(String)) }
|
|
1540
|
-
attr_accessor :background_color
|
|
1541
|
-
|
|
1542
|
-
# The different border-radius styles available for checkout pages.
|
|
1543
|
-
sig { returns(T.nilable(WhopSDK::CheckoutShape::OrSymbol)) }
|
|
1544
|
-
attr_accessor :border_style
|
|
1545
|
-
|
|
1546
|
-
# A hex color code for the button color (e.g. #FF5733).
|
|
1547
|
-
sig { returns(T.nilable(String)) }
|
|
1548
|
-
attr_accessor :button_color
|
|
1549
|
-
|
|
1550
|
-
# The different font families available for checkout pages.
|
|
1551
|
-
sig { returns(T.nilable(WhopSDK::CheckoutFont::OrSymbol)) }
|
|
1552
|
-
attr_accessor :font_family
|
|
1553
|
-
|
|
1554
|
-
# Checkout styling overrides for this session. Overrides plan and company
|
|
1555
|
-
# defaults.
|
|
1556
|
-
sig do
|
|
1557
|
-
params(
|
|
1558
|
-
background_color: T.nilable(String),
|
|
1559
|
-
border_style: T.nilable(WhopSDK::CheckoutShape::OrSymbol),
|
|
1560
|
-
button_color: T.nilable(String),
|
|
1561
|
-
font_family: T.nilable(WhopSDK::CheckoutFont::OrSymbol)
|
|
1562
|
-
).returns(T.attached_class)
|
|
1563
|
-
end
|
|
1564
|
-
def self.new(
|
|
1565
|
-
# A hex color code for the checkout page background, applied to the order summary
|
|
1566
|
-
# panel (e.g. #F4F4F5).
|
|
1567
|
-
background_color: nil,
|
|
1568
|
-
# The different border-radius styles available for checkout pages.
|
|
1569
|
-
border_style: nil,
|
|
1570
|
-
# A hex color code for the button color (e.g. #FF5733).
|
|
1571
|
-
button_color: nil,
|
|
1572
|
-
# The different font families available for checkout pages.
|
|
1573
|
-
font_family: nil
|
|
1574
|
-
)
|
|
1575
|
-
end
|
|
1576
|
-
|
|
1577
|
-
sig do
|
|
1578
|
-
override.returns(
|
|
1579
|
-
{
|
|
1580
|
-
background_color: T.nilable(String),
|
|
1581
|
-
border_style: T.nilable(WhopSDK::CheckoutShape::OrSymbol),
|
|
1582
|
-
button_color: T.nilable(String),
|
|
1583
|
-
font_family: T.nilable(WhopSDK::CheckoutFont::OrSymbol)
|
|
1584
|
-
}
|
|
1585
|
-
)
|
|
1586
|
-
end
|
|
1587
|
-
def to_hash
|
|
1588
|
-
end
|
|
1589
|
-
end
|
|
1590
|
-
|
|
1591
|
-
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
1592
|
-
OrHash =
|
|
1593
|
-
T.type_alias do
|
|
1594
|
-
T.any(
|
|
1595
|
-
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::PaymentMethodConfiguration,
|
|
1596
|
-
WhopSDK::Internal::AnyHash
|
|
1597
|
-
)
|
|
1598
|
-
end
|
|
1599
|
-
|
|
1600
|
-
# An array of payment method identifiers that are explicitly disabled. Only
|
|
1601
|
-
# applies if the include_platform_defaults is true.
|
|
1602
|
-
sig { returns(T::Array[WhopSDK::PaymentMethodTypes::OrSymbol]) }
|
|
1603
|
-
attr_accessor :disabled
|
|
1604
|
-
|
|
1605
|
-
# An array of payment method identifiers that are explicitly enabled. This means
|
|
1606
|
-
# these payment methods will be shown on checkout. Example use case is to only
|
|
1607
|
-
# enable a specific payment method like cashapp, or extending the platform
|
|
1608
|
-
# defaults with additional methods.
|
|
1609
|
-
sig { returns(T::Array[WhopSDK::PaymentMethodTypes::OrSymbol]) }
|
|
1610
|
-
attr_accessor :enabled
|
|
1611
|
-
|
|
1612
|
-
# Whether Whop's platform default payment method enablement settings are included
|
|
1613
|
-
# in this configuration. The full list of default payment methods can be found in
|
|
1614
|
-
# the documentation at docs.whop.com/payments.
|
|
1615
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
1616
|
-
attr_accessor :include_platform_defaults
|
|
1617
|
-
|
|
1618
|
-
# The explicit payment method configuration for the checkout session. Only applies
|
|
1619
|
-
# to setup mode. If not provided, the platform or company defaults will apply.
|
|
1620
|
-
sig do
|
|
1621
|
-
params(
|
|
1622
|
-
disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1623
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1624
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
1625
|
-
).returns(T.attached_class)
|
|
1626
|
-
end
|
|
1627
|
-
def self.new(
|
|
1628
|
-
# An array of payment method identifiers that are explicitly disabled. Only
|
|
1629
|
-
# applies if the include_platform_defaults is true.
|
|
1630
|
-
disabled:,
|
|
1631
|
-
# An array of payment method identifiers that are explicitly enabled. This means
|
|
1632
|
-
# these payment methods will be shown on checkout. Example use case is to only
|
|
1633
|
-
# enable a specific payment method like cashapp, or extending the platform
|
|
1634
|
-
# defaults with additional methods.
|
|
1635
|
-
enabled:,
|
|
1636
|
-
# Whether Whop's platform default payment method enablement settings are included
|
|
1637
|
-
# in this configuration. The full list of default payment methods can be found in
|
|
1638
|
-
# the documentation at docs.whop.com/payments.
|
|
1639
|
-
include_platform_defaults: nil
|
|
1640
|
-
)
|
|
1641
|
-
end
|
|
1642
|
-
|
|
1643
|
-
sig do
|
|
1644
|
-
override.returns(
|
|
1645
|
-
{
|
|
1646
|
-
disabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1647
|
-
enabled: T::Array[WhopSDK::PaymentMethodTypes::OrSymbol],
|
|
1648
|
-
include_platform_defaults: T.nilable(T::Boolean)
|
|
1649
|
-
}
|
|
1650
|
-
)
|
|
1651
|
-
end
|
|
1652
|
-
def to_hash
|
|
1653
|
-
end
|
|
1654
|
-
end
|
|
1655
|
-
end
|
|
1656
|
-
|
|
1657
|
-
sig do
|
|
1658
|
-
override.returns(
|
|
1659
|
-
T::Array[WhopSDK::CheckoutConfigurationCreateParams::Body::Variants]
|
|
1660
|
-
)
|
|
1661
|
-
end
|
|
1662
|
-
def self.variants
|
|
1663
530
|
end
|
|
1664
531
|
end
|
|
1665
532
|
end
|