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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8339ed9107167f3bebd5e378dbca86b774d537567cea1f1c5e3cd3c891bb11dc
|
|
4
|
+
data.tar.gz: 4415f996f2954a71c628ac2c4b3550d1294e2a650838b051557f51d571454a4a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8db0203f0507133fc18b5bf2a20dab6aca19545c36984ea930376ab6c5ae223d630595f6f319c2ca979174151833d3dc07da3f466e4b915f5a05e0b85817ba4c
|
|
7
|
+
data.tar.gz: 72426ed15f97c6b70b82d0f3346adf1c97fb29fbccc7235971ae3d5b5ba4fcb22d58787a6f95cf59d9e6204208c5b174d506c45db59d4017e46a4f51746644ec
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.40](https://github.com/whopio/whopsdk-ruby/compare/v0.0.39...v0.0.40) (2026-06-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** public swaps API execute swap ([1102926](https://github.com/whopio/whopsdk-ruby/commit/1102926e6d97ecdb411d397411ff94f57a641d30))
|
|
9
|
+
|
|
3
10
|
## 0.0.39 (2026-05-12)
|
|
4
11
|
|
|
5
12
|
Full Changelog: [v0.0.38...v0.0.39](https://github.com/whopio/whopsdk-ruby/compare/v0.0.38...v0.0.39)
|
data/README.md
CHANGED
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -16,7 +16,7 @@ module WhopSDK
|
|
|
16
16
|
DEFAULT_MAX_RETRY_DELAY = 8.0
|
|
17
17
|
|
|
18
18
|
# A company API key, company scoped JWT, app API key, or user OAuth token. You
|
|
19
|
-
# must prepend your key/token with the word
|
|
19
|
+
# must prepend your key/token with the word `Bearer`, which will look like
|
|
20
20
|
# `Bearer ***************************`
|
|
21
21
|
# @return [String]
|
|
22
22
|
attr_reader :api_key
|
|
@@ -189,6 +189,18 @@ module WhopSDK
|
|
|
189
189
|
# @return [WhopSDK::Resources::AccountLinks]
|
|
190
190
|
attr_reader :account_links
|
|
191
191
|
|
|
192
|
+
# @return [WhopSDK::Resources::Accounts]
|
|
193
|
+
attr_reader :accounts
|
|
194
|
+
|
|
195
|
+
# @return [WhopSDK::Resources::Wallets]
|
|
196
|
+
attr_reader :wallets
|
|
197
|
+
|
|
198
|
+
# @return [WhopSDK::Resources::Swaps]
|
|
199
|
+
attr_reader :swaps
|
|
200
|
+
|
|
201
|
+
# @return [WhopSDK::Resources::Deposits]
|
|
202
|
+
attr_reader :deposits
|
|
203
|
+
|
|
192
204
|
# Setup intents
|
|
193
205
|
# @return [WhopSDK::Resources::SetupIntents]
|
|
194
206
|
attr_reader :setup_intents
|
|
@@ -289,7 +301,7 @@ module WhopSDK
|
|
|
289
301
|
# Creates and returns a new client for interacting with the API.
|
|
290
302
|
#
|
|
291
303
|
# @param api_key [String, nil] A company API key, company scoped JWT, app API key, or user OAuth token. You
|
|
292
|
-
# must prepend your key/token with the word
|
|
304
|
+
# must prepend your key/token with the word `Bearer`, which will look like
|
|
293
305
|
# `Bearer ***************************` Defaults to `ENV["WHOP_API_KEY"]`
|
|
294
306
|
#
|
|
295
307
|
# @param webhook_key [String, nil] Defaults to `ENV["WHOP_WEBHOOK_SECRET"]`
|
|
@@ -398,6 +410,10 @@ module WhopSDK
|
|
|
398
410
|
@refunds = WhopSDK::Resources::Refunds.new(client: self)
|
|
399
411
|
@withdrawals = WhopSDK::Resources::Withdrawals.new(client: self)
|
|
400
412
|
@account_links = WhopSDK::Resources::AccountLinks.new(client: self)
|
|
413
|
+
@accounts = WhopSDK::Resources::Accounts.new(client: self)
|
|
414
|
+
@wallets = WhopSDK::Resources::Wallets.new(client: self)
|
|
415
|
+
@swaps = WhopSDK::Resources::Swaps.new(client: self)
|
|
416
|
+
@deposits = WhopSDK::Resources::Deposits.new(client: self)
|
|
401
417
|
@setup_intents = WhopSDK::Resources::SetupIntents.new(client: self)
|
|
402
418
|
@payment_methods = WhopSDK::Resources::PaymentMethods.new(client: self)
|
|
403
419
|
@fee_markups = WhopSDK::Resources::FeeMarkups.new(client: self)
|
|
@@ -306,6 +306,8 @@ module WhopSDK
|
|
|
306
306
|
WhopSDK::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
+
headers.delete("content-type") if body.nil?
|
|
310
|
+
|
|
309
311
|
url = WhopSDK::Internal::Util.join_parsed_uri(
|
|
310
312
|
@base_url_components,
|
|
311
313
|
{**req, path: path, query: query}
|
|
@@ -8,11 +8,11 @@ module WhopSDK
|
|
|
8
8
|
# @example
|
|
9
9
|
# # `unwrap_webhook_event` is a `WhopSDK::UnwrapWebhookEvent`
|
|
10
10
|
# case unwrap_webhook_event
|
|
11
|
-
# when WhopSDK::
|
|
11
|
+
# when WhopSDK::CourseLessonInteractionCompletedWebhookEvent
|
|
12
12
|
# puts(unwrap_webhook_event.id)
|
|
13
|
-
# when WhopSDK::
|
|
13
|
+
# when WhopSDK::DisputeCreatedWebhookEvent
|
|
14
14
|
# puts(unwrap_webhook_event.api_version)
|
|
15
|
-
# when WhopSDK::
|
|
15
|
+
# when WhopSDK::DisputeUpdatedWebhookEvent
|
|
16
16
|
# puts(unwrap_webhook_event.data)
|
|
17
17
|
# else
|
|
18
18
|
# puts(unwrap_webhook_event)
|
|
@@ -20,11 +20,11 @@ module WhopSDK
|
|
|
20
20
|
#
|
|
21
21
|
# @example
|
|
22
22
|
# case unwrap_webhook_event
|
|
23
|
-
# in {type: :"
|
|
23
|
+
# in {type: :"course_lesson_interaction.completed", id: id, api_version: api_version, data: data}
|
|
24
24
|
# puts(id)
|
|
25
|
-
# in {type: :"
|
|
25
|
+
# in {type: :"dispute.created", id: id, api_version: api_version, data: data}
|
|
26
26
|
# puts(api_version)
|
|
27
|
-
# in {type: :"
|
|
27
|
+
# in {type: :"dispute.updated", id: id, api_version: api_version, data: data}
|
|
28
28
|
# puts(data)
|
|
29
29
|
# else
|
|
30
30
|
# puts(unwrap_webhook_event)
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Accounts#create
|
|
6
|
+
class Account < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The ID of the account, which will look like biz\_******\*******
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute banner_image_url
|
|
14
|
+
# The URL of the account banner image
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :banner_image_url, String, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute business_type
|
|
20
|
+
# The high-level business category for the account
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
required :business_type, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute created_at
|
|
26
|
+
# When the account was created, as an ISO 8601 timestamp
|
|
27
|
+
#
|
|
28
|
+
# @return [String]
|
|
29
|
+
required :created_at, String
|
|
30
|
+
|
|
31
|
+
# @!attribute description
|
|
32
|
+
# A promotional description for the account
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
required :description, String, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute email
|
|
38
|
+
# The email address of the account owner
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
required :email, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute industry_group
|
|
44
|
+
# The industry group the account belongs to
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
required :industry_group, String, nil?: true
|
|
48
|
+
|
|
49
|
+
# @!attribute industry_type
|
|
50
|
+
# The specific industry vertical the account operates in
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
required :industry_type, String, nil?: true
|
|
54
|
+
|
|
55
|
+
# @!attribute logo_url
|
|
56
|
+
# The URL of the account logo image
|
|
57
|
+
#
|
|
58
|
+
# @return [String, nil]
|
|
59
|
+
required :logo_url, String, nil?: true
|
|
60
|
+
|
|
61
|
+
# @!attribute metadata
|
|
62
|
+
# Arbitrary key/value metadata supplied when the account was created
|
|
63
|
+
#
|
|
64
|
+
# @return [Object]
|
|
65
|
+
required :metadata, WhopSDK::Internal::Type::Unknown
|
|
66
|
+
|
|
67
|
+
# @!attribute parent_account_id
|
|
68
|
+
# The parent account ID for connected accounts
|
|
69
|
+
#
|
|
70
|
+
# @return [String, nil]
|
|
71
|
+
required :parent_account_id, String, nil?: true
|
|
72
|
+
|
|
73
|
+
# @!attribute route
|
|
74
|
+
# The account's public route identifier
|
|
75
|
+
#
|
|
76
|
+
# @return [String]
|
|
77
|
+
required :route, String
|
|
78
|
+
|
|
79
|
+
# @!attribute send_customer_emails
|
|
80
|
+
# Whether Whop sends transactional emails to customers on behalf of this account
|
|
81
|
+
#
|
|
82
|
+
# @return [Boolean]
|
|
83
|
+
required :send_customer_emails, WhopSDK::Internal::Type::Boolean
|
|
84
|
+
|
|
85
|
+
# @!attribute social_links
|
|
86
|
+
#
|
|
87
|
+
# @return [Array<WhopSDK::Models::AccountSocialLink>]
|
|
88
|
+
required :social_links, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::AccountSocialLink] }
|
|
89
|
+
|
|
90
|
+
# @!attribute target_audience
|
|
91
|
+
# The target audience for this account
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
required :target_audience, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!attribute title
|
|
97
|
+
# The display name of the account
|
|
98
|
+
#
|
|
99
|
+
# @return [String]
|
|
100
|
+
required :title, String
|
|
101
|
+
|
|
102
|
+
# @!attribute wallet
|
|
103
|
+
# The account's primary crypto wallet, or null if none has been provisioned
|
|
104
|
+
#
|
|
105
|
+
# @return [WhopSDK::Models::AccountWallet, nil]
|
|
106
|
+
required :wallet, -> { WhopSDK::AccountWallet }, nil?: true
|
|
107
|
+
|
|
108
|
+
# @!method initialize(id:, banner_image_url:, business_type:, created_at:, description:, email:, industry_group:, industry_type:, logo_url:, metadata:, parent_account_id:, route:, send_customer_emails:, social_links:, target_audience:, title:, wallet:)
|
|
109
|
+
# @param id [String] The ID of the account, which will look like biz\_******\*******
|
|
110
|
+
#
|
|
111
|
+
# @param banner_image_url [String, nil] The URL of the account banner image
|
|
112
|
+
#
|
|
113
|
+
# @param business_type [String, nil] The high-level business category for the account
|
|
114
|
+
#
|
|
115
|
+
# @param created_at [String] When the account was created, as an ISO 8601 timestamp
|
|
116
|
+
#
|
|
117
|
+
# @param description [String, nil] A promotional description for the account
|
|
118
|
+
#
|
|
119
|
+
# @param email [String, nil] The email address of the account owner
|
|
120
|
+
#
|
|
121
|
+
# @param industry_group [String, nil] The industry group the account belongs to
|
|
122
|
+
#
|
|
123
|
+
# @param industry_type [String, nil] The specific industry vertical the account operates in
|
|
124
|
+
#
|
|
125
|
+
# @param logo_url [String, nil] The URL of the account logo image
|
|
126
|
+
#
|
|
127
|
+
# @param metadata [Object] Arbitrary key/value metadata supplied when the account was created
|
|
128
|
+
#
|
|
129
|
+
# @param parent_account_id [String, nil] The parent account ID for connected accounts
|
|
130
|
+
#
|
|
131
|
+
# @param route [String] The account's public route identifier
|
|
132
|
+
#
|
|
133
|
+
# @param send_customer_emails [Boolean] Whether Whop sends transactional emails to customers on behalf of this account
|
|
134
|
+
#
|
|
135
|
+
# @param social_links [Array<WhopSDK::Models::AccountSocialLink>]
|
|
136
|
+
#
|
|
137
|
+
# @param target_audience [String, nil] The target audience for this account
|
|
138
|
+
#
|
|
139
|
+
# @param title [String] The display name of the account
|
|
140
|
+
#
|
|
141
|
+
# @param wallet [WhopSDK::Models::AccountWallet, nil] The account's primary crypto wallet, or null if none has been provisioned
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Accounts#create
|
|
6
|
+
class AccountCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute email
|
|
11
|
+
# The email address of the account owner. Required for business account API key
|
|
12
|
+
# requests.
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :email, String
|
|
16
|
+
|
|
17
|
+
# @!attribute metadata
|
|
18
|
+
# Arbitrary key/value metadata to store on the account.
|
|
19
|
+
#
|
|
20
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
21
|
+
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
|
|
22
|
+
|
|
23
|
+
# @!method initialize(email: nil, metadata: nil, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {WhopSDK::Models::AccountCreateParams} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param email [String] The email address of the account owner. Required for business account API key re
|
|
28
|
+
#
|
|
29
|
+
# @param metadata [Hash{Symbol=>Object}] Arbitrary key/value metadata to store on the account.
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Accounts#list
|
|
6
|
+
class AccountListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute page
|
|
11
|
+
# The page number to retrieve
|
|
12
|
+
#
|
|
13
|
+
# @return [Integer, nil]
|
|
14
|
+
optional :page, Integer
|
|
15
|
+
|
|
16
|
+
# @!attribute per
|
|
17
|
+
# The number of resources to return per page. There is a limit of 50 results per
|
|
18
|
+
# page.
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer, nil]
|
|
21
|
+
optional :per, Integer
|
|
22
|
+
|
|
23
|
+
# @!method initialize(page: nil, per: nil, request_options: {})
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {WhopSDK::Models::AccountListParams} for more details.
|
|
26
|
+
#
|
|
27
|
+
# @param page [Integer] The page number to retrieve
|
|
28
|
+
#
|
|
29
|
+
# @param per [Integer] The number of resources to return per page. There is a limit of 50 results per p
|
|
30
|
+
#
|
|
31
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Accounts#list
|
|
6
|
+
class AccountListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute accounts
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<WhopSDK::Models::Account>]
|
|
10
|
+
required :accounts, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::Account] }
|
|
11
|
+
|
|
12
|
+
# @!attribute pagination
|
|
13
|
+
#
|
|
14
|
+
# @return [WhopSDK::Models::AccountListResponse::Pagination]
|
|
15
|
+
required :pagination, -> { WhopSDK::Models::AccountListResponse::Pagination }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(accounts:, pagination:)
|
|
18
|
+
# @param accounts [Array<WhopSDK::Models::Account>]
|
|
19
|
+
# @param pagination [WhopSDK::Models::AccountListResponse::Pagination]
|
|
20
|
+
|
|
21
|
+
# @see WhopSDK::Models::AccountListResponse#pagination
|
|
22
|
+
class Pagination < WhopSDK::Internal::Type::BaseModel
|
|
23
|
+
# @!attribute current_page
|
|
24
|
+
# Current page number
|
|
25
|
+
#
|
|
26
|
+
# @return [Float]
|
|
27
|
+
required :current_page, Float
|
|
28
|
+
|
|
29
|
+
# @!attribute next_page
|
|
30
|
+
# Next page number
|
|
31
|
+
#
|
|
32
|
+
# @return [Float, nil]
|
|
33
|
+
required :next_page, Float, nil?: true
|
|
34
|
+
|
|
35
|
+
# @!attribute prev_page
|
|
36
|
+
# Previous page number
|
|
37
|
+
#
|
|
38
|
+
# @return [Float, nil]
|
|
39
|
+
required :prev_page, Float, nil?: true
|
|
40
|
+
|
|
41
|
+
# @!attribute total_count
|
|
42
|
+
# Total number of records
|
|
43
|
+
#
|
|
44
|
+
# @return [Float]
|
|
45
|
+
required :total_count, Float
|
|
46
|
+
|
|
47
|
+
# @!attribute total_pages
|
|
48
|
+
# Total number of pages
|
|
49
|
+
#
|
|
50
|
+
# @return [Float]
|
|
51
|
+
required :total_pages, Float
|
|
52
|
+
|
|
53
|
+
# @!method initialize(current_page:, next_page:, prev_page:, total_count:, total_pages:)
|
|
54
|
+
# @param current_page [Float] Current page number
|
|
55
|
+
#
|
|
56
|
+
# @param next_page [Float, nil] Next page number
|
|
57
|
+
#
|
|
58
|
+
# @param prev_page [Float, nil] Previous page number
|
|
59
|
+
#
|
|
60
|
+
# @param total_count [Float] Total number of records
|
|
61
|
+
#
|
|
62
|
+
# @param total_pages [Float] Total number of pages
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Accounts#me
|
|
6
|
+
class AccountMeParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Accounts#retrieve
|
|
6
|
+
class AccountRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute account_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :account_id, String
|
|
14
|
+
|
|
15
|
+
# @!method initialize(account_id:, request_options: {})
|
|
16
|
+
# @param account_id [String]
|
|
17
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class AccountSocialLink < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# The ID of the social link
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute title
|
|
13
|
+
# The optional display title for the social link
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
required :title, String, nil?: true
|
|
17
|
+
|
|
18
|
+
# @!attribute url
|
|
19
|
+
# The social link URL
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :url, String
|
|
23
|
+
|
|
24
|
+
# @!attribute website
|
|
25
|
+
# The social platform for this link
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, WhopSDK::Models::AccountSocialLink::Website]
|
|
28
|
+
required :website, enum: -> { WhopSDK::AccountSocialLink::Website }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(id:, title:, url:, website:)
|
|
31
|
+
# @param id [String] The ID of the social link
|
|
32
|
+
#
|
|
33
|
+
# @param title [String, nil] The optional display title for the social link
|
|
34
|
+
#
|
|
35
|
+
# @param url [String] The social link URL
|
|
36
|
+
#
|
|
37
|
+
# @param website [Symbol, WhopSDK::Models::AccountSocialLink::Website] The social platform for this link
|
|
38
|
+
|
|
39
|
+
# The social platform for this link
|
|
40
|
+
#
|
|
41
|
+
# @see WhopSDK::Models::AccountSocialLink#website
|
|
42
|
+
module Website
|
|
43
|
+
extend WhopSDK::Internal::Type::Enum
|
|
44
|
+
|
|
45
|
+
X = :x
|
|
46
|
+
INSTAGRAM = :instagram
|
|
47
|
+
FACEBOOK = :facebook
|
|
48
|
+
TIKTOK = :tiktok
|
|
49
|
+
YOUTUBE = :youtube
|
|
50
|
+
LINKEDIN = :linkedin
|
|
51
|
+
TWITCH = :twitch
|
|
52
|
+
WEBSITE = :website
|
|
53
|
+
CUSTOM = :custom
|
|
54
|
+
|
|
55
|
+
# @!method self.values
|
|
56
|
+
# @return [Array<Symbol>]
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Accounts#update
|
|
6
|
+
class AccountUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute account_id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :account_id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute affiliate_application_required
|
|
16
|
+
# Whether prospective affiliates must submit an application before promoting this
|
|
17
|
+
# account.
|
|
18
|
+
#
|
|
19
|
+
# @return [Boolean, nil]
|
|
20
|
+
optional :affiliate_application_required, WhopSDK::Internal::Type::Boolean
|
|
21
|
+
|
|
22
|
+
# @!attribute affiliate_instructions
|
|
23
|
+
# Guidelines shown to affiliates promoting this account.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :affiliate_instructions, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute banner_image
|
|
29
|
+
# Attachment input for the account banner image.
|
|
30
|
+
#
|
|
31
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
32
|
+
optional :banner_image, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute business_type
|
|
35
|
+
# The high-level business category for the account.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :business_type, String, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute description
|
|
41
|
+
# A promotional description for the account.
|
|
42
|
+
#
|
|
43
|
+
# @return [String, nil]
|
|
44
|
+
optional :description, String, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute featured_affiliate_product_id
|
|
47
|
+
# The ID of the product to feature for affiliates. Pass null to clear.
|
|
48
|
+
#
|
|
49
|
+
# @return [String, nil]
|
|
50
|
+
optional :featured_affiliate_product_id, String, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!attribute industry_group
|
|
53
|
+
# The industry group the account belongs to.
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :industry_group, String, nil?: true
|
|
57
|
+
|
|
58
|
+
# @!attribute industry_type
|
|
59
|
+
# The specific industry vertical the account operates in.
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :industry_type, String, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!attribute logo
|
|
65
|
+
# Attachment input for the account logo.
|
|
66
|
+
#
|
|
67
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
68
|
+
optional :logo, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
69
|
+
|
|
70
|
+
# @!attribute metadata
|
|
71
|
+
# Arbitrary key/value metadata to store on the account.
|
|
72
|
+
#
|
|
73
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
74
|
+
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
|
|
75
|
+
|
|
76
|
+
# @!attribute route
|
|
77
|
+
# The unique URL slug for the account.
|
|
78
|
+
#
|
|
79
|
+
# @return [String, nil]
|
|
80
|
+
optional :route, String, nil?: true
|
|
81
|
+
|
|
82
|
+
# @!attribute send_customer_emails
|
|
83
|
+
# Whether Whop sends transactional emails to customers on behalf of this account.
|
|
84
|
+
#
|
|
85
|
+
# @return [Boolean, nil]
|
|
86
|
+
optional :send_customer_emails, WhopSDK::Internal::Type::Boolean
|
|
87
|
+
|
|
88
|
+
# @!attribute social_links
|
|
89
|
+
# The full list of social links to display for the account.
|
|
90
|
+
#
|
|
91
|
+
# @return [Array<Hash{Symbol=>Object}>, nil]
|
|
92
|
+
optional :social_links,
|
|
93
|
+
WhopSDK::Internal::Type::ArrayOf[WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]]
|
|
94
|
+
|
|
95
|
+
# @!attribute target_audience
|
|
96
|
+
# The target audience for this account.
|
|
97
|
+
#
|
|
98
|
+
# @return [String, nil]
|
|
99
|
+
optional :target_audience, String, nil?: true
|
|
100
|
+
|
|
101
|
+
# @!attribute title
|
|
102
|
+
# The display name of the account.
|
|
103
|
+
#
|
|
104
|
+
# @return [String, nil]
|
|
105
|
+
optional :title, String, nil?: true
|
|
106
|
+
|
|
107
|
+
# @!method initialize(account_id:, affiliate_application_required: nil, affiliate_instructions: nil, banner_image: nil, business_type: nil, description: nil, featured_affiliate_product_id: nil, industry_group: nil, industry_type: nil, logo: nil, metadata: nil, route: nil, send_customer_emails: nil, social_links: nil, target_audience: nil, title: nil, request_options: {})
|
|
108
|
+
# Some parameter documentations has been truncated, see
|
|
109
|
+
# {WhopSDK::Models::AccountUpdateParams} for more details.
|
|
110
|
+
#
|
|
111
|
+
# @param account_id [String]
|
|
112
|
+
#
|
|
113
|
+
# @param affiliate_application_required [Boolean] Whether prospective affiliates must submit an application before promoting this
|
|
114
|
+
#
|
|
115
|
+
# @param affiliate_instructions [String, nil] Guidelines shown to affiliates promoting this account.
|
|
116
|
+
#
|
|
117
|
+
# @param banner_image [Hash{Symbol=>Object}, nil] Attachment input for the account banner image.
|
|
118
|
+
#
|
|
119
|
+
# @param business_type [String, nil] The high-level business category for the account.
|
|
120
|
+
#
|
|
121
|
+
# @param description [String, nil] A promotional description for the account.
|
|
122
|
+
#
|
|
123
|
+
# @param featured_affiliate_product_id [String, nil] The ID of the product to feature for affiliates. Pass null to clear.
|
|
124
|
+
#
|
|
125
|
+
# @param industry_group [String, nil] The industry group the account belongs to.
|
|
126
|
+
#
|
|
127
|
+
# @param industry_type [String, nil] The specific industry vertical the account operates in.
|
|
128
|
+
#
|
|
129
|
+
# @param logo [Hash{Symbol=>Object}, nil] Attachment input for the account logo.
|
|
130
|
+
#
|
|
131
|
+
# @param metadata [Hash{Symbol=>Object}] Arbitrary key/value metadata to store on the account.
|
|
132
|
+
#
|
|
133
|
+
# @param route [String, nil] The unique URL slug for the account.
|
|
134
|
+
#
|
|
135
|
+
# @param send_customer_emails [Boolean] Whether Whop sends transactional emails to customers on behalf of this account.
|
|
136
|
+
#
|
|
137
|
+
# @param social_links [Array<Hash{Symbol=>Object}>] The full list of social links to display for the account.
|
|
138
|
+
#
|
|
139
|
+
# @param target_audience [String, nil] The target audience for this account.
|
|
140
|
+
#
|
|
141
|
+
# @param title [String, nil] The display name of the account.
|
|
142
|
+
#
|
|
143
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|