whop_sdk 2.4.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 +313 -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/{partners/types/referred_users_partners_request_user_id.rb → accounts/types/post_account_financing_disabled_payload_api_version.rb} +3 -3
- 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/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 +2 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +2 -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/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 +5 -6
- 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 +1 -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 +4 -0
- 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 +4 -0
- 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/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 -8
- 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 +16 -29
- 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 +0 -1
- 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/partner_referral_requests/client.rb +3 -3
- 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 +2 -2
- 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 +26 -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/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 +1 -1
- 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 +6 -3
- 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/api_key_api_version_date.rb +2 -0
- 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 +6 -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 +2 -0
- data/lib/whop_sdk/types/domain_issue_code.rb +6 -2
- data/lib/whop_sdk/types/domain_list_item.rb +6 -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_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 -0
- 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_rule_condition_value.rb +2 -2
- data/lib/whop_sdk/types/permission_action.rb +3 -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 +7 -1
- 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 +1 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +1 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +1 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +1 -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/variants/client.rb +10 -9
- 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 +1 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +1 -0
- data/lib/whop_sdk.rb +99 -9
- data/reference.md +1431 -573
- metadata +99 -9
- 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
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Lists an account's shipments.
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Hash]
|
|
20
20
|
# @param params [Hash]
|
|
@@ -123,7 +123,7 @@ module Whop_sdk
|
|
|
123
123
|
end
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
# Retrieves a shipment by its
|
|
126
|
+
# Retrieves a shipment by its ID, or by the ID of the payment it fulfills.
|
|
127
127
|
#
|
|
128
128
|
# @param request_options [Hash]
|
|
129
129
|
# @param params [Hash]
|
|
@@ -14,9 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Deprecated. Lists every metric
|
|
18
|
-
#
|
|
19
|
-
# /stats/reports`.
|
|
17
|
+
# Deprecated. Lists every metric without saying which ones you can chart. List chartable metrics with `GET
|
|
18
|
+
# /stats/time_series`, and aggregates that are not bucketed over time with `GET /stats/reports`.
|
|
20
19
|
#
|
|
21
20
|
# @param request_options [Hash]
|
|
22
21
|
# @param _params [Hash]
|
|
@@ -15,11 +15,9 @@ module Whop_sdk
|
|
|
15
15
|
@environment = environment
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Lists every report: the aggregates that are not bucketed over time
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
# sets its JSON type, the aggregate that says how to combine it across rows, and the breakdowns and windows it
|
|
22
|
-
# supports. For a bucketed series, use `GET /stats/time_series`.
|
|
18
|
+
# Lists every report: the aggregates that are not bucketed over time, with the breakdowns and columns each one
|
|
19
|
+
# accepts. Use it to discover what a report can return before you retrieve it. For a bucketed series, use `GET
|
|
20
|
+
# /stats/time_series`.
|
|
23
21
|
#
|
|
24
22
|
# @param request_options [Hash]
|
|
25
23
|
# @param _params [Hash]
|
|
@@ -54,11 +52,9 @@ module Whop_sdk
|
|
|
54
52
|
end
|
|
55
53
|
end
|
|
56
54
|
|
|
57
|
-
#
|
|
58
|
-
# account country or customer country
|
|
59
|
-
#
|
|
60
|
-
# value with fewer than three businesses behind it is left out, and a filtered total that small comes back with
|
|
61
|
-
# every metric `null`.
|
|
55
|
+
# Retrieves payments across all of Whop for up to four windows at once, optionally broken down by business type,
|
|
56
|
+
# industry type, account country or customer country. The report covers the whole platform, so it takes no
|
|
57
|
+
# `account_id` and any authenticated caller can read it.
|
|
62
58
|
#
|
|
63
59
|
# @param request_options [Hash]
|
|
64
60
|
# @param params [Hash]
|
|
@@ -51,14 +51,9 @@ module Whop_sdk
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
# Retrieves a metric as a
|
|
55
|
-
#
|
|
56
|
-
# requires no authentication.
|
|
57
|
-
# event inside from/to anchors the cohort, breakdown and conversion window; later entries do not restart it.
|
|
58
|
-
# Intervening events are allowed, and conversions may occur after to. Funnel values are final conversion
|
|
59
|
-
# percentages; steps include counts and cumulative conversion percentages. Experiment funnels use
|
|
60
|
-
# experiment.exposure as step 1 and breakdown_by=variant. Pass steps using bracket parameters such as
|
|
61
|
-
# steps[1][event]=pixel.page&steps[1][page]=/pricing*&steps[2][event]=payment.completed.
|
|
54
|
+
# Retrieves a metric as a series of points over a time range for an account or user. For an aggregate that is
|
|
55
|
+
# not bucketed over time, use a report from `GET /stats/reports`. The `market_prices` metric is public and
|
|
56
|
+
# requires no authentication.
|
|
62
57
|
#
|
|
63
58
|
# @param request_options [Hash]
|
|
64
59
|
# @param params [Hash]
|
|
@@ -14,8 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
18
|
-
#
|
|
17
|
+
# Lists support channels between an account's team and its customers, most recently active first by default. Pass
|
|
18
|
+
# `open=true` to find channels awaiting a support response.
|
|
19
19
|
#
|
|
20
20
|
# Required permissions:
|
|
21
21
|
# - `support_chat:read`
|
|
@@ -33,6 +33,10 @@ module Whop_sdk
|
|
|
33
33
|
# @option params [Integer, nil] :last
|
|
34
34
|
# @option params [Whop_sdk::Types::SupportChannelView, nil] :view
|
|
35
35
|
# @option params [Boolean, nil] :open
|
|
36
|
+
# @option params [String, nil] :customer_user_id
|
|
37
|
+
# @option params [Boolean, nil] :participated
|
|
38
|
+
# @option params [Boolean, nil] :include_last_message
|
|
39
|
+
# @option params [Boolean, nil] :include_participated
|
|
36
40
|
# @option params [Whop_sdk::Types::Direction, nil] :direction
|
|
37
41
|
# @option params [Whop_sdk::Types::MessageChannelOrder, nil] :order
|
|
38
42
|
# @option params [String, nil] :account_id
|
|
@@ -54,6 +58,10 @@ module Whop_sdk
|
|
|
54
58
|
query_params["last"] = params[:last] if params.key?(:last)
|
|
55
59
|
query_params["view"] = params[:view] if params.key?(:view)
|
|
56
60
|
query_params["open"] = params[:open] if params.key?(:open)
|
|
61
|
+
query_params["customer_user_id"] = params[:customer_user_id] if params.key?(:customer_user_id)
|
|
62
|
+
query_params["participated"] = params[:participated] if params.key?(:participated)
|
|
63
|
+
query_params["include_last_message"] = params[:include_last_message] if params.key?(:include_last_message)
|
|
64
|
+
query_params["include_participated"] = params[:include_participated] if params.key?(:include_participated)
|
|
57
65
|
query_params["direction"] = params[:direction] if params.key?(:direction)
|
|
58
66
|
query_params["order"] = params[:order] if params.key?(:order)
|
|
59
67
|
query_params["account_id"] = params[:account_id] if params.key?(:account_id)
|
|
@@ -87,8 +95,8 @@ module Whop_sdk
|
|
|
87
95
|
end
|
|
88
96
|
end
|
|
89
97
|
|
|
90
|
-
#
|
|
91
|
-
# already
|
|
98
|
+
# Opens a support channel between an account's team and a customer. Returns the existing channel if that customer
|
|
99
|
+
# already has one.
|
|
92
100
|
#
|
|
93
101
|
# Required permissions:
|
|
94
102
|
# - `support_chat:create`
|
|
@@ -16,6 +16,14 @@ module Whop_sdk
|
|
|
16
16
|
|
|
17
17
|
field :open, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
18
18
|
|
|
19
|
+
field :customer_user_id, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :participated, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
22
|
+
|
|
23
|
+
field :include_last_message, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
24
|
+
|
|
25
|
+
field :include_participated, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
26
|
+
|
|
19
27
|
field :direction, -> { Whop_sdk::Types::Direction }, optional: true, nullable: false
|
|
20
28
|
|
|
21
29
|
field :order, -> { Whop_sdk::Types::MessageChannelOrder }, optional: true, nullable: false
|
|
@@ -14,7 +14,7 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
17
|
+
# Lists the completed or pending swaps for an account or user — currently only the most recent one.
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [Hash]
|
|
20
20
|
# @param params [Hash]
|
|
@@ -57,8 +57,8 @@ module Whop_sdk
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
# Swaps one token for another
|
|
61
|
-
#
|
|
60
|
+
# Swaps one token for another in an account or user's wallet, or converts between their fiat balances at the
|
|
61
|
+
# mid-market rate. Crypto swaps finish in the background — retrieve the swap to follow its status.
|
|
62
62
|
#
|
|
63
63
|
# @param request_options [Hash]
|
|
64
64
|
# @param params [Whop_sdk::Swaps::Types::CreateSwapsRequest]
|
|
@@ -98,8 +98,8 @@ module Whop_sdk
|
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
# Previews the price of a swap. Fiat pairs quote the
|
|
102
|
-
# swap fills at. No funds move and
|
|
101
|
+
# Previews the price of a swap before you create it. Fiat pairs quote the mid-market rate — the same rate creating
|
|
102
|
+
# the swap fills at. No funds move, nothing is saved, and no authentication is required.
|
|
103
103
|
#
|
|
104
104
|
# @param request_options [Hash]
|
|
105
105
|
# @param params [Whop_sdk::Swaps::Types::CreateQuoteSwapsRequest]
|
|
@@ -140,7 +140,7 @@ module Whop_sdk
|
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
# Retrieves a
|
|
143
|
+
# Retrieves a swap and its status. Poll it after creating a crypto swap, which finishes in the background.
|
|
144
144
|
#
|
|
145
145
|
# @param request_options [Hash]
|
|
146
146
|
# @param params [Hash]
|
|
@@ -14,11 +14,9 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Lists an account's team members, including pending invites
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
# may list only its own joined membership by passing its own `user_id` and `status=joined`. Listing
|
|
21
|
-
# `role=workforce` is also allowed with the `bounty:create` scope.
|
|
17
|
+
# Lists an account's team members, including pending invites. A user credential with `company:basic:read` may list
|
|
18
|
+
# only its own joined membership by passing its own `user_id` and `status=joined`. Listing `role=workforce` is
|
|
19
|
+
# also allowed with the `bounty:create` scope.
|
|
22
20
|
#
|
|
23
21
|
# @param request_options [Hash]
|
|
24
22
|
# @param params [Hash]
|
|
@@ -91,9 +89,9 @@ module Whop_sdk
|
|
|
91
89
|
|
|
92
90
|
# Adds a member to an account's team with a system role. Identify them by exactly one of `user_id` or `email`. If
|
|
93
91
|
# the person has not yet accepted — or the email does not belong to a Whop account yet — an invitation is sent
|
|
94
|
-
# instead and the response is `202` with `
|
|
95
|
-
#
|
|
96
|
-
#
|
|
92
|
+
# instead and the response is `202` with an `object` of `team_member_invite`. If they already have a pending
|
|
93
|
+
# invite, the request fails with a `400`. Granting the `workforce` role is also allowed with the `bounty:create`
|
|
94
|
+
# scope.
|
|
97
95
|
#
|
|
98
96
|
# @param request_options [Hash]
|
|
99
97
|
# @param params [Whop_sdk::TeamMembers::Types::CreateTeamMembersRequest]
|
|
@@ -133,8 +131,7 @@ module Whop_sdk
|
|
|
133
131
|
end
|
|
134
132
|
end
|
|
135
133
|
|
|
136
|
-
# Retrieves a team member by ID.
|
|
137
|
-
# otherwise.
|
|
134
|
+
# Retrieves a team member or pending invite by ID.
|
|
138
135
|
#
|
|
139
136
|
# @param request_options [Hash]
|
|
140
137
|
# @param params [Hash]
|
|
@@ -14,8 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Add funds to
|
|
18
|
-
# do not count as revenue.
|
|
17
|
+
# Add funds to an account's platform balance by charging a stored payment method. Top-ups have no fees or taxes
|
|
18
|
+
# and do not count as revenue.
|
|
19
19
|
#
|
|
20
20
|
# Required permissions:
|
|
21
21
|
# - `payment:charge`
|
|
@@ -80,12 +80,11 @@ module Whop_sdk
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
# time for each wallet. A retry with the same `Idempotency-Key` returns the same trade.
|
|
83
|
+
# Places an order, closes a perpetual position, or deposits to or withdraws from the trading balance, from the
|
|
84
|
+
# Whop-managed wallet of an account or user. Answers `201` with the trade in `pending`; it runs in the background,
|
|
85
|
+
# so read it with `GET /trades/:id` until its `status` is `completed`, `failed` or `in_review`. Trades run
|
|
86
|
+
# alongside each other, except a second order on one market at a different leverage, which answers `409`. A retry
|
|
87
|
+
# with the same `Idempotency-Key` returns the same trade.
|
|
89
88
|
#
|
|
90
89
|
# @param request_options [Hash]
|
|
91
90
|
# @param params [Whop_sdk::Trades::Types::CreateTradesRequest]
|
|
@@ -98,8 +97,7 @@ module Whop_sdk
|
|
|
98
97
|
# @example
|
|
99
98
|
# client.trades.create(
|
|
100
99
|
# account_id: "biz_xxxxxxxxxxxxxx",
|
|
101
|
-
#
|
|
102
|
-
# type: "buy"
|
|
100
|
+
# type: "close"
|
|
103
101
|
# )
|
|
104
102
|
#
|
|
105
103
|
# @return [Whop_sdk::Types::Trade]
|
|
@@ -8,9 +8,29 @@ module Whop_sdk
|
|
|
8
8
|
|
|
9
9
|
field :amount, -> { String }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :client_order_id, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :instrument_type, -> { Whop_sdk::Trades::Types::CreateTradesRequestInstrumentType }, optional: true, nullable: false
|
|
14
|
+
|
|
11
15
|
field :leverage, -> { Integer }, optional: true, nullable: false
|
|
12
16
|
|
|
13
|
-
field :market, -> { String }, optional:
|
|
17
|
+
field :market, -> { String }, optional: true, nullable: false
|
|
18
|
+
|
|
19
|
+
field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :notional, -> { String }, optional: true, nullable: false
|
|
22
|
+
|
|
23
|
+
field :order_type, -> { Whop_sdk::Trades::Types::CreateTradesRequestOrderType }, optional: true, nullable: false
|
|
24
|
+
|
|
25
|
+
field :price, -> { String }, optional: true, nullable: false
|
|
26
|
+
|
|
27
|
+
field :reduce_only, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
28
|
+
|
|
29
|
+
field :side, -> { Whop_sdk::Trades::Types::CreateTradesRequestSide }, optional: true, nullable: false
|
|
30
|
+
|
|
31
|
+
field :size, -> { String }, optional: true, nullable: false
|
|
32
|
+
|
|
33
|
+
field :slippage_bps, -> { Integer }, optional: true, nullable: false
|
|
14
34
|
|
|
15
35
|
field :type, -> { Whop_sdk::Trades::Types::CreateTradesRequestType }, optional: false, nullable: false
|
|
16
36
|
end
|
|
@@ -14,7 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# Lists transfers
|
|
17
|
+
# Lists the transfers you can see, sent or received, newest first by default. Optional account filters narrow the
|
|
18
|
+
# results.
|
|
18
19
|
#
|
|
19
20
|
# @param request_options [Hash]
|
|
20
21
|
# @param params [Hash]
|
|
@@ -81,7 +82,8 @@ module Whop_sdk
|
|
|
81
82
|
end
|
|
82
83
|
end
|
|
83
84
|
|
|
84
|
-
# Moves money between
|
|
85
|
+
# Moves money between Whop balances, sends USDT from an account's wallet, or funds a claim link anyone with the
|
|
86
|
+
# URL can redeem. The `type` you send decides which object comes back.
|
|
85
87
|
#
|
|
86
88
|
# @param request_options [Hash]
|
|
87
89
|
# @param params [Whop_sdk::Transfers::Types::CreateTransfersRequestBody]
|
|
@@ -118,7 +120,8 @@ module Whop_sdk
|
|
|
118
120
|
end
|
|
119
121
|
end
|
|
120
122
|
|
|
121
|
-
# Lists the people and accounts you can send money to.
|
|
123
|
+
# Lists the people and accounts you can send money to from a balance. Pass a result's ID as `destination_id` when
|
|
124
|
+
# creating a transfer.
|
|
122
125
|
#
|
|
123
126
|
# @param request_options [Hash]
|
|
124
127
|
# @param params [Hash]
|
|
@@ -47,12 +47,12 @@ module Whop_sdk
|
|
|
47
47
|
|
|
48
48
|
field :id, -> { String }, optional: false, nullable: false
|
|
49
49
|
|
|
50
|
-
field :industry_group, -> { String }, optional: false, nullable: true
|
|
51
|
-
|
|
52
50
|
field :industry_type, -> { String }, optional: false, nullable: true
|
|
53
51
|
|
|
54
52
|
field :invoice_prefix, -> { String }, optional: false, nullable: true
|
|
55
53
|
|
|
54
|
+
field :level, -> { Whop_sdk::Types::AccountLevel }, optional: false, nullable: true
|
|
55
|
+
|
|
56
56
|
field :logo_url, -> { String }, optional: false, nullable: true
|
|
57
57
|
|
|
58
58
|
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
class AccountLevel < Internal::Types::Model
|
|
6
|
+
field :boosted, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :current, -> { Integer }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :points, -> { Integer }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :points_by_source, -> { Whop_sdk::Types::OwnerLevelPoints }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :points_to_next, -> { Integer }, optional: false, nullable: true
|
|
15
|
+
|
|
16
|
+
field :resets_at, -> { String }, optional: false, nullable: false
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -9,6 +9,45 @@ module Whop_sdk
|
|
|
9
9
|
CARD_MASTERCARD = "card_mastercard"
|
|
10
10
|
CARD_AMERICAN_EXPRESS = "card_american_express"
|
|
11
11
|
CARD_DISCOVER_GLOBAL_NETWORK = "card_discover_global_network"
|
|
12
|
+
ADDI = "addi"
|
|
13
|
+
AFFIRM = "affirm"
|
|
14
|
+
AFTERPAY_CLEARPAY = "afterpay_clearpay"
|
|
15
|
+
ALMA = "alma"
|
|
16
|
+
BILLIE = "billie"
|
|
17
|
+
CAPCHASE_PAY = "capchase_pay"
|
|
18
|
+
CLARITYPAY = "claritypay"
|
|
19
|
+
FLEX_PAY = "flex_pay"
|
|
20
|
+
KLARNA = "klarna"
|
|
21
|
+
KRIYA = "kriya"
|
|
22
|
+
KUESKI = "kueski"
|
|
23
|
+
MONDU = "mondu"
|
|
24
|
+
ONEY = "oney"
|
|
25
|
+
SCALAPAY = "scalapay"
|
|
26
|
+
SEQURA = "sequra"
|
|
27
|
+
SEZZLE = "sezzle"
|
|
28
|
+
SPLITIT = "splitit"
|
|
29
|
+
SUNBIT = "sunbit"
|
|
30
|
+
TABBY = "tabby"
|
|
31
|
+
TAMARA = "tamara"
|
|
32
|
+
ZIP = "zip"
|
|
33
|
+
CARD_INSTALLMENTS_THREE = "card_installments_three"
|
|
34
|
+
CARD_INSTALLMENTS_SIX = "card_installments_six"
|
|
35
|
+
CARD_INSTALLMENTS_TWELVE = "card_installments_twelve"
|
|
36
|
+
ONEY3X = "oney_3x"
|
|
37
|
+
ONEY4X = "oney_4x"
|
|
38
|
+
KLARNA_PAY_NOW = "klarna_pay_now"
|
|
39
|
+
US_BANK_ACCOUNT = "us_bank_account"
|
|
40
|
+
SEPA_DEBIT = "sepa_debit"
|
|
41
|
+
BACS_DEBIT = "bacs_debit"
|
|
42
|
+
AU_BECS_DEBIT = "au_becs_debit"
|
|
43
|
+
ACSS_DEBIT = "acss_debit"
|
|
44
|
+
PAY_BY_BANK = "pay_by_bank"
|
|
45
|
+
PAYTO = "payto"
|
|
46
|
+
PAYPAL = "paypal"
|
|
47
|
+
CASHAPP = "cashapp"
|
|
48
|
+
VENMO = "venmo"
|
|
49
|
+
AMAZON_PAY = "amazon_pay"
|
|
50
|
+
LINK = "link"
|
|
12
51
|
end
|
|
13
52
|
end
|
|
14
53
|
end
|
|
@@ -35,6 +35,8 @@ module Whop_sdk
|
|
|
35
35
|
|
|
36
36
|
field :economic_intelligence_previous_period, -> { Whop_sdk::Types::AccountEconomicIntelligencePreviousPeriod }, optional: false, nullable: true
|
|
37
37
|
|
|
38
|
+
field :feedback_options, -> { Internal::Types::Array[Whop_sdk::Types::FeedbackOption] }, optional: false, nullable: false
|
|
39
|
+
|
|
38
40
|
field :preferred_settlement_currency, -> { Whop_sdk::Types::AccountPreferencesPreferredSettlementCurrency }, optional: false, nullable: true
|
|
39
41
|
|
|
40
42
|
field :preferred_settlement_currency_changeable_at, -> { String }, optional: false, nullable: true
|
|
@@ -69,6 +69,8 @@ module Whop_sdk
|
|
|
69
69
|
TWO_THOUSAND_TWENTY_SIX1009 = "2026-10-09"
|
|
70
70
|
TWO_THOUSAND_TWENTY_SIX10091 = "2026-10-09-1"
|
|
71
71
|
TWO_THOUSAND_TWENTY_SIX10092 = "2026-10-09-2"
|
|
72
|
+
TWO_THOUSAND_TWENTY_SIX1013 = "2026-10-13"
|
|
73
|
+
TWO_THOUSAND_TWENTY_SIX10131 = "2026-10-13-1"
|
|
72
74
|
end
|
|
73
75
|
end
|
|
74
76
|
end
|
|
@@ -3,14 +3,20 @@
|
|
|
3
3
|
module Whop_sdk
|
|
4
4
|
module Types
|
|
5
5
|
class DisputeEvidenceDocument < Internal::Types::Model
|
|
6
|
+
field :blurhash, -> { String }, optional: false, nullable: true
|
|
7
|
+
|
|
6
8
|
field :content_type, -> { Whop_sdk::Types::DisputeEvidenceDocumentContentType }, optional: false, nullable: true
|
|
7
9
|
|
|
8
10
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
9
11
|
|
|
10
12
|
field :document_type, -> { Whop_sdk::Types::DisputeEvidenceDocumentDocumentType }, optional: false, nullable: false
|
|
11
13
|
|
|
14
|
+
field :duration_seconds, -> { Integer }, optional: false, nullable: true
|
|
15
|
+
|
|
12
16
|
field :filename, -> { String }, optional: false, nullable: true
|
|
13
17
|
|
|
18
|
+
field :height, -> { Integer }, optional: false, nullable: true
|
|
19
|
+
|
|
14
20
|
field :id, -> { String }, optional: false, nullable: false
|
|
15
21
|
|
|
16
22
|
field :multipart_chunk_size, -> { Integer }, optional: true, nullable: false
|
|
@@ -21,6 +27,8 @@ module Whop_sdk
|
|
|
21
27
|
|
|
22
28
|
field :object, -> { String }, optional: false, nullable: false
|
|
23
29
|
|
|
30
|
+
field :removed_by_moderation, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
31
|
+
|
|
24
32
|
field :size, -> { Integer }, optional: false, nullable: true
|
|
25
33
|
|
|
26
34
|
field :upload_headers, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
|
@@ -32,6 +40,10 @@ module Whop_sdk
|
|
|
32
40
|
field :url, -> { String }, optional: false, nullable: true
|
|
33
41
|
|
|
34
42
|
field :visibility, -> { Whop_sdk::Types::DisputeEvidenceDocumentVisibility }, optional: false, nullable: false
|
|
43
|
+
|
|
44
|
+
field :waveform_url, -> { String }, optional: false, nullable: true
|
|
45
|
+
|
|
46
|
+
field :width, -> { Integer }, optional: false, nullable: true
|
|
35
47
|
end
|
|
36
48
|
end
|
|
37
49
|
end
|
|
@@ -5,6 +5,8 @@ module Whop_sdk
|
|
|
5
5
|
class Domain < Internal::Types::Model
|
|
6
6
|
field :account_id, -> { String }, optional: false, nullable: true
|
|
7
7
|
|
|
8
|
+
field :apple_pay, -> { Whop_sdk::Types::DomainApplePay }, optional: false, nullable: true
|
|
9
|
+
|
|
8
10
|
field :availability, -> { Whop_sdk::Types::DomainAvailability }, optional: false, nullable: true
|
|
9
11
|
|
|
10
12
|
field :created_at, -> { String }, optional: false, nullable: true
|
|
@@ -19,12 +21,16 @@ module Whop_sdk
|
|
|
19
21
|
|
|
20
22
|
field :owned_by, -> { Whop_sdk::Types::DomainOwner }, optional: false, nullable: true
|
|
21
23
|
|
|
24
|
+
field :pixel, -> { Whop_sdk::Types::DomainPixel }, optional: false, nullable: true
|
|
25
|
+
|
|
22
26
|
field :platform, -> { Whop_sdk::Types::DomainPlatform }, optional: false, nullable: true
|
|
23
27
|
|
|
24
28
|
field :public_record, -> { Whop_sdk::Types::DomainPublicRecord }, optional: false, nullable: true
|
|
25
29
|
|
|
26
30
|
field :registration, -> { Whop_sdk::Types::DomainRegistration }, optional: false, nullable: true
|
|
27
31
|
|
|
32
|
+
field :stats, -> { Whop_sdk::Types::DomainStats }, optional: false, nullable: true
|
|
33
|
+
|
|
28
34
|
field :status, -> { Whop_sdk::Types::DomainStatus }, optional: false, nullable: true
|
|
29
35
|
|
|
30
36
|
field :updated_at, -> { String }, optional: false, nullable: true
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
module DomainApplePayState
|
|
6
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
PENDING = "pending"
|
|
9
|
+
READY = "ready"
|
|
10
|
+
ACTION_REQUIRED = "action_required"
|
|
11
|
+
RELEASING = "releasing"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -7,6 +7,8 @@ module Whop_sdk
|
|
|
7
7
|
|
|
8
8
|
field :code, -> { Whop_sdk::Types::DomainIssueCode }, optional: false, nullable: false
|
|
9
9
|
|
|
10
|
+
field :code_block, -> { String }, optional: false, nullable: true
|
|
11
|
+
|
|
10
12
|
field :dns_records, -> { Internal::Types::Array[Whop_sdk::Types::DomainDNSRecord] }, optional: false, nullable: false
|
|
11
13
|
|
|
12
14
|
field :message, -> { String }, optional: false, nullable: false
|