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
|
@@ -98,6 +98,9 @@ module Whop_sdk
|
|
|
98
98
|
PAYPAL_EXPRESS = "paypal_express"
|
|
99
99
|
PAYPAY = "paypay"
|
|
100
100
|
PAYTO = "payto"
|
|
101
|
+
PAYTO_EMAIL = "payto_email"
|
|
102
|
+
PAYTO_PHONE = "payto_phone"
|
|
103
|
+
PAYTO_BANK_ACCOUNT = "payto_bank_account"
|
|
101
104
|
PIX = "pix"
|
|
102
105
|
PLATFORM_BALANCE = "platform_balance"
|
|
103
106
|
PROMPTPAY = "promptpay"
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Whop_sdk
|
|
4
4
|
module Types
|
|
5
|
-
# The value to compare against. A number for `risk_score`, a
|
|
6
|
-
# for the `in` and `not_in` operators.
|
|
5
|
+
# The value to compare against. A whole number from 0 to 100 for `risk_score`, a number of at least 0 for
|
|
6
|
+
# `amount_in_usd`, a string for the other fields, and an array of strings for the `in` and `not_in` operators.
|
|
7
7
|
class PaymentRuleConditionValue < Internal::Types::Model
|
|
8
8
|
extend Whop_sdk::Internal::Types::Union
|
|
9
9
|
|
|
@@ -8,6 +8,7 @@ module Whop_sdk
|
|
|
8
8
|
WAITLIST_ENTRY_READ = "waitlist_entry:read"
|
|
9
9
|
WAITLIST_ENTRY_CREATE = "waitlist_entry:create"
|
|
10
10
|
WAITLIST_ENTRY_CANCEL = "waitlist_entry:cancel"
|
|
11
|
+
REVIEW_DELETE = "review:delete"
|
|
11
12
|
EXPERIMENT_MANAGE = "experiment:manage"
|
|
12
13
|
EXPERIMENT_READ = "experiment:read"
|
|
13
14
|
DOMAIN_MANAGE = "domain:manage"
|
|
@@ -191,6 +192,8 @@ module Whop_sdk
|
|
|
191
192
|
PARTNER_EMAIL_READ = "partner:email:read"
|
|
192
193
|
PARTNER_INVITE_CREATE = "partner:invite:create"
|
|
193
194
|
PARTNER_FEES_UPDATE = "partner:fees:update"
|
|
195
|
+
PARTNER_COMMISSION_ADVANCE_UPDATE = "partner:commission_advance:update"
|
|
196
|
+
PARTNER_COMMISSION_ADVANCE_ACCEPT = "partner:commission_advance:accept"
|
|
194
197
|
PARTNER_REFERRAL_REQUEST_READ = "partner:referral_request:read"
|
|
195
198
|
PARTNER_REFERRAL_REQUEST_CREATE = "partner:referral_request:create"
|
|
196
199
|
PARTNER_REFERRAL_REQUEST_ACCEPT = "partner:referral_request:accept"
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
module Whop_sdk
|
|
4
4
|
module Types
|
|
5
|
-
# A user-submitted review of a company, including a star rating and optional text feedback.
|
|
6
5
|
class Review < Internal::Types::Model
|
|
7
|
-
field :
|
|
6
|
+
field :account, -> { Whop_sdk::Types::ReviewAccount }, optional: false, nullable: false
|
|
8
7
|
|
|
9
|
-
field :
|
|
8
|
+
field :attachments, -> { Internal::Types::Array[Whop_sdk::Types::ReviewAttachment] }, optional: false, nullable: false
|
|
10
9
|
|
|
11
10
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
12
11
|
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Whop_sdk
|
|
4
4
|
module Types
|
|
5
|
-
|
|
6
|
-
class ReviewCompany < Internal::Types::Model
|
|
5
|
+
class ReviewAccount < Internal::Types::Model
|
|
7
6
|
field :id, -> { String }, optional: false, nullable: false
|
|
8
7
|
|
|
9
8
|
field :route, -> { String }, optional: false, nullable: false
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Whop_sdk
|
|
4
4
|
module Types
|
|
5
|
-
|
|
6
|
-
class ReviewAttachmentsItem < Internal::Types::Model
|
|
5
|
+
class ReviewAttachment < Internal::Types::Model
|
|
7
6
|
field :content_type, -> { String }, optional: false, nullable: true
|
|
8
7
|
|
|
9
8
|
field :filename, -> { String }, optional: false, nullable: true
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Whop_sdk
|
|
4
4
|
module Types
|
|
5
|
-
# A user-submitted review of a company, including a star rating and optional text feedback.
|
|
6
5
|
class ReviewListItem < Internal::Types::Model
|
|
7
|
-
field :attachments, -> { Internal::Types::Array[Whop_sdk::Types::
|
|
6
|
+
field :attachments, -> { Internal::Types::Array[Whop_sdk::Types::ReviewAttachment] }, optional: false, nullable: false
|
|
8
7
|
|
|
9
8
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
10
9
|
|
|
@@ -20,13 +19,13 @@ module Whop_sdk
|
|
|
20
19
|
|
|
21
20
|
field :stars, -> { Integer }, optional: false, nullable: false
|
|
22
21
|
|
|
23
|
-
field :status, -> { Whop_sdk::Types::
|
|
22
|
+
field :status, -> { Whop_sdk::Types::ReviewListItemStatus }, optional: false, nullable: false
|
|
24
23
|
|
|
25
24
|
field :title, -> { String }, optional: false, nullable: true
|
|
26
25
|
|
|
27
26
|
field :updated_at, -> { String }, optional: false, nullable: false
|
|
28
27
|
|
|
29
|
-
field :user, -> { Whop_sdk::Types::
|
|
28
|
+
field :user, -> { Whop_sdk::Types::ReviewUser }, optional: false, nullable: false
|
|
30
29
|
end
|
|
31
30
|
end
|
|
32
31
|
end
|
|
@@ -15,9 +15,17 @@ module Whop_sdk
|
|
|
15
15
|
|
|
16
16
|
field :id, -> { String }, optional: false, nullable: false
|
|
17
17
|
|
|
18
|
+
field :last_message, -> { Whop_sdk::Types::SupportChannelLastMessage }, optional: false, nullable: true
|
|
19
|
+
|
|
18
20
|
field :last_message_at, -> { String }, optional: false, nullable: true
|
|
19
21
|
|
|
22
|
+
field :needs_reply, -> { Internal::Types::Boolean }, optional: false, nullable: true
|
|
23
|
+
|
|
24
|
+
field :participated, -> { Internal::Types::Boolean }, optional: false, nullable: true
|
|
25
|
+
|
|
20
26
|
field :resolved_at, -> { String }, optional: false, nullable: true
|
|
27
|
+
|
|
28
|
+
field :unread, -> { Internal::Types::Boolean }, optional: false, nullable: true
|
|
21
29
|
end
|
|
22
30
|
end
|
|
23
31
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
# The most recent message in this channel. Null if no messages have been sent, or when listing support channels
|
|
6
|
+
# without `include_last_message`.
|
|
7
|
+
class SupportChannelLastMessage < Internal::Types::Model
|
|
8
|
+
field :attachments, -> { Internal::Types::Array[Whop_sdk::Types::SupportChannelLastMessageAttachmentsItem] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :content, -> { String }, optional: false, nullable: true
|
|
11
|
+
|
|
12
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :gifs, -> { Internal::Types::Array[Whop_sdk::Types::SupportChannelLastMessageGifsItem] }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :poll, -> { Whop_sdk::Types::SupportChannelLastMessagePoll }, optional: false, nullable: true
|
|
19
|
+
|
|
20
|
+
field :user_id, -> { String }, optional: false, nullable: false
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
module Whop_sdk
|
|
4
4
|
module Types
|
|
5
5
|
# Represents an image attachment
|
|
6
|
-
class
|
|
6
|
+
class SupportChannelLastMessageAttachmentsItem < Internal::Types::Model
|
|
7
7
|
field :content_type, -> { String }, optional: false, nullable: true
|
|
8
8
|
|
|
9
9
|
field :filename, -> { String }, optional: false, nullable: true
|
|
10
|
-
|
|
11
|
-
field :id, -> { String }, optional: false, nullable: false
|
|
12
|
-
|
|
13
|
-
field :url, -> { String }, optional: false, nullable: true
|
|
14
10
|
end
|
|
15
11
|
end
|
|
16
12
|
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
# A poll attached to this message. Null if the message does not contain a poll.
|
|
6
|
+
class SupportChannelLastMessagePoll < Internal::Types::Model
|
|
7
|
+
field :options, -> { Internal::Types::Array[Whop_sdk::Types::SupportChannelLastMessagePollOptionsItem] }, optional: false, nullable: true
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -15,9 +15,17 @@ module Whop_sdk
|
|
|
15
15
|
|
|
16
16
|
field :id, -> { String }, optional: false, nullable: false
|
|
17
17
|
|
|
18
|
+
field :last_message, -> { Whop_sdk::Types::SupportChannelListItemLastMessage }, optional: false, nullable: true
|
|
19
|
+
|
|
18
20
|
field :last_message_at, -> { String }, optional: false, nullable: true
|
|
19
21
|
|
|
22
|
+
field :needs_reply, -> { Internal::Types::Boolean }, optional: false, nullable: true
|
|
23
|
+
|
|
24
|
+
field :participated, -> { Internal::Types::Boolean }, optional: false, nullable: true
|
|
25
|
+
|
|
20
26
|
field :resolved_at, -> { String }, optional: false, nullable: true
|
|
27
|
+
|
|
28
|
+
field :unread, -> { Internal::Types::Boolean }, optional: false, nullable: true
|
|
21
29
|
end
|
|
22
30
|
end
|
|
23
31
|
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
# The most recent message in this channel. Null if no messages have been sent, or when listing support channels
|
|
6
|
+
# without `include_last_message`.
|
|
7
|
+
class SupportChannelListItemLastMessage < Internal::Types::Model
|
|
8
|
+
field :attachments, -> { Internal::Types::Array[Whop_sdk::Types::SupportChannelListItemLastMessageAttachmentsItem] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :content, -> { String }, optional: false, nullable: true
|
|
11
|
+
|
|
12
|
+
field :created_at, -> { String }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :gifs, -> { Internal::Types::Array[Whop_sdk::Types::SupportChannelListItemLastMessageGifsItem] }, optional: false, nullable: false
|
|
15
|
+
|
|
16
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
17
|
+
|
|
18
|
+
field :poll, -> { Whop_sdk::Types::SupportChannelListItemLastMessagePoll }, optional: false, nullable: true
|
|
19
|
+
|
|
20
|
+
field :user_id, -> { String }, optional: false, nullable: false
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
# Represents an image attachment
|
|
6
|
+
class SupportChannelListItemLastMessageAttachmentsItem < Internal::Types::Model
|
|
7
|
+
field :content_type, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :filename, -> { String }, optional: false, nullable: true
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
# Represents a GIF attachment in a feed post
|
|
6
|
+
class SupportChannelListItemLastMessageGifsItem < Internal::Types::Model
|
|
7
|
+
field :slug, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
# A poll attached to this message. Null if the message does not contain a poll.
|
|
6
|
+
class SupportChannelListItemLastMessagePoll < Internal::Types::Model
|
|
7
|
+
field :options, -> { Internal::Types::Array[Whop_sdk::Types::SupportChannelListItemLastMessagePollOptionsItem] }, optional: false, nullable: true
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
# Represents a single poll option
|
|
6
|
+
class SupportChannelListItemLastMessagePollOptionsItem < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
data/lib/whop_sdk/types/trade.rb
CHANGED
|
@@ -9,6 +9,8 @@ module Whop_sdk
|
|
|
9
9
|
|
|
10
10
|
field :average_price, -> { String }, optional: false, nullable: true
|
|
11
11
|
|
|
12
|
+
field :client_order_id, -> { String }, optional: false, nullable: true
|
|
13
|
+
|
|
12
14
|
field :completed_at, -> { String }, optional: false, nullable: true
|
|
13
15
|
|
|
14
16
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
@@ -21,12 +23,26 @@ module Whop_sdk
|
|
|
21
23
|
|
|
22
24
|
field :id, -> { String }, optional: false, nullable: false
|
|
23
25
|
|
|
26
|
+
field :instrument_type, -> { Whop_sdk::Types::TradeInstrumentType }, optional: false, nullable: true
|
|
27
|
+
|
|
24
28
|
field :leverage, -> { Integer }, optional: false, nullable: true
|
|
25
29
|
|
|
26
|
-
field :market, -> { String }, optional: false, nullable:
|
|
30
|
+
field :market, -> { String }, optional: false, nullable: true
|
|
31
|
+
|
|
32
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: false
|
|
27
33
|
|
|
28
34
|
field :object, -> { Whop_sdk::Types::TradeObject }, optional: false, nullable: false
|
|
29
35
|
|
|
36
|
+
field :order_type, -> { Whop_sdk::Types::TradeOrderType }, optional: false, nullable: true
|
|
37
|
+
|
|
38
|
+
field :price, -> { Whop_sdk::Types::Money }, optional: false, nullable: true
|
|
39
|
+
|
|
40
|
+
field :reduce_only, -> { Internal::Types::Boolean }, optional: false, nullable: true
|
|
41
|
+
|
|
42
|
+
field :side, -> { Whop_sdk::Types::TradeSide }, optional: false, nullable: true
|
|
43
|
+
|
|
44
|
+
field :size, -> { String }, optional: false, nullable: true
|
|
45
|
+
|
|
30
46
|
field :status, -> { Whop_sdk::Types::TradeStatus }, optional: false, nullable: false
|
|
31
47
|
|
|
32
48
|
field :status_detail, -> { Whop_sdk::Types::TradeStatusDetail }, optional: false, nullable: true
|
data/lib/whop_sdk/types/user.rb
CHANGED
|
@@ -7,6 +7,8 @@ module Whop_sdk
|
|
|
7
7
|
|
|
8
8
|
field :balance_history, -> { Whop_sdk::Types::UserBalanceHistory }, optional: false, nullable: true
|
|
9
9
|
|
|
10
|
+
field :balances, -> { Internal::Types::Array[Whop_sdk::Types::AccountBalanceToken] }, optional: false, nullable: false
|
|
11
|
+
|
|
10
12
|
field :banner, -> { Whop_sdk::Types::UserBanner }, optional: false, nullable: true
|
|
11
13
|
|
|
12
14
|
field :bio, -> { String }, optional: false, nullable: true
|
|
@@ -21,11 +23,15 @@ module Whop_sdk
|
|
|
21
23
|
|
|
22
24
|
field :id, -> { String }, optional: false, nullable: false
|
|
23
25
|
|
|
26
|
+
field :level, -> { Whop_sdk::Types::OwnerLevel }, optional: false, nullable: true
|
|
27
|
+
|
|
24
28
|
field :name, -> { String }, optional: false, nullable: true
|
|
25
29
|
|
|
26
30
|
field :profile_picture, -> { Whop_sdk::Types::UserProfilePicture }, optional: false, nullable: false
|
|
27
31
|
|
|
28
|
-
field :
|
|
32
|
+
field :social_links, -> { Internal::Types::Array[Whop_sdk::Types::UserSocialLink] }, optional: false, nullable: false
|
|
33
|
+
|
|
34
|
+
field :total_usd, -> { String }, optional: false, nullable: true
|
|
29
35
|
|
|
30
36
|
field :trading, -> { Whop_sdk::Types::TradingAccount }, optional: false, nullable: true
|
|
31
37
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
class UserSocialLink < Internal::Types::Model
|
|
6
|
+
field :url, -> { String }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :username, -> { String }, optional: false, nullable: true
|
|
9
|
+
|
|
10
|
+
field :verified, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :website, -> { Whop_sdk::Types::UserSocialLinkWebsite }, optional: false, nullable: false
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
module UserSocialLinkWebsite
|
|
6
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
7
|
+
|
|
8
|
+
X = "x"
|
|
9
|
+
INSTAGRAM = "instagram"
|
|
10
|
+
FACEBOOK = "facebook"
|
|
11
|
+
TIKTOK = "tiktok"
|
|
12
|
+
YOUTUBE = "youtube"
|
|
13
|
+
LINKEDIN = "linkedin"
|
|
14
|
+
TWITCH = "twitch"
|
|
15
|
+
WEBSITE = "website"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -8,6 +8,7 @@ module Whop_sdk
|
|
|
8
8
|
ACCOUNT_UPDATED = "account.updated"
|
|
9
9
|
ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
|
|
10
10
|
ACCOUNT_FINANCING_DENIED = "account.financing_denied"
|
|
11
|
+
ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
|
|
11
12
|
INVOICE_CREATED = "invoice.created"
|
|
12
13
|
INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
|
|
13
14
|
INVOICE_PAID = "invoice.paid"
|
|
@@ -8,6 +8,7 @@ module Whop_sdk
|
|
|
8
8
|
ACCOUNT_UPDATED = "account.updated"
|
|
9
9
|
ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
|
|
10
10
|
ACCOUNT_FINANCING_DENIED = "account.financing_denied"
|
|
11
|
+
ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
|
|
11
12
|
INVOICE_CREATED = "invoice.created"
|
|
12
13
|
INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
|
|
13
14
|
INVOICE_PAID = "invoice.paid"
|
|
@@ -8,6 +8,7 @@ module Whop_sdk
|
|
|
8
8
|
ACCOUNT_UPDATED = "account.updated"
|
|
9
9
|
ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
|
|
10
10
|
ACCOUNT_FINANCING_DENIED = "account.financing_denied"
|
|
11
|
+
ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
|
|
11
12
|
INVOICE_CREATED = "invoice.created"
|
|
12
13
|
INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
|
|
13
14
|
INVOICE_PAID = "invoice.paid"
|
|
@@ -8,6 +8,7 @@ module Whop_sdk
|
|
|
8
8
|
ACCOUNT_UPDATED = "account.updated"
|
|
9
9
|
ACCOUNT_FINANCING_APPROVED = "account.financing_approved"
|
|
10
10
|
ACCOUNT_FINANCING_DENIED = "account.financing_denied"
|
|
11
|
+
ACCOUNT_FINANCING_DISABLED = "account.financing_disabled"
|
|
11
12
|
INVOICE_CREATED = "invoice.created"
|
|
12
13
|
INVOICE_MARKED_UNCOLLECTIBLE = "invoice.marked_uncollectible"
|
|
13
14
|
INVOICE_PAID = "invoice.paid"
|
|
@@ -14,8 +14,8 @@ module Whop_sdk
|
|
|
14
14
|
@environment = environment
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
#
|
|
18
|
-
# most recently followed users
|
|
17
|
+
# Searches for users by name or username, ranked by social proximity to the authenticated user. Without a `query`,
|
|
18
|
+
# returns the user's most recently followed users.
|
|
19
19
|
#
|
|
20
20
|
# @param request_options [Hash]
|
|
21
21
|
# @param params [Hash]
|
|
@@ -72,9 +72,8 @@ module Whop_sdk
|
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
# Retrieves the authenticated user
|
|
76
|
-
# self-only fields
|
|
77
|
-
# `cards` and `earnings_usd` (balance-read scope), the opt-in `balance_history`, and every linked social account.
|
|
75
|
+
# Retrieves the authenticated user. Same as `GET /users/:id` with the reserved id `me`: the self view, where
|
|
76
|
+
# self-only fields such as `email`, `balance`, and `cards` can be populated.
|
|
78
77
|
#
|
|
79
78
|
# @param request_options [Hash]
|
|
80
79
|
# @param params [Hash]
|
|
@@ -129,7 +128,7 @@ module Whop_sdk
|
|
|
129
128
|
end
|
|
130
129
|
end
|
|
131
130
|
|
|
132
|
-
# Updates the authenticated user's global profile, or their profile override for an account when account_id is
|
|
131
|
+
# Updates the authenticated user's global profile, or their profile override for an account when `account_id` is
|
|
133
132
|
# given. Not available to API keys.
|
|
134
133
|
#
|
|
135
134
|
# @param request_options [Hash]
|
|
@@ -176,12 +175,9 @@ module Whop_sdk
|
|
|
176
175
|
end
|
|
177
176
|
end
|
|
178
177
|
|
|
179
|
-
# Retrieves a user by `user_` tag or username, or the authenticated user with the reserved id `me`.
|
|
180
|
-
#
|
|
181
|
-
#
|
|
182
|
-
# is `me`: `email` (email-read scope), `staff` (Whop staff only, staff-read scope), `balance` and `earnings_usd`
|
|
183
|
-
# (balance-read scope), and the opt-in `balance_history`. They are always `null` when addressing a user by tag or
|
|
184
|
-
# username.
|
|
178
|
+
# Retrieves a user by `user_` tag or username, or the authenticated user with the reserved id `me`. Self-only
|
|
179
|
+
# fields such as `email`, `balance`, and `earnings_usd` are populated only when the id is `me`, and are always
|
|
180
|
+
# `null` when addressing a user by tag or username.
|
|
185
181
|
#
|
|
186
182
|
# @param request_options [Hash]
|
|
187
183
|
# @param params [Hash]
|
|
@@ -238,8 +234,8 @@ module Whop_sdk
|
|
|
238
234
|
end
|
|
239
235
|
|
|
240
236
|
# Updates a user, addressed by `user_` tag, username, or the reserved id `me` for the authenticated user. A user
|
|
241
|
-
# token updates their own global profile; an API key updates the user's
|
|
242
|
-
#
|
|
237
|
+
# token updates their own global profile; an API key updates the user's profile override for the account in
|
|
238
|
+
# `account_id`.
|
|
243
239
|
#
|
|
244
240
|
# @param request_options [Hash]
|
|
245
241
|
# @param params [Whop_sdk::Users::Types::UpdateUsersRequest]
|
|
@@ -327,10 +323,9 @@ module Whop_sdk
|
|
|
327
323
|
end
|
|
328
324
|
end
|
|
329
325
|
|
|
330
|
-
# Lists the recommended actions computed for the user: personal suggestions
|
|
331
|
-
# affiliate
|
|
332
|
-
#
|
|
333
|
-
# authenticated user's own tag/username.
|
|
326
|
+
# Lists the recommended actions computed for the authenticated user: personal suggestions, such as starting a
|
|
327
|
+
# business or becoming an affiliate, pooled with the highest-impact actions across the accounts the user owns. You
|
|
328
|
+
# can only list your own recommended actions.
|
|
334
329
|
#
|
|
335
330
|
# @param request_options [Hash]
|
|
336
331
|
# @param params [Hash]
|
|
@@ -15,10 +15,9 @@ module Whop_sdk
|
|
|
15
15
|
@environment = environment
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
# Lists the authenticated user's own OAuth grants
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
# other apps a user has authorized.
|
|
18
|
+
# Lists the authenticated user's own OAuth grants: one per app they have authorized, per account they authorized
|
|
19
|
+
# it for. You cannot read another user's grants. Requires a user session: an API key or an OAuth token is
|
|
20
|
+
# refused, so an app can never enumerate the other apps a user has authorized.
|
|
22
21
|
#
|
|
23
22
|
# @param request_options [Hash]
|
|
24
23
|
# @param params [Hash]
|
|
@@ -79,13 +78,12 @@ module Whop_sdk
|
|
|
79
78
|
end
|
|
80
79
|
end
|
|
81
80
|
|
|
82
|
-
# Completes the OAuth authorization step for the authenticated user: records their consent
|
|
83
|
-
# asked for and mints
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
# `redirect_url` and its code rather than issuing a second one.
|
|
81
|
+
# Completes the OAuth authorization step for the authenticated user: records their consent to the scopes an app
|
|
82
|
+
# asked for and mints an authorization code. Returns the grant plus a `redirect_url` carrying the code, which is
|
|
83
|
+
# returned only this once; the app exchanges it at `POST /oauth/token`. Requires a user session, because consent
|
|
84
|
+
# has to come from the account holder: an API key or an OAuth token is refused, so an app can never authorize
|
|
85
|
+
# itself. Send an `Idempotency-Key` so a retry returns the original `redirect_url` and code instead of issuing a
|
|
86
|
+
# second one.
|
|
89
87
|
#
|
|
90
88
|
# @param request_options [Hash]
|
|
91
89
|
# @param params [Whop_sdk::Users::OauthGrants::Types::CreateOauthGrantsRequest]
|