whop_sdk 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +403 -1
- data/lib/whop_sdk/access_tokens/client.rb +2 -3
- data/lib/whop_sdk/account_links/client.rb +2 -2
- data/lib/whop_sdk/accounts/client.rb +8 -19
- data/lib/whop_sdk/accounts/fees/client.rb +5 -6
- data/lib/whop_sdk/accounts/financing_applications/client.rb +18 -24
- data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request_answers_item_money.rb +1 -0
- data/lib/whop_sdk/accounts/preferences/client.rb +1 -0
- data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response.rb +2 -0
- data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response_feedback_options_item.rb +17 -0
- data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response_feedback_options_item_category.rb +21 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request.rb +2 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_feedback_options_item.rb +17 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_feedback_options_item_category.rb +21 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_response.rb +2 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_response_feedback_options_item.rb +17 -0
- data/lib/whop_sdk/accounts/preferences/types/update_preferences_response_feedback_options_item_category.rb +21 -0
- data/lib/whop_sdk/accounts/types/form_company_accounts_request.rb +0 -6
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload.rb +25 -0
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_api_version.rb +13 -0
- data/lib/whop_sdk/accounts/types/post_account_financing_disabled_payload_type.rb +13 -0
- data/lib/whop_sdk/accounts/types/transfer_ownership_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request.rb +2 -6
- data/lib/whop_sdk/ad_campaigns/client.rb +4 -4
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_payment_failed_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_delivery_status.rb +1 -0
- data/lib/whop_sdk/ad_conversion_value_rules/client.rb +11 -9
- data/lib/whop_sdk/ad_groups/client.rb +7 -11
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload.rb +25 -0
- data/lib/whop_sdk/{partners/types/referred_users_partners_request_user_id.rb → ad_groups/types/post_ad_group_updated_payload_api_version.rb} +3 -3
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data.rb +77 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_bid_type.rb +15 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_budget_type.rb +14 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_conversion_location.rb +21 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_delivery_status.rb +27 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_message_apps_item.rb +15 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_optimization_goal.rb +30 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_platform.rb +15 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_data_status.rb +16 -0
- data/lib/whop_sdk/ad_groups/types/post_ad_group_updated_payload_type.rb +13 -0
- data/lib/whop_sdk/ad_pixels/client.rb +241 -0
- data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request.rb +17 -0
- data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request_platform.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/delete_ad_pixels_request.rb +11 -0
- data/lib/whop_sdk/ad_pixels/types/delete_ad_pixels_response.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request.rb +23 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request_direction.rb +14 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_request_order.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_response.rb +13 -0
- data/lib/whop_sdk/ad_pixels/types/list_ad_pixels_response_page_info.rb +17 -0
- data/lib/whop_sdk/ad_pixels/types/retrieve_ad_pixels_request.rb +11 -0
- data/lib/whop_sdk/ad_pixels/types/update_ad_pixels_request.rb +13 -0
- data/lib/whop_sdk/ads/client.rb +1 -2
- data/lib/whop_sdk/affiliates/client.rb +5 -5
- data/lib/whop_sdk/api_keys/client.rb +2 -2
- data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +5 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +5 -0
- data/lib/whop_sdk/app_builds/client.rb +2 -2
- data/lib/whop_sdk/app_builds/types/create_app_builds_request_attachment.rb +2 -1
- data/lib/whop_sdk/apps/client.rb +2 -4
- data/lib/whop_sdk/apps/types/create_apps_request.rb +2 -0
- data/lib/whop_sdk/apps/types/list_apps_request_order.rb +1 -0
- data/lib/whop_sdk/audiences/client.rb +5 -5
- data/lib/whop_sdk/authorized_users/client.rb +3 -4
- data/lib/whop_sdk/bounty_submissions/client.rb +7 -10
- data/lib/whop_sdk/bounty_submissions/types/submit_bounty_submissions_request_deliverable.rb +3 -1
- data/lib/whop_sdk/card_transactions/client.rb +9 -6
- data/lib/whop_sdk/card_transactions/types/list_card_transactions_request.rb +2 -0
- data/lib/whop_sdk/card_transactions/types/retrieve_card_transactions_request.rb +2 -0
- data/lib/whop_sdk/cards/client.rb +4 -4
- data/lib/whop_sdk/cashback_rules/client.rb +16 -20
- data/lib/whop_sdk/chat_channels/client.rb +2 -2
- data/lib/whop_sdk/checkout_configurations/client.rb +2 -1
- data/lib/whop_sdk/claim_links/client.rb +8 -8
- data/lib/whop_sdk/client.rb +6 -1
- data/lib/whop_sdk/company_token_transactions/client.rb +3 -4
- data/lib/whop_sdk/confirmation_tokens/client.rb +3 -3
- data/lib/whop_sdk/course_lesson_interactions/client.rb +2 -1
- data/lib/whop_sdk/courses/client.rb +4 -2
- data/lib/whop_sdk/deposits/client.rb +3 -2
- data/lib/whop_sdk/disputes/client.rb +5 -12
- data/lib/whop_sdk/dm_channels/client.rb +5 -6
- data/lib/whop_sdk/domains/client.rb +9 -3
- data/lib/whop_sdk/domains/types/create_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/create_domains_request_apple_pay.rb +13 -0
- data/lib/whop_sdk/domains/types/create_domains_request_pixel.rb +12 -0
- data/lib/whop_sdk/domains/types/list_domains_request.rb +9 -3
- data/lib/whop_sdk/domains/types/list_domains_request_apple_pay.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_order.rb +2 -0
- data/lib/whop_sdk/domains/types/list_domains_request_pixel.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_platform.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_registration.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_verification.rb +17 -0
- data/lib/whop_sdk/domains/types/list_domains_request_website.rb +17 -0
- data/lib/whop_sdk/domains/types/update_domains_request.rb +4 -0
- data/lib/whop_sdk/domains/types/update_domains_request_apple_pay.rb +13 -0
- data/lib/whop_sdk/domains/types/update_domains_request_pixel.rb +12 -0
- data/lib/whop_sdk/economic_intelligence/client.rb +6 -6
- data/lib/whop_sdk/events/client.rb +12 -16
- data/lib/whop_sdk/experiences/client.rb +15 -9
- data/lib/whop_sdk/experiments/client.rb +17 -35
- data/lib/whop_sdk/exports/client.rb +1 -1
- data/lib/whop_sdk/external_accounts/client.rb +3 -5
- data/lib/whop_sdk/fee_markups/client.rb +5 -6
- data/lib/whop_sdk/feedback_submissions/client.rb +2 -3
- data/lib/whop_sdk/files/client.rb +2 -2
- data/lib/whop_sdk/financial_reports/breakdown/client.rb +3 -1
- data/lib/whop_sdk/forum_posts/client.rb +1 -1
- data/lib/whop_sdk/forums/client.rb +1 -1
- data/lib/whop_sdk/identity_profiles/client.rb +4 -4
- data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
- data/lib/whop_sdk/invoices/client.rb +1 -1
- data/lib/whop_sdk/leads/client.rb +3 -3
- data/lib/whop_sdk/members/client.rb +21 -1
- data/lib/whop_sdk/members/logs/client.rb +1 -1
- data/lib/whop_sdk/members/notes/client.rb +121 -0
- data/lib/whop_sdk/members/notes/types/create_notes_request.rb +15 -0
- data/lib/whop_sdk/members/notes/types/list_notes_request.rb +21 -0
- data/lib/whop_sdk/members/notes/types/list_notes_response.rb +15 -0
- data/lib/whop_sdk/members/notes/types/list_notes_response_page_info.rb +19 -0
- data/lib/whop_sdk/members/types/list_members_request.rb +10 -0
- data/lib/whop_sdk/members/types/list_members_request_membership_status.rb +14 -0
- data/lib/whop_sdk/members/types/list_members_request_most_recent_actions_item.rb +25 -0
- data/lib/whop_sdk/members/types/list_members_request_order.rb +1 -0
- data/lib/whop_sdk/memberships/client.rb +30 -28
- data/lib/whop_sdk/memberships/types/cancel_memberships_request.rb +2 -0
- data/lib/whop_sdk/memberships/types/list_memberships_request.rb +10 -0
- data/lib/whop_sdk/memberships/types/list_memberships_request_status.rb +4 -0
- data/lib/whop_sdk/memberships/types/list_memberships_request_statuses_item.rb +24 -0
- data/lib/whop_sdk/messages/client.rb +5 -7
- data/lib/whop_sdk/notifications/client.rb +6 -9
- data/lib/whop_sdk/notifications/topics/client.rb +1 -1
- data/lib/whop_sdk/partner_referral_requests/client.rb +3 -3
- data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_code.rb +1 -2
- data/lib/whop_sdk/partners/businesses/client.rb +99 -0
- data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_request_income_source_item.rb +1 -0
- data/lib/whop_sdk/partners/businesses/earnings/types/list_earnings_response_data_item_income_source.rb +1 -0
- data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_request_acknowledgments_item.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/accept_commission_advance_businesses_response.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_response.rb +15 -0
- data/lib/whop_sdk/partners/client.rb +6 -11
- data/lib/whop_sdk/partners/types/referred_users_partners_request.rb +0 -2
- data/lib/whop_sdk/payment_method_domains/client.rb +4 -5
- data/lib/whop_sdk/payment_methods/client.rb +4 -5
- data/lib/whop_sdk/payment_quotes/client.rb +8 -10
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request.rb +4 -2
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_address.rb +1 -1
- data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_line_items_item.rb +13 -0
- data/lib/whop_sdk/payment_rules/client.rb +19 -8
- data/lib/whop_sdk/payments/client.rb +64 -24
- data/lib/whop_sdk/payments/direct/client.rb +5 -6
- data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +2 -2
- data/lib/whop_sdk/payments/direct/types/create_direct_request_line_items_item.rb +15 -0
- data/lib/whop_sdk/payments/types/create_payments_request.rb +2 -2
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item.rb +13 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan.rb +46 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_currency.rb +102 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_override_tax_type.rb +15 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_plan_type.rb +14 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product.rb +34 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_global_affiliate_status.rb +14 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_product_visibility.rb +16 -0
- data/lib/whop_sdk/payments/types/create_payments_request_line_items_item_plan_visibility.rb +16 -0
- data/lib/whop_sdk/payments/types/generate_pdf_payments_request.rb +11 -0
- data/lib/whop_sdk/payments/types/resume_payments_request.rb +2 -0
- data/lib/whop_sdk/payout_methods/client.rb +1 -1
- data/lib/whop_sdk/payouts/client.rb +15 -12
- data/lib/whop_sdk/payouts/methods/client.rb +2 -2
- data/lib/whop_sdk/payouts/methods/types/create_methods_request.rb +2 -0
- data/lib/whop_sdk/payouts/methods/types/list_methods_response_limits_standard_error_code.rb +1 -1
- data/lib/whop_sdk/payouts/paypal_link_sessions/client.rb +67 -0
- data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_request.rb +21 -0
- data/lib/whop_sdk/payouts/paypal_link_sessions/types/create_paypal_link_sessions_response.rb +15 -0
- data/lib/whop_sdk/payouts/supported_methods/client.rb +2 -1
- data/lib/whop_sdk/payouts/supported_methods/types/list_supported_methods_response_data_item.rb +2 -0
- data/lib/whop_sdk/people/client.rb +3 -5
- data/lib/whop_sdk/plans/client.rb +1 -1
- data/lib/whop_sdk/products/client.rb +2 -2
- data/lib/whop_sdk/promo_codes/client.rb +2 -2
- data/lib/whop_sdk/refunds/client.rb +1 -2
- data/lib/whop_sdk/reviews/client.rb +59 -19
- data/lib/whop_sdk/reviews/types/delete_reviews_request.rb +11 -0
- data/lib/whop_sdk/reviews/types/delete_reviews_response.rb +13 -0
- data/lib/whop_sdk/reviews/types/list_reviews_request.rb +14 -8
- data/lib/whop_sdk/reviews/types/list_reviews_request_direction.rb +14 -0
- data/lib/whop_sdk/reviews/types/list_reviews_request_order.rb +14 -0
- data/lib/whop_sdk/reviews/types/list_reviews_response.rb +1 -2
- data/lib/whop_sdk/reviews/types/list_reviews_response_page_info.rb +17 -0
- data/lib/whop_sdk/setup_intents/client.rb +8 -10
- data/lib/whop_sdk/setup_intents/direct/client.rb +6 -7
- data/lib/whop_sdk/shipments/client.rb +2 -2
- data/lib/whop_sdk/stats/client.rb +2 -3
- data/lib/whop_sdk/stats/reports/client.rb +6 -10
- data/lib/whop_sdk/stats/time_series/client.rb +3 -8
- data/lib/whop_sdk/support_channels/client.rb +12 -4
- data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +8 -0
- data/lib/whop_sdk/swaps/client.rb +6 -6
- data/lib/whop_sdk/team_members/client.rb +7 -10
- data/lib/whop_sdk/topups/client.rb +2 -2
- data/lib/whop_sdk/trades/client.rb +6 -8
- data/lib/whop_sdk/trades/types/create_trades_request.rb +21 -1
- data/lib/whop_sdk/trades/types/create_trades_request_instrument_type.rb +14 -0
- data/lib/whop_sdk/trades/types/create_trades_request_order_type.rb +14 -0
- data/lib/whop_sdk/trades/types/create_trades_request_side.rb +14 -0
- data/lib/whop_sdk/trades/types/create_trades_request_type.rb +3 -1
- data/lib/whop_sdk/trades/types/list_trades_request_type.rb +3 -1
- data/lib/whop_sdk/transfers/client.rb +9 -9
- data/lib/whop_sdk/transfers/types/create_transfers_request_body.rb +17 -0
- data/lib/whop_sdk/transfers/types/{create_transfers_request.rb → create_transfers_request_body_balance.rb} +6 -10
- data/lib/whop_sdk/transfers/types/{create_transfers_request_feed_type.rb → create_transfers_request_body_balance_feed_type.rb} +1 -1
- data/lib/whop_sdk/transfers/types/create_transfers_request_body_claim_link.rb +18 -0
- data/lib/whop_sdk/transfers/types/create_transfers_response.rb +0 -2
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer.rb +15 -17
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/{create_transfers_request_type.rb → create_transfers_response_transfer_destination_object.rb} +3 -4
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item.rb +16 -14
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_destination.rb +18 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_origin.rb +18 -0
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data.rb +16 -18
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data.rb +16 -18
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data.rb +16 -18
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response.rb +16 -18
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination.rb +5 -5
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_object.rb +14 -0
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin.rb +5 -5
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_object.rb +14 -0
- data/lib/whop_sdk/types/account.rb +2 -2
- data/lib/whop_sdk/types/account_level.rb +19 -0
- data/lib/whop_sdk/types/account_payment_controls_restricted_payment_methods_item.rb +39 -0
- data/lib/whop_sdk/types/account_preferences.rb +2 -0
- data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
- data/lib/whop_sdk/types/ad_pixel.rb +25 -0
- data/lib/whop_sdk/types/ad_pixel_platform.rb +11 -0
- data/lib/whop_sdk/types/ad_pixel_status.rb +13 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +5 -0
- data/lib/whop_sdk/types/app.rb +3 -3
- data/lib/whop_sdk/types/app_list_item.rb +3 -3
- data/lib/whop_sdk/types/cancel_options.rb +1 -0
- data/lib/whop_sdk/types/dispute_evidence_document.rb +12 -0
- data/lib/whop_sdk/types/domain.rb +8 -0
- data/lib/whop_sdk/types/domain_apple_pay.rb +9 -0
- data/lib/whop_sdk/types/domain_apple_pay_state.rb +14 -0
- data/lib/whop_sdk/types/domain_issue.rb +2 -0
- data/lib/whop_sdk/types/domain_issue_capability.rb +3 -0
- data/lib/whop_sdk/types/domain_issue_code.rb +6 -2
- data/lib/whop_sdk/types/domain_list_item.rb +8 -0
- data/lib/whop_sdk/types/domain_pixel.rb +9 -0
- data/lib/whop_sdk/types/domain_pixel_state.rb +13 -0
- data/lib/whop_sdk/types/domain_platform.rb +9 -0
- data/lib/whop_sdk/types/domain_platform_state.rb +14 -0
- data/lib/whop_sdk/types/domain_stats.rb +9 -0
- data/lib/whop_sdk/types/domain_website.rb +1 -1
- data/lib/whop_sdk/types/domain_website_app.rb +11 -0
- data/lib/whop_sdk/types/feedback_option.rb +13 -0
- data/lib/whop_sdk/types/feedback_option_category.rb +17 -0
- data/lib/whop_sdk/types/file.rb +12 -0
- data/lib/whop_sdk/types/financing_access_change.rb +19 -0
- data/lib/whop_sdk/types/financing_access_change_disabled_payment_methods_item.rb +33 -0
- data/lib/whop_sdk/types/financing_access_change_object.rb +11 -0
- data/lib/whop_sdk/types/financing_access_change_provider.rb +15 -0
- data/lib/whop_sdk/types/financing_access_change_reason.rb +11 -0
- data/lib/whop_sdk/types/member.rb +10 -0
- data/lib/whop_sdk/types/member_most_recent_action.rb +23 -0
- data/lib/whop_sdk/types/member_note.rb +19 -0
- data/lib/whop_sdk/types/membership.rb +24 -0
- data/lib/whop_sdk/types/membership_cancel_option.rb +18 -0
- data/lib/whop_sdk/types/membership_collection_method.rb +12 -0
- data/lib/whop_sdk/types/membership_feedback_option.rb +9 -0
- data/lib/whop_sdk/types/membership_legacy.rb +2 -0
- data/lib/whop_sdk/types/membership_legacy_feedback_option.rb +11 -0
- data/lib/whop_sdk/types/membership_list_item.rb +2 -0
- data/lib/whop_sdk/types/membership_list_item_feedback_option.rb +11 -0
- data/lib/whop_sdk/types/membership_most_recent_action.rb +21 -0
- data/lib/whop_sdk/types/membership_product.rb +13 -0
- data/lib/whop_sdk/types/owner_level.rb +17 -0
- data/lib/whop_sdk/types/owner_level_points.rb +13 -0
- data/lib/whop_sdk/types/partner_advance.rb +41 -0
- data/lib/whop_sdk/types/partner_advance_status.rb +17 -0
- data/lib/whop_sdk/types/payment.rb +2 -2
- data/lib/whop_sdk/types/payment_input.rb +1 -4
- data/lib/whop_sdk/types/payment_input_plan.rb +2 -0
- data/lib/whop_sdk/types/payment_method_types.rb +3 -0
- data/lib/whop_sdk/types/payment_pdf.rb +11 -0
- data/lib/whop_sdk/types/payment_quote_located_by.rb +1 -0
- data/lib/whop_sdk/types/payment_rule_condition_value.rb +2 -2
- data/lib/whop_sdk/types/permission_action.rb +5 -0
- data/lib/whop_sdk/types/review.rb +2 -3
- data/lib/whop_sdk/types/{review_company.rb → review_account.rb} +1 -2
- data/lib/whop_sdk/types/{review_attachments_item.rb → review_attachment.rb} +1 -2
- data/lib/whop_sdk/types/review_list_item.rb +3 -4
- data/lib/whop_sdk/types/review_list_item_status.rb +11 -0
- data/lib/whop_sdk/types/review_product.rb +0 -1
- data/lib/whop_sdk/types/review_user.rb +0 -1
- data/lib/whop_sdk/types/support_channel.rb +8 -0
- data/lib/whop_sdk/types/support_channel_last_message.rb +23 -0
- data/lib/whop_sdk/types/{review_list_item_attachments_item.rb → support_channel_last_message_attachments_item.rb} +1 -5
- data/lib/whop_sdk/types/support_channel_last_message_gifs_item.rb +10 -0
- data/lib/whop_sdk/types/support_channel_last_message_poll.rb +10 -0
- data/lib/whop_sdk/types/support_channel_last_message_poll_options_item.rb +10 -0
- data/lib/whop_sdk/types/support_channel_list_item.rb +8 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message.rb +23 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_attachments_item.rb +12 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_gifs_item.rb +10 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_poll.rb +10 -0
- data/lib/whop_sdk/types/support_channel_list_item_last_message_poll_options_item.rb +10 -0
- data/lib/whop_sdk/types/trade.rb +17 -1
- data/lib/whop_sdk/types/trade_failure_code.rb +1 -0
- data/lib/whop_sdk/types/trade_instrument_type.rb +12 -0
- data/lib/whop_sdk/types/trade_order_type.rb +12 -0
- data/lib/whop_sdk/types/trade_side.rb +12 -0
- data/lib/whop_sdk/types/trade_status_detail.rb +0 -3
- data/lib/whop_sdk/types/trade_type.rb +3 -1
- data/lib/whop_sdk/types/user.rb +9 -1
- data/lib/whop_sdk/types/user_preferences.rb +2 -0
- data/lib/whop_sdk/types/user_social_link.rb +15 -0
- data/lib/whop_sdk/types/user_social_link_website.rb +18 -0
- data/lib/whop_sdk/types/webhook_event.rb +2 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +2 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +2 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +2 -0
- data/lib/whop_sdk/users/client.rb +13 -18
- data/lib/whop_sdk/users/oauth_grants/client.rb +9 -11
- data/lib/whop_sdk/users/passkeys/client.rb +3 -3
- data/lib/whop_sdk/users/preferences/client.rb +1 -2
- data/lib/whop_sdk/users/preferences/notifications/client.rb +4 -13
- data/lib/whop_sdk/users/preferences/notifications/topics/client.rb +2 -2
- data/lib/whop_sdk/users/preferences/notifications/types/set_notifications_request_preferences_item_scope.rb +3 -1
- data/lib/whop_sdk/users/preferences/types/update_preferences_request.rb +2 -0
- data/lib/whop_sdk/variants/client.rb +18 -11
- data/lib/whop_sdk/variants/types/list_variants_request.rb +2 -0
- data/lib/whop_sdk/variants/types/retrieve_variants_request.rb +2 -0
- data/lib/whop_sdk/verifications/client.rb +7 -9
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +6 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_documents.rb +18 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +2 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response.rb +2 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk/waitlist_entries/client.rb +14 -14
- data/lib/whop_sdk/webhooks/client.rb +11 -12
- data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +2 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +2 -0
- data/lib/whop_sdk.rb +152 -41
- data/reference.md +1944 -664
- metadata +152 -41
- data/lib/whop_sdk/transfers/types/create_transfers_response_send.rb +0 -20
- data/lib/whop_sdk/transfers/types/create_transfers_response_send_destination.rb +0 -13
- data/lib/whop_sdk/transfers/types/create_transfers_response_send_source.rb +0 -13
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/create_transfers_response_transfer_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/list_transfers_response_data_item_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_completed_payload_data_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_created_payload_data_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/post_transfer_failed_payload_data_origin_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_created_by_user.rb +0 -17
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_destination_user.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_company.rb +0 -15
- data/lib/whop_sdk/transfers/types/retrieve_transfers_response_origin_user.rb +0 -15
- data/lib/whop_sdk/types/payment_input_line_items_item.rb +0 -11
- data/lib/whop_sdk/types/review_list_item_user.rb +0 -14
- data/lib/whop_sdk/types/user_staff_access.rb +0 -15
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Domains
|
|
5
|
+
module Types
|
|
6
|
+
module ListDomainsRequestPixel
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING = "pending"
|
|
10
|
+
READY = "ready"
|
|
11
|
+
ACTION_REQUIRED = "action_required"
|
|
12
|
+
RELEASING = "releasing"
|
|
13
|
+
ANY = "any"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Domains
|
|
5
|
+
module Types
|
|
6
|
+
module ListDomainsRequestPlatform
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING = "pending"
|
|
10
|
+
READY = "ready"
|
|
11
|
+
ACTION_REQUIRED = "action_required"
|
|
12
|
+
RELEASING = "releasing"
|
|
13
|
+
ANY = "any"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Domains
|
|
5
|
+
module Types
|
|
6
|
+
module ListDomainsRequestRegistration
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING = "pending"
|
|
10
|
+
READY = "ready"
|
|
11
|
+
ACTION_REQUIRED = "action_required"
|
|
12
|
+
RELEASING = "releasing"
|
|
13
|
+
ANY = "any"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Domains
|
|
5
|
+
module Types
|
|
6
|
+
module ListDomainsRequestVerification
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING = "pending"
|
|
10
|
+
READY = "ready"
|
|
11
|
+
ACTION_REQUIRED = "action_required"
|
|
12
|
+
RELEASING = "releasing"
|
|
13
|
+
ANY = "any"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Domains
|
|
5
|
+
module Types
|
|
6
|
+
module ListDomainsRequestWebsite
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING = "pending"
|
|
10
|
+
READY = "ready"
|
|
11
|
+
ACTION_REQUIRED = "action_required"
|
|
12
|
+
RELEASING = "releasing"
|
|
13
|
+
ANY = "any"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -6,8 +6,12 @@ module Whop_sdk
|
|
|
6
6
|
class UpdateDomainsRequest < Internal::Types::Model
|
|
7
7
|
field :id, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :apple_pay, -> { Whop_sdk::Domains::Types::UpdateDomainsRequestApplePay }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
10
12
|
|
|
13
|
+
field :pixel, -> { Whop_sdk::Domains::Types::UpdateDomainsRequestPixel }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :registration, -> { Whop_sdk::Domains::Types::UpdateDomainsRequestRegistration }, optional: true, nullable: false
|
|
12
16
|
|
|
13
17
|
field :verification, -> { Whop_sdk::Domains::Types::UpdateDomainsRequestVerification }, optional: true, nullable: false
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Domains
|
|
5
|
+
module Types
|
|
6
|
+
# Accept Apple Pay at checkout on the domain. It needs no other capability. Whop registers the domain with Apple:
|
|
7
|
+
# it stays `pending` until Apple answers, then turns `ready`, or `action_required` when Apple couldn't fetch the
|
|
8
|
+
# domain association file. Serve the file, then check the domain to register it again. Pass `null` to turn Apple
|
|
9
|
+
# Pay off: Whop removes the domain from Apple, and the domain stays, like releasing any other capability.
|
|
10
|
+
class UpdateDomainsRequestApplePay < Internal::Types::Model; end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Domains
|
|
5
|
+
module Types
|
|
6
|
+
# Track page views on the domain with the Whop pixel. It needs no other capability: it stays `pending` until the
|
|
7
|
+
# pixel records a page view, and turns `action_required` if it goes 7 days without one. Pass `null` to stop
|
|
8
|
+
# tracking.
|
|
9
|
+
class UpdateDomainsRequestPixel < Internal::Types::Model; end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -14,12 +14,12 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Lists an account's recommendations and generation requests, newest first by default.
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
#
|
|
17
|
+
# Lists an account's recommendations and generation requests, newest first by default. When no recommendations are
|
|
18
|
+
# ready or in progress and you have `company:update` permission, listing queues generation, with a ten-minute
|
|
19
|
+
# cooldown after an unsuccessful request; unsuccessful requests are not listed. An account's executed
|
|
20
|
+
# recommendations and runs stay listed after Economic Intelligence turns off, but new recommendations are offered
|
|
21
|
+
# only while it is on. For visitor countries, page views, ad impressions and clicks, or payment volume over a time
|
|
22
|
+
# range, use `GET /stats/time_series/:metric`.
|
|
23
23
|
#
|
|
24
24
|
# @param request_options [Hash]
|
|
25
25
|
# @param params [Hash]
|
|
@@ -14,9 +14,9 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Lists identity-linked events, most recent first by default. Pass identifier for one person's journey, or omit
|
|
18
|
-
# to list
|
|
19
|
-
#
|
|
17
|
+
# Lists identity-linked events, most recent first by default. Pass `identifier` for one person's journey, or omit
|
|
18
|
+
# it to list an account's events within a time range. Events have the same shape as the `POST /events` intake:
|
|
19
|
+
# attribution in `context`, identity in `user`.
|
|
20
20
|
#
|
|
21
21
|
# @param request_options [Hash]
|
|
22
22
|
# @param params [Hash]
|
|
@@ -101,7 +101,9 @@ module Whop_sdk
|
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
# Tracks a conversion or engagement event for an account
|
|
104
|
+
# Tracks a conversion or engagement event for an account, such as a lead or a sign-up, so it can be attributed to
|
|
105
|
+
# the ads and links that drove it. Send server-side events with an API key that has `event:create`; the browser
|
|
106
|
+
# pixel calls this without authentication.
|
|
105
107
|
#
|
|
106
108
|
# @param request_options [Hash]
|
|
107
109
|
# @param params [Whop_sdk::Events::Types::CreateEventsRequest]
|
|
@@ -141,11 +143,9 @@ module Whop_sdk
|
|
|
141
143
|
end
|
|
142
144
|
end
|
|
143
145
|
|
|
144
|
-
# Returns a fully anonymized feed of recent
|
|
145
|
-
#
|
|
146
|
-
#
|
|
147
|
-
# amount, a coarse location under `user`, and a timestamp coarsened to the start of the minute; missing fields are
|
|
148
|
-
# omitted, not nulled. The payload is identical for every caller; no auth is required.
|
|
146
|
+
# Returns a fully anonymized feed of recent money movement across Whop, most recent first, such as purchases, card
|
|
147
|
+
# spend, and transfers between accounts. Each item carries only its `type`, a USD amount, a coarse location, and a
|
|
148
|
+
# timestamp coarsened to the minute. The payload is identical for every caller and requires no authentication.
|
|
149
149
|
#
|
|
150
150
|
# @param request_options [Hash]
|
|
151
151
|
# @param params [Hash]
|
|
@@ -200,13 +200,9 @@ module Whop_sdk
|
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
202
|
|
|
203
|
-
# Checks whether the Whop pixel is installed for an account
|
|
204
|
-
# an
|
|
205
|
-
#
|
|
206
|
-
# confirmation page. If the requested page hasn't sent any events lately, it is fetched and read for the pixel and
|
|
207
|
-
# conversion events wired on it. `installed` is only true when the pixel was actually seen — in the account's
|
|
208
|
-
# events or in the page. `affiliate_tracking_detected` reports an affiliate tracking SDK found on the page.
|
|
209
|
-
# Supported platforms: Everflow.
|
|
203
|
+
# Checks whether the Whop pixel is installed for an account, or on one page when you pass a `url`. Use it before
|
|
204
|
+
# launching an ad to confirm its destination is tracked, or in a setup flow to tell a merchant whether their
|
|
205
|
+
# install is live.
|
|
210
206
|
#
|
|
211
207
|
# @param request_options [Hash]
|
|
212
208
|
# @param params [Whop_sdk::Events::Types::ValidatePixelEventsRequest]
|
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Lists the experiences in an account, optionally filtered to those attached to one product or powered by one app.
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Hash]
|
|
20
20
|
# @param params [Hash]
|
|
@@ -87,6 +87,9 @@ module Whop_sdk
|
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
+
# Creates an experience for an account, powered by an app such as courses, forums, or chat. Attach it to a product
|
|
91
|
+
# with `POST /experiences/:id/attach` to give that product's customers access.
|
|
92
|
+
#
|
|
90
93
|
# Required permissions:
|
|
91
94
|
# - `experience:create`
|
|
92
95
|
#
|
|
@@ -165,6 +168,9 @@ module Whop_sdk
|
|
|
165
168
|
end
|
|
166
169
|
end
|
|
167
170
|
|
|
171
|
+
# Deletes an experience and detaches it from every product, removing customer access to it. Returns `true` on
|
|
172
|
+
# success.
|
|
173
|
+
#
|
|
168
174
|
# Required permissions:
|
|
169
175
|
# - `experience:delete`
|
|
170
176
|
#
|
|
@@ -203,6 +209,9 @@ module Whop_sdk
|
|
|
203
209
|
end
|
|
204
210
|
end
|
|
205
211
|
|
|
212
|
+
# Updates an experience's name, logo, visibility, or notification setting, or moves it to another section or
|
|
213
|
+
# position.
|
|
214
|
+
#
|
|
206
215
|
# Required permissions:
|
|
207
216
|
# - `experience:update`
|
|
208
217
|
#
|
|
@@ -246,7 +255,7 @@ module Whop_sdk
|
|
|
246
255
|
end
|
|
247
256
|
end
|
|
248
257
|
|
|
249
|
-
#
|
|
258
|
+
# Attaches an experience to a product, giving the product's customers access to it.
|
|
250
259
|
#
|
|
251
260
|
# Required permissions:
|
|
252
261
|
# - `experience:attach`
|
|
@@ -294,7 +303,7 @@ module Whop_sdk
|
|
|
294
303
|
end
|
|
295
304
|
end
|
|
296
305
|
|
|
297
|
-
#
|
|
306
|
+
# Detaches an experience from a product, removing customer access to it through that product.
|
|
298
307
|
#
|
|
299
308
|
# Required permissions:
|
|
300
309
|
# - `experience:detach`
|
|
@@ -342,12 +351,9 @@ module Whop_sdk
|
|
|
342
351
|
end
|
|
343
352
|
end
|
|
344
353
|
|
|
345
|
-
# Duplicates an
|
|
346
|
-
#
|
|
347
|
-
#
|
|
348
|
-
# experience, e.g. who can post, who can comment, etc.
|
|
349
|
-
# No content, e.g. posts, messages, lessons from within the original experience will be copied.
|
|
350
|
-
#
|
|
354
|
+
# Duplicates an experience and attaches the copy to the same products as the original. Forum and chat copies keep
|
|
355
|
+
# the original's settings, such as who can post or comment. No content, such as posts, messages, or lessons, is
|
|
356
|
+
# copied.
|
|
351
357
|
#
|
|
352
358
|
# Required permissions:
|
|
353
359
|
# - `experience:create`
|
|
@@ -14,8 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Lists experiments
|
|
18
|
-
# internal experiments, which requires Whop internal access.
|
|
17
|
+
# Lists the experiments and feature flags owned by an account. Requires `experiment:read` on the account.
|
|
19
18
|
#
|
|
20
19
|
# @param request_options [Hash]
|
|
21
20
|
# @param params [Hash]
|
|
@@ -80,7 +79,8 @@ module Whop_sdk
|
|
|
80
79
|
end
|
|
81
80
|
end
|
|
82
81
|
|
|
83
|
-
# Creates
|
|
82
|
+
# Creates an experiment or feature flag in `draft` status for an account. Nothing is served until you activate it
|
|
83
|
+
# with `POST /experiments/:id/activate`. Requires `experiment:manage` on the account.
|
|
84
84
|
#
|
|
85
85
|
# @param request_options [Hash]
|
|
86
86
|
# @param params [Whop_sdk::Experiments::Types::CreateExperimentsRequest]
|
|
@@ -92,7 +92,7 @@ module Whop_sdk
|
|
|
92
92
|
#
|
|
93
93
|
# @example
|
|
94
94
|
# client.experiments.create(
|
|
95
|
-
# account_id: "
|
|
95
|
+
# account_id: "biz_xxxxxxxxxxxxxx",
|
|
96
96
|
# flag_key: "checkout_redesign_v2"
|
|
97
97
|
# )
|
|
98
98
|
#
|
|
@@ -120,25 +120,10 @@ module Whop_sdk
|
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
-
# Evaluates and records an exposure
|
|
124
|
-
#
|
|
125
|
-
#
|
|
126
|
-
#
|
|
127
|
-
# Pass `flag_key` to check a single flag, or omit it to fetch active flags in the account and related resource
|
|
128
|
-
# scope. Internal anonymous callers may use the `x-whop-anonymous-id` header or `ajs_anonymous_id` cookie;
|
|
129
|
-
# explicit `subject[anonymous_id]` takes precedence.
|
|
130
|
-
#
|
|
131
|
-
# Assignments use exactly the configured `bucket_by`: `subject[user_id]`, `subject[account_id]`, or
|
|
132
|
-
# `subject[anonymous_id]`. Internal user experiments derive identity from the signed-in session. Missing the
|
|
133
|
-
# required identity fails single evaluation and omits the experiment from batch evaluation. Subjects outside all
|
|
134
|
-
# treatment ranges receive control.
|
|
135
|
-
#
|
|
136
|
-
# Pass `subject[account_id]` to enable account-level targeting rules. Pass `properties` as a JSON object to supply
|
|
137
|
-
# the values that `property` targeting conditions match against.
|
|
138
|
-
#
|
|
139
|
-
# Pass `log_exposure=false` to read an assignment without recording an exposure, for a client that caches
|
|
140
|
-
# assignments up front and records the exposure when the arm is actually rendered. Omitted records the exposure,
|
|
141
|
-
# so pinned callers are unchanged.
|
|
123
|
+
# Evaluates experiments and feature flags for a subject and records an exposure. Pass `flag_key` to evaluate one
|
|
124
|
+
# flag, or omit it to evaluate every active flag in the account and related resource scope. Requires no
|
|
125
|
+
# authentication; when a credential resolves, its authentication method, API key ID, and signed-in user ID are
|
|
126
|
+
# recorded on the exposure event.
|
|
142
127
|
#
|
|
143
128
|
# @param request_options [Hash]
|
|
144
129
|
# @param params [Hash]
|
|
@@ -189,8 +174,8 @@ module Whop_sdk
|
|
|
189
174
|
end
|
|
190
175
|
end
|
|
191
176
|
|
|
192
|
-
# Retrieves
|
|
193
|
-
#
|
|
177
|
+
# Retrieves an experiment or feature flag by its `expt_` ID or `flag_key` handle. Requires `experiment:read` on
|
|
178
|
+
# the owning account.
|
|
194
179
|
#
|
|
195
180
|
# @param request_options [Hash]
|
|
196
181
|
# @param params [Hash]
|
|
@@ -232,11 +217,9 @@ module Whop_sdk
|
|
|
232
217
|
end
|
|
233
218
|
end
|
|
234
219
|
|
|
235
|
-
# Updates the targeting rules, treatment allocation,
|
|
236
|
-
#
|
|
237
|
-
#
|
|
238
|
-
# update. Requires the corresponding experiment permission on the owning account, or Whop internal access for
|
|
239
|
-
# internal experiments.
|
|
220
|
+
# Updates the targeting rules, treatment allocation, or hypothesis of an existing experiment or feature flag. To
|
|
221
|
+
# change its lifecycle, use the `activate`, `pause`, and `end` endpoints instead. Requires `experiment:manage` on
|
|
222
|
+
# the owning account.
|
|
240
223
|
#
|
|
241
224
|
# @param request_options [Hash]
|
|
242
225
|
# @param params [Whop_sdk::Experiments::Types::UpdateExperimentsRequest]
|
|
@@ -285,8 +268,7 @@ module Whop_sdk
|
|
|
285
268
|
|
|
286
269
|
# Starts (or resumes) an experiment or feature flag so evaluation begins serving it. Activating a draft stamps
|
|
287
270
|
# `started_at`; resuming a paused experiment keeps the original start. Only drafts and paused experiments can be
|
|
288
|
-
# activated. Requires
|
|
289
|
-
# internal experiments.
|
|
271
|
+
# activated. Requires `experiment:manage` on the owning account.
|
|
290
272
|
#
|
|
291
273
|
# @param request_options [Hash]
|
|
292
274
|
# @param params [Whop_sdk::Experiments::Types::ActivateExperimentsRequest]
|
|
@@ -335,7 +317,7 @@ module Whop_sdk
|
|
|
335
317
|
|
|
336
318
|
# Concludes the experiment and records required `findings`. Pass `winning_arm` to serve the winning treatment to
|
|
337
319
|
# everyone; omit it when control won. Ended experiments cannot restart, but may be ended again to correct the
|
|
338
|
-
# winner. Requires experiment:manage on the account
|
|
320
|
+
# winner. Requires `experiment:manage` on the owning account.
|
|
339
321
|
#
|
|
340
322
|
# @param request_options [Hash]
|
|
341
323
|
# @param params [Whop_sdk::Experiments::Types::EndExperimentsRequest]
|
|
@@ -386,8 +368,8 @@ module Whop_sdk
|
|
|
386
368
|
end
|
|
387
369
|
|
|
388
370
|
# Pauses an active experiment or feature flag: evaluation stops serving it and exposures stop flowing. Assignments
|
|
389
|
-
# are keyed on stable identity, so users return to their original arm when the experiment resumes. Requires
|
|
390
|
-
#
|
|
371
|
+
# are keyed on stable identity, so users return to their original arm when the experiment resumes. Requires
|
|
372
|
+
# `experiment:manage` on the owning account.
|
|
391
373
|
#
|
|
392
374
|
# @param request_options [Hash]
|
|
393
375
|
# @param params [Hash]
|
|
@@ -69,7 +69,7 @@ module Whop_sdk
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# Starts an asynchronous export of a resource for an account. Returns the export in `pending`; poll `GET
|
|
72
|
-
# /exports
|
|
72
|
+
# /exports/:id` until `download_url` is set.
|
|
73
73
|
#
|
|
74
74
|
# @param request_options [Hash]
|
|
75
75
|
# @param params [Whop_sdk::Exports::Types::CreateExportsRequest]
|
|
@@ -122,11 +122,9 @@ module Whop_sdk
|
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
# Starts an OAuth connection flow and returns an authorize_url
|
|
126
|
-
#
|
|
127
|
-
#
|
|
128
|
-
# advertising connections only and require advertise. Personal profile connections must be completed in a browser
|
|
129
|
-
# signed in as the initiating Whop user.
|
|
125
|
+
# Starts an OAuth connection flow and returns an `authorize_url` to send the user to, where they connect an
|
|
126
|
+
# external account. Personal profile connections must be completed in a browser signed in as the Whop user who
|
|
127
|
+
# started the flow.
|
|
130
128
|
#
|
|
131
129
|
# @param request_options [Hash]
|
|
132
130
|
# @param params [Whop_sdk::ExternalAccounts::Types::ConnectExternalAccountsRequest]
|
|
@@ -14,8 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
18
|
-
# the platform default markups.
|
|
17
|
+
# Lists the fee markups configured for an account. For a platform account, returns the platform's default markups.
|
|
19
18
|
#
|
|
20
19
|
# Required permissions:
|
|
21
20
|
# - `company:update_child_fees`
|
|
@@ -79,8 +78,8 @@ module Whop_sdk
|
|
|
79
78
|
end
|
|
80
79
|
end
|
|
81
80
|
|
|
82
|
-
#
|
|
83
|
-
# updated with the new values.
|
|
81
|
+
# Creates or updates an account's markup for one fee type. If the account already has a markup for that
|
|
82
|
+
# `fee_type`, it is updated with the new values.
|
|
84
83
|
#
|
|
85
84
|
# Required permissions:
|
|
86
85
|
# - `company:update_child_fees`
|
|
@@ -123,8 +122,8 @@ module Whop_sdk
|
|
|
123
122
|
end
|
|
124
123
|
end
|
|
125
124
|
|
|
126
|
-
#
|
|
127
|
-
#
|
|
125
|
+
# Deletes a fee markup, removing the custom fee override so the account reverts to its parent account's default
|
|
126
|
+
# fees.
|
|
128
127
|
#
|
|
129
128
|
# Required permissions:
|
|
130
129
|
# - `company:update_child_fees`
|
|
@@ -14,9 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Submits an issue or an unanswered question to Whop for
|
|
18
|
-
#
|
|
19
|
-
# sent. Accepts user, account, and app credentials.
|
|
17
|
+
# Submits an issue or an unanswered question to Whop for review, recorded under the authenticated user, account,
|
|
18
|
+
# or app. Returns a receipt once the submission is accepted; processing is asynchronous and no reply is sent.
|
|
20
19
|
#
|
|
21
20
|
# @param request_options [Hash]
|
|
22
21
|
# @param params [Whop_sdk::FeedbackSubmissions::Types::CreateFeedbackSubmissionsRequest]
|
|
@@ -16,8 +16,8 @@ module Whop_sdk
|
|
|
16
16
|
|
|
17
17
|
# Returns the files with the given IDs, newest first — fetch a batch in one request instead of retrieving each
|
|
18
18
|
# file individually. Only files you created are returned; IDs that do not exist, or that another credential
|
|
19
|
-
# created, are omitted.
|
|
20
|
-
#
|
|
19
|
+
# created, are omitted. For a batch larger than one page, follow `page_info` with the same `file_ids` to walk the
|
|
20
|
+
# rest.
|
|
21
21
|
#
|
|
22
22
|
# @param request_options [Hash]
|
|
23
23
|
# @param params [Hash]
|
|
@@ -15,7 +15,9 @@ module Whop_sdk
|
|
|
15
15
|
@environment = environment
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
#
|
|
18
|
+
# Breaks one bucket of a financial report, such as payments received or card spend, into the customers,
|
|
19
|
+
# accounts, merchants, or campaigns that contributed most, with the rest summed as a remainder. Use it to
|
|
20
|
+
# explain a total from `GET /financial_reports`.
|
|
19
21
|
#
|
|
20
22
|
# @param request_options [Hash]
|
|
21
23
|
# @param params [Hash]
|
|
@@ -86,7 +86,7 @@ module Whop_sdk
|
|
|
86
86
|
end
|
|
87
87
|
|
|
88
88
|
# Create a new forum post or comment within an experience. Supports text content, attachments, polls, paywalling,
|
|
89
|
-
# and pinning.
|
|
89
|
+
# and pinning.
|
|
90
90
|
#
|
|
91
91
|
# Required permissions:
|
|
92
92
|
# - `forum:post:create`
|
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Returns a paginated list of forums
|
|
17
|
+
# Returns a paginated list of forums for an account, with optional filtering by product.
|
|
18
18
|
#
|
|
19
19
|
# Required permissions:
|
|
20
20
|
# - `forum:read`
|
|
@@ -14,9 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
# under a parent).
|
|
17
|
+
# Lists the identity profiles currently linked to an account, or to every account you can read when `account_id`
|
|
18
|
+
# is omitted.
|
|
20
19
|
#
|
|
21
20
|
# Required permissions:
|
|
22
21
|
# - `identity:read`
|
|
@@ -124,7 +123,8 @@ module Whop_sdk
|
|
|
124
123
|
end
|
|
125
124
|
end
|
|
126
125
|
|
|
127
|
-
# Unlinks an
|
|
126
|
+
# Unlinks an identity profile from the account or user that owns `ledger_account_id`. Requires `identity:write` on
|
|
127
|
+
# that account or user.
|
|
128
128
|
#
|
|
129
129
|
# @param request_options [Hash]
|
|
130
130
|
# @param params [Hash]
|
|
@@ -35,7 +35,7 @@ module Whop_sdk
|
|
|
35
35
|
@default_headers = {
|
|
36
36
|
"X-Fern-Language": "Ruby",
|
|
37
37
|
"X-Fern-SDK-Name": "whop_sdk",
|
|
38
|
-
"X-Fern-SDK-Version": "2.
|
|
38
|
+
"X-Fern-SDK-Version": "2.5.0"
|
|
39
39
|
}.merge(headers)
|
|
40
40
|
@overridable_headers = overridable_headers.to_set { |name| name.to_s.downcase }
|
|
41
41
|
end
|
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Returns a paginated list of invoices for
|
|
17
|
+
# Returns a paginated list of invoices for an account, with optional filtering by product, status, collection
|
|
18
18
|
# method, and creation date.
|
|
19
19
|
#
|
|
20
20
|
# Required permissions:
|
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Lists an account's leads, newest first.
|
|
18
18
|
#
|
|
19
19
|
# Required permissions:
|
|
20
20
|
# - `lead:basic:read`
|
|
@@ -89,7 +89,7 @@ module Whop_sdk
|
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
#
|
|
92
|
+
# Records a lead: a potential customer's interest in an account or one of its products.
|
|
93
93
|
#
|
|
94
94
|
# Required permissions:
|
|
95
95
|
# - `lead:manage`
|
|
@@ -175,7 +175,7 @@ module Whop_sdk
|
|
|
175
175
|
end
|
|
176
176
|
end
|
|
177
177
|
|
|
178
|
-
#
|
|
178
|
+
# Updates a lead's `metadata` or `referrer`.
|
|
179
179
|
#
|
|
180
180
|
# Required permissions:
|
|
181
181
|
# - `lead:manage`
|
|
@@ -28,6 +28,11 @@ module Whop_sdk
|
|
|
28
28
|
# @option params [Whop_sdk::Members::Types::ListMembersRequestAccessLevel, nil] :access_level
|
|
29
29
|
# @option params [Whop_sdk::Members::Types::ListMembersRequestStatus, nil] :status
|
|
30
30
|
# @option params [String, nil] :user_ids
|
|
31
|
+
# @option params [Whop_sdk::Members::Types::ListMembersRequestMostRecentActionsItem, nil] :most_recent_actions
|
|
32
|
+
# @option params [Whop_sdk::Members::Types::ListMembersRequestMembershipStatus, nil] :membership_status
|
|
33
|
+
# @option params [String, nil] :product_ids
|
|
34
|
+
# @option params [String, nil] :plan_ids
|
|
35
|
+
# @option params [String, nil] :promo_code_ids
|
|
31
36
|
# @option params [String, nil] :query
|
|
32
37
|
# @option params [String, nil] :created_after
|
|
33
38
|
# @option params [String, nil] :created_before
|
|
@@ -39,7 +44,12 @@ module Whop_sdk
|
|
|
39
44
|
# @option params [String, nil] :before
|
|
40
45
|
#
|
|
41
46
|
# @example
|
|
42
|
-
# client.members.list(
|
|
47
|
+
# client.members.list(
|
|
48
|
+
# user_ids: ["user_xxxxxxxxxxxxxx"],
|
|
49
|
+
# product_ids: ["prod_xxxxxxxxxxxxx"],
|
|
50
|
+
# plan_ids: ["plan_xxxxxxxxxxxxx"],
|
|
51
|
+
# promo_code_ids: ["promo_xxxxxxxxxxxx"]
|
|
52
|
+
# )
|
|
43
53
|
#
|
|
44
54
|
# @return [Whop_sdk::Members::Types::ListMembersResponse]
|
|
45
55
|
def list(request_options: {}, **params)
|
|
@@ -49,6 +59,11 @@ module Whop_sdk
|
|
|
49
59
|
query_params["access_level"] = params[:access_level] if params.key?(:access_level)
|
|
50
60
|
query_params["status"] = params[:status] if params.key?(:status)
|
|
51
61
|
query_params["user_ids"] = params[:user_ids] if params.key?(:user_ids)
|
|
62
|
+
query_params["most_recent_actions"] = params[:most_recent_actions] if params.key?(:most_recent_actions)
|
|
63
|
+
query_params["membership_status"] = params[:membership_status] if params.key?(:membership_status)
|
|
64
|
+
query_params["product_ids"] = params[:product_ids] if params.key?(:product_ids)
|
|
65
|
+
query_params["plan_ids"] = params[:plan_ids] if params.key?(:plan_ids)
|
|
66
|
+
query_params["promo_code_ids"] = params[:promo_code_ids] if params.key?(:promo_code_ids)
|
|
52
67
|
query_params["query"] = params[:query] if params.key?(:query)
|
|
53
68
|
query_params["created_after"] = params[:created_after] if params.key?(:created_after)
|
|
54
69
|
query_params["created_before"] = params[:created_before] if params.key?(:created_before)
|
|
@@ -129,6 +144,11 @@ module Whop_sdk
|
|
|
129
144
|
def logs
|
|
130
145
|
@logs ||= Whop_sdk::Members::Logs::Client.new(client: @client, base_url: @base_url, environment: @environment)
|
|
131
146
|
end
|
|
147
|
+
|
|
148
|
+
# @return [Whop_sdk::Notes::Client]
|
|
149
|
+
def notes
|
|
150
|
+
@notes ||= Whop_sdk::Members::Notes::Client.new(client: @client, base_url: @base_url, environment: @environment)
|
|
151
|
+
end
|
|
132
152
|
end
|
|
133
153
|
end
|
|
134
154
|
end
|