whop_sdk 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +18 -2
- data/lib/whop_sdk/internal/transport/base_client.rb +2 -0
- data/lib/whop_sdk/internal/type/union.rb +6 -6
- data/lib/whop_sdk/models/account.rb +144 -0
- data/lib/whop_sdk/models/account_create_params.rb +34 -0
- data/lib/whop_sdk/models/account_list_params.rb +34 -0
- data/lib/whop_sdk/models/account_list_response.rb +66 -0
- data/lib/whop_sdk/models/account_me_params.rb +14 -0
- data/lib/whop_sdk/models/account_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/account_social_link.rb +60 -0
- data/lib/whop_sdk/models/account_update_params.rb +146 -0
- data/lib/whop_sdk/models/account_wallet.rb +46 -0
- data/lib/whop_sdk/models/{ad_retrieve_response.rb → ad.rb} +15 -45
- data/lib/whop_sdk/models/ad_budget_type.rb +16 -0
- data/lib/whop_sdk/models/{ad_campaign_pause_response.rb → ad_campaign.rb} +37 -86
- data/lib/whop_sdk/models/ad_campaign_list_params.rb +12 -27
- data/lib/whop_sdk/models/ad_campaign_list_response.rb +9 -52
- data/lib/whop_sdk/models/ad_campaign_platform.rb +16 -0
- data/lib/whop_sdk/models/ad_campaign_status.rb +20 -0
- data/lib/whop_sdk/models/ad_group.rb +97 -0
- data/lib/whop_sdk/models/ad_group_list_params.rb +16 -19
- data/lib/whop_sdk/models/ad_group_list_response.rb +30 -51
- data/lib/whop_sdk/models/ad_group_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_status.rb +20 -0
- data/lib/whop_sdk/models/ad_group_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_update_params.rb +8 -32
- data/lib/whop_sdk/models/ad_list_params.rb +57 -12
- data/lib/whop_sdk/models/ad_list_response.rb +45 -31
- data/lib/whop_sdk/models/ad_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_report_retrieve_params.rb +45 -15
- data/lib/whop_sdk/models/ad_report_retrieve_response.rb +378 -105
- data/lib/whop_sdk/models/ad_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +22 -1
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +26 -1
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +24 -1
- data/lib/whop_sdk/models/currency.rb +3 -0
- data/lib/whop_sdk/models/deposit_create_params.rb +85 -0
- data/lib/whop_sdk/models/deposit_create_response.rb +102 -0
- data/lib/whop_sdk/models/dispute.rb +6 -7
- data/lib/whop_sdk/models/dispute_alert_created_webhook_event.rb +4 -4
- data/lib/whop_sdk/models/dispute_alert_retrieve_response.rb +4 -4
- data/lib/whop_sdk/models/dispute_list_response.rb +2 -3
- data/lib/whop_sdk/models/external_ad_status.rb +20 -0
- data/lib/whop_sdk/models/file_create_params.rb +3 -15
- data/lib/whop_sdk/models/file_create_response.rb +3 -16
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -16
- data/lib/whop_sdk/models/file_visibility.rb +17 -0
- data/lib/whop_sdk/models/granularities.rb +16 -0
- data/lib/whop_sdk/models/identity_profile_approved_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_needs_action_webhook_event.rb +432 -0
- data/lib/whop_sdk/models/identity_profile_rejected_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_updated_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +65 -1
- data/lib/whop_sdk/models/member_list_response.rb +3 -2
- data/lib/whop_sdk/models/member_retrieve_response.rb +3 -2
- data/lib/whop_sdk/models/membership.rb +23 -2
- data/lib/whop_sdk/models/membership_list_response.rb +23 -2
- data/lib/whop_sdk/models/payment.rb +47 -22
- data/lib/whop_sdk/models/payment_list_params.rb +9 -1
- data/lib/whop_sdk/models/payment_list_response.rb +40 -13
- data/lib/whop_sdk/models/plan.rb +31 -1
- data/lib/whop_sdk/models/plan_create_params.rb +30 -1
- data/lib/whop_sdk/models/plan_list_response.rb +31 -1
- data/lib/whop_sdk/models/plan_update_params.rb +30 -1
- data/lib/whop_sdk/models/product.rb +10 -1
- data/lib/whop_sdk/models/product_create_params.rb +11 -1
- data/lib/whop_sdk/models/product_list_item.rb +10 -1
- data/lib/whop_sdk/models/product_update_params.rb +11 -1
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +84 -5
- data/lib/whop_sdk/models/refund_retrieve_response.rb +82 -5
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +84 -5
- data/lib/whop_sdk/models/resolution_center_case_platform_response.rb +0 -1
- data/lib/whop_sdk/models/result_label_keys.rb +38 -0
- data/lib/whop_sdk/models/swap_create_quote_params.rb +102 -0
- data/lib/whop_sdk/models/swap_create_quote_response.rb +104 -0
- data/lib/whop_sdk/models/transfer_create_params.rb +3 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +41 -33
- data/lib/whop_sdk/models/wallet_balance_params.rb +20 -0
- data/lib/whop_sdk/models/wallet_balance_response.rb +84 -0
- data/lib/whop_sdk/models/wallet_list_params.rb +14 -0
- data/lib/whop_sdk/models/wallet_list_response.rb +38 -0
- data/lib/whop_sdk/models/wallet_send_params.rb +37 -0
- data/lib/whop_sdk/models/wallet_send_response.rb +90 -0
- data/lib/whop_sdk/models/webhook_event.rb +4 -0
- data/lib/whop_sdk/models.rb +64 -0
- data/lib/whop_sdk/resources/accounts.rb +168 -0
- data/lib/whop_sdk/resources/ad_campaigns.rb +13 -13
- data/lib/whop_sdk/resources/ad_groups.rb +63 -8
- data/lib/whop_sdk/resources/ad_reports.rb +14 -8
- data/lib/whop_sdk/resources/ads.rb +66 -4
- data/lib/whop_sdk/resources/deposits.rb +46 -0
- data/lib/whop_sdk/resources/files.rb +1 -1
- data/lib/whop_sdk/resources/payments.rb +3 -1
- data/lib/whop_sdk/resources/plans.rb +10 -2
- data/lib/whop_sdk/resources/products.rb +6 -2
- data/lib/whop_sdk/resources/refunds.rb +2 -0
- data/lib/whop_sdk/resources/swaps.rb +52 -0
- data/lib/whop_sdk/resources/wallets.rb +78 -0
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +42 -7
- data/rbi/whop_sdk/client.rbi +14 -2
- data/rbi/whop_sdk/models/account.rbi +164 -0
- data/rbi/whop_sdk/models/account_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/account_list_params.rbi +59 -0
- data/rbi/whop_sdk/models/account_list_response.rbi +115 -0
- data/rbi/whop_sdk/models/account_me_params.rbi +27 -0
- data/rbi/whop_sdk/models/account_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/account_social_link.rbi +96 -0
- data/rbi/whop_sdk/models/account_update_params.rbi +175 -0
- data/rbi/whop_sdk/models/account_wallet.rbi +75 -0
- data/rbi/whop_sdk/models/ad.rbi +143 -0
- data/rbi/whop_sdk/models/ad_budget_type.rbi +20 -0
- data/rbi/whop_sdk/models/{ad_campaign_pause_response.rbi → ad_campaign.rbi} +57 -245
- data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +11 -46
- data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +9 -143
- data/rbi/whop_sdk/models/ad_campaign_platform.rbi +22 -0
- data/rbi/whop_sdk/models/ad_campaign_status.rbi +27 -0
- data/rbi/whop_sdk/models/ad_group.rbi +126 -0
- data/rbi/whop_sdk/models/ad_group_list_params.rbi +13 -33
- data/rbi/whop_sdk/models/ad_group_list_response.rbi +41 -131
- data/rbi/whop_sdk/models/ad_group_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_status.rbi +24 -0
- data/rbi/whop_sdk/models/ad_group_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_update_params.rbi +16 -67
- data/rbi/whop_sdk/models/ad_list_params.rbi +59 -14
- data/rbi/whop_sdk/models/ad_list_response.rbi +74 -62
- data/rbi/whop_sdk/models/ad_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +75 -19
- data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +537 -349
- data/rbi/whop_sdk/models/ad_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +52 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +56 -1
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +55 -0
- data/rbi/whop_sdk/models/currency.rbi +3 -0
- data/rbi/whop_sdk/models/deposit_create_params.rbi +152 -0
- data/rbi/whop_sdk/models/deposit_create_response.rbi +185 -0
- data/rbi/whop_sdk/models/dispute.rbi +7 -9
- data/rbi/whop_sdk/models/dispute_alert_created_webhook_event.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_alert_retrieve_response.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_list_response.rbi +2 -4
- data/rbi/whop_sdk/models/external_ad_status.rbi +26 -0
- data/rbi/whop_sdk/models/file_create_params.rbi +3 -30
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -38
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -39
- data/rbi/whop_sdk/models/file_visibility.rbi +21 -0
- data/rbi/whop_sdk/models/granularities.rbi +20 -0
- data/rbi/whop_sdk/models/identity_profile_approved_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_needs_action_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_rejected_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_updated_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +109 -3
- data/rbi/whop_sdk/models/member_list_response.rbi +4 -2
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +4 -2
- data/rbi/whop_sdk/models/membership.rbi +44 -5
- data/rbi/whop_sdk/models/membership_list_response.rbi +44 -5
- data/rbi/whop_sdk/models/payment.rbi +75 -36
- data/rbi/whop_sdk/models/payment_list_params.rbi +8 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +67 -24
- data/rbi/whop_sdk/models/plan.rbi +39 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +54 -0
- data/rbi/whop_sdk/models/plan_list_response.rbi +62 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +54 -0
- data/rbi/whop_sdk/models/product.rbi +10 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +12 -0
- data/rbi/whop_sdk/models/product_list_item.rbi +10 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +12 -0
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +159 -5
- data/rbi/whop_sdk/models/refund_retrieve_response.rbi +157 -5
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +159 -5
- data/rbi/whop_sdk/models/resolution_center_case_platform_response.rbi +0 -5
- data/rbi/whop_sdk/models/result_label_keys.rbi +64 -0
- data/rbi/whop_sdk/models/swap_create_quote_params.rbi +134 -0
- data/rbi/whop_sdk/models/swap_create_quote_response.rbi +148 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +6 -2
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +25 -21
- data/rbi/whop_sdk/models/wallet_balance_params.rbi +35 -0
- data/rbi/whop_sdk/models/wallet_balance_response.rbi +145 -0
- data/rbi/whop_sdk/models/wallet_list_params.rbi +27 -0
- data/rbi/whop_sdk/models/wallet_list_response.rbi +66 -0
- data/rbi/whop_sdk/models/wallet_send_params.rbi +57 -0
- data/rbi/whop_sdk/models/wallet_send_response.rbi +146 -0
- data/rbi/whop_sdk/models/webhook_event.rbi +11 -0
- data/rbi/whop_sdk/models.rbi +68 -0
- data/rbi/whop_sdk/resources/accounts.rbi +137 -0
- data/rbi/whop_sdk/resources/ad_campaigns.rbi +8 -8
- data/rbi/whop_sdk/resources/ad_groups.rbi +47 -6
- data/rbi/whop_sdk/resources/ad_reports.rbi +23 -12
- data/rbi/whop_sdk/resources/ads.rbi +59 -2
- data/rbi/whop_sdk/resources/deposits.rbi +41 -0
- data/rbi/whop_sdk/resources/files.rbi +1 -2
- data/rbi/whop_sdk/resources/payments.rbi +3 -0
- data/rbi/whop_sdk/resources/plans.rbi +18 -0
- data/rbi/whop_sdk/resources/products.rbi +10 -0
- data/rbi/whop_sdk/resources/refunds.rbi +2 -0
- data/rbi/whop_sdk/resources/swaps.rbi +46 -0
- data/rbi/whop_sdk/resources/transfers.rbi +3 -1
- data/rbi/whop_sdk/resources/wallets.rbi +55 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +25 -21
- data/sig/whop_sdk/client.rbs +8 -0
- data/sig/whop_sdk/models/account.rbs +100 -0
- data/sig/whop_sdk/models/account_create_params.rbs +32 -0
- data/sig/whop_sdk/models/account_list_params.rbs +32 -0
- data/sig/whop_sdk/models/account_list_response.rbs +62 -0
- data/sig/whop_sdk/models/account_me_params.rbs +14 -0
- data/sig/whop_sdk/models/account_retrieve_params.rbs +23 -0
- data/sig/whop_sdk/models/account_social_link.rbs +62 -0
- data/sig/whop_sdk/models/account_update_params.rbs +111 -0
- data/sig/whop_sdk/models/account_wallet.rbs +42 -0
- data/sig/whop_sdk/models/ad.rbs +75 -0
- data/sig/whop_sdk/models/ad_budget_type.rbs +14 -0
- data/sig/whop_sdk/models/ad_campaign.rbs +194 -0
- data/sig/whop_sdk/models/ad_campaign_list_params.rbs +9 -25
- data/sig/whop_sdk/models/ad_campaign_list_response.rbs +12 -50
- data/sig/whop_sdk/models/ad_campaign_platform.rbs +14 -0
- data/sig/whop_sdk/models/ad_campaign_status.rbs +19 -0
- data/sig/whop_sdk/models/ad_group.rbs +70 -0
- data/sig/whop_sdk/models/ad_group_list_params.rbs +9 -20
- data/sig/whop_sdk/models/ad_group_list_response.rbs +22 -45
- data/sig/whop_sdk/models/ad_group_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_status.rbs +19 -0
- data/sig/whop_sdk/models/ad_group_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_update_params.rbs +18 -36
- data/sig/whop_sdk/models/ad_list_params.rbs +39 -14
- data/sig/whop_sdk/models/ad_list_response.rbs +28 -25
- data/sig/whop_sdk/models/ad_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +26 -4
- data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +240 -131
- data/sig/whop_sdk/models/ad_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +16 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +18 -2
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +16 -0
- data/sig/whop_sdk/models/currency.rbs +6 -0
- data/sig/whop_sdk/models/deposit_create_params.rbs +81 -0
- data/sig/whop_sdk/models/deposit_create_response.rbs +99 -0
- data/sig/whop_sdk/models/dispute.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_created_webhook_event.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_retrieve_response.rbs +4 -4
- data/sig/whop_sdk/models/external_ad_status.rbs +19 -0
- data/sig/whop_sdk/models/file_create_params.rbs +4 -18
- data/sig/whop_sdk/models/file_create_response.rbs +4 -15
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -15
- data/sig/whop_sdk/models/file_visibility.rbs +14 -0
- data/sig/whop_sdk/models/granularities.rbs +14 -0
- data/sig/whop_sdk/models/identity_profile_approved_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_needs_action_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_rejected_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_updated_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +50 -3
- data/sig/whop_sdk/models/membership.rbs +19 -6
- data/sig/whop_sdk/models/membership_list_response.rbs +19 -6
- data/sig/whop_sdk/models/payment.rbs +52 -15
- data/sig/whop_sdk/models/payment_list_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +52 -15
- data/sig/whop_sdk/models/plan.rbs +21 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +21 -0
- data/sig/whop_sdk/models/plan_list_response.rbs +21 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +21 -0
- data/sig/whop_sdk/models/product.rbs +5 -0
- data/sig/whop_sdk/models/product_create_params.rbs +5 -0
- data/sig/whop_sdk/models/product_list_item.rbs +5 -0
- data/sig/whop_sdk/models/product_update_params.rbs +5 -0
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/refund_retrieve_response.rbs +43 -4
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/resolution_center_case_platform_response.rbs +0 -2
- data/sig/whop_sdk/models/result_label_keys.rbs +60 -0
- data/sig/whop_sdk/models/swap_create_quote_params.rbs +84 -0
- data/sig/whop_sdk/models/swap_create_quote_response.rbs +97 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +26 -22
- data/sig/whop_sdk/models/wallet_balance_params.rbs +23 -0
- data/sig/whop_sdk/models/wallet_balance_response.rbs +87 -0
- data/sig/whop_sdk/models/wallet_list_params.rbs +14 -0
- data/sig/whop_sdk/models/wallet_list_response.rbs +40 -0
- data/sig/whop_sdk/models/wallet_send_params.rbs +32 -0
- data/sig/whop_sdk/models/wallet_send_response.rbs +79 -0
- data/sig/whop_sdk/models/webhook_event.rbs +8 -0
- data/sig/whop_sdk/models.rbs +64 -0
- data/sig/whop_sdk/resources/accounts.rbs +46 -0
- data/sig/whop_sdk/resources/ad_campaigns.rbs +6 -6
- data/sig/whop_sdk/resources/ad_groups.rbs +16 -5
- data/sig/whop_sdk/resources/ad_reports.rbs +3 -1
- data/sig/whop_sdk/resources/ads.rbs +18 -2
- data/sig/whop_sdk/resources/deposits.rbs +15 -0
- data/sig/whop_sdk/resources/files.rbs +1 -1
- data/sig/whop_sdk/resources/payments.rbs +1 -0
- data/sig/whop_sdk/resources/plans.rbs +4 -0
- data/sig/whop_sdk/resources/products.rbs +2 -0
- data/sig/whop_sdk/resources/swaps.rbs +20 -0
- data/sig/whop_sdk/resources/wallets.rbs +23 -0
- data/sig/whop_sdk/resources/webhooks.rbs +26 -22
- metadata +128 -23
- data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_update_response.rb +0 -328
- data/lib/whop_sdk/models/ad_group_retrieve_response.rb +0 -140
- data/lib/whop_sdk/models/ad_group_update_response.rb +0 -140
- data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +0 -679
- data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +0 -675
- data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +0 -670
- data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +0 -277
- data/rbi/whop_sdk/models/ad_group_update_response.rbi +0 -274
- data/rbi/whop_sdk/models/ad_retrieve_response.rbi +0 -245
- data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_update_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_group_update_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_retrieve_response.rbs +0 -102
|
@@ -29,7 +29,9 @@ module WhopSDK
|
|
|
29
29
|
# The currency of the transfer amount, such as 'usd'.
|
|
30
30
|
currency:,
|
|
31
31
|
# The identifier of the account receiving the funds. Accepts a user ID
|
|
32
|
-
# ('user_xxx'), company ID ('biz_xxx'),
|
|
32
|
+
# ('user_xxx'), company ID ('biz_xxx'), ledger account ID ('ldgr_xxx'), or an
|
|
33
|
+
# email address — emails without an existing Whop user trigger a placeholder-user
|
|
34
|
+
# signup.
|
|
33
35
|
destination_id:,
|
|
34
36
|
# The identifier of the account sending the funds. Accepts a user ID ('user_xxx'),
|
|
35
37
|
# company ID ('biz_xxx'), or ledger account ID ('ldgr_xxx').
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class Wallets
|
|
6
|
+
# Lists every crypto wallet linked to the authenticated resource.
|
|
7
|
+
sig do
|
|
8
|
+
params(request_options: WhopSDK::RequestOptions::OrHash).returns(
|
|
9
|
+
WhopSDK::Models::WalletListResponse
|
|
10
|
+
)
|
|
11
|
+
end
|
|
12
|
+
def list(request_options: {})
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Returns per-token balances held in an account's wallet.
|
|
16
|
+
sig do
|
|
17
|
+
params(
|
|
18
|
+
account_id: String,
|
|
19
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
20
|
+
).returns(WhopSDK::Models::WalletBalanceResponse)
|
|
21
|
+
end
|
|
22
|
+
def balance(
|
|
23
|
+
# The business or user account ID whose wallet balance should be returned.
|
|
24
|
+
account_id,
|
|
25
|
+
request_options: {}
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Sends USDT from an account's wallet to another Whop user or business.
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
account_id: String,
|
|
33
|
+
amount: String,
|
|
34
|
+
to: String,
|
|
35
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
36
|
+
).returns(WhopSDK::Models::WalletSendResponse)
|
|
37
|
+
end
|
|
38
|
+
def send_(
|
|
39
|
+
# The sending account ID.
|
|
40
|
+
account_id,
|
|
41
|
+
# USDT amount to send.
|
|
42
|
+
amount:,
|
|
43
|
+
# Recipient user ID, business account ID, ledger account ID, or email.
|
|
44
|
+
to:,
|
|
45
|
+
request_options: {}
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# @api private
|
|
50
|
+
sig { params(client: WhopSDK::Client).returns(T.attached_class) }
|
|
51
|
+
def self.new(client:)
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -148,39 +148,43 @@ module WhopSDK
|
|
|
148
148
|
key: T.nilable(String)
|
|
149
149
|
).returns(
|
|
150
150
|
T.any(
|
|
151
|
+
WhopSDK::CourseLessonInteractionCompletedWebhookEvent,
|
|
152
|
+
WhopSDK::DisputeCreatedWebhookEvent,
|
|
153
|
+
WhopSDK::DisputeUpdatedWebhookEvent,
|
|
154
|
+
WhopSDK::DisputeAlertCreatedWebhookEvent,
|
|
155
|
+
WhopSDK::EntryApprovedWebhookEvent,
|
|
156
|
+
WhopSDK::EntryCreatedWebhookEvent,
|
|
157
|
+
WhopSDK::EntryDeletedWebhookEvent,
|
|
158
|
+
WhopSDK::EntryDeniedWebhookEvent,
|
|
159
|
+
WhopSDK::IdentityProfileApprovedWebhookEvent,
|
|
160
|
+
WhopSDK::IdentityProfileNeedsActionWebhookEvent,
|
|
161
|
+
WhopSDK::IdentityProfileRejectedWebhookEvent,
|
|
162
|
+
WhopSDK::IdentityProfileUpdatedWebhookEvent,
|
|
151
163
|
WhopSDK::InvoiceCreatedWebhookEvent,
|
|
152
164
|
WhopSDK::InvoiceMarkedUncollectibleWebhookEvent,
|
|
153
165
|
WhopSDK::InvoicePaidWebhookEvent,
|
|
154
166
|
WhopSDK::InvoicePastDueWebhookEvent,
|
|
155
167
|
WhopSDK::InvoiceVoidedWebhookEvent,
|
|
156
168
|
WhopSDK::MembershipActivatedWebhookEvent,
|
|
169
|
+
WhopSDK::MembershipCancelAtPeriodEndChangedWebhookEvent,
|
|
157
170
|
WhopSDK::MembershipDeactivatedWebhookEvent,
|
|
158
|
-
WhopSDK::EntryCreatedWebhookEvent,
|
|
159
|
-
WhopSDK::EntryApprovedWebhookEvent,
|
|
160
|
-
WhopSDK::EntryDeniedWebhookEvent,
|
|
161
|
-
WhopSDK::EntryDeletedWebhookEvent,
|
|
162
|
-
WhopSDK::SetupIntentRequiresActionWebhookEvent,
|
|
163
|
-
WhopSDK::SetupIntentSucceededWebhookEvent,
|
|
164
|
-
WhopSDK::SetupIntentCanceledWebhookEvent,
|
|
165
|
-
WhopSDK::WithdrawalCreatedWebhookEvent,
|
|
166
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent,
|
|
167
|
-
WhopSDK::CourseLessonInteractionCompletedWebhookEvent,
|
|
168
|
-
WhopSDK::PayoutMethodCreatedWebhookEvent,
|
|
169
|
-
WhopSDK::VerificationSucceededWebhookEvent,
|
|
170
|
-
WhopSDK::PayoutAccountStatusUpdatedWebhookEvent,
|
|
171
|
-
WhopSDK::ResolutionCenterCaseCreatedWebhookEvent,
|
|
172
|
-
WhopSDK::ResolutionCenterCaseUpdatedWebhookEvent,
|
|
173
|
-
WhopSDK::ResolutionCenterCaseDecidedWebhookEvent,
|
|
174
171
|
WhopSDK::PaymentCreatedWebhookEvent,
|
|
175
|
-
WhopSDK::PaymentSucceededWebhookEvent,
|
|
176
172
|
WhopSDK::PaymentFailedWebhookEvent,
|
|
177
173
|
WhopSDK::PaymentPendingWebhookEvent,
|
|
178
|
-
WhopSDK::
|
|
179
|
-
WhopSDK::
|
|
174
|
+
WhopSDK::PaymentSucceededWebhookEvent,
|
|
175
|
+
WhopSDK::PayoutAccountStatusUpdatedWebhookEvent,
|
|
176
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent,
|
|
180
177
|
WhopSDK::RefundCreatedWebhookEvent,
|
|
181
178
|
WhopSDK::RefundUpdatedWebhookEvent,
|
|
182
|
-
WhopSDK::
|
|
183
|
-
WhopSDK::
|
|
179
|
+
WhopSDK::ResolutionCenterCaseCreatedWebhookEvent,
|
|
180
|
+
WhopSDK::ResolutionCenterCaseDecidedWebhookEvent,
|
|
181
|
+
WhopSDK::ResolutionCenterCaseUpdatedWebhookEvent,
|
|
182
|
+
WhopSDK::SetupIntentCanceledWebhookEvent,
|
|
183
|
+
WhopSDK::SetupIntentRequiresActionWebhookEvent,
|
|
184
|
+
WhopSDK::SetupIntentSucceededWebhookEvent,
|
|
185
|
+
WhopSDK::VerificationSucceededWebhookEvent,
|
|
186
|
+
WhopSDK::WithdrawalCreatedWebhookEvent,
|
|
187
|
+
WhopSDK::WithdrawalUpdatedWebhookEvent
|
|
184
188
|
)
|
|
185
189
|
)
|
|
186
190
|
end
|
data/sig/whop_sdk/client.rbs
CHANGED
|
@@ -88,6 +88,14 @@ module WhopSDK
|
|
|
88
88
|
|
|
89
89
|
attr_reader account_links: WhopSDK::Resources::AccountLinks
|
|
90
90
|
|
|
91
|
+
attr_reader accounts: WhopSDK::Resources::Accounts
|
|
92
|
+
|
|
93
|
+
attr_reader wallets: WhopSDK::Resources::Wallets
|
|
94
|
+
|
|
95
|
+
attr_reader swaps: WhopSDK::Resources::Swaps
|
|
96
|
+
|
|
97
|
+
attr_reader deposits: WhopSDK::Resources::Deposits
|
|
98
|
+
|
|
91
99
|
attr_reader setup_intents: WhopSDK::Resources::SetupIntents
|
|
92
100
|
|
|
93
101
|
attr_reader payment_methods: WhopSDK::Resources::PaymentMethods
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
banner_image_url: String?,
|
|
7
|
+
business_type: String?,
|
|
8
|
+
created_at: String,
|
|
9
|
+
description: String?,
|
|
10
|
+
email: String?,
|
|
11
|
+
industry_group: String?,
|
|
12
|
+
industry_type: String?,
|
|
13
|
+
logo_url: String?,
|
|
14
|
+
metadata: top,
|
|
15
|
+
parent_account_id: String?,
|
|
16
|
+
route: String,
|
|
17
|
+
send_customer_emails: bool,
|
|
18
|
+
social_links: ::Array[WhopSDK::AccountSocialLink],
|
|
19
|
+
target_audience: String?,
|
|
20
|
+
title: String,
|
|
21
|
+
wallet: WhopSDK::AccountWallet?
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
class Account < WhopSDK::Internal::Type::BaseModel
|
|
25
|
+
attr_accessor id: String
|
|
26
|
+
|
|
27
|
+
attr_accessor banner_image_url: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor business_type: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor created_at: String
|
|
32
|
+
|
|
33
|
+
attr_accessor description: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor email: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor industry_group: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor industry_type: String?
|
|
40
|
+
|
|
41
|
+
attr_accessor logo_url: String?
|
|
42
|
+
|
|
43
|
+
attr_accessor metadata: top
|
|
44
|
+
|
|
45
|
+
attr_accessor parent_account_id: String?
|
|
46
|
+
|
|
47
|
+
attr_accessor route: String
|
|
48
|
+
|
|
49
|
+
attr_accessor send_customer_emails: bool
|
|
50
|
+
|
|
51
|
+
attr_accessor social_links: ::Array[WhopSDK::AccountSocialLink]
|
|
52
|
+
|
|
53
|
+
attr_accessor target_audience: String?
|
|
54
|
+
|
|
55
|
+
attr_accessor title: String
|
|
56
|
+
|
|
57
|
+
attr_accessor wallet: WhopSDK::AccountWallet?
|
|
58
|
+
|
|
59
|
+
def initialize: (
|
|
60
|
+
id: String,
|
|
61
|
+
banner_image_url: String?,
|
|
62
|
+
business_type: String?,
|
|
63
|
+
created_at: String,
|
|
64
|
+
description: String?,
|
|
65
|
+
email: String?,
|
|
66
|
+
industry_group: String?,
|
|
67
|
+
industry_type: String?,
|
|
68
|
+
logo_url: String?,
|
|
69
|
+
metadata: top,
|
|
70
|
+
parent_account_id: String?,
|
|
71
|
+
route: String,
|
|
72
|
+
send_customer_emails: bool,
|
|
73
|
+
social_links: ::Array[WhopSDK::AccountSocialLink],
|
|
74
|
+
target_audience: String?,
|
|
75
|
+
title: String,
|
|
76
|
+
wallet: WhopSDK::AccountWallet?
|
|
77
|
+
) -> void
|
|
78
|
+
|
|
79
|
+
def to_hash: -> {
|
|
80
|
+
id: String,
|
|
81
|
+
banner_image_url: String?,
|
|
82
|
+
business_type: String?,
|
|
83
|
+
created_at: String,
|
|
84
|
+
description: String?,
|
|
85
|
+
email: String?,
|
|
86
|
+
industry_group: String?,
|
|
87
|
+
industry_type: String?,
|
|
88
|
+
logo_url: String?,
|
|
89
|
+
metadata: top,
|
|
90
|
+
parent_account_id: String?,
|
|
91
|
+
route: String,
|
|
92
|
+
send_customer_emails: bool,
|
|
93
|
+
social_links: ::Array[WhopSDK::AccountSocialLink],
|
|
94
|
+
target_audience: String?,
|
|
95
|
+
title: String,
|
|
96
|
+
wallet: WhopSDK::AccountWallet?
|
|
97
|
+
}
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_create_params =
|
|
4
|
+
{ email: String, metadata: ::Hash[Symbol, top] }
|
|
5
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class AccountCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
8
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader email: String?
|
|
12
|
+
|
|
13
|
+
def email=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_reader metadata: ::Hash[Symbol, top]?
|
|
16
|
+
|
|
17
|
+
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?email: String,
|
|
21
|
+
?metadata: ::Hash[Symbol, top],
|
|
22
|
+
?request_options: WhopSDK::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
email: String,
|
|
27
|
+
metadata: ::Hash[Symbol, top],
|
|
28
|
+
request_options: WhopSDK::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_list_params =
|
|
4
|
+
{ page: Integer, per: Integer }
|
|
5
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class AccountListParams < WhopSDK::Internal::Type::BaseModel
|
|
8
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader page: Integer?
|
|
12
|
+
|
|
13
|
+
def page=: (Integer) -> Integer
|
|
14
|
+
|
|
15
|
+
attr_reader per: Integer?
|
|
16
|
+
|
|
17
|
+
def per=: (Integer) -> Integer
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?page: Integer,
|
|
21
|
+
?per: Integer,
|
|
22
|
+
?request_options: WhopSDK::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
page: Integer,
|
|
27
|
+
per: Integer,
|
|
28
|
+
request_options: WhopSDK::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_list_response =
|
|
4
|
+
{
|
|
5
|
+
accounts: ::Array[WhopSDK::Account],
|
|
6
|
+
pagination: WhopSDK::Models::AccountListResponse::Pagination
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class AccountListResponse < WhopSDK::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor accounts: ::Array[WhopSDK::Account]
|
|
11
|
+
|
|
12
|
+
attr_accessor pagination: WhopSDK::Models::AccountListResponse::Pagination
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
accounts: ::Array[WhopSDK::Account],
|
|
16
|
+
pagination: WhopSDK::Models::AccountListResponse::Pagination
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
accounts: ::Array[WhopSDK::Account],
|
|
21
|
+
pagination: WhopSDK::Models::AccountListResponse::Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type pagination =
|
|
25
|
+
{
|
|
26
|
+
current_page: Float,
|
|
27
|
+
next_page: Float?,
|
|
28
|
+
prev_page: Float?,
|
|
29
|
+
total_count: Float,
|
|
30
|
+
total_pages: Float
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class Pagination < WhopSDK::Internal::Type::BaseModel
|
|
34
|
+
attr_accessor current_page: Float
|
|
35
|
+
|
|
36
|
+
attr_accessor next_page: Float?
|
|
37
|
+
|
|
38
|
+
attr_accessor prev_page: Float?
|
|
39
|
+
|
|
40
|
+
attr_accessor total_count: Float
|
|
41
|
+
|
|
42
|
+
attr_accessor total_pages: Float
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
current_page: Float,
|
|
46
|
+
next_page: Float?,
|
|
47
|
+
prev_page: Float?,
|
|
48
|
+
total_count: Float,
|
|
49
|
+
total_pages: Float
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
current_page: Float,
|
|
54
|
+
next_page: Float?,
|
|
55
|
+
prev_page: Float?,
|
|
56
|
+
total_count: Float,
|
|
57
|
+
total_pages: Float
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_me_params = { } & WhopSDK::Internal::Type::request_parameters
|
|
4
|
+
|
|
5
|
+
class AccountMeParams < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_retrieve_params =
|
|
4
|
+
{ account_id: String } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class AccountRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor account_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
account_id: String,
|
|
14
|
+
?request_options: WhopSDK::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
account_id: String,
|
|
19
|
+
request_options: WhopSDK::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_social_link =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
title: String?,
|
|
7
|
+
url: String,
|
|
8
|
+
website: WhopSDK::Models::AccountSocialLink::website
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class AccountSocialLink < WhopSDK::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor title: String?
|
|
15
|
+
|
|
16
|
+
attr_accessor url: String
|
|
17
|
+
|
|
18
|
+
attr_accessor website: WhopSDK::Models::AccountSocialLink::website
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
title: String?,
|
|
23
|
+
url: String,
|
|
24
|
+
website: WhopSDK::Models::AccountSocialLink::website
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
id: String,
|
|
29
|
+
title: String?,
|
|
30
|
+
url: String,
|
|
31
|
+
website: WhopSDK::Models::AccountSocialLink::website
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type website =
|
|
35
|
+
:x
|
|
36
|
+
| :instagram
|
|
37
|
+
| :facebook
|
|
38
|
+
| :tiktok
|
|
39
|
+
| :youtube
|
|
40
|
+
| :linkedin
|
|
41
|
+
| :twitch
|
|
42
|
+
| :website
|
|
43
|
+
| :custom
|
|
44
|
+
|
|
45
|
+
module Website
|
|
46
|
+
extend WhopSDK::Internal::Type::Enum
|
|
47
|
+
|
|
48
|
+
X: :x
|
|
49
|
+
INSTAGRAM: :instagram
|
|
50
|
+
FACEBOOK: :facebook
|
|
51
|
+
TIKTOK: :tiktok
|
|
52
|
+
YOUTUBE: :youtube
|
|
53
|
+
LINKEDIN: :linkedin
|
|
54
|
+
TWITCH: :twitch
|
|
55
|
+
WEBSITE: :website
|
|
56
|
+
CUSTOM: :custom
|
|
57
|
+
|
|
58
|
+
def self?.values: -> ::Array[WhopSDK::Models::AccountSocialLink::website]
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_update_params =
|
|
4
|
+
{
|
|
5
|
+
account_id: String,
|
|
6
|
+
affiliate_application_required: bool,
|
|
7
|
+
affiliate_instructions: String?,
|
|
8
|
+
banner_image: ::Hash[Symbol, top]?,
|
|
9
|
+
business_type: String?,
|
|
10
|
+
description: String?,
|
|
11
|
+
featured_affiliate_product_id: String?,
|
|
12
|
+
industry_group: String?,
|
|
13
|
+
industry_type: String?,
|
|
14
|
+
logo: ::Hash[Symbol, top]?,
|
|
15
|
+
metadata: ::Hash[Symbol, top],
|
|
16
|
+
route: String?,
|
|
17
|
+
send_customer_emails: bool,
|
|
18
|
+
social_links: ::Array[::Hash[Symbol, top]],
|
|
19
|
+
target_audience: String?,
|
|
20
|
+
title: String?
|
|
21
|
+
}
|
|
22
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
23
|
+
|
|
24
|
+
class AccountUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
25
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
26
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
27
|
+
|
|
28
|
+
attr_accessor account_id: String
|
|
29
|
+
|
|
30
|
+
attr_reader affiliate_application_required: bool?
|
|
31
|
+
|
|
32
|
+
def affiliate_application_required=: (bool) -> bool
|
|
33
|
+
|
|
34
|
+
attr_accessor affiliate_instructions: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor banner_image: ::Hash[Symbol, top]?
|
|
37
|
+
|
|
38
|
+
attr_accessor business_type: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor description: String?
|
|
41
|
+
|
|
42
|
+
attr_accessor featured_affiliate_product_id: String?
|
|
43
|
+
|
|
44
|
+
attr_accessor industry_group: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor industry_type: String?
|
|
47
|
+
|
|
48
|
+
attr_accessor logo: ::Hash[Symbol, top]?
|
|
49
|
+
|
|
50
|
+
attr_reader metadata: ::Hash[Symbol, top]?
|
|
51
|
+
|
|
52
|
+
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
53
|
+
|
|
54
|
+
attr_accessor route: String?
|
|
55
|
+
|
|
56
|
+
attr_reader send_customer_emails: bool?
|
|
57
|
+
|
|
58
|
+
def send_customer_emails=: (bool) -> bool
|
|
59
|
+
|
|
60
|
+
attr_reader social_links: ::Array[::Hash[Symbol, top]]?
|
|
61
|
+
|
|
62
|
+
def social_links=: (
|
|
63
|
+
::Array[::Hash[Symbol, top]]
|
|
64
|
+
) -> ::Array[::Hash[Symbol, top]]
|
|
65
|
+
|
|
66
|
+
attr_accessor target_audience: String?
|
|
67
|
+
|
|
68
|
+
attr_accessor title: String?
|
|
69
|
+
|
|
70
|
+
def initialize: (
|
|
71
|
+
account_id: String,
|
|
72
|
+
?affiliate_application_required: bool,
|
|
73
|
+
?affiliate_instructions: String?,
|
|
74
|
+
?banner_image: ::Hash[Symbol, top]?,
|
|
75
|
+
?business_type: String?,
|
|
76
|
+
?description: String?,
|
|
77
|
+
?featured_affiliate_product_id: String?,
|
|
78
|
+
?industry_group: String?,
|
|
79
|
+
?industry_type: String?,
|
|
80
|
+
?logo: ::Hash[Symbol, top]?,
|
|
81
|
+
?metadata: ::Hash[Symbol, top],
|
|
82
|
+
?route: String?,
|
|
83
|
+
?send_customer_emails: bool,
|
|
84
|
+
?social_links: ::Array[::Hash[Symbol, top]],
|
|
85
|
+
?target_audience: String?,
|
|
86
|
+
?title: String?,
|
|
87
|
+
?request_options: WhopSDK::request_opts
|
|
88
|
+
) -> void
|
|
89
|
+
|
|
90
|
+
def to_hash: -> {
|
|
91
|
+
account_id: String,
|
|
92
|
+
affiliate_application_required: bool,
|
|
93
|
+
affiliate_instructions: String?,
|
|
94
|
+
banner_image: ::Hash[Symbol, top]?,
|
|
95
|
+
business_type: String?,
|
|
96
|
+
description: String?,
|
|
97
|
+
featured_affiliate_product_id: String?,
|
|
98
|
+
industry_group: String?,
|
|
99
|
+
industry_type: String?,
|
|
100
|
+
logo: ::Hash[Symbol, top]?,
|
|
101
|
+
metadata: ::Hash[Symbol, top],
|
|
102
|
+
route: String?,
|
|
103
|
+
send_customer_emails: bool,
|
|
104
|
+
social_links: ::Array[::Hash[Symbol, top]],
|
|
105
|
+
target_audience: String?,
|
|
106
|
+
title: String?,
|
|
107
|
+
request_options: WhopSDK::RequestOptions
|
|
108
|
+
}
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_wallet =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
address: String,
|
|
7
|
+
network: WhopSDK::Models::AccountWallet::network
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class AccountWallet < WhopSDK::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor address: String
|
|
14
|
+
|
|
15
|
+
attr_accessor network: WhopSDK::Models::AccountWallet::network
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
id: String,
|
|
19
|
+
address: String,
|
|
20
|
+
network: WhopSDK::Models::AccountWallet::network
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
address: String,
|
|
26
|
+
network: WhopSDK::Models::AccountWallet::network
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type network = :solana | :ethereum | :bitcoin
|
|
30
|
+
|
|
31
|
+
module Network
|
|
32
|
+
extend WhopSDK::Internal::Type::Enum
|
|
33
|
+
|
|
34
|
+
SOLANA: :solana
|
|
35
|
+
ETHEREUM: :ethereum
|
|
36
|
+
BITCOIN: :bitcoin
|
|
37
|
+
|
|
38
|
+
def self?.values: -> ::Array[WhopSDK::Models::AccountWallet::network]
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|