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
|
@@ -255,8 +255,8 @@ module WhopSDK
|
|
|
255
255
|
sig { returns(Time) }
|
|
256
256
|
attr_accessor :created_at
|
|
257
257
|
|
|
258
|
-
# The
|
|
259
|
-
sig { returns(
|
|
258
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
259
|
+
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
260
260
|
attr_accessor :currency
|
|
261
261
|
|
|
262
262
|
# When an alert came in that this transaction will be disputed
|
|
@@ -303,6 +303,11 @@ module WhopSDK
|
|
|
303
303
|
end
|
|
304
304
|
attr_writer :membership
|
|
305
305
|
|
|
306
|
+
# The custom metadata stored on this payment. This will be copied over to the
|
|
307
|
+
# checkout configuration for which this payment was made
|
|
308
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
309
|
+
attr_accessor :metadata
|
|
310
|
+
|
|
306
311
|
# The time at which this payment was successfully collected. Null if the payment
|
|
307
312
|
# has not yet succeeded. As a Unix timestamp.
|
|
308
313
|
sig { returns(T.nilable(Time)) }
|
|
@@ -312,6 +317,44 @@ module WhopSDK
|
|
|
312
317
|
sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
|
|
313
318
|
attr_accessor :payment_method_type
|
|
314
319
|
|
|
320
|
+
# The plan attached to this payment.
|
|
321
|
+
sig do
|
|
322
|
+
returns(
|
|
323
|
+
T.nilable(WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan)
|
|
324
|
+
)
|
|
325
|
+
end
|
|
326
|
+
attr_reader :plan
|
|
327
|
+
|
|
328
|
+
sig do
|
|
329
|
+
params(
|
|
330
|
+
plan:
|
|
331
|
+
T.nilable(
|
|
332
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan::OrHash
|
|
333
|
+
)
|
|
334
|
+
).void
|
|
335
|
+
end
|
|
336
|
+
attr_writer :plan
|
|
337
|
+
|
|
338
|
+
# The product this payment was made for
|
|
339
|
+
sig do
|
|
340
|
+
returns(
|
|
341
|
+
T.nilable(
|
|
342
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product
|
|
343
|
+
)
|
|
344
|
+
)
|
|
345
|
+
end
|
|
346
|
+
attr_reader :product
|
|
347
|
+
|
|
348
|
+
sig do
|
|
349
|
+
params(
|
|
350
|
+
product:
|
|
351
|
+
T.nilable(
|
|
352
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product::OrHash
|
|
353
|
+
)
|
|
354
|
+
).void
|
|
355
|
+
end
|
|
356
|
+
attr_writer :product
|
|
357
|
+
|
|
315
358
|
# The subtotal to show to the creator (excluding buyer fees).
|
|
316
359
|
sig { returns(T.nilable(Float)) }
|
|
317
360
|
attr_accessor :subtotal
|
|
@@ -364,7 +407,7 @@ module WhopSDK
|
|
|
364
407
|
card_brand: T.nilable(WhopSDK::CardBrands::OrSymbol),
|
|
365
408
|
card_last4: T.nilable(String),
|
|
366
409
|
created_at: Time,
|
|
367
|
-
currency:
|
|
410
|
+
currency: WhopSDK::Currency::OrSymbol,
|
|
368
411
|
dispute_alerted_at: T.nilable(Time),
|
|
369
412
|
member:
|
|
370
413
|
T.nilable(
|
|
@@ -374,9 +417,18 @@ module WhopSDK
|
|
|
374
417
|
T.nilable(
|
|
375
418
|
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Membership::OrHash
|
|
376
419
|
),
|
|
420
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
377
421
|
paid_at: T.nilable(Time),
|
|
378
422
|
payment_method_type:
|
|
379
423
|
T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
|
|
424
|
+
plan:
|
|
425
|
+
T.nilable(
|
|
426
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan::OrHash
|
|
427
|
+
),
|
|
428
|
+
product:
|
|
429
|
+
T.nilable(
|
|
430
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product::OrHash
|
|
431
|
+
),
|
|
380
432
|
subtotal: T.nilable(Float),
|
|
381
433
|
tax_amount: T.nilable(Float),
|
|
382
434
|
tax_behavior: T.nilable(WhopSDK::ReceiptTaxBehavior::OrSymbol),
|
|
@@ -401,7 +453,7 @@ module WhopSDK
|
|
|
401
453
|
card_last4:,
|
|
402
454
|
# The datetime the payment was created.
|
|
403
455
|
created_at:,
|
|
404
|
-
# The
|
|
456
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
405
457
|
currency:,
|
|
406
458
|
# When an alert came in that this transaction will be disputed
|
|
407
459
|
dispute_alerted_at:,
|
|
@@ -409,11 +461,18 @@ module WhopSDK
|
|
|
409
461
|
member:,
|
|
410
462
|
# The membership attached to this payment.
|
|
411
463
|
membership:,
|
|
464
|
+
# The custom metadata stored on this payment. This will be copied over to the
|
|
465
|
+
# checkout configuration for which this payment was made
|
|
466
|
+
metadata:,
|
|
412
467
|
# The time at which this payment was successfully collected. Null if the payment
|
|
413
468
|
# has not yet succeeded. As a Unix timestamp.
|
|
414
469
|
paid_at:,
|
|
415
470
|
# The different types of payment methods that can be used.
|
|
416
471
|
payment_method_type:,
|
|
472
|
+
# The plan attached to this payment.
|
|
473
|
+
plan:,
|
|
474
|
+
# The product this payment was made for
|
|
475
|
+
product:,
|
|
417
476
|
# The subtotal to show to the creator (excluding buyer fees).
|
|
418
477
|
subtotal:,
|
|
419
478
|
# The calculated amount of the sales/VAT tax (if applicable).
|
|
@@ -441,7 +500,7 @@ module WhopSDK
|
|
|
441
500
|
card_brand: T.nilable(WhopSDK::CardBrands::TaggedSymbol),
|
|
442
501
|
card_last4: T.nilable(String),
|
|
443
502
|
created_at: Time,
|
|
444
|
-
currency:
|
|
503
|
+
currency: WhopSDK::Currency::TaggedSymbol,
|
|
445
504
|
dispute_alerted_at: T.nilable(Time),
|
|
446
505
|
member:
|
|
447
506
|
T.nilable(
|
|
@@ -451,9 +510,18 @@ module WhopSDK
|
|
|
451
510
|
T.nilable(
|
|
452
511
|
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Membership
|
|
453
512
|
),
|
|
513
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
454
514
|
paid_at: T.nilable(Time),
|
|
455
515
|
payment_method_type:
|
|
456
516
|
T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
|
|
517
|
+
plan:
|
|
518
|
+
T.nilable(
|
|
519
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan
|
|
520
|
+
),
|
|
521
|
+
product:
|
|
522
|
+
T.nilable(
|
|
523
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product
|
|
524
|
+
),
|
|
457
525
|
subtotal: T.nilable(Float),
|
|
458
526
|
tax_amount: T.nilable(Float),
|
|
459
527
|
tax_behavior:
|
|
@@ -548,6 +616,92 @@ module WhopSDK
|
|
|
548
616
|
end
|
|
549
617
|
end
|
|
550
618
|
|
|
619
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
620
|
+
OrHash =
|
|
621
|
+
T.type_alias do
|
|
622
|
+
T.any(
|
|
623
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan,
|
|
624
|
+
WhopSDK::Internal::AnyHash
|
|
625
|
+
)
|
|
626
|
+
end
|
|
627
|
+
|
|
628
|
+
# The unique identifier for the plan.
|
|
629
|
+
sig { returns(String) }
|
|
630
|
+
attr_accessor :id
|
|
631
|
+
|
|
632
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
633
|
+
# payment and membership events.
|
|
634
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
635
|
+
attr_accessor :metadata
|
|
636
|
+
|
|
637
|
+
# The plan attached to this payment.
|
|
638
|
+
sig do
|
|
639
|
+
params(
|
|
640
|
+
id: String,
|
|
641
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
642
|
+
).returns(T.attached_class)
|
|
643
|
+
end
|
|
644
|
+
def self.new(
|
|
645
|
+
# The unique identifier for the plan.
|
|
646
|
+
id:,
|
|
647
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
648
|
+
# payment and membership events.
|
|
649
|
+
metadata:
|
|
650
|
+
)
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
sig do
|
|
654
|
+
override.returns(
|
|
655
|
+
{ id: String, metadata: T.nilable(T::Hash[Symbol, T.anything]) }
|
|
656
|
+
)
|
|
657
|
+
end
|
|
658
|
+
def to_hash
|
|
659
|
+
end
|
|
660
|
+
end
|
|
661
|
+
|
|
662
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
663
|
+
OrHash =
|
|
664
|
+
T.type_alias do
|
|
665
|
+
T.any(
|
|
666
|
+
WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product,
|
|
667
|
+
WhopSDK::Internal::AnyHash
|
|
668
|
+
)
|
|
669
|
+
end
|
|
670
|
+
|
|
671
|
+
# The unique identifier for the product.
|
|
672
|
+
sig { returns(String) }
|
|
673
|
+
attr_accessor :id
|
|
674
|
+
|
|
675
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
676
|
+
# payment and membership events.
|
|
677
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
678
|
+
attr_accessor :metadata
|
|
679
|
+
|
|
680
|
+
# The product this payment was made for
|
|
681
|
+
sig do
|
|
682
|
+
params(
|
|
683
|
+
id: String,
|
|
684
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
685
|
+
).returns(T.attached_class)
|
|
686
|
+
end
|
|
687
|
+
def self.new(
|
|
688
|
+
# The unique identifier for the product.
|
|
689
|
+
id:,
|
|
690
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
691
|
+
# payment and membership events.
|
|
692
|
+
metadata:
|
|
693
|
+
)
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
sig do
|
|
697
|
+
override.returns(
|
|
698
|
+
{ id: String, metadata: T.nilable(T::Hash[Symbol, T.anything]) }
|
|
699
|
+
)
|
|
700
|
+
end
|
|
701
|
+
def to_hash
|
|
702
|
+
end
|
|
703
|
+
end
|
|
704
|
+
|
|
551
705
|
class User < WhopSDK::Internal::Type::BaseModel
|
|
552
706
|
OrHash =
|
|
553
707
|
T.type_alias do
|
|
@@ -27,11 +27,6 @@ module WhopSDK
|
|
|
27
27
|
:merchant_wins,
|
|
28
28
|
WhopSDK::ResolutionCenterCasePlatformResponse::TaggedSymbol
|
|
29
29
|
)
|
|
30
|
-
PLATFORM_REFUND =
|
|
31
|
-
T.let(
|
|
32
|
-
:platform_refund,
|
|
33
|
-
WhopSDK::ResolutionCenterCasePlatformResponse::TaggedSymbol
|
|
34
|
-
)
|
|
35
30
|
MERCHANT_REFUND =
|
|
36
31
|
T.let(
|
|
37
32
|
:merchant_refund,
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# Types of optimization results tracked from external ad platforms
|
|
6
|
+
module ResultLabelKeys
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::ResultLabelKeys) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
APP_INSTALLS =
|
|
13
|
+
T.let(:app_installs, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
14
|
+
MESSAGING_CONVERSATIONS_STARTED =
|
|
15
|
+
T.let(
|
|
16
|
+
:messaging_conversations_started,
|
|
17
|
+
WhopSDK::ResultLabelKeys::TaggedSymbol
|
|
18
|
+
)
|
|
19
|
+
POST_ENGAGEMENT =
|
|
20
|
+
T.let(:post_engagement, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
21
|
+
EVENT_RESPONSES =
|
|
22
|
+
T.let(:event_responses, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
23
|
+
IMPRESSIONS = T.let(:impressions, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
24
|
+
WEBSITE_PURCHASES =
|
|
25
|
+
T.let(:website_purchases, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
26
|
+
LANDING_PAGE_VIEWS =
|
|
27
|
+
T.let(:landing_page_views, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
28
|
+
LEADS = T.let(:leads, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
29
|
+
LINK_CLICKS = T.let(:link_clicks, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
30
|
+
QUALITY_CALLS =
|
|
31
|
+
T.let(:quality_calls, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
32
|
+
APPOINTMENTS_BOOKED =
|
|
33
|
+
T.let(:appointments_booked, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
34
|
+
MESSAGING_PURCHASES =
|
|
35
|
+
T.let(:messaging_purchases, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
36
|
+
PAGE_LIKES = T.let(:page_likes, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
37
|
+
INSTAGRAM_PROFILE_VISITS =
|
|
38
|
+
T.let(:instagram_profile_visits, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
39
|
+
REACH = T.let(:reach, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
40
|
+
REMINDERS_SET =
|
|
41
|
+
T.let(:reminders_set, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
42
|
+
NEW_SUBSCRIBERS =
|
|
43
|
+
T.let(:new_subscribers, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
44
|
+
VIDEO_VIEWS = T.let(:video_views, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
45
|
+
REGISTRATIONS =
|
|
46
|
+
T.let(:registrations, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
47
|
+
CONTENT_VIEWS =
|
|
48
|
+
T.let(:content_views, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
49
|
+
SEARCHES = T.let(:searches, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
50
|
+
WEBSITE_SCHEDULES =
|
|
51
|
+
T.let(:website_schedules, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
52
|
+
WEBSITE_SUBMIT_APPLICATIONS =
|
|
53
|
+
T.let(
|
|
54
|
+
:website_submit_applications,
|
|
55
|
+
WhopSDK::ResultLabelKeys::TaggedSymbol
|
|
56
|
+
)
|
|
57
|
+
CUSTOM = T.let(:custom, WhopSDK::ResultLabelKeys::TaggedSymbol)
|
|
58
|
+
|
|
59
|
+
sig { override.returns(T::Array[WhopSDK::ResultLabelKeys::TaggedSymbol]) }
|
|
60
|
+
def self.values
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class SwapCreateQuoteParams < 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::SwapCreateQuoteParams, WhopSDK::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Input token amount.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :amount
|
|
17
|
+
|
|
18
|
+
# Source token contract address.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :from_token
|
|
21
|
+
|
|
22
|
+
# Destination token contract address.
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :to_token
|
|
25
|
+
|
|
26
|
+
sig { returns(T.nilable(String)) }
|
|
27
|
+
attr_accessor :from_address
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
returns(T.nilable(WhopSDK::SwapCreateQuoteParams::FromChain::Variants))
|
|
31
|
+
end
|
|
32
|
+
attr_accessor :from_chain
|
|
33
|
+
|
|
34
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
35
|
+
attr_reader :metadata
|
|
36
|
+
|
|
37
|
+
sig { params(metadata: T::Hash[Symbol, T.anything]).void }
|
|
38
|
+
attr_writer :metadata
|
|
39
|
+
|
|
40
|
+
sig { returns(T.nilable(Integer)) }
|
|
41
|
+
attr_accessor :slippage_bps
|
|
42
|
+
|
|
43
|
+
sig { returns(T.nilable(String)) }
|
|
44
|
+
attr_accessor :to_address
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
returns(T.nilable(WhopSDK::SwapCreateQuoteParams::ToChain::Variants))
|
|
48
|
+
end
|
|
49
|
+
attr_accessor :to_chain
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
params(
|
|
53
|
+
amount: String,
|
|
54
|
+
from_token: String,
|
|
55
|
+
to_token: String,
|
|
56
|
+
from_address: T.nilable(String),
|
|
57
|
+
from_chain:
|
|
58
|
+
T.nilable(WhopSDK::SwapCreateQuoteParams::FromChain::Variants),
|
|
59
|
+
metadata: T::Hash[Symbol, T.anything],
|
|
60
|
+
slippage_bps: T.nilable(Integer),
|
|
61
|
+
to_address: T.nilable(String),
|
|
62
|
+
to_chain:
|
|
63
|
+
T.nilable(WhopSDK::SwapCreateQuoteParams::ToChain::Variants),
|
|
64
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
65
|
+
).returns(T.attached_class)
|
|
66
|
+
end
|
|
67
|
+
def self.new(
|
|
68
|
+
# Input token amount.
|
|
69
|
+
amount:,
|
|
70
|
+
# Source token contract address.
|
|
71
|
+
from_token:,
|
|
72
|
+
# Destination token contract address.
|
|
73
|
+
to_token:,
|
|
74
|
+
from_address: nil,
|
|
75
|
+
from_chain: nil,
|
|
76
|
+
metadata: nil,
|
|
77
|
+
slippage_bps: nil,
|
|
78
|
+
to_address: nil,
|
|
79
|
+
to_chain: nil,
|
|
80
|
+
request_options: {}
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
sig do
|
|
85
|
+
override.returns(
|
|
86
|
+
{
|
|
87
|
+
amount: String,
|
|
88
|
+
from_token: String,
|
|
89
|
+
to_token: String,
|
|
90
|
+
from_address: T.nilable(String),
|
|
91
|
+
from_chain:
|
|
92
|
+
T.nilable(WhopSDK::SwapCreateQuoteParams::FromChain::Variants),
|
|
93
|
+
metadata: T::Hash[Symbol, T.anything],
|
|
94
|
+
slippage_bps: T.nilable(Integer),
|
|
95
|
+
to_address: T.nilable(String),
|
|
96
|
+
to_chain:
|
|
97
|
+
T.nilable(WhopSDK::SwapCreateQuoteParams::ToChain::Variants),
|
|
98
|
+
request_options: WhopSDK::RequestOptions
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
end
|
|
102
|
+
def to_hash
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
module FromChain
|
|
106
|
+
extend WhopSDK::Internal::Type::Union
|
|
107
|
+
|
|
108
|
+
Variants = T.type_alias { T.any(String, Integer) }
|
|
109
|
+
|
|
110
|
+
sig do
|
|
111
|
+
override.returns(
|
|
112
|
+
T::Array[WhopSDK::SwapCreateQuoteParams::FromChain::Variants]
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
def self.variants
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
module ToChain
|
|
120
|
+
extend WhopSDK::Internal::Type::Union
|
|
121
|
+
|
|
122
|
+
Variants = T.type_alias { T.any(String, Integer) }
|
|
123
|
+
|
|
124
|
+
sig do
|
|
125
|
+
override.returns(
|
|
126
|
+
T::Array[WhopSDK::SwapCreateQuoteParams::ToChain::Variants]
|
|
127
|
+
)
|
|
128
|
+
end
|
|
129
|
+
def self.variants
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
end
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class SwapCreateQuoteResponse < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
WhopSDK::Models::SwapCreateQuoteResponse,
|
|
10
|
+
WhopSDK::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :amount_in
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :amount_out
|
|
19
|
+
|
|
20
|
+
sig { returns(Integer) }
|
|
21
|
+
attr_accessor :fee_bps
|
|
22
|
+
|
|
23
|
+
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
24
|
+
attr_accessor :from_token
|
|
25
|
+
|
|
26
|
+
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
27
|
+
attr_accessor :metadata
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
returns(WhopSDK::Models::SwapCreateQuoteResponse::Object::TaggedSymbol)
|
|
31
|
+
end
|
|
32
|
+
attr_accessor :object
|
|
33
|
+
|
|
34
|
+
sig { returns(String) }
|
|
35
|
+
attr_accessor :rate
|
|
36
|
+
|
|
37
|
+
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
38
|
+
attr_accessor :to_token
|
|
39
|
+
|
|
40
|
+
sig { returns(T.nilable(String)) }
|
|
41
|
+
attr_reader :amount_out_min
|
|
42
|
+
|
|
43
|
+
sig { params(amount_out_min: String).void }
|
|
44
|
+
attr_writer :amount_out_min
|
|
45
|
+
|
|
46
|
+
sig { returns(T.nilable(String)) }
|
|
47
|
+
attr_accessor :bridge_fee
|
|
48
|
+
|
|
49
|
+
sig { returns(T.nilable(Integer)) }
|
|
50
|
+
attr_accessor :estimated_duration_seconds
|
|
51
|
+
|
|
52
|
+
sig { returns(T.nilable(String)) }
|
|
53
|
+
attr_accessor :from_address
|
|
54
|
+
|
|
55
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
56
|
+
attr_accessor :requires_token_approval
|
|
57
|
+
|
|
58
|
+
sig { returns(T.nilable(String)) }
|
|
59
|
+
attr_accessor :to_address
|
|
60
|
+
|
|
61
|
+
sig do
|
|
62
|
+
params(
|
|
63
|
+
amount_in: String,
|
|
64
|
+
amount_out: String,
|
|
65
|
+
fee_bps: Integer,
|
|
66
|
+
from_token: T::Hash[Symbol, T.anything],
|
|
67
|
+
metadata: T::Hash[Symbol, T.anything],
|
|
68
|
+
object: WhopSDK::Models::SwapCreateQuoteResponse::Object::OrSymbol,
|
|
69
|
+
rate: String,
|
|
70
|
+
to_token: T::Hash[Symbol, T.anything],
|
|
71
|
+
amount_out_min: String,
|
|
72
|
+
bridge_fee: T.nilable(String),
|
|
73
|
+
estimated_duration_seconds: T.nilable(Integer),
|
|
74
|
+
from_address: T.nilable(String),
|
|
75
|
+
requires_token_approval: T.nilable(T::Boolean),
|
|
76
|
+
to_address: T.nilable(String)
|
|
77
|
+
).returns(T.attached_class)
|
|
78
|
+
end
|
|
79
|
+
def self.new(
|
|
80
|
+
amount_in:,
|
|
81
|
+
amount_out:,
|
|
82
|
+
fee_bps:,
|
|
83
|
+
from_token:,
|
|
84
|
+
metadata:,
|
|
85
|
+
object:,
|
|
86
|
+
rate:,
|
|
87
|
+
to_token:,
|
|
88
|
+
amount_out_min: nil,
|
|
89
|
+
bridge_fee: nil,
|
|
90
|
+
estimated_duration_seconds: nil,
|
|
91
|
+
from_address: nil,
|
|
92
|
+
requires_token_approval: nil,
|
|
93
|
+
to_address: nil
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
sig do
|
|
98
|
+
override.returns(
|
|
99
|
+
{
|
|
100
|
+
amount_in: String,
|
|
101
|
+
amount_out: String,
|
|
102
|
+
fee_bps: Integer,
|
|
103
|
+
from_token: T::Hash[Symbol, T.anything],
|
|
104
|
+
metadata: T::Hash[Symbol, T.anything],
|
|
105
|
+
object:
|
|
106
|
+
WhopSDK::Models::SwapCreateQuoteResponse::Object::TaggedSymbol,
|
|
107
|
+
rate: String,
|
|
108
|
+
to_token: T::Hash[Symbol, T.anything],
|
|
109
|
+
amount_out_min: String,
|
|
110
|
+
bridge_fee: T.nilable(String),
|
|
111
|
+
estimated_duration_seconds: T.nilable(Integer),
|
|
112
|
+
from_address: T.nilable(String),
|
|
113
|
+
requires_token_approval: T.nilable(T::Boolean),
|
|
114
|
+
to_address: T.nilable(String)
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
def to_hash
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
module Object
|
|
122
|
+
extend WhopSDK::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
TaggedSymbol =
|
|
125
|
+
T.type_alias do
|
|
126
|
+
T.all(Symbol, WhopSDK::Models::SwapCreateQuoteResponse::Object)
|
|
127
|
+
end
|
|
128
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
129
|
+
|
|
130
|
+
SWAP_QUOTE =
|
|
131
|
+
T.let(
|
|
132
|
+
:swap_quote,
|
|
133
|
+
WhopSDK::Models::SwapCreateQuoteResponse::Object::TaggedSymbol
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
sig do
|
|
137
|
+
override.returns(
|
|
138
|
+
T::Array[
|
|
139
|
+
WhopSDK::Models::SwapCreateQuoteResponse::Object::TaggedSymbol
|
|
140
|
+
]
|
|
141
|
+
)
|
|
142
|
+
end
|
|
143
|
+
def self.values
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
@@ -21,7 +21,9 @@ module WhopSDK
|
|
|
21
21
|
attr_accessor :currency
|
|
22
22
|
|
|
23
23
|
# The identifier of the account receiving the funds. Accepts a user ID
|
|
24
|
-
# ('user_xxx'), company ID ('biz_xxx'),
|
|
24
|
+
# ('user_xxx'), company ID ('biz_xxx'), ledger account ID ('ldgr_xxx'), or an
|
|
25
|
+
# email address — emails without an existing Whop user trigger a placeholder-user
|
|
26
|
+
# signup.
|
|
25
27
|
sig { returns(String) }
|
|
26
28
|
attr_accessor :destination_id
|
|
27
29
|
|
|
@@ -63,7 +65,9 @@ module WhopSDK
|
|
|
63
65
|
# The currency of the transfer amount, such as 'usd'.
|
|
64
66
|
currency:,
|
|
65
67
|
# The identifier of the account receiving the funds. Accepts a user ID
|
|
66
|
-
# ('user_xxx'), company ID ('biz_xxx'),
|
|
68
|
+
# ('user_xxx'), company ID ('biz_xxx'), ledger account ID ('ldgr_xxx'), or an
|
|
69
|
+
# email address — emails without an existing Whop user trigger a placeholder-user
|
|
70
|
+
# signup.
|
|
67
71
|
destination_id:,
|
|
68
72
|
# The identifier of the account sending the funds. Accepts a user ID ('user_xxx'),
|
|
69
73
|
# company ID ('biz_xxx'), or ledger account ID ('ldgr_xxx').
|
|
@@ -8,39 +8,43 @@ module WhopSDK
|
|
|
8
8
|
Variants =
|
|
9
9
|
T.type_alias do
|
|
10
10
|
T.any(
|
|
11
|
+
WhopSDK::CourseLessonInteractionCompletedWebhookEvent,
|
|
12
|
+
WhopSDK::DisputeCreatedWebhookEvent,
|
|
13
|
+
WhopSDK::DisputeUpdatedWebhookEvent,
|
|
14
|
+
WhopSDK::DisputeAlertCreatedWebhookEvent,
|
|
15
|
+
WhopSDK::EntryApprovedWebhookEvent,
|
|
16
|
+
WhopSDK::EntryCreatedWebhookEvent,
|
|
17
|
+
WhopSDK::EntryDeletedWebhookEvent,
|
|
18
|
+
WhopSDK::EntryDeniedWebhookEvent,
|
|
19
|
+
WhopSDK::IdentityProfileApprovedWebhookEvent,
|
|
20
|
+
WhopSDK::IdentityProfileNeedsActionWebhookEvent,
|
|
21
|
+
WhopSDK::IdentityProfileRejectedWebhookEvent,
|
|
22
|
+
WhopSDK::IdentityProfileUpdatedWebhookEvent,
|
|
11
23
|
WhopSDK::InvoiceCreatedWebhookEvent,
|
|
12
24
|
WhopSDK::InvoiceMarkedUncollectibleWebhookEvent,
|
|
13
25
|
WhopSDK::InvoicePaidWebhookEvent,
|
|
14
26
|
WhopSDK::InvoicePastDueWebhookEvent,
|
|
15
27
|
WhopSDK::InvoiceVoidedWebhookEvent,
|
|
16
28
|
WhopSDK::MembershipActivatedWebhookEvent,
|
|
29
|
+
WhopSDK::MembershipCancelAtPeriodEndChangedWebhookEvent,
|
|
17
30
|
WhopSDK::MembershipDeactivatedWebhookEvent,
|
|
18
|
-
WhopSDK::EntryCreatedWebhookEvent,
|
|
19
|
-
WhopSDK::EntryApprovedWebhookEvent,
|
|
20
|
-
WhopSDK::EntryDeniedWebhookEvent,
|
|
21
|
-
WhopSDK::EntryDeletedWebhookEvent,
|
|
22
|
-
WhopSDK::SetupIntentRequiresActionWebhookEvent,
|
|
23
|
-
WhopSDK::SetupIntentSucceededWebhookEvent,
|
|
24
|
-
WhopSDK::SetupIntentCanceledWebhookEvent,
|
|
25
|
-
WhopSDK::WithdrawalCreatedWebhookEvent,
|
|
26
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent,
|
|
27
|
-
WhopSDK::CourseLessonInteractionCompletedWebhookEvent,
|
|
28
|
-
WhopSDK::PayoutMethodCreatedWebhookEvent,
|
|
29
|
-
WhopSDK::VerificationSucceededWebhookEvent,
|
|
30
|
-
WhopSDK::PayoutAccountStatusUpdatedWebhookEvent,
|
|
31
|
-
WhopSDK::ResolutionCenterCaseCreatedWebhookEvent,
|
|
32
|
-
WhopSDK::ResolutionCenterCaseUpdatedWebhookEvent,
|
|
33
|
-
WhopSDK::ResolutionCenterCaseDecidedWebhookEvent,
|
|
34
31
|
WhopSDK::PaymentCreatedWebhookEvent,
|
|
35
|
-
WhopSDK::PaymentSucceededWebhookEvent,
|
|
36
32
|
WhopSDK::PaymentFailedWebhookEvent,
|
|
37
33
|
WhopSDK::PaymentPendingWebhookEvent,
|
|
38
|
-
WhopSDK::
|
|
39
|
-
WhopSDK::
|
|
34
|
+
WhopSDK::PaymentSucceededWebhookEvent,
|
|
35
|
+
WhopSDK::PayoutAccountStatusUpdatedWebhookEvent,
|
|
36
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent,
|
|
40
37
|
WhopSDK::RefundCreatedWebhookEvent,
|
|
41
38
|
WhopSDK::RefundUpdatedWebhookEvent,
|
|
42
|
-
WhopSDK::
|
|
43
|
-
WhopSDK::
|
|
39
|
+
WhopSDK::ResolutionCenterCaseCreatedWebhookEvent,
|
|
40
|
+
WhopSDK::ResolutionCenterCaseDecidedWebhookEvent,
|
|
41
|
+
WhopSDK::ResolutionCenterCaseUpdatedWebhookEvent,
|
|
42
|
+
WhopSDK::SetupIntentCanceledWebhookEvent,
|
|
43
|
+
WhopSDK::SetupIntentRequiresActionWebhookEvent,
|
|
44
|
+
WhopSDK::SetupIntentSucceededWebhookEvent,
|
|
45
|
+
WhopSDK::VerificationSucceededWebhookEvent,
|
|
46
|
+
WhopSDK::WithdrawalCreatedWebhookEvent,
|
|
47
|
+
WhopSDK::WithdrawalUpdatedWebhookEvent
|
|
44
48
|
)
|
|
45
49
|
end
|
|
46
50
|
|