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,81 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type deposit_create_params =
|
|
4
|
+
{
|
|
5
|
+
amount: Float,
|
|
6
|
+
destination: WhopSDK::Models::DepositCreateParams::destination,
|
|
7
|
+
metadata: ::Hash[Symbol, top],
|
|
8
|
+
network: String?
|
|
9
|
+
}
|
|
10
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class DepositCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor amount: Float
|
|
17
|
+
|
|
18
|
+
attr_accessor destination: WhopSDK::Models::DepositCreateParams::destination
|
|
19
|
+
|
|
20
|
+
attr_reader metadata: ::Hash[Symbol, top]?
|
|
21
|
+
|
|
22
|
+
def metadata=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
23
|
+
|
|
24
|
+
attr_accessor network: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
amount: Float,
|
|
28
|
+
destination: WhopSDK::Models::DepositCreateParams::destination,
|
|
29
|
+
?metadata: ::Hash[Symbol, top],
|
|
30
|
+
?network: String?,
|
|
31
|
+
?request_options: WhopSDK::request_opts
|
|
32
|
+
) -> void
|
|
33
|
+
|
|
34
|
+
def to_hash: -> {
|
|
35
|
+
amount: Float,
|
|
36
|
+
destination: WhopSDK::Models::DepositCreateParams::destination,
|
|
37
|
+
metadata: ::Hash[Symbol, top],
|
|
38
|
+
network: String?,
|
|
39
|
+
request_options: WhopSDK::RequestOptions
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
type destination =
|
|
43
|
+
String | WhopSDK::DepositCreateParams::Destination::UnionMember1
|
|
44
|
+
|
|
45
|
+
module Destination
|
|
46
|
+
extend WhopSDK::Internal::Type::Union
|
|
47
|
+
|
|
48
|
+
type union_member1 =
|
|
49
|
+
{ account_id: String, address: String, network: String }
|
|
50
|
+
|
|
51
|
+
class UnionMember1 < WhopSDK::Internal::Type::BaseModel
|
|
52
|
+
attr_reader account_id: String?
|
|
53
|
+
|
|
54
|
+
def account_id=: (String) -> String
|
|
55
|
+
|
|
56
|
+
attr_reader address: String?
|
|
57
|
+
|
|
58
|
+
def address=: (String) -> String
|
|
59
|
+
|
|
60
|
+
attr_reader network: String?
|
|
61
|
+
|
|
62
|
+
def network=: (String) -> String
|
|
63
|
+
|
|
64
|
+
def initialize: (
|
|
65
|
+
?account_id: String,
|
|
66
|
+
?address: String,
|
|
67
|
+
?network: String
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
account_id: String,
|
|
72
|
+
address: String,
|
|
73
|
+
network: String
|
|
74
|
+
}
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def self?.variants: -> ::Array[WhopSDK::Models::DepositCreateParams::destination]
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type deposit_create_response =
|
|
4
|
+
{
|
|
5
|
+
amount: String,
|
|
6
|
+
deposit_address: WhopSDK::Models::DepositCreateResponse::DepositAddress,
|
|
7
|
+
destination: WhopSDK::Models::DepositCreateResponse::Destination,
|
|
8
|
+
hosted_url: String?,
|
|
9
|
+
metadata: ::Hash[Symbol, top],
|
|
10
|
+
object: WhopSDK::Models::DepositCreateResponse::object
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class DepositCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor amount: String
|
|
15
|
+
|
|
16
|
+
attr_accessor deposit_address: WhopSDK::Models::DepositCreateResponse::DepositAddress
|
|
17
|
+
|
|
18
|
+
attr_accessor destination: WhopSDK::Models::DepositCreateResponse::Destination
|
|
19
|
+
|
|
20
|
+
attr_accessor hosted_url: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor metadata: ::Hash[Symbol, top]
|
|
23
|
+
|
|
24
|
+
attr_accessor object: WhopSDK::Models::DepositCreateResponse::object
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
amount: String,
|
|
28
|
+
deposit_address: WhopSDK::Models::DepositCreateResponse::DepositAddress,
|
|
29
|
+
destination: WhopSDK::Models::DepositCreateResponse::Destination,
|
|
30
|
+
hosted_url: String?,
|
|
31
|
+
metadata: ::Hash[Symbol, top],
|
|
32
|
+
object: WhopSDK::Models::DepositCreateResponse::object
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
amount: String,
|
|
37
|
+
deposit_address: WhopSDK::Models::DepositCreateResponse::DepositAddress,
|
|
38
|
+
destination: WhopSDK::Models::DepositCreateResponse::Destination,
|
|
39
|
+
hosted_url: String?,
|
|
40
|
+
metadata: ::Hash[Symbol, top],
|
|
41
|
+
object: WhopSDK::Models::DepositCreateResponse::object
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type deposit_address = { evm: String, solana: String }
|
|
45
|
+
|
|
46
|
+
class DepositAddress < WhopSDK::Internal::Type::BaseModel
|
|
47
|
+
attr_accessor evm: String
|
|
48
|
+
|
|
49
|
+
attr_accessor solana: String
|
|
50
|
+
|
|
51
|
+
def initialize: (evm: String, solana: String) -> void
|
|
52
|
+
|
|
53
|
+
def to_hash: -> { evm: String, solana: String }
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
type destination =
|
|
57
|
+
{
|
|
58
|
+
address: String,
|
|
59
|
+
currency: String,
|
|
60
|
+
network: String,
|
|
61
|
+
account_id: String?
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
65
|
+
attr_accessor address: String
|
|
66
|
+
|
|
67
|
+
attr_accessor currency: String
|
|
68
|
+
|
|
69
|
+
attr_accessor network: String
|
|
70
|
+
|
|
71
|
+
attr_accessor account_id: String?
|
|
72
|
+
|
|
73
|
+
def initialize: (
|
|
74
|
+
address: String,
|
|
75
|
+
currency: String,
|
|
76
|
+
network: String,
|
|
77
|
+
?account_id: String?
|
|
78
|
+
) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> {
|
|
81
|
+
address: String,
|
|
82
|
+
currency: String,
|
|
83
|
+
network: String,
|
|
84
|
+
account_id: String?
|
|
85
|
+
}
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
type object = :deposit
|
|
89
|
+
|
|
90
|
+
module Object
|
|
91
|
+
extend WhopSDK::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
DEPOSIT: :deposit
|
|
94
|
+
|
|
95
|
+
def self?.values: -> ::Array[WhopSDK::Models::DepositCreateResponse::object]
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -219,7 +219,7 @@ module WhopSDK
|
|
|
219
219
|
card_brand: WhopSDK::Models::card_brands?,
|
|
220
220
|
:card_last4 => String?,
|
|
221
221
|
created_at: Time,
|
|
222
|
-
currency: WhopSDK::Models::currency
|
|
222
|
+
currency: WhopSDK::Models::currency,
|
|
223
223
|
dispute_alerted_at: Time?,
|
|
224
224
|
member: WhopSDK::Dispute::Payment::Member?,
|
|
225
225
|
membership: WhopSDK::Dispute::Payment::Membership?,
|
|
@@ -242,7 +242,7 @@ module WhopSDK
|
|
|
242
242
|
|
|
243
243
|
attr_accessor created_at: Time
|
|
244
244
|
|
|
245
|
-
attr_accessor currency: WhopSDK::Models::currency
|
|
245
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
246
246
|
|
|
247
247
|
attr_accessor dispute_alerted_at: Time?
|
|
248
248
|
|
|
@@ -268,7 +268,7 @@ module WhopSDK
|
|
|
268
268
|
card_brand: WhopSDK::Models::card_brands?,
|
|
269
269
|
card_last4: String?,
|
|
270
270
|
created_at: Time,
|
|
271
|
-
currency: WhopSDK::Models::currency
|
|
271
|
+
currency: WhopSDK::Models::currency,
|
|
272
272
|
dispute_alerted_at: Time?,
|
|
273
273
|
member: WhopSDK::Dispute::Payment::Member?,
|
|
274
274
|
membership: WhopSDK::Dispute::Payment::Membership?,
|
|
@@ -286,7 +286,7 @@ module WhopSDK
|
|
|
286
286
|
card_brand: WhopSDK::Models::card_brands?,
|
|
287
287
|
:card_last4 => String?,
|
|
288
288
|
created_at: Time,
|
|
289
|
-
currency: WhopSDK::Models::currency
|
|
289
|
+
currency: WhopSDK::Models::currency,
|
|
290
290
|
dispute_alerted_at: Time?,
|
|
291
291
|
member: WhopSDK::Dispute::Payment::Member?,
|
|
292
292
|
membership: WhopSDK::Dispute::Payment::Membership?,
|
|
@@ -146,7 +146,7 @@ module WhopSDK
|
|
|
146
146
|
card_brand: WhopSDK::Models::card_brands?,
|
|
147
147
|
:card_last4 => String?,
|
|
148
148
|
created_at: Time,
|
|
149
|
-
currency: WhopSDK::Models::currency
|
|
149
|
+
currency: WhopSDK::Models::currency,
|
|
150
150
|
dispute_alerted_at: Time?,
|
|
151
151
|
member: WhopSDK::DisputeAlertCreatedWebhookEvent::Data::Payment::Member?,
|
|
152
152
|
membership: WhopSDK::DisputeAlertCreatedWebhookEvent::Data::Payment::Membership?,
|
|
@@ -169,7 +169,7 @@ module WhopSDK
|
|
|
169
169
|
|
|
170
170
|
attr_accessor created_at: Time
|
|
171
171
|
|
|
172
|
-
attr_accessor currency: WhopSDK::Models::currency
|
|
172
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
173
173
|
|
|
174
174
|
attr_accessor dispute_alerted_at: Time?
|
|
175
175
|
|
|
@@ -195,7 +195,7 @@ module WhopSDK
|
|
|
195
195
|
card_brand: WhopSDK::Models::card_brands?,
|
|
196
196
|
card_last4: String?,
|
|
197
197
|
created_at: Time,
|
|
198
|
-
currency: WhopSDK::Models::currency
|
|
198
|
+
currency: WhopSDK::Models::currency,
|
|
199
199
|
dispute_alerted_at: Time?,
|
|
200
200
|
member: WhopSDK::DisputeAlertCreatedWebhookEvent::Data::Payment::Member?,
|
|
201
201
|
membership: WhopSDK::DisputeAlertCreatedWebhookEvent::Data::Payment::Membership?,
|
|
@@ -213,7 +213,7 @@ module WhopSDK
|
|
|
213
213
|
card_brand: WhopSDK::Models::card_brands?,
|
|
214
214
|
:card_last4 => String?,
|
|
215
215
|
created_at: Time,
|
|
216
|
-
currency: WhopSDK::Models::currency
|
|
216
|
+
currency: WhopSDK::Models::currency,
|
|
217
217
|
dispute_alerted_at: Time?,
|
|
218
218
|
member: WhopSDK::DisputeAlertCreatedWebhookEvent::Data::Payment::Member?,
|
|
219
219
|
membership: WhopSDK::DisputeAlertCreatedWebhookEvent::Data::Payment::Membership?,
|
|
@@ -105,7 +105,7 @@ module WhopSDK
|
|
|
105
105
|
card_brand: WhopSDK::Models::card_brands?,
|
|
106
106
|
:card_last4 => String?,
|
|
107
107
|
created_at: Time,
|
|
108
|
-
currency: WhopSDK::Models::currency
|
|
108
|
+
currency: WhopSDK::Models::currency,
|
|
109
109
|
dispute_alerted_at: Time?,
|
|
110
110
|
member: WhopSDK::Models::DisputeAlertRetrieveResponse::Payment::Member?,
|
|
111
111
|
membership: WhopSDK::Models::DisputeAlertRetrieveResponse::Payment::Membership?,
|
|
@@ -128,7 +128,7 @@ module WhopSDK
|
|
|
128
128
|
|
|
129
129
|
attr_accessor created_at: Time
|
|
130
130
|
|
|
131
|
-
attr_accessor currency: WhopSDK::Models::currency
|
|
131
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
132
132
|
|
|
133
133
|
attr_accessor dispute_alerted_at: Time?
|
|
134
134
|
|
|
@@ -154,7 +154,7 @@ module WhopSDK
|
|
|
154
154
|
card_brand: WhopSDK::Models::card_brands?,
|
|
155
155
|
card_last4: String?,
|
|
156
156
|
created_at: Time,
|
|
157
|
-
currency: WhopSDK::Models::currency
|
|
157
|
+
currency: WhopSDK::Models::currency,
|
|
158
158
|
dispute_alerted_at: Time?,
|
|
159
159
|
member: WhopSDK::Models::DisputeAlertRetrieveResponse::Payment::Member?,
|
|
160
160
|
membership: WhopSDK::Models::DisputeAlertRetrieveResponse::Payment::Membership?,
|
|
@@ -172,7 +172,7 @@ module WhopSDK
|
|
|
172
172
|
card_brand: WhopSDK::Models::card_brands?,
|
|
173
173
|
:card_last4 => String?,
|
|
174
174
|
created_at: Time,
|
|
175
|
-
currency: WhopSDK::Models::currency
|
|
175
|
+
currency: WhopSDK::Models::currency,
|
|
176
176
|
dispute_alerted_at: Time?,
|
|
177
177
|
member: WhopSDK::Models::DisputeAlertRetrieveResponse::Payment::Member?,
|
|
178
178
|
membership: WhopSDK::Models::DisputeAlertRetrieveResponse::Payment::Membership?,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type external_ad_status =
|
|
4
|
+
:active | :paused | :inactive | :in_review | :rejected | :flagged
|
|
5
|
+
|
|
6
|
+
module ExternalAdStatus
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
ACTIVE: :active
|
|
10
|
+
PAUSED: :paused
|
|
11
|
+
INACTIVE: :inactive
|
|
12
|
+
IN_REVIEW: :in_review
|
|
13
|
+
REJECTED: :rejected
|
|
14
|
+
FLAGGED: :flagged
|
|
15
|
+
|
|
16
|
+
def self?.values: -> ::Array[WhopSDK::Models::external_ad_status]
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
3
|
type file_create_params =
|
|
4
|
-
{
|
|
5
|
-
filename: String,
|
|
6
|
-
visibility: WhopSDK::Models::FileCreateParams::visibility?
|
|
7
|
-
}
|
|
4
|
+
{ filename: String, visibility: WhopSDK::Models::file_visibility? }
|
|
8
5
|
& WhopSDK::Internal::Type::request_parameters
|
|
9
6
|
|
|
10
7
|
class FileCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
@@ -13,30 +10,19 @@ module WhopSDK
|
|
|
13
10
|
|
|
14
11
|
attr_accessor filename: String
|
|
15
12
|
|
|
16
|
-
attr_accessor visibility: WhopSDK::Models::
|
|
13
|
+
attr_accessor visibility: WhopSDK::Models::file_visibility?
|
|
17
14
|
|
|
18
15
|
def initialize: (
|
|
19
16
|
filename: String,
|
|
20
|
-
?visibility: WhopSDK::Models::
|
|
17
|
+
?visibility: WhopSDK::Models::file_visibility?,
|
|
21
18
|
?request_options: WhopSDK::request_opts
|
|
22
19
|
) -> void
|
|
23
20
|
|
|
24
21
|
def to_hash: -> {
|
|
25
22
|
filename: String,
|
|
26
|
-
visibility: WhopSDK::Models::
|
|
23
|
+
visibility: WhopSDK::Models::file_visibility?,
|
|
27
24
|
request_options: WhopSDK::RequestOptions
|
|
28
25
|
}
|
|
29
|
-
|
|
30
|
-
type visibility = :public | :private
|
|
31
|
-
|
|
32
|
-
module Visibility
|
|
33
|
-
extend WhopSDK::Internal::Type::Enum
|
|
34
|
-
|
|
35
|
-
PUBLIC: :public
|
|
36
|
-
PRIVATE: :private
|
|
37
|
-
|
|
38
|
-
def self?.values: -> ::Array[WhopSDK::Models::FileCreateParams::visibility]
|
|
39
|
-
end
|
|
40
26
|
end
|
|
41
27
|
end
|
|
42
28
|
end
|
|
@@ -10,7 +10,7 @@ module WhopSDK
|
|
|
10
10
|
upload_status: WhopSDK::Models::upload_status,
|
|
11
11
|
upload_url: String?,
|
|
12
12
|
url: String?,
|
|
13
|
-
visibility: WhopSDK::Models::
|
|
13
|
+
visibility: WhopSDK::Models::file_visibility
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
class FileCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
@@ -30,7 +30,7 @@ module WhopSDK
|
|
|
30
30
|
|
|
31
31
|
attr_accessor url: String?
|
|
32
32
|
|
|
33
|
-
attr_accessor visibility: WhopSDK::Models::
|
|
33
|
+
attr_accessor visibility: WhopSDK::Models::file_visibility
|
|
34
34
|
|
|
35
35
|
def initialize: (
|
|
36
36
|
id: String,
|
|
@@ -41,7 +41,7 @@ module WhopSDK
|
|
|
41
41
|
upload_status: WhopSDK::Models::upload_status,
|
|
42
42
|
upload_url: String?,
|
|
43
43
|
url: String?,
|
|
44
|
-
visibility: WhopSDK::Models::
|
|
44
|
+
visibility: WhopSDK::Models::file_visibility
|
|
45
45
|
) -> void
|
|
46
46
|
|
|
47
47
|
def to_hash: -> {
|
|
@@ -53,19 +53,8 @@ module WhopSDK
|
|
|
53
53
|
upload_status: WhopSDK::Models::upload_status,
|
|
54
54
|
upload_url: String?,
|
|
55
55
|
url: String?,
|
|
56
|
-
visibility: WhopSDK::Models::
|
|
56
|
+
visibility: WhopSDK::Models::file_visibility
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
type visibility = :public | :private
|
|
60
|
-
|
|
61
|
-
module Visibility
|
|
62
|
-
extend WhopSDK::Internal::Type::Enum
|
|
63
|
-
|
|
64
|
-
PUBLIC: :public
|
|
65
|
-
PRIVATE: :private
|
|
66
|
-
|
|
67
|
-
def self?.values: -> ::Array[WhopSDK::Models::FileCreateResponse::visibility]
|
|
68
|
-
end
|
|
69
58
|
end
|
|
70
59
|
end
|
|
71
60
|
end
|
|
@@ -8,7 +8,7 @@ module WhopSDK
|
|
|
8
8
|
size: String?,
|
|
9
9
|
upload_status: WhopSDK::Models::upload_status,
|
|
10
10
|
url: String?,
|
|
11
|
-
visibility: WhopSDK::Models::
|
|
11
|
+
visibility: WhopSDK::Models::file_visibility
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
class FileRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
@@ -24,7 +24,7 @@ module WhopSDK
|
|
|
24
24
|
|
|
25
25
|
attr_accessor url: String?
|
|
26
26
|
|
|
27
|
-
attr_accessor visibility: WhopSDK::Models::
|
|
27
|
+
attr_accessor visibility: WhopSDK::Models::file_visibility
|
|
28
28
|
|
|
29
29
|
def initialize: (
|
|
30
30
|
id: String,
|
|
@@ -33,7 +33,7 @@ module WhopSDK
|
|
|
33
33
|
size: String?,
|
|
34
34
|
upload_status: WhopSDK::Models::upload_status,
|
|
35
35
|
url: String?,
|
|
36
|
-
visibility: WhopSDK::Models::
|
|
36
|
+
visibility: WhopSDK::Models::file_visibility
|
|
37
37
|
) -> void
|
|
38
38
|
|
|
39
39
|
def to_hash: -> {
|
|
@@ -43,19 +43,8 @@ module WhopSDK
|
|
|
43
43
|
size: String?,
|
|
44
44
|
upload_status: WhopSDK::Models::upload_status,
|
|
45
45
|
url: String?,
|
|
46
|
-
visibility: WhopSDK::Models::
|
|
46
|
+
visibility: WhopSDK::Models::file_visibility
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
type visibility = :public | :private
|
|
50
|
-
|
|
51
|
-
module Visibility
|
|
52
|
-
extend WhopSDK::Internal::Type::Enum
|
|
53
|
-
|
|
54
|
-
PUBLIC: :public
|
|
55
|
-
PRIVATE: :private
|
|
56
|
-
|
|
57
|
-
def self?.values: -> ::Array[WhopSDK::Models::FileRetrieveResponse::visibility]
|
|
58
|
-
end
|
|
59
48
|
end
|
|
60
49
|
end
|
|
61
50
|
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type file_visibility = :public | :private
|
|
4
|
+
|
|
5
|
+
module FileVisibility
|
|
6
|
+
extend WhopSDK::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
PUBLIC: :public
|
|
9
|
+
PRIVATE: :private
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[WhopSDK::Models::file_visibility]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type granularities = :daily | :hourly
|
|
4
|
+
|
|
5
|
+
module Granularities
|
|
6
|
+
extend WhopSDK::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
DAILY: :daily
|
|
9
|
+
HOURLY: :hourly
|
|
10
|
+
|
|
11
|
+
def self?.values: -> ::Array[WhopSDK::Models::granularities]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|