whop_sdk 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +1195 -1
- data/lib/whop_sdk/accounts/client.rb +74 -4
- data/lib/whop_sdk/accounts/customer_tracking/client.rb +59 -0
- data/lib/whop_sdk/accounts/{financing_applications/types/create_financing_applications_request.rb → customer_tracking/types/retrieve_customer_tracking_request.rb} +2 -2
- data/lib/whop_sdk/accounts/fees/types/update_fees_request.rb +8 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_dispute.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_dispute_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_return.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_return_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_dispute.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_dispute_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_return.rb +18 -0
- data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_return_regions_value.rb +15 -0
- data/lib/whop_sdk/accounts/financing_providers/client.rb +79 -0
- data/lib/whop_sdk/accounts/financing_providers/types/list_financing_providers_request.rb +23 -0
- data/lib/whop_sdk/accounts/financing_providers/types/list_financing_providers_request_status.rb +19 -0
- data/lib/whop_sdk/accounts/financing_providers/types/list_financing_providers_response.rb +15 -0
- data/lib/whop_sdk/accounts/{financing_applications/types/list_financing_applications_response_page_info.rb → financing_providers/types/list_financing_providers_response_page_info.rb} +2 -2
- data/lib/whop_sdk/accounts/preferences/client.rb +3 -2
- data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response.rb +4 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request.rb +4 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_customer_tracking.rb +26 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_response.rb +4 -0
- data/lib/whop_sdk/accounts/types/list_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request.rb +23 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request_direction.rb +14 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request_order.rb +13 -0
- data/lib/whop_sdk/accounts/types/search_accounts_response.rb +13 -0
- data/lib/whop_sdk/accounts/types/search_accounts_response_page_info.rb +17 -0
- data/lib/whop_sdk/accounts/types/transfer_ownership_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request.rb +2 -0
- data/lib/whop_sdk/ad_campaigns/client.rb +2 -2
- data/lib/whop_sdk/ad_campaigns/types/create_ad_campaigns_request_platform.rb +1 -1
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_payment_failed_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request.rb +2 -0
- data/lib/whop_sdk/ad_pixels/client.rb +3 -1
- data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request_platform.rb +2 -0
- data/lib/whop_sdk/ads/client.rb +48 -0
- data/lib/whop_sdk/ads/types/report_stats_ads_request.rb +19 -0
- data/lib/whop_sdk/ads/types/report_stats_ads_request_clicks.rb +16 -0
- data/lib/whop_sdk/ads/types/report_stats_ads_request_impressions.rb +16 -0
- data/lib/whop_sdk/ads/types/report_stats_ads_request_spend.rb +16 -0
- data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +10 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +10 -0
- data/lib/whop_sdk/app_installations/client.rb +172 -0
- data/lib/whop_sdk/app_installations/types/list_app_installations_request.rb +33 -0
- data/lib/whop_sdk/app_installations/types/list_app_installations_request_direction.rb +14 -0
- data/lib/whop_sdk/app_installations/types/list_app_installations_request_order.rb +14 -0
- data/lib/whop_sdk/app_installations/types/list_app_installations_request_view_type.rb +19 -0
- data/lib/whop_sdk/app_installations/types/list_app_installations_response.rb +13 -0
- data/lib/whop_sdk/app_installations/types/list_app_installations_response_page_info.rb +17 -0
- data/lib/whop_sdk/app_installations/types/post_app_installation_created_payload.rb +25 -0
- data/lib/whop_sdk/app_installations/types/post_app_installation_created_payload_api_version.rb +13 -0
- data/lib/whop_sdk/app_installations/types/post_app_installation_created_payload_type.rb +13 -0
- data/lib/whop_sdk/app_installations/types/post_app_installation_deleted_payload.rb +25 -0
- data/lib/whop_sdk/app_installations/types/post_app_installation_deleted_payload_api_version.rb +13 -0
- data/lib/whop_sdk/app_installations/types/post_app_installation_deleted_payload_type.rb +13 -0
- data/lib/whop_sdk/app_installations/types/retrieve_app_installations_request.rb +11 -0
- data/lib/whop_sdk/app_installations/types/update_app_installations_request.rb +15 -0
- data/lib/whop_sdk/apps/types/update_apps_request.rb +4 -0
- data/lib/whop_sdk/cards/client.rb +2 -1
- data/lib/whop_sdk/cards/types/create_cards_request.rb +6 -0
- data/lib/whop_sdk/cards/types/create_cards_request_billing.rb +23 -0
- data/lib/whop_sdk/cards/types/create_cards_request_cardholder.rb +21 -0
- data/lib/whop_sdk/cards/types/create_cards_request_kind.rb +14 -0
- data/lib/whop_sdk/checkout_configurations/client.rb +3 -3
- data/lib/whop_sdk/checkout_configurations/types/create_checkout_configurations_request.rb +4 -4
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan.rb → create_checkout_configurations_request_variant.rb} +8 -8
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_plan_type.rb → create_checkout_configurations_request_variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_payment_method_configuration.rb → create_checkout_configurations_request_variant_payment_method_configuration.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_release_method.rb → create_checkout_configurations_request_variant_release_method.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_three_ds_level.rb → create_checkout_configurations_request_variant_three_ds_level.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_visibility.rb → create_checkout_configurations_request_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/create_checkout_configurations_response.rb +2 -2
- data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan.rb → create_checkout_configurations_response_variant.rb} +6 -6
- data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_plan_type.rb → create_checkout_configurations_response_variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_release_method.rb → create_checkout_configurations_response_variant_release_method.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_three_ds_level.rb → create_checkout_configurations_response_variant_three_ds_level.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_visibility.rb → create_checkout_configurations_response_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/list_checkout_configurations_request.rb +1 -1
- data/lib/whop_sdk/checkout_configurations/types/list_checkout_configurations_response_data_item.rb +2 -2
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan.rb → list_checkout_configurations_response_data_item_variant.rb} +6 -6
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_plan_type.rb → list_checkout_configurations_response_data_item_variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_release_method.rb → list_checkout_configurations_response_data_item_variant_release_method.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_three_ds_level.rb → list_checkout_configurations_response_data_item_variant_three_ds_level.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_visibility.rb → list_checkout_configurations_response_data_item_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/retrieve_checkout_configurations_response.rb +2 -2
- data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan.rb → retrieve_checkout_configurations_response_variant.rb} +6 -6
- data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_plan_type.rb → retrieve_checkout_configurations_response_variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_release_method.rb → retrieve_checkout_configurations_response_variant_release_method.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_three_ds_level.rb → retrieve_checkout_configurations_response_variant_three_ds_level.rb} +1 -1
- data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_visibility.rb → retrieve_checkout_configurations_response_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/client.rb +21 -6
- data/lib/whop_sdk/deposits/client.rb +49 -1
- data/lib/whop_sdk/deposits/types/create_deposits_request.rb +6 -0
- data/lib/whop_sdk/deposits/types/create_deposits_request_metadata_value.rb +17 -0
- data/lib/whop_sdk/deposits/types/create_deposits_response_methods.rb +2 -0
- data/lib/whop_sdk/deposits/types/create_deposits_response_methods_card.rb +16 -0
- data/lib/whop_sdk/deposits/types/reverse_deposits_request.rb +17 -0
- data/lib/whop_sdk/deposits/types/reverse_deposits_request_metadata_value.rb +17 -0
- data/lib/whop_sdk/disputes/client.rb +47 -0
- data/lib/whop_sdk/{invoices/types/resend_invoices_request.rb → disputes/types/accept_disputes_request.rb} +2 -2
- data/lib/whop_sdk/disputes/types/list_disputes_request.rb +4 -0
- data/lib/whop_sdk/disputes/types/summary_disputes_request.rb +4 -0
- data/lib/whop_sdk/domains/client.rb +11 -2
- data/lib/whop_sdk/domains/types/create_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/create_domains_request_email.rb +12 -0
- data/lib/whop_sdk/domains/types/create_domains_request_registration.rb +5 -2
- data/lib/whop_sdk/domains/types/create_domains_request_transfer.rb +16 -0
- data/lib/whop_sdk/domains/types/create_domains_request_transfer_destination.rb +13 -0
- data/lib/whop_sdk/domains/types/list_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/list_domains_request_email.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_transfer.rb +17 -0
- data/lib/whop_sdk/domains/types/post_domain_created_payload.rb +25 -0
- data/lib/whop_sdk/domains/types/post_domain_created_payload_api_version.rb +13 -0
- data/lib/whop_sdk/domains/types/post_domain_created_payload_type.rb +13 -0
- data/lib/whop_sdk/domains/types/post_domain_deleted_payload.rb +25 -0
- data/lib/whop_sdk/domains/types/post_domain_deleted_payload_api_version.rb +13 -0
- data/lib/whop_sdk/domains/types/post_domain_deleted_payload_type.rb +13 -0
- data/lib/whop_sdk/domains/types/post_domain_updated_payload.rb +25 -0
- data/lib/whop_sdk/domains/types/post_domain_updated_payload_api_version.rb +13 -0
- data/lib/whop_sdk/domains/types/post_domain_updated_payload_type.rb +13 -0
- data/lib/whop_sdk/domains/types/update_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/update_domains_request_email.rb +12 -0
- data/lib/whop_sdk/domains/types/update_domains_request_registration.rb +5 -2
- data/lib/whop_sdk/domains/types/update_domains_request_transfer.rb +16 -0
- data/lib/whop_sdk/domains/types/update_domains_request_transfer_destination.rb +13 -0
- data/lib/whop_sdk/email_addresses/client.rb +314 -0
- data/lib/whop_sdk/email_addresses/types/create_email_addresses_request.rb +15 -0
- data/lib/whop_sdk/email_addresses/types/delete_email_addresses_request.rb +11 -0
- data/lib/whop_sdk/email_addresses/types/list_email_addresses_request.rb +23 -0
- data/lib/whop_sdk/email_addresses/types/list_email_addresses_request_direction.rb +14 -0
- data/lib/whop_sdk/email_addresses/types/list_email_addresses_request_order.rb +14 -0
- data/lib/whop_sdk/email_addresses/types/list_email_addresses_response.rb +13 -0
- data/lib/whop_sdk/email_addresses/types/list_email_addresses_response_page_info.rb +17 -0
- data/lib/whop_sdk/email_addresses/types/mobileconfig_email_addresses_request.rb +11 -0
- data/lib/whop_sdk/email_addresses/types/reset_password_email_addresses_request.rb +11 -0
- data/lib/whop_sdk/email_addresses/types/retrieve_email_addresses_request.rb +11 -0
- data/lib/whop_sdk/email_addresses/types/update_email_addresses_request.rb +13 -0
- data/lib/whop_sdk/events/types/list_events_response_data_item_related.rb +2 -2
- data/lib/whop_sdk/events/types/{list_events_response_data_item_related_plan.rb → list_events_response_data_item_related_variant.rb} +1 -1
- data/lib/whop_sdk/exports/types/create_exports_request_resource.rb +1 -0
- data/lib/whop_sdk/exports/types/list_exports_request_resource.rb +1 -0
- data/lib/whop_sdk/external_accounts/client.rb +3 -2
- data/lib/whop_sdk/external_accounts/types/connect_external_accounts_request_platform.rb +2 -0
- data/lib/whop_sdk/external_accounts/types/create_external_accounts_request.rb +2 -0
- data/lib/whop_sdk/external_accounts/types/create_external_accounts_request_platform.rb +1 -0
- data/lib/whop_sdk/external_accounts/types/list_external_accounts_request_platform.rb +2 -0
- data/lib/whop_sdk/external_accounts/types/list_external_accounts_request_trust_level.rb +1 -0
- data/lib/whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item.rb +5 -0
- data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_request_line_types_item.rb +5 -0
- data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_response_rows_item_line_category.rb +5 -0
- data/lib/whop_sdk/financing_applications/client.rb +268 -0
- data/lib/whop_sdk/financing_applications/types/create_financing_applications_request.rb +11 -0
- data/lib/whop_sdk/financing_applications/types/list_financing_applications_request.rb +29 -0
- data/lib/whop_sdk/financing_applications/types/list_financing_applications_request_direction.rb +14 -0
- data/lib/whop_sdk/financing_applications/types/list_financing_applications_request_order.rb +14 -0
- data/lib/whop_sdk/financing_applications/types/list_financing_applications_request_status.rb +17 -0
- data/lib/whop_sdk/financing_applications/types/list_financing_applications_response.rb +13 -0
- data/lib/whop_sdk/financing_applications/types/list_financing_applications_response_page_info.rb +17 -0
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_approved_payload.rb +3 -3
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_approved_payload_api_version.rb +1 -1
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_approved_payload_type.rb +1 -1
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_denied_payload.rb +3 -3
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_denied_payload_api_version.rb +1 -1
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_denied_payload_type.rb +1 -1
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_disabled_payload.rb +3 -3
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_disabled_payload_api_version.rb +1 -1
- data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_disabled_payload_type.rb +1 -1
- data/lib/whop_sdk/financing_applications/types/retrieve_financing_applications_request.rb +11 -0
- data/lib/whop_sdk/financing_applications/types/submit_financing_applications_request.rb +13 -0
- data/lib/whop_sdk/financing_applications/types/submit_financing_applications_request_merchant_acceptance.rb +13 -0
- data/lib/whop_sdk/financing_applications/types/update_financing_applications_request.rb +13 -0
- data/lib/whop_sdk/financing_applications/types/update_financing_applications_request_answers_item.rb +17 -0
- data/lib/whop_sdk/financing_applications/types/update_financing_applications_request_answers_item_money.rb +14 -0
- data/lib/whop_sdk/financing_applications/types/update_financing_applications_request_answers_item_money_currency.rb +96 -0
- data/lib/whop_sdk/identity_profiles/client.rb +3 -0
- data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
- data/lib/whop_sdk/invoices/client.rb +129 -110
- data/lib/whop_sdk/invoices/types/create_invoices_request.rb +21 -4
- data/lib/whop_sdk/invoices/types/create_invoices_request_billing_address.rb +26 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item.rb +13 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant.rb +44 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_billing_type.rb +14 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_currency.rb +102 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_override_tax_type.rb +15 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_product.rb +34 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_product_global_affiliate_status.rb +14 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_product_visibility.rb +16 -0
- data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_visibility.rb +16 -0
- data/lib/whop_sdk/invoices/types/{delete_invoices_request.rb → generate_pdf_invoices_request.rb} +1 -1
- data/lib/whop_sdk/invoices/types/issue_invoices_request.rb +13 -0
- data/lib/whop_sdk/invoices/types/list_invoices_request.rb +14 -12
- data/lib/whop_sdk/invoices/types/list_invoices_request_direction.rb +14 -0
- data/lib/whop_sdk/invoices/types/list_invoices_request_order.rb +14 -0
- data/lib/whop_sdk/invoices/types/list_invoices_request_status.rb +20 -0
- data/lib/whop_sdk/invoices/types/list_invoices_response.rb +2 -3
- data/lib/whop_sdk/invoices/types/list_invoices_response_page_info.rb +17 -0
- data/lib/whop_sdk/invoices/types/post_invoice_created_payload.rb +1 -1
- data/lib/whop_sdk/invoices/types/post_invoice_marked_uncollectible_payload.rb +1 -1
- data/lib/whop_sdk/invoices/types/post_invoice_paid_payload.rb +1 -1
- data/lib/whop_sdk/invoices/types/post_invoice_past_due_payload.rb +1 -1
- data/lib/whop_sdk/invoices/types/post_invoice_voided_payload.rb +1 -1
- data/lib/whop_sdk/invoices/types/send_invoices_request.rb +15 -0
- data/lib/whop_sdk/invoices/types/{mark_paid_invoices_request.rb → unschedule_invoices_request.rb} +1 -1
- data/lib/whop_sdk/invoices/types/update_invoices_request.rb +6 -16
- data/lib/whop_sdk/invoices/types/update_invoices_request_billing_address.rb +5 -9
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item.rb +13 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant.rb +44 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_billing_type.rb +14 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_currency.rb +102 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_override_tax_type.rb +15 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_product.rb +34 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_product_global_affiliate_status.rb +14 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_product_visibility.rb +16 -0
- data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_visibility.rb +16 -0
- data/lib/whop_sdk/livestreams/client.rb +191 -0
- data/lib/whop_sdk/livestreams/types/list_livestreams_request.rb +23 -0
- data/lib/whop_sdk/livestreams/types/list_livestreams_response.rb +13 -0
- data/lib/whop_sdk/livestreams/types/list_livestreams_response_page_info.rb +17 -0
- data/lib/whop_sdk/livestreams/types/pin_livestreams_request.rb +11 -0
- data/lib/whop_sdk/livestreams/types/retrieve_livestreams_request.rb +11 -0
- data/lib/whop_sdk/livestreams/types/unpin_livestreams_request.rb +11 -0
- data/lib/whop_sdk/members/client.rb +3 -3
- data/lib/whop_sdk/members/types/list_members_request.rb +1 -1
- data/lib/whop_sdk/memberships/client.rb +10 -7
- data/lib/whop_sdk/memberships/types/invite_memberships_request_body_email.rb +1 -1
- data/lib/whop_sdk/memberships/types/invite_memberships_request_body_user_id.rb +2 -2
- data/lib/whop_sdk/memberships/types/list_memberships_request.rb +4 -2
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_account_id.rb +2 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_account_url.rb +2 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_code.rb +2 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_target_email.rb +2 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_target_user_id.rb +2 -0
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_target_username.rb +2 -0
- data/lib/whop_sdk/partners/businesses/client.rb +61 -10
- data/lib/whop_sdk/partners/businesses/earnings/client.rb +2 -1
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request.rb +4 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +1 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +6 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item_referring_business.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_request.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response.rb +51 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_account.rb +26 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner.rb +20 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_earnings_usd.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_my_partner_tier.rb +17 -0
- data/lib/whop_sdk/{accounts/financing_applications/types/list_financing_applications_request_direction.rb → partners/businesses/types/resend_invite_businesses_response_object.rb} +4 -5
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_payout_percentages.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_pending_owner_invites_item.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_referring_business.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_status.rb +16 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_volume_usd.rb +19 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +10 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response_pending_owner_invites_item.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response_referring_business.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +4 -2
- data/lib/whop_sdk/partners/client.rb +38 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response.rb +13 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_object.rb +13 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item.rb +19 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee.rb +18 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee_regions_item.rb +15 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_income_stream.rb +20 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_unadjustable_reason.rb +16 -0
- data/lib/whop_sdk/payment_method_domains/client.rb +11 -5
- data/lib/whop_sdk/payment_quotes/client.rb +1 -1
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request.rb +4 -4
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_line_items_item.rb +2 -2
- data/lib/whop_sdk/payment_rules/types/create_payment_rules_request_conditions_all_item_field.rb +7 -0
- data/lib/whop_sdk/payment_rules/types/replace_payment_rules_request_conditions_all_item_field.rb +7 -0
- data/lib/whop_sdk/payments/client.rb +133 -7
- data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +8 -4
- data/lib/whop_sdk/payments/direct/types/create_direct_request_line_items_item.rb +2 -2
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan.rb +47 -0
- data/lib/whop_sdk/{accounts/financing_applications/types/update_financing_applications_request_answers_item_money_currency.rb → payments/direct/types/create_direct_request_plan_currency.rb} +9 -3
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_override_tax_type.rb +17 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_plan_type.rb +16 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product.rb +36 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product_global_affiliate_status.rb +16 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product_visibility.rb +18 -0
- data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_visibility.rb +18 -0
- data/lib/whop_sdk/payments/types/create_payments_request.rb +8 -4
- data/lib/whop_sdk/{invoices/types/create_invoices_request_product_billing_address.rb → payments/types/create_payments_request_billing_address.rb} +4 -10
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan.rb → create_payments_request_line_items_item_variant.rb} +9 -10
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_plan_type.rb → create_payments_request_line_items_item_variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_currency.rb → create_payments_request_line_items_item_variant_currency.rb} +1 -1
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_override_tax_type.rb → create_payments_request_line_items_item_variant_override_tax_type.rb} +1 -1
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_product.rb → create_payments_request_line_items_item_variant_product.rb} +3 -3
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_product_global_affiliate_status.rb → create_payments_request_line_items_item_variant_product_global_affiliate_status.rb} +1 -1
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_product_visibility.rb → create_payments_request_line_items_item_variant_product_visibility.rb} +1 -1
- data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_visibility.rb → create_payments_request_line_items_item_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/payments/types/create_payments_request_payment_method.rb +8 -6
- data/lib/whop_sdk/payments/types/create_payments_request_payment_method_card_present.rb +1 -1
- data/lib/whop_sdk/payments/types/create_payments_request_payment_method_type.rb +1 -0
- data/lib/whop_sdk/payments/types/create_payments_request_setup_future_usage.rb +13 -0
- data/lib/whop_sdk/payments/types/list_payments_request.rb +33 -1
- data/lib/whop_sdk/payments/types/list_payments_request_billing_reasons_item.rb +18 -0
- data/lib/whop_sdk/payments/types/list_payments_request_order.rb +1 -0
- data/lib/whop_sdk/payments/types/list_payments_request_payment_methods_item.rb +196 -0
- data/lib/whop_sdk/payments/types/list_payments_request_statuses_item.rb +19 -0
- data/lib/whop_sdk/payments/types/list_payments_request_substatuses_item.rb +40 -0
- data/lib/whop_sdk/payments/types/list_payments_request_tracking_states_item.rb +24 -0
- data/lib/whop_sdk/payments/types/list_payments_request_tracking_status.rb +24 -0
- data/lib/whop_sdk/payments/types/refund_payments_request.rb +2 -0
- data/lib/whop_sdk/payments/types/resume_payments_request.rb +2 -0
- data/lib/whop_sdk/payments/types/retrieve_status_payments_request.rb +2 -0
- data/lib/whop_sdk/payments/types/summary_payments_request.rb +49 -0
- data/lib/whop_sdk/payments/types/summary_payments_request_billing_reasons_item.rb +18 -0
- data/lib/whop_sdk/payments/types/summary_payments_request_groups_item.rb +14 -0
- data/lib/whop_sdk/payments/types/summary_payments_request_payment_methods_item.rb +196 -0
- data/lib/whop_sdk/payments/types/summary_payments_request_statuses_item.rb +19 -0
- data/lib/whop_sdk/payments/types/summary_payments_request_substatuses_item.rb +40 -0
- data/lib/whop_sdk/payments/types/summary_payments_request_tracking_states_item.rb +24 -0
- data/lib/whop_sdk/payments/types/summary_payments_response.rb +13 -0
- data/lib/whop_sdk/payments/types/summary_payments_response_groups.rb +14 -0
- data/lib/whop_sdk/payments/types/summary_payments_response_groups_substatus.rb +67 -0
- data/lib/whop_sdk/payments/types/update_return_url_payments_request.rb +2 -0
- data/lib/whop_sdk/payouts/client.rb +8 -9
- data/lib/whop_sdk/payouts/methods/client.rb +4 -1
- data/lib/whop_sdk/payouts/methods/types/create_methods_request_recipient.rb +2 -0
- data/lib/whop_sdk/payouts/methods/types/create_methods_request_recipient_address.rb +23 -0
- data/lib/whop_sdk/payouts/methods/types/update_methods_request.rb +2 -0
- data/lib/whop_sdk/payouts/methods/types/update_methods_request_address.rb +23 -0
- data/lib/whop_sdk/payouts/types/cancel_payouts_response.rb +2 -0
- data/lib/whop_sdk/payouts/types/create_payouts_request.rb +2 -0
- data/lib/whop_sdk/payouts/types/create_payouts_response.rb +2 -0
- data/lib/whop_sdk/payouts/types/create_quote_payouts_request.rb +5 -1
- data/lib/whop_sdk/payouts/types/list_payouts_response_data_item.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_created_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_updated_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/retrieve_payouts_response.rb +2 -0
- data/lib/whop_sdk/plans/client.rb +2 -2
- data/lib/whop_sdk/plans/types/create_plans_request.rb +10 -2
- data/lib/whop_sdk/plans/types/list_plans_request.rb +1 -1
- data/lib/whop_sdk/plans/types/update_plans_request.rb +4 -0
- data/lib/whop_sdk/products/client.rb +5 -5
- data/lib/whop_sdk/products/types/list_products_request.rb +1 -1
- data/lib/whop_sdk/products/types/{list_products_request_plan_types_item.rb → list_products_request_billing_types_item.rb} +1 -1
- data/lib/whop_sdk/promo_codes/client.rb +3 -3
- data/lib/whop_sdk/promo_codes/types/create_promo_codes_request.rb +2 -2
- data/lib/whop_sdk/promo_codes/types/list_promo_codes_request.rb +1 -1
- data/lib/whop_sdk/resolution_center_cases/client.rb +1 -1
- data/lib/whop_sdk/setup_intents/client.rb +7 -2
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_request.rb +2 -0
- data/lib/whop_sdk/setup_intents/types/retrieve_status_setup_intents_request.rb +2 -0
- data/lib/whop_sdk/setup_intents/types/update_return_url_setup_intents_request.rb +2 -0
- data/lib/whop_sdk/shipments/client.rb +45 -0
- data/lib/whop_sdk/shipments/types/lookup_shipments_request.rb +17 -0
- data/lib/whop_sdk/social_accounts/client.rb +1 -1
- data/lib/whop_sdk/social_accounts/types/connect_social_accounts_request_platform.rb +2 -0
- data/lib/whop_sdk/social_accounts/types/create_social_accounts_request.rb +2 -0
- data/lib/whop_sdk/social_accounts/types/create_social_accounts_request_platform.rb +1 -0
- data/lib/whop_sdk/social_accounts/types/list_social_accounts_request_platform.rb +2 -0
- data/lib/whop_sdk/social_accounts/types/list_social_accounts_request_trust_level.rb +1 -0
- data/lib/whop_sdk/stats/client.rb +4 -0
- data/lib/whop_sdk/stats/reports/client.rb +6 -2
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request.rb +4 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request_breakdown_by.rb +1 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request_order.rb +1 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item.rb +4 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item_product_category.rb +15 -0
- data/lib/whop_sdk/stats/time_series/client.rb +4 -0
- data/lib/whop_sdk/stats/time_series/types/retrieve_time_series_request.rb +4 -0
- data/lib/whop_sdk/stats/time_series/types/retrieve_time_series_request_snapshot_window.rb +2 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_request.rb +4 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_request_snapshot_window.rb +2 -0
- data/lib/whop_sdk/support_channels/client.rb +2 -0
- data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +2 -0
- data/lib/whop_sdk/swaps/types/create_swaps_response.rb +2 -0
- data/lib/whop_sdk/swaps/types/list_swaps_response_data_item.rb +2 -0
- data/lib/whop_sdk/swaps/types/retrieve_swaps_response.rb +2 -0
- data/lib/whop_sdk/team_members/client.rb +16 -6
- data/lib/whop_sdk/team_members/types/list_team_members_request.rb +8 -0
- data/lib/whop_sdk/trades/client.rb +5 -0
- data/lib/whop_sdk/trades/markets/client.rb +85 -0
- data/lib/whop_sdk/trades/markets/types/list_markets_request.rb +21 -0
- data/lib/whop_sdk/trades/markets/types/list_markets_request_instrument_type.rb +16 -0
- data/lib/whop_sdk/trades/markets/types/list_markets_response.rb +15 -0
- data/lib/whop_sdk/trades/markets/types/list_markets_response_page_info.rb +19 -0
- data/lib/whop_sdk/transfers/client.rb +2 -2
- data/lib/whop_sdk/transfers/types/create_transfers_request_body_balance.rb +2 -2
- data/lib/whop_sdk/types/account.rb +8 -2
- data/lib/whop_sdk/types/account_balance_breakdown.rb +2 -0
- data/lib/whop_sdk/types/account_customer_tracking.rb +23 -0
- data/lib/whop_sdk/types/account_customer_tracking_button_text_color.rb +12 -0
- data/lib/whop_sdk/types/account_fees.rb +8 -0
- data/lib/whop_sdk/types/account_payment_controls_restricted_payment_methods_item.rb +1 -0
- data/lib/whop_sdk/types/account_preferences.rb +4 -0
- data/lib/whop_sdk/types/account_required_action_action.rb +1 -1
- data/lib/whop_sdk/types/account_search_result.rb +15 -0
- data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
- data/lib/whop_sdk/types/ad_pixel_platform.rb +2 -0
- data/lib/whop_sdk/types/ad_stat.rb +21 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +10 -0
- data/lib/whop_sdk/types/app.rb +4 -0
- data/lib/whop_sdk/types/app_installation.rb +23 -0
- data/lib/whop_sdk/types/app_summary.rb +15 -0
- data/lib/whop_sdk/types/card_brands.rb +4 -0
- data/lib/whop_sdk/types/checkout_configuration.rb +2 -2
- data/lib/whop_sdk/types/{checkout_configuration_plan.rb → checkout_configuration_variant.rb} +6 -6
- data/lib/whop_sdk/types/{checkout_configuration_plan_plan_type.rb → checkout_configuration_variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/types/{checkout_configuration_plan_release_method.rb → checkout_configuration_variant_release_method.rb} +1 -1
- data/lib/whop_sdk/types/{checkout_configuration_plan_three_ds_level.rb → checkout_configuration_variant_three_ds_level.rb} +1 -1
- data/lib/whop_sdk/types/{checkout_configuration_plan_visibility.rb → checkout_configuration_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/types/customer_tracking_preferences.rb +19 -0
- data/lib/whop_sdk/types/dispute.rb +4 -2
- data/lib/whop_sdk/types/dispute_alert.rb +2 -0
- data/lib/whop_sdk/types/dispute_alert_source.rb +16 -0
- data/lib/whop_sdk/types/domain.rb +4 -0
- data/lib/whop_sdk/types/domain_email.rb +9 -0
- data/lib/whop_sdk/types/domain_email_state.rb +14 -0
- data/lib/whop_sdk/types/domain_issue_capability.rb +2 -0
- data/lib/whop_sdk/types/domain_issue_code.rb +11 -0
- data/lib/whop_sdk/types/domain_list_item.rb +4 -0
- data/lib/whop_sdk/types/domain_registration.rb +4 -0
- data/lib/whop_sdk/types/domain_registration_method.rb +12 -0
- data/lib/whop_sdk/types/domain_registration_phase.rb +1 -0
- data/lib/whop_sdk/types/domain_transfer.rb +13 -0
- data/lib/whop_sdk/types/{variant_list_item_plan_type.rb → domain_transfer_destination.rb} +2 -3
- data/lib/whop_sdk/types/domain_transfer_state.rb +12 -0
- data/lib/whop_sdk/types/email_address.rb +23 -0
- data/lib/whop_sdk/types/export_resource.rb +1 -0
- data/lib/whop_sdk/types/external_account_parent_platform.rb +2 -0
- data/lib/whop_sdk/types/external_account_platform.rb +2 -0
- data/lib/whop_sdk/types/financing_provider.rb +21 -0
- data/lib/whop_sdk/types/financing_provider_action.rb +12 -0
- data/lib/whop_sdk/types/financing_provider_currency.rb +11 -0
- data/lib/whop_sdk/types/financing_provider_currency_currency.rb +100 -0
- data/lib/whop_sdk/types/financing_provider_details.rb +13 -0
- data/lib/whop_sdk/types/financing_provider_details_source_provider.rb +15 -0
- data/lib/whop_sdk/types/financing_provider_provider.rb +22 -0
- data/lib/whop_sdk/types/financing_provider_reason.rb +33 -0
- data/lib/whop_sdk/types/financing_provider_status.rb +15 -0
- data/lib/whop_sdk/types/invoice.rb +34 -22
- data/lib/whop_sdk/types/invoice_legacy.rb +55 -0
- data/lib/whop_sdk/types/invoice_legacy_company.rb +14 -0
- data/lib/whop_sdk/types/invoice_legacy_company_logo.rb +10 -0
- data/lib/whop_sdk/types/invoice_legacy_current_plan.rb +26 -0
- data/lib/whop_sdk/types/{invoice_line_items_item.rb → invoice_legacy_line_items_item.rb} +1 -1
- data/lib/whop_sdk/types/{invoice_mailing_address.rb → invoice_legacy_mailing_address.rb} +1 -1
- data/lib/whop_sdk/types/{invoice_member.rb → invoice_legacy_member.rb} +1 -1
- data/lib/whop_sdk/types/{invoice_payment.rb → invoice_legacy_payment.rb} +1 -1
- data/lib/whop_sdk/types/{invoice_product.rb → invoice_legacy_product.rb} +1 -1
- data/lib/whop_sdk/types/{invoice_user.rb → invoice_legacy_user.rb} +1 -1
- data/lib/whop_sdk/types/invoice_line_item.rb +25 -0
- data/lib/whop_sdk/types/invoice_object.rb +11 -0
- data/lib/whop_sdk/types/invoice_pdf.rb +11 -0
- data/lib/whop_sdk/types/invoice_status.rb +18 -0
- data/lib/whop_sdk/types/invoice_totals_status.rb +12 -0
- data/lib/whop_sdk/types/ledger_activity_line_type.rb +5 -0
- data/lib/whop_sdk/types/legacy_invoice.rb +55 -0
- data/lib/whop_sdk/types/legacy_invoice_company.rb +14 -0
- data/lib/whop_sdk/types/legacy_invoice_company_logo.rb +10 -0
- data/lib/whop_sdk/types/legacy_invoice_current_plan.rb +26 -0
- data/lib/whop_sdk/types/{invoice_list_item_line_items_item.rb → legacy_invoice_line_items_item.rb} +1 -1
- data/lib/whop_sdk/types/{invoice_list_item.rb → legacy_invoice_list_item.rb} +4 -4
- data/lib/whop_sdk/types/{invoice_list_item_current_plan.rb → legacy_invoice_list_item_current_plan.rb} +1 -1
- data/lib/whop_sdk/types/legacy_invoice_list_item_line_items_item.rb +18 -0
- data/lib/whop_sdk/types/{invoice_list_item_user.rb → legacy_invoice_list_item_user.rb} +1 -1
- data/lib/whop_sdk/types/legacy_invoice_mailing_address.rb +24 -0
- data/lib/whop_sdk/types/legacy_invoice_member.rb +11 -0
- data/lib/whop_sdk/types/legacy_invoice_payment.rb +11 -0
- data/lib/whop_sdk/types/legacy_invoice_product.rb +12 -0
- data/lib/whop_sdk/types/legacy_invoice_user.rb +16 -0
- data/lib/whop_sdk/types/livestream.rb +27 -0
- data/lib/whop_sdk/types/livestream_recording_status.rb +14 -0
- data/lib/whop_sdk/types/market.rb +17 -0
- data/lib/whop_sdk/types/market_instrument_type.rb +12 -0
- data/lib/whop_sdk/types/member.rb +2 -0
- data/lib/whop_sdk/types/membership.rb +2 -2
- data/lib/whop_sdk/types/membership_affiliate.rb +2 -0
- data/lib/whop_sdk/types/membership_affiliate_commission_source.rb +14 -0
- data/lib/whop_sdk/types/partner_advance.rb +4 -4
- data/lib/whop_sdk/types/partner_advance_status.rb +1 -0
- data/lib/whop_sdk/types/partner_referral_request.rb +2 -0
- data/lib/whop_sdk/types/passkey_authenticator_selection.rb +13 -0
- data/lib/whop_sdk/types/passkey_authenticator_selection_resident_key.rb +11 -0
- data/lib/whop_sdk/types/passkey_authenticator_selection_user_verification.rb +11 -0
- data/lib/whop_sdk/types/passkey_challenge.rb +13 -0
- data/lib/whop_sdk/types/passkey_creation_extensions.rb +9 -0
- data/lib/whop_sdk/types/passkey_creation_options.rb +25 -0
- data/lib/whop_sdk/types/passkey_creation_options_attestation.rb +11 -0
- data/lib/whop_sdk/types/passkey_credential_descriptor.rb +13 -0
- data/lib/whop_sdk/types/passkey_credential_descriptor_transports_item.rb +16 -0
- data/lib/whop_sdk/types/passkey_credential_descriptor_type.rb +11 -0
- data/lib/whop_sdk/types/passkey_credential_parameter.rb +11 -0
- data/lib/whop_sdk/types/passkey_credential_parameter_type.rb +11 -0
- data/lib/whop_sdk/types/{invoice_company.rb → passkey_relying_party.rb} +3 -2
- data/lib/whop_sdk/types/passkey_request_options.rb +17 -0
- data/lib/whop_sdk/types/passkey_request_options_user_verification.rb +11 -0
- data/lib/whop_sdk/types/passkey_user_entity.rb +13 -0
- data/lib/whop_sdk/types/payment.rb +13 -1
- data/lib/whop_sdk/types/payment_fee_origin.rb +1 -0
- data/lib/whop_sdk/types/payment_input.rb +4 -4
- data/lib/whop_sdk/types/{payment_input_plan.rb → payment_input_variant.rb} +9 -9
- data/lib/whop_sdk/types/{product_public_plan_plan_type.rb → payment_input_variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/types/{payment_input_plan_currency.rb → payment_input_variant_currency.rb} +1 -1
- data/lib/whop_sdk/types/{payment_input_plan_override_tax_type.rb → payment_input_variant_override_tax_type.rb} +1 -1
- data/lib/whop_sdk/types/{payment_input_plan_product.rb → payment_input_variant_product.rb} +3 -3
- data/lib/whop_sdk/types/{payment_input_plan_product_global_affiliate_status.rb → payment_input_variant_product_global_affiliate_status.rb} +1 -1
- data/lib/whop_sdk/types/{payment_input_plan_product_visibility.rb → payment_input_variant_product_visibility.rb} +1 -1
- data/lib/whop_sdk/types/{payment_input_plan_visibility.rb → payment_input_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/types/payment_method_list_item_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/payment_method_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/payment_quote_line_item.rb +2 -2
- data/lib/whop_sdk/types/payment_rule_condition_field.rb +7 -0
- data/lib/whop_sdk/types/payment_rule_field_field.rb +7 -0
- data/lib/whop_sdk/types/permission_action.rb +10 -0
- data/lib/whop_sdk/types/plan.rb +4 -2
- data/lib/whop_sdk/types/{plan_plan_type.rb → plan_billing_type.rb} +1 -1
- data/lib/whop_sdk/types/plan_list_item.rb +4 -2
- data/lib/whop_sdk/types/{plan_list_item_plan_type.rb → plan_list_item_billing_type.rb} +1 -1
- data/lib/whop_sdk/types/product.rb +1 -1
- data/lib/whop_sdk/types/product_list_item.rb +1 -1
- data/lib/whop_sdk/types/{product_public_plan.rb → product_public_variant.rb} +4 -4
- data/lib/whop_sdk/types/product_public_variant_billing_type.rb +12 -0
- data/lib/whop_sdk/types/{product_public_plan_visibility.rb → product_public_variant_visibility.rb} +1 -1
- data/lib/whop_sdk/types/promo_code.rb +2 -0
- data/lib/whop_sdk/types/promo_code_affiliate.rb +11 -0
- data/lib/whop_sdk/types/promo_code_affiliate_user.rb +15 -0
- data/lib/whop_sdk/types/promo_code_list_item.rb +2 -0
- data/lib/whop_sdk/types/receipt_line_item.rb +4 -4
- data/lib/whop_sdk/types/refund.rb +2 -0
- data/lib/whop_sdk/types/refund_legacy.rb +2 -0
- data/lib/whop_sdk/types/refund_list_item.rb +2 -0
- data/lib/whop_sdk/types/resolution_center_case.rb +2 -2
- data/lib/whop_sdk/types/shipment_lookup.rb +11 -0
- data/lib/whop_sdk/types/social_account_parent_platform.rb +2 -0
- data/lib/whop_sdk/types/social_account_platform.rb +2 -0
- data/lib/whop_sdk/types/specific_fee_origins.rb +1 -0
- data/lib/whop_sdk/types/team_member.rb +4 -0
- data/lib/whop_sdk/types/user_fees.rb +17 -0
- data/lib/whop_sdk/types/variant.rb +4 -2
- data/lib/whop_sdk/types/{variant_plan_type.rb → variant_billing_type.rb} +1 -1
- data/lib/whop_sdk/types/variant_list_item.rb +4 -2
- data/lib/whop_sdk/types/{payment_input_plan_plan_type.rb → variant_list_item_billing_type.rb} +1 -1
- data/lib/whop_sdk/types/waitlist_entry.rb +9 -1
- data/lib/whop_sdk/types/waitlist_entry_product.rb +11 -0
- data/lib/whop_sdk/types/waitlist_entry_variant.rb +23 -0
- data/lib/whop_sdk/types/waitlist_entry_variant_billing_type.rb +12 -0
- data/lib/whop_sdk/types/webhook.rb +2 -0
- data/lib/whop_sdk/types/webhook_delivery.rb +2 -0
- data/lib/whop_sdk/types/webhook_delivery_status.rb +12 -0
- data/lib/whop_sdk/types/webhook_event.rb +8 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +8 -0
- data/lib/whop_sdk/types/webhook_list_item.rb +2 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +8 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +8 -0
- data/lib/whop_sdk/users/client.rb +5 -0
- data/lib/whop_sdk/users/fees/client.rb +59 -0
- data/lib/whop_sdk/users/fees/types/retrieve_fees_request.rb +13 -0
- data/lib/whop_sdk/users/passkeys/client.rb +13 -9
- data/lib/whop_sdk/users/passkeys/types/create_passkeys_request.rb +4 -0
- data/lib/whop_sdk/variants/client.rb +5 -5
- data/lib/whop_sdk/variants/types/create_variants_request.rb +10 -2
- data/lib/whop_sdk/variants/types/list_variants_request.rb +1 -1
- data/lib/whop_sdk/variants/types/update_variants_request.rb +4 -0
- data/lib/whop_sdk/verifications/client.rb +51 -24
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +2 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item.rb +38 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_address.rb +22 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_document_type.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_documents.rb +30 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_individual_document_type.rb +4 -4
- data/lib/whop_sdk/verifications/types/create_verifications_response.rb +8 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item.rb +27 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_rejected_checks_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_requested_information_item.rb +2 -0
- data/lib/whop_sdk/verifications/types/list_verifications_request.rb +10 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response.rb +3 -1
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +8 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item.rb +27 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_rejected_checks_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_requested_information_item.rb +2 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_page_info.rb +17 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +8 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item.rb +27 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_rejected_checks_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_requested_information_item.rb +2 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address.rb +10 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_documents.rb +18 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item.rb +44 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_address.rb +22 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_document_type.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_documents.rb +30 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response.rb +8 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item.rb +27 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_rejected_checks_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_requested_information_item.rb +2 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk/waitlist_entries/client.rb +20 -12
- data/lib/whop_sdk/waitlist_entries/types/approve_all_waitlist_entries_request.rb +1 -1
- data/lib/whop_sdk/waitlist_entries/types/approve_all_waitlist_entries_response.rb +2 -2
- data/lib/whop_sdk/waitlist_entries/types/create_waitlist_entries_request.rb +3 -1
- data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_request.rb +5 -1
- data/lib/whop_sdk/webhooks/client.rb +17 -2
- data/lib/whop_sdk/webhooks/types/create_webhooks_request.rb +2 -0
- data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +8 -0
- data/lib/whop_sdk/webhooks/types/list_deliveries_webhooks_request.rb +10 -0
- data/lib/whop_sdk/webhooks/types/list_deliveries_webhooks_request_events_item.rb +127 -0
- data/lib/whop_sdk/webhooks/types/list_deliveries_webhooks_request_status.rb +14 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request.rb +2 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +8 -0
- data/lib/whop_sdk.rb +403 -142
- data/reference.md +4376 -1341
- metadata +374 -113
- data/lib/whop_sdk/accounts/financing_applications/client.rb +0 -281
- data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_request.rb +0 -31
- data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_request_order.rb +0 -16
- data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_request_status.rb +0 -19
- data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_response.rb +0 -15
- data/lib/whop_sdk/accounts/financing_applications/types/retrieve_financing_applications_request.rb +0 -15
- data/lib/whop_sdk/accounts/financing_applications/types/submit_financing_applications_request.rb +0 -17
- data/lib/whop_sdk/accounts/financing_applications/types/submit_financing_applications_request_merchant_acceptance.rb +0 -15
- data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request.rb +0 -17
- data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request_answers_item.rb +0 -19
- data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request_answers_item_money.rb +0 -16
- data/lib/whop_sdk/invoices/types/create_invoices_request_product.rb +0 -44
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_id.rb +0 -44
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_billing_address.rb +0 -31
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_line_items_item.rb +0 -16
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_plan.rb +0 -44
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_plan_custom_fields_item.rb +0 -21
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_plan_payment_method_configuration.rb +0 -17
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_line_items_item.rb +0 -16
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_plan.rb +0 -44
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_plan_custom_fields_item.rb +0 -21
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_plan_payment_method_configuration.rb +0 -17
- data/lib/whop_sdk/invoices/types/create_invoices_request_product_product.rb +0 -14
- data/lib/whop_sdk/invoices/types/update_invoices_request_line_items_item.rb +0 -16
- data/lib/whop_sdk/invoices/types/update_invoices_request_plan.rb +0 -44
- data/lib/whop_sdk/invoices/types/update_invoices_request_plan_custom_fields_item.rb +0 -21
- data/lib/whop_sdk/invoices/types/update_invoices_request_plan_payment_method_configuration.rb +0 -17
- data/lib/whop_sdk/topups/client.rb +0 -64
- data/lib/whop_sdk/topups/types/create_topups_request.rb +0 -17
- data/lib/whop_sdk/types/invoice_current_plan.rb +0 -16
- data/lib/whop_sdk/types/topup.rb +0 -23
- data/lib/whop_sdk/users/passkeys/types/challenge_passkeys_response.rb +0 -13
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Payments
|
|
5
|
+
module Types
|
|
6
|
+
module SummaryPaymentsRequestTrackingStatesItem
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UNKNOWN = "unknown"
|
|
10
|
+
PRE_TRANSIT = "pre_transit"
|
|
11
|
+
IN_TRANSIT = "in_transit"
|
|
12
|
+
OUT_FOR_DELIVERY = "out_for_delivery"
|
|
13
|
+
DELIVERED = "delivered"
|
|
14
|
+
AVAILABLE_FOR_PICKUP = "available_for_pickup"
|
|
15
|
+
RETURN_TO_SENDER = "return_to_sender"
|
|
16
|
+
FAILURE = "failure"
|
|
17
|
+
CANCELLED = "cancelled"
|
|
18
|
+
ERROR = "error"
|
|
19
|
+
NEEDS_TRACKING = "needs_tracking"
|
|
20
|
+
MISSING_TRACKING = "missing_tracking"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Payments
|
|
5
|
+
module Types
|
|
6
|
+
class SummaryPaymentsResponse < Internal::Types::Model
|
|
7
|
+
field :groups, -> { Whop_sdk::Payments::Types::SummaryPaymentsResponseGroups }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :total, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Payments
|
|
5
|
+
module Types
|
|
6
|
+
# One entry per requested breakdown, keyed by the field it groups on. A field you did not ask for is absent.
|
|
7
|
+
class SummaryPaymentsResponseGroups < Internal::Types::Model
|
|
8
|
+
field :currency, -> { Internal::Types::Hash[String, Integer] }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :substatus, -> { Whop_sdk::Payments::Types::SummaryPaymentsResponseGroupsSubstatus }, optional: true, nullable: false
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Payments
|
|
5
|
+
module Types
|
|
6
|
+
# How many of the matching payments are in each substatus. Every substatus is present, including those with a
|
|
7
|
+
# count of zero.
|
|
8
|
+
class SummaryPaymentsResponseGroupsSubstatus < Internal::Types::Model
|
|
9
|
+
field :auto_refunded, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :blocked, -> { Integer }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :canceled, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :dispute_closed, -> { Integer }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :dispute_lost, -> { Integer }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :dispute_needs_response, -> { Integer }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :dispute_under_review, -> { Integer }, optional: false, nullable: false
|
|
22
|
+
|
|
23
|
+
field :dispute_warning, -> { Integer }, optional: false, nullable: false
|
|
24
|
+
|
|
25
|
+
field :dispute_warning_closed, -> { Integer }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :dispute_warning_needs_response, -> { Integer }, optional: false, nullable: false
|
|
28
|
+
|
|
29
|
+
field :dispute_warning_under_review, -> { Integer }, optional: false, nullable: false
|
|
30
|
+
|
|
31
|
+
field :dispute_won, -> { Integer }, optional: false, nullable: false
|
|
32
|
+
|
|
33
|
+
field :drafted, -> { Integer }, optional: false, nullable: false
|
|
34
|
+
|
|
35
|
+
field :failed, -> { Integer }, optional: false, nullable: false
|
|
36
|
+
|
|
37
|
+
field :incomplete, -> { Integer }, optional: false, nullable: false
|
|
38
|
+
|
|
39
|
+
field :partially_refunded, -> { Integer }, optional: false, nullable: false
|
|
40
|
+
|
|
41
|
+
field :past_due, -> { Integer }, optional: false, nullable: false
|
|
42
|
+
|
|
43
|
+
field :pending, -> { Integer }, optional: false, nullable: false
|
|
44
|
+
|
|
45
|
+
field :price_too_low, -> { Integer }, optional: false, nullable: false
|
|
46
|
+
|
|
47
|
+
field :refunded, -> { Integer }, optional: false, nullable: false
|
|
48
|
+
|
|
49
|
+
field :requires_capture, -> { Integer }, optional: false, nullable: false
|
|
50
|
+
|
|
51
|
+
field :resolution_lost, -> { Integer }, optional: false, nullable: false
|
|
52
|
+
|
|
53
|
+
field :resolution_needs_response, -> { Integer }, optional: false, nullable: false
|
|
54
|
+
|
|
55
|
+
field :resolution_under_review, -> { Integer }, optional: false, nullable: false
|
|
56
|
+
|
|
57
|
+
field :resolution_won, -> { Integer }, optional: false, nullable: false
|
|
58
|
+
|
|
59
|
+
field :succeeded, -> { Integer }, optional: false, nullable: false
|
|
60
|
+
|
|
61
|
+
field :uncollectible, -> { Integer }, optional: false, nullable: false
|
|
62
|
+
|
|
63
|
+
field :unresolved, -> { Integer }, optional: false, nullable: false
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class UpdateReturnURLPaymentsRequest < Internal::Types::Model
|
|
7
7
|
field :payment_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :client_secret, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :return_url, -> { String }, optional: false, nullable: false
|
|
10
12
|
end
|
|
11
13
|
end
|
|
@@ -137,10 +137,7 @@ module Whop_sdk
|
|
|
137
137
|
# @option request_options [Integer] :timeout_in_seconds
|
|
138
138
|
#
|
|
139
139
|
# @example
|
|
140
|
-
# client.payouts.create_quote(
|
|
141
|
-
# amount: 6762.41,
|
|
142
|
-
# payout_method_id: "potk_xxxxxxxxxxxxxx"
|
|
143
|
-
# )
|
|
140
|
+
# client.payouts.create_quote(payout_method_id: "potk_xxxxxxxxxxxxxx")
|
|
144
141
|
#
|
|
145
142
|
# @return [Whop_sdk::Payouts::Types::CreateQuotePayoutsResponse]
|
|
146
143
|
def create_quote(request_options: {}, **params)
|
|
@@ -166,7 +163,7 @@ module Whop_sdk
|
|
|
166
163
|
end
|
|
167
164
|
end
|
|
168
165
|
|
|
169
|
-
# Retrieves a payout by its `wdrl_` ID, or by the `cofr_` conversion request ID a
|
|
166
|
+
# Retrieves a payout by its `wdrl_` ID, or by the `cofr_` conversion request ID a payout carries as
|
|
170
167
|
# `payout_request_id`. Authentication is optional: anyone with the ID can view tracking details, including notes,
|
|
171
168
|
# trace code, exchange rate, and payout request ID, while accounting fields require `payout:withdrawal:read` on
|
|
172
169
|
# the account or user that owns the payout. A supplied invalid credential returns 401.
|
|
@@ -213,10 +210,12 @@ module Whop_sdk
|
|
|
213
210
|
end
|
|
214
211
|
end
|
|
215
212
|
|
|
216
|
-
# Cancels a payout
|
|
217
|
-
#
|
|
218
|
-
#
|
|
219
|
-
#
|
|
213
|
+
# Cancels a payout before it is sent to the payout provider, or asks the provider to stop one already sent. While
|
|
214
|
+
# the payout is `in_review`, or `processing` with nothing sent yet (see `cancelable`), it is canceled and the
|
|
215
|
+
# funds, fees included, return to the balance. Once sent, the response is 202 with a `cancellation` object, and
|
|
216
|
+
# the payout reads `canceled` only if the provider confirms it stopped. A `requested` payout returns 409 until it
|
|
217
|
+
# reaches review, a payout the provider can no longer stop returns 409 with error type `not_cancelable`, and
|
|
218
|
+
# canceling an already-canceled payout returns it unchanged.
|
|
220
219
|
#
|
|
221
220
|
# @param request_options [Hash]
|
|
222
221
|
# @param params [Hash]
|
|
@@ -159,7 +159,10 @@ module Whop_sdk
|
|
|
159
159
|
end
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
# Changes the label used to identify a saved payout method
|
|
162
|
+
# Changes the label used to identify a saved payout method, makes it the account's default payout method, or
|
|
163
|
+
# updates the payout address on file for it. Send `address` on its own: it cannot be combined with `nickname` or
|
|
164
|
+
# `is_default`. Address updates require the `payout:account:update` scope as well, on the same account, and are
|
|
165
|
+
# supported only for bank and wallet payout methods, not recipient payout methods.
|
|
163
166
|
#
|
|
164
167
|
# @param request_options [Hash]
|
|
165
168
|
# @param params [Whop_sdk::Payouts::Methods::Types::UpdateMethodsRequest]
|
|
@@ -8,6 +8,8 @@ module Whop_sdk
|
|
|
8
8
|
# method on it. No Whop user, company, or recipient ledger is created. A valid recipient email is required.
|
|
9
9
|
# Recipient methods cannot be default or recurring methods and cannot use Plaid.
|
|
10
10
|
class CreateMethodsRequestRecipient < Internal::Types::Model
|
|
11
|
+
field :address, -> { Whop_sdk::Payouts::Methods::Types::CreateMethodsRequestRecipientAddress }, optional: true, nullable: false
|
|
12
|
+
|
|
11
13
|
field :country, -> { String }, optional: false, nullable: false
|
|
12
14
|
|
|
13
15
|
field :email, -> { String }, optional: false, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Payouts
|
|
5
|
+
module Methods
|
|
6
|
+
module Types
|
|
7
|
+
# The recipient's address in recipient.country. Saved on the recipient payout account and supplied to bank
|
|
8
|
+
# methods that require address fields. Omit to retain the existing address when reusing a recipient.
|
|
9
|
+
class CreateMethodsRequestRecipientAddress < Internal::Types::Model
|
|
10
|
+
field :city, -> { String }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :line1, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :line2, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :postal_code, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :state, -> { String }, optional: true, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -7,6 +7,8 @@ module Whop_sdk
|
|
|
7
7
|
class UpdateMethodsRequest < Internal::Types::Model
|
|
8
8
|
field :id, -> { String }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
+
field :address, -> { Whop_sdk::Payouts::Methods::Types::UpdateMethodsRequestAddress }, optional: true, nullable: false
|
|
11
|
+
|
|
10
12
|
field :is_default, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
11
13
|
|
|
12
14
|
field :nickname, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Payouts
|
|
5
|
+
module Methods
|
|
6
|
+
module Types
|
|
7
|
+
# The payout address to keep on file for this payout method. Only the fields you send are changed; blank fields
|
|
8
|
+
# are ignored.
|
|
9
|
+
class UpdateMethodsRequestAddress < Internal::Types::Model
|
|
10
|
+
field :city, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :line1, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :line2, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :postal_code, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :state, -> { String }, optional: true, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class CancelPayoutsResponse < Internal::Types::Model
|
|
7
7
|
field :amount, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :cancelable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :currency, -> { String }, optional: false, nullable: false
|
|
@@ -16,6 +16,8 @@ module Whop_sdk
|
|
|
16
16
|
|
|
17
17
|
field :notes, -> { String }, optional: true, nullable: false
|
|
18
18
|
|
|
19
|
+
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
19
21
|
field :payout_method_id, -> { String }, optional: false, nullable: false
|
|
20
22
|
|
|
21
23
|
field :platform_covers_fees, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class CreatePayoutsResponse < Internal::Types::Model
|
|
7
7
|
field :amount, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :cancelable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :currency, -> { String }, optional: false, nullable: false
|
|
@@ -6,14 +6,18 @@ module Whop_sdk
|
|
|
6
6
|
class CreateQuotePayoutsRequest < Internal::Types::Model
|
|
7
7
|
field :account_id, -> { String }, optional: true, nullable: false
|
|
8
8
|
|
|
9
|
-
field :amount, -> { Integer }, optional:
|
|
9
|
+
field :amount, -> { Integer }, optional: true, nullable: false
|
|
10
10
|
|
|
11
11
|
field :currency, -> { String }, optional: true, nullable: false
|
|
12
12
|
|
|
13
|
+
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
13
15
|
field :payout_method_id, -> { String }, optional: false, nullable: false
|
|
14
16
|
|
|
15
17
|
field :platform_covers_fees, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
16
18
|
|
|
19
|
+
field :recipient_amount, -> { Integer }, optional: true, nullable: false
|
|
20
|
+
|
|
17
21
|
field :speed, -> { Whop_sdk::Payouts::Types::CreateQuotePayoutsRequestSpeed }, optional: true, nullable: false
|
|
18
22
|
|
|
19
23
|
field :statement_descriptor, -> { String }, optional: true, nullable: false
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class ListPayoutsResponseDataItem < Internal::Types::Model
|
|
7
7
|
field :amount, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :cancelable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :currency, -> { String }, optional: false, nullable: false
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class PostPayoutCreatedPayloadData < Internal::Types::Model
|
|
7
7
|
field :amount, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :cancelable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :currency, -> { String }, optional: false, nullable: false
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class PostPayoutReversedPayloadData < Internal::Types::Model
|
|
7
7
|
field :amount, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :cancelable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :currency, -> { String }, optional: false, nullable: false
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class PostPayoutUpdatedPayloadData < Internal::Types::Model
|
|
7
7
|
field :amount, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :cancelable, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :currency, -> { String }, optional: false, nullable: false
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class RetrievePayoutsResponse < Internal::Types::Model
|
|
7
7
|
field :amount, -> { String }, optional: true, nullable: false
|
|
8
8
|
|
|
9
|
+
field :cancelable, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :currency, -> { String }, optional: false, nullable: false
|
|
@@ -28,7 +28,7 @@ module Whop_sdk
|
|
|
28
28
|
# @option params [Whop_sdk::Plans::Types::ListPlansRequestOrder, nil] :order
|
|
29
29
|
# @option params [String, nil] :release_methods
|
|
30
30
|
# @option params [String, nil] :visibilities
|
|
31
|
-
# @option params [String, nil] :
|
|
31
|
+
# @option params [String, nil] :billing_types
|
|
32
32
|
# @option params [String, nil] :product_ids
|
|
33
33
|
# @option params [String, nil] :created_before
|
|
34
34
|
# @option params [String, nil] :created_after
|
|
@@ -49,7 +49,7 @@ module Whop_sdk
|
|
|
49
49
|
query_params["order"] = params[:order] if params.key?(:order)
|
|
50
50
|
query_params["release_methods"] = params[:release_methods] if params.key?(:release_methods)
|
|
51
51
|
query_params["visibilities"] = params[:visibilities] if params.key?(:visibilities)
|
|
52
|
-
query_params["
|
|
52
|
+
query_params["billing_types"] = params[:billing_types] if params.key?(:billing_types)
|
|
53
53
|
query_params["product_ids"] = params[:product_ids] if params.key?(:product_ids)
|
|
54
54
|
query_params["created_before"] = params[:created_before] if params.key?(:created_before)
|
|
55
55
|
query_params["created_after"] = params[:created_after] if params.key?(:created_after)
|
|
@@ -8,10 +8,18 @@ module Whop_sdk
|
|
|
8
8
|
|
|
9
9
|
field :adaptive_pricing_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :allow_multiple_quantity, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
12
|
+
|
|
11
13
|
field :attributes, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
12
14
|
|
|
13
15
|
field :billing_period, -> { Integer }, optional: true, nullable: false
|
|
14
16
|
|
|
17
|
+
field :billing_type, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :cancel_discount_intervals, -> { Integer }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :cancel_discount_percentage, -> { Integer }, optional: true, nullable: false
|
|
22
|
+
|
|
15
23
|
field :checkout_styling, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
16
24
|
|
|
17
25
|
field :currency, -> { String }, optional: true, nullable: false
|
|
@@ -30,12 +38,12 @@ module Whop_sdk
|
|
|
30
38
|
|
|
31
39
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
32
40
|
|
|
41
|
+
field :offer_cancel_discount, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
42
|
+
|
|
33
43
|
field :override_tax_type, -> { String }, optional: true, nullable: false
|
|
34
44
|
|
|
35
45
|
field :payment_method_configuration, -> { Whop_sdk::Plans::Types::CreatePlansRequestPaymentMethodConfiguration }, optional: true, nullable: false
|
|
36
46
|
|
|
37
|
-
field :plan_type, -> { String }, optional: true, nullable: false
|
|
38
|
-
|
|
39
47
|
field :product_id, -> { String }, optional: true, nullable: false
|
|
40
48
|
|
|
41
49
|
field :release_method, -> { String }, optional: true, nullable: false
|
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
|
|
15
15
|
field :visibilities, -> { String }, optional: true, nullable: false
|
|
16
16
|
|
|
17
|
-
field :
|
|
17
|
+
field :billing_types, -> { String }, optional: true, nullable: false
|
|
18
18
|
|
|
19
19
|
field :product_ids, -> { String }, optional: true, nullable: false
|
|
20
20
|
|
|
@@ -8,6 +8,8 @@ module Whop_sdk
|
|
|
8
8
|
|
|
9
9
|
field :adaptive_pricing_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :allow_multiple_quantity, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
12
|
+
|
|
11
13
|
field :attributes, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
12
14
|
|
|
13
15
|
field :billing_period, -> { Integer }, optional: true, nullable: false
|
|
@@ -46,6 +48,8 @@ module Whop_sdk
|
|
|
46
48
|
|
|
47
49
|
field :sku, -> { String }, optional: true, nullable: false
|
|
48
50
|
|
|
51
|
+
field :split_pay_required_payments, -> { Integer }, optional: true, nullable: false
|
|
52
|
+
|
|
49
53
|
field :stock, -> { Integer }, optional: true, nullable: false
|
|
50
54
|
|
|
51
55
|
field :strike_through_initial_price, -> { Integer }, optional: true, nullable: false
|
|
@@ -26,7 +26,7 @@ module Whop_sdk
|
|
|
26
26
|
# @option params [String, nil] :account_id
|
|
27
27
|
# @option params [String, nil] :query
|
|
28
28
|
# @option params [String, nil] :marketplace_category_route
|
|
29
|
-
# @option params [Whop_sdk::Products::Types::
|
|
29
|
+
# @option params [Whop_sdk::Products::Types::ListProductsRequestBillingTypesItem, nil] :billing_types
|
|
30
30
|
# @option params [Integer, nil] :price_minimum
|
|
31
31
|
# @option params [Integer, nil] :price_maximum
|
|
32
32
|
# @option params [String, nil] :visibilities
|
|
@@ -54,7 +54,7 @@ module Whop_sdk
|
|
|
54
54
|
query_params["account_id"] = params[:account_id] if params.key?(:account_id)
|
|
55
55
|
query_params["query"] = params[:query] if params.key?(:query)
|
|
56
56
|
query_params["marketplace_category_route"] = params[:marketplace_category_route] if params.key?(:marketplace_category_route)
|
|
57
|
-
query_params["
|
|
57
|
+
query_params["billing_types"] = params[:billing_types] if params.key?(:billing_types)
|
|
58
58
|
query_params["price_minimum"] = params[:price_minimum] if params.key?(:price_minimum)
|
|
59
59
|
query_params["price_maximum"] = params[:price_maximum] if params.key?(:price_maximum)
|
|
60
60
|
query_params["visibilities"] = params[:visibilities] if params.key?(:visibilities)
|
|
@@ -251,9 +251,9 @@ module Whop_sdk
|
|
|
251
251
|
end
|
|
252
252
|
end
|
|
253
253
|
|
|
254
|
-
# Submits
|
|
255
|
-
#
|
|
256
|
-
#
|
|
254
|
+
# Submits an App Store app's product for review. The product moves to `pending_review`; a Whop reviewer approves
|
|
255
|
+
# it before it goes live. Other products can no longer be listed on the whop.com marketplace, so the request fails
|
|
256
|
+
# with `discover_listing_discontinued`.
|
|
257
257
|
#
|
|
258
258
|
# @param request_options [Hash]
|
|
259
259
|
# @param params [Hash]
|
|
@@ -10,7 +10,7 @@ module Whop_sdk
|
|
|
10
10
|
|
|
11
11
|
field :marketplace_category_route, -> { String }, optional: true, nullable: false
|
|
12
12
|
|
|
13
|
-
field :
|
|
13
|
+
field :billing_types, -> { Whop_sdk::Products::Types::ListProductsRequestBillingTypesItem }, optional: true, nullable: false
|
|
14
14
|
|
|
15
15
|
field :price_minimum, -> { Integer }, optional: true, nullable: false
|
|
16
16
|
|
|
@@ -26,7 +26,7 @@ module Whop_sdk
|
|
|
26
26
|
# @option params [String] :account_id
|
|
27
27
|
# @option params [Whop_sdk::PromoCodes::Types::ListPromoCodesRequestStatus, nil] :status
|
|
28
28
|
# @option params [String, nil] :product_ids
|
|
29
|
-
# @option params [String, nil] :
|
|
29
|
+
# @option params [String, nil] :variant_ids
|
|
30
30
|
# @option params [String, nil] :created_before
|
|
31
31
|
# @option params [String, nil] :created_after
|
|
32
32
|
# @option params [Whop_sdk::PromoCodes::Types::ListPromoCodesRequestOrder, nil] :order
|
|
@@ -40,7 +40,7 @@ module Whop_sdk
|
|
|
40
40
|
# client.promo_codes.list(
|
|
41
41
|
# account_id: "account_id",
|
|
42
42
|
# product_ids: ["prod_xxxxxxxxxxxxxx"],
|
|
43
|
-
#
|
|
43
|
+
# variant_ids: ["plan_xxxxxxxxxxxxxx"]
|
|
44
44
|
# )
|
|
45
45
|
#
|
|
46
46
|
# @return [Whop_sdk::PromoCodes::Types::ListPromoCodesResponse]
|
|
@@ -50,7 +50,7 @@ module Whop_sdk
|
|
|
50
50
|
query_params["account_id"] = params[:account_id] if params.key?(:account_id)
|
|
51
51
|
query_params["status"] = params[:status] if params.key?(:status)
|
|
52
52
|
query_params["product_ids"] = params[:product_ids] if params.key?(:product_ids)
|
|
53
|
-
query_params["
|
|
53
|
+
query_params["variant_ids"] = params[:variant_ids] if params.key?(:variant_ids)
|
|
54
54
|
query_params["created_before"] = params[:created_before] if params.key?(:created_before)
|
|
55
55
|
query_params["created_after"] = params[:created_after] if params.key?(:created_after)
|
|
56
56
|
query_params["order"] = params[:order] if params.key?(:order)
|
|
@@ -22,8 +22,6 @@ module Whop_sdk
|
|
|
22
22
|
|
|
23
23
|
field :one_per_customer, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
24
24
|
|
|
25
|
-
field :plan_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
26
|
-
|
|
27
25
|
field :product_id, -> { String }, optional: true, nullable: false
|
|
28
26
|
|
|
29
27
|
field :promo_duration_months, -> { Integer }, optional: false, nullable: false
|
|
@@ -33,6 +31,8 @@ module Whop_sdk
|
|
|
33
31
|
field :stock, -> { Integer }, optional: true, nullable: false
|
|
34
32
|
|
|
35
33
|
field :unlimited_stock, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
34
|
+
|
|
35
|
+
field :variant_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
|
@@ -10,7 +10,7 @@ module Whop_sdk
|
|
|
10
10
|
|
|
11
11
|
field :product_ids, -> { String }, optional: true, nullable: false
|
|
12
12
|
|
|
13
|
-
field :
|
|
13
|
+
field :variant_ids, -> { String }, optional: true, nullable: false
|
|
14
14
|
|
|
15
15
|
field :created_before, -> { String }, optional: true, nullable: false
|
|
16
16
|
|
|
@@ -266,7 +266,7 @@ module Whop_sdk
|
|
|
266
266
|
end
|
|
267
267
|
|
|
268
268
|
# Appeals a decision, as the customer, on a case that closed in the merchant's favor. Escalates the case to Whop
|
|
269
|
-
# for platform review. A case can be appealed once.
|
|
269
|
+
# for platform review. A case can be appealed once, within 7 days of the decision.
|
|
270
270
|
#
|
|
271
271
|
# @param request_options [Hash]
|
|
272
272
|
# @param params [Whop_sdk::ResolutionCenterCases::Types::AppealResolutionCenterCasesRequest]
|
|
@@ -162,7 +162,7 @@ module Whop_sdk
|
|
|
162
162
|
end
|
|
163
163
|
|
|
164
164
|
# Changes where the buyer lands after completing an off-site step, up until they return. Accepts either a secret
|
|
165
|
-
# key or the setup's own `client_secret
|
|
165
|
+
# key or the setup's own `client_secret` in the body, so the surface that knows the final destination can set it.
|
|
166
166
|
#
|
|
167
167
|
# @param request_options [Hash]
|
|
168
168
|
# @param params [Whop_sdk::SetupIntents::Types::UpdateReturnURLSetupIntentsRequest]
|
|
@@ -209,7 +209,7 @@ module Whop_sdk
|
|
|
209
209
|
|
|
210
210
|
# Retrieves how far a setup has got and what the buyer must do next, if anything. Collection runs in the
|
|
211
211
|
# background, so poll this rather than reading the create response. Accepts either a secret key or the setup's own
|
|
212
|
-
# `client_secret
|
|
212
|
+
# `client_secret` as a query parameter, so the surface collecting the payment method can poll it directly.
|
|
213
213
|
#
|
|
214
214
|
# @param request_options [Hash]
|
|
215
215
|
# @param params [Hash]
|
|
@@ -219,6 +219,7 @@ module Whop_sdk
|
|
|
219
219
|
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
220
220
|
# @option request_options [Integer] :timeout_in_seconds
|
|
221
221
|
# @option params [String] :setup_intent_id
|
|
222
|
+
# @option params [String, nil] :client_secret
|
|
222
223
|
#
|
|
223
224
|
# @example
|
|
224
225
|
# client.setup_intents.retrieve_status(setup_intent_id: "setup_intent_id")
|
|
@@ -226,10 +227,14 @@ module Whop_sdk
|
|
|
226
227
|
# @return [Whop_sdk::Types::SetupStatus]
|
|
227
228
|
def retrieve_status(request_options: {}, **params)
|
|
228
229
|
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
230
|
+
query_params = {}
|
|
231
|
+
query_params["client_secret"] = params[:client_secret] if params.key?(:client_secret)
|
|
232
|
+
|
|
229
233
|
request = Whop_sdk::Internal::JSON::Request.new(
|
|
230
234
|
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
231
235
|
method: "GET",
|
|
232
236
|
path: "setup_intents/#{URI.encode_uri_component(params[:setup_intent_id].to_s)}/status",
|
|
237
|
+
query: query_params,
|
|
233
238
|
request_options: request_options
|
|
234
239
|
)
|
|
235
240
|
begin
|
|
@@ -14,6 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
|
|
15
15
|
field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
16
16
|
|
|
17
|
+
field :owner_id, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
17
19
|
field :payment_method_id, -> { String }, optional: true, nullable: false
|
|
18
20
|
|
|
19
21
|
field :purpose, -> { Whop_sdk::SetupIntents::Types::CreateSetupIntentsRequestPurpose }, optional: true, nullable: false
|
|
@@ -6,6 +6,8 @@ module Whop_sdk
|
|
|
6
6
|
class UpdateReturnURLSetupIntentsRequest < Internal::Types::Model
|
|
7
7
|
field :setup_intent_id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :client_secret, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :return_url, -> { String }, optional: false, nullable: false
|
|
10
12
|
end
|
|
11
13
|
end
|