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
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class AccountUpdateParams < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(WhopSDK::AccountUpdateParams, WhopSDK::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :account_id
|
|
16
|
+
|
|
17
|
+
# Whether prospective affiliates must submit an application before promoting this
|
|
18
|
+
# account.
|
|
19
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
20
|
+
attr_reader :affiliate_application_required
|
|
21
|
+
|
|
22
|
+
sig { params(affiliate_application_required: T::Boolean).void }
|
|
23
|
+
attr_writer :affiliate_application_required
|
|
24
|
+
|
|
25
|
+
# Guidelines shown to affiliates promoting this account.
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_accessor :affiliate_instructions
|
|
28
|
+
|
|
29
|
+
# Attachment input for the account banner image.
|
|
30
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
31
|
+
attr_accessor :banner_image
|
|
32
|
+
|
|
33
|
+
# The high-level business category for the account.
|
|
34
|
+
sig { returns(T.nilable(String)) }
|
|
35
|
+
attr_accessor :business_type
|
|
36
|
+
|
|
37
|
+
# A promotional description for the account.
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_accessor :description
|
|
40
|
+
|
|
41
|
+
# The ID of the product to feature for affiliates. Pass null to clear.
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_accessor :featured_affiliate_product_id
|
|
44
|
+
|
|
45
|
+
# The industry group the account belongs to.
|
|
46
|
+
sig { returns(T.nilable(String)) }
|
|
47
|
+
attr_accessor :industry_group
|
|
48
|
+
|
|
49
|
+
# The specific industry vertical the account operates in.
|
|
50
|
+
sig { returns(T.nilable(String)) }
|
|
51
|
+
attr_accessor :industry_type
|
|
52
|
+
|
|
53
|
+
# Attachment input for the account logo.
|
|
54
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
55
|
+
attr_accessor :logo
|
|
56
|
+
|
|
57
|
+
# Arbitrary key/value metadata to store on the account.
|
|
58
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
59
|
+
attr_reader :metadata
|
|
60
|
+
|
|
61
|
+
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
|
|
62
|
+
attr_writer :metadata
|
|
63
|
+
|
|
64
|
+
# The unique URL slug for the account.
|
|
65
|
+
sig { returns(T.nilable(String)) }
|
|
66
|
+
attr_accessor :route
|
|
67
|
+
|
|
68
|
+
# Whether Whop sends transactional emails to customers on behalf of this account.
|
|
69
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
70
|
+
attr_reader :send_customer_emails
|
|
71
|
+
|
|
72
|
+
sig { params(send_customer_emails: T::Boolean).void }
|
|
73
|
+
attr_writer :send_customer_emails
|
|
74
|
+
|
|
75
|
+
# The full list of social links to display for the account.
|
|
76
|
+
sig { returns(T.nilable(T::Array[T::Hash[Symbol, T.anything]])) }
|
|
77
|
+
attr_reader :social_links
|
|
78
|
+
|
|
79
|
+
sig { params(social_links: T::Array[T::Hash[Symbol, T.anything]]).void }
|
|
80
|
+
attr_writer :social_links
|
|
81
|
+
|
|
82
|
+
# The target audience for this account.
|
|
83
|
+
sig { returns(T.nilable(String)) }
|
|
84
|
+
attr_accessor :target_audience
|
|
85
|
+
|
|
86
|
+
# The display name of the account.
|
|
87
|
+
sig { returns(T.nilable(String)) }
|
|
88
|
+
attr_accessor :title
|
|
89
|
+
|
|
90
|
+
sig do
|
|
91
|
+
params(
|
|
92
|
+
account_id: String,
|
|
93
|
+
affiliate_application_required: T::Boolean,
|
|
94
|
+
affiliate_instructions: T.nilable(String),
|
|
95
|
+
banner_image: T.nilable(T::Hash[Symbol, T.anything]),
|
|
96
|
+
business_type: T.nilable(String),
|
|
97
|
+
description: T.nilable(String),
|
|
98
|
+
featured_affiliate_product_id: T.nilable(String),
|
|
99
|
+
industry_group: T.nilable(String),
|
|
100
|
+
industry_type: T.nilable(String),
|
|
101
|
+
logo: T.nilable(T::Hash[Symbol, T.anything]),
|
|
102
|
+
metadata: T::Hash[Symbol, T.anything],
|
|
103
|
+
route: T.nilable(String),
|
|
104
|
+
send_customer_emails: T::Boolean,
|
|
105
|
+
social_links: T::Array[T::Hash[Symbol, T.anything]],
|
|
106
|
+
target_audience: T.nilable(String),
|
|
107
|
+
title: T.nilable(String),
|
|
108
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
109
|
+
).returns(T.attached_class)
|
|
110
|
+
end
|
|
111
|
+
def self.new(
|
|
112
|
+
account_id:,
|
|
113
|
+
# Whether prospective affiliates must submit an application before promoting this
|
|
114
|
+
# account.
|
|
115
|
+
affiliate_application_required: nil,
|
|
116
|
+
# Guidelines shown to affiliates promoting this account.
|
|
117
|
+
affiliate_instructions: nil,
|
|
118
|
+
# Attachment input for the account banner image.
|
|
119
|
+
banner_image: nil,
|
|
120
|
+
# The high-level business category for the account.
|
|
121
|
+
business_type: nil,
|
|
122
|
+
# A promotional description for the account.
|
|
123
|
+
description: nil,
|
|
124
|
+
# The ID of the product to feature for affiliates. Pass null to clear.
|
|
125
|
+
featured_affiliate_product_id: nil,
|
|
126
|
+
# The industry group the account belongs to.
|
|
127
|
+
industry_group: nil,
|
|
128
|
+
# The specific industry vertical the account operates in.
|
|
129
|
+
industry_type: nil,
|
|
130
|
+
# Attachment input for the account logo.
|
|
131
|
+
logo: nil,
|
|
132
|
+
# Arbitrary key/value metadata to store on the account.
|
|
133
|
+
metadata: nil,
|
|
134
|
+
# The unique URL slug for the account.
|
|
135
|
+
route: nil,
|
|
136
|
+
# Whether Whop sends transactional emails to customers on behalf of this account.
|
|
137
|
+
send_customer_emails: nil,
|
|
138
|
+
# The full list of social links to display for the account.
|
|
139
|
+
social_links: nil,
|
|
140
|
+
# The target audience for this account.
|
|
141
|
+
target_audience: nil,
|
|
142
|
+
# The display name of the account.
|
|
143
|
+
title: nil,
|
|
144
|
+
request_options: {}
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
sig do
|
|
149
|
+
override.returns(
|
|
150
|
+
{
|
|
151
|
+
account_id: String,
|
|
152
|
+
affiliate_application_required: T::Boolean,
|
|
153
|
+
affiliate_instructions: T.nilable(String),
|
|
154
|
+
banner_image: T.nilable(T::Hash[Symbol, T.anything]),
|
|
155
|
+
business_type: T.nilable(String),
|
|
156
|
+
description: T.nilable(String),
|
|
157
|
+
featured_affiliate_product_id: T.nilable(String),
|
|
158
|
+
industry_group: T.nilable(String),
|
|
159
|
+
industry_type: T.nilable(String),
|
|
160
|
+
logo: T.nilable(T::Hash[Symbol, T.anything]),
|
|
161
|
+
metadata: T::Hash[Symbol, T.anything],
|
|
162
|
+
route: T.nilable(String),
|
|
163
|
+
send_customer_emails: T::Boolean,
|
|
164
|
+
social_links: T::Array[T::Hash[Symbol, T.anything]],
|
|
165
|
+
target_audience: T.nilable(String),
|
|
166
|
+
title: T.nilable(String),
|
|
167
|
+
request_options: WhopSDK::RequestOptions
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
end
|
|
171
|
+
def to_hash
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class AccountWallet < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(WhopSDK::AccountWallet, WhopSDK::Internal::AnyHash)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
# The ID of the wallet, which will look like wallet\_******\*******
|
|
12
|
+
sig { returns(String) }
|
|
13
|
+
attr_accessor :id
|
|
14
|
+
|
|
15
|
+
# The on-chain address of the wallet
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :address
|
|
18
|
+
|
|
19
|
+
# The blockchain network the wallet lives on
|
|
20
|
+
sig { returns(WhopSDK::AccountWallet::Network::TaggedSymbol) }
|
|
21
|
+
attr_accessor :network
|
|
22
|
+
|
|
23
|
+
sig do
|
|
24
|
+
params(
|
|
25
|
+
id: String,
|
|
26
|
+
address: String,
|
|
27
|
+
network: WhopSDK::AccountWallet::Network::OrSymbol
|
|
28
|
+
).returns(T.attached_class)
|
|
29
|
+
end
|
|
30
|
+
def self.new(
|
|
31
|
+
# The ID of the wallet, which will look like wallet\_******\*******
|
|
32
|
+
id:,
|
|
33
|
+
# The on-chain address of the wallet
|
|
34
|
+
address:,
|
|
35
|
+
# The blockchain network the wallet lives on
|
|
36
|
+
network:
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
sig do
|
|
41
|
+
override.returns(
|
|
42
|
+
{
|
|
43
|
+
id: String,
|
|
44
|
+
address: String,
|
|
45
|
+
network: WhopSDK::AccountWallet::Network::TaggedSymbol
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
def to_hash
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# The blockchain network the wallet lives on
|
|
53
|
+
module Network
|
|
54
|
+
extend WhopSDK::Internal::Type::Enum
|
|
55
|
+
|
|
56
|
+
TaggedSymbol =
|
|
57
|
+
T.type_alias { T.all(Symbol, WhopSDK::AccountWallet::Network) }
|
|
58
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
59
|
+
|
|
60
|
+
SOLANA = T.let(:solana, WhopSDK::AccountWallet::Network::TaggedSymbol)
|
|
61
|
+
ETHEREUM =
|
|
62
|
+
T.let(:ethereum, WhopSDK::AccountWallet::Network::TaggedSymbol)
|
|
63
|
+
BITCOIN = T.let(:bitcoin, WhopSDK::AccountWallet::Network::TaggedSymbol)
|
|
64
|
+
|
|
65
|
+
sig do
|
|
66
|
+
override.returns(
|
|
67
|
+
T::Array[WhopSDK::AccountWallet::Network::TaggedSymbol]
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
def self.values
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class Ad < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash = T.type_alias { T.any(WhopSDK::Ad, WhopSDK::Internal::AnyHash) }
|
|
7
|
+
|
|
8
|
+
# The unique identifier for this ad.
|
|
9
|
+
sig { returns(String) }
|
|
10
|
+
attr_accessor :id
|
|
11
|
+
|
|
12
|
+
# The ad campaign this ad belongs to.
|
|
13
|
+
sig { returns(WhopSDK::Ad::AdCampaign) }
|
|
14
|
+
attr_reader :ad_campaign
|
|
15
|
+
|
|
16
|
+
sig { params(ad_campaign: WhopSDK::Ad::AdCampaign::OrHash).void }
|
|
17
|
+
attr_writer :ad_campaign
|
|
18
|
+
|
|
19
|
+
# The parent ad group this ad belongs to.
|
|
20
|
+
sig { returns(WhopSDK::Ad::AdGroup) }
|
|
21
|
+
attr_reader :ad_group
|
|
22
|
+
|
|
23
|
+
sig { params(ad_group: WhopSDK::Ad::AdGroup::OrHash).void }
|
|
24
|
+
attr_writer :ad_group
|
|
25
|
+
|
|
26
|
+
# When the ad was created.
|
|
27
|
+
sig { returns(Time) }
|
|
28
|
+
attr_accessor :created_at
|
|
29
|
+
|
|
30
|
+
# The external ad platform this ad is running on (e.g., meta, tiktok).
|
|
31
|
+
sig { returns(WhopSDK::AdCampaignPlatform::TaggedSymbol) }
|
|
32
|
+
attr_accessor :platform
|
|
33
|
+
|
|
34
|
+
# Current delivery status of the ad.
|
|
35
|
+
sig { returns(WhopSDK::ExternalAdStatus::TaggedSymbol) }
|
|
36
|
+
attr_accessor :status
|
|
37
|
+
|
|
38
|
+
# The display title of the ad. Falls back to the creative set caption when unset.
|
|
39
|
+
sig { returns(T.nilable(String)) }
|
|
40
|
+
attr_accessor :title
|
|
41
|
+
|
|
42
|
+
# When the ad was last updated.
|
|
43
|
+
sig { returns(Time) }
|
|
44
|
+
attr_accessor :updated_at
|
|
45
|
+
|
|
46
|
+
# An ad belonging to an ad group.
|
|
47
|
+
sig do
|
|
48
|
+
params(
|
|
49
|
+
id: String,
|
|
50
|
+
ad_campaign: WhopSDK::Ad::AdCampaign::OrHash,
|
|
51
|
+
ad_group: WhopSDK::Ad::AdGroup::OrHash,
|
|
52
|
+
created_at: Time,
|
|
53
|
+
platform: WhopSDK::AdCampaignPlatform::OrSymbol,
|
|
54
|
+
status: WhopSDK::ExternalAdStatus::OrSymbol,
|
|
55
|
+
title: T.nilable(String),
|
|
56
|
+
updated_at: Time
|
|
57
|
+
).returns(T.attached_class)
|
|
58
|
+
end
|
|
59
|
+
def self.new(
|
|
60
|
+
# The unique identifier for this ad.
|
|
61
|
+
id:,
|
|
62
|
+
# The ad campaign this ad belongs to.
|
|
63
|
+
ad_campaign:,
|
|
64
|
+
# The parent ad group this ad belongs to.
|
|
65
|
+
ad_group:,
|
|
66
|
+
# When the ad was created.
|
|
67
|
+
created_at:,
|
|
68
|
+
# The external ad platform this ad is running on (e.g., meta, tiktok).
|
|
69
|
+
platform:,
|
|
70
|
+
# Current delivery status of the ad.
|
|
71
|
+
status:,
|
|
72
|
+
# The display title of the ad. Falls back to the creative set caption when unset.
|
|
73
|
+
title:,
|
|
74
|
+
# When the ad was last updated.
|
|
75
|
+
updated_at:
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
sig do
|
|
80
|
+
override.returns(
|
|
81
|
+
{
|
|
82
|
+
id: String,
|
|
83
|
+
ad_campaign: WhopSDK::Ad::AdCampaign,
|
|
84
|
+
ad_group: WhopSDK::Ad::AdGroup,
|
|
85
|
+
created_at: Time,
|
|
86
|
+
platform: WhopSDK::AdCampaignPlatform::TaggedSymbol,
|
|
87
|
+
status: WhopSDK::ExternalAdStatus::TaggedSymbol,
|
|
88
|
+
title: T.nilable(String),
|
|
89
|
+
updated_at: Time
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
end
|
|
93
|
+
def to_hash
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
class AdCampaign < WhopSDK::Internal::Type::BaseModel
|
|
97
|
+
OrHash =
|
|
98
|
+
T.type_alias do
|
|
99
|
+
T.any(WhopSDK::Ad::AdCampaign, WhopSDK::Internal::AnyHash)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# The unique identifier for this ad campaign.
|
|
103
|
+
sig { returns(String) }
|
|
104
|
+
attr_accessor :id
|
|
105
|
+
|
|
106
|
+
# The ad campaign this ad belongs to.
|
|
107
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
108
|
+
def self.new(
|
|
109
|
+
# The unique identifier for this ad campaign.
|
|
110
|
+
id:
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
sig { override.returns({ id: String }) }
|
|
115
|
+
def to_hash
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
class AdGroup < WhopSDK::Internal::Type::BaseModel
|
|
120
|
+
OrHash =
|
|
121
|
+
T.type_alias do
|
|
122
|
+
T.any(WhopSDK::Ad::AdGroup, WhopSDK::Internal::AnyHash)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# The unique identifier for this ad group.
|
|
126
|
+
sig { returns(String) }
|
|
127
|
+
attr_accessor :id
|
|
128
|
+
|
|
129
|
+
# The parent ad group this ad belongs to.
|
|
130
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
131
|
+
def self.new(
|
|
132
|
+
# The unique identifier for this ad group.
|
|
133
|
+
id:
|
|
134
|
+
)
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
sig { override.returns({ id: String }) }
|
|
138
|
+
def to_hash
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The budget type for an ad campaign or ad group.
|
|
6
|
+
module AdBudgetType
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::AdBudgetType) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
DAILY = T.let(:daily, WhopSDK::AdBudgetType::TaggedSymbol)
|
|
13
|
+
LIFETIME = T.let(:lifetime, WhopSDK::AdBudgetType::TaggedSymbol)
|
|
14
|
+
|
|
15
|
+
sig { override.returns(T::Array[WhopSDK::AdBudgetType::TaggedSymbol]) }
|
|
16
|
+
def self.values
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|