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
|
@@ -14,6 +14,7 @@ module WhopSDK
|
|
|
14
14
|
initial_price: Float?,
|
|
15
15
|
internal_notes: String?,
|
|
16
16
|
legacy_payment_method_controls: bool?,
|
|
17
|
+
metadata: ::Hash[Symbol, top]?,
|
|
17
18
|
offer_cancel_discount: bool?,
|
|
18
19
|
override_tax_type: WhopSDK::Models::tax_type?,
|
|
19
20
|
payment_method_configuration: WhopSDK::PlanUpdateParams::PaymentMethodConfiguration?,
|
|
@@ -21,6 +22,7 @@ module WhopSDK
|
|
|
21
22
|
stock: Integer?,
|
|
22
23
|
strike_through_initial_price: Float?,
|
|
23
24
|
strike_through_renewal_price: Float?,
|
|
25
|
+
three_ds_level: WhopSDK::Models::PlanUpdateParams::three_ds_level?,
|
|
24
26
|
title: String?,
|
|
25
27
|
trial_period_days: Integer?,
|
|
26
28
|
unlimited_stock: bool?,
|
|
@@ -56,6 +58,8 @@ module WhopSDK
|
|
|
56
58
|
|
|
57
59
|
attr_accessor legacy_payment_method_controls: bool?
|
|
58
60
|
|
|
61
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
62
|
+
|
|
59
63
|
attr_accessor offer_cancel_discount: bool?
|
|
60
64
|
|
|
61
65
|
attr_accessor override_tax_type: WhopSDK::Models::tax_type?
|
|
@@ -70,6 +74,8 @@ module WhopSDK
|
|
|
70
74
|
|
|
71
75
|
attr_accessor strike_through_renewal_price: Float?
|
|
72
76
|
|
|
77
|
+
attr_accessor three_ds_level: WhopSDK::Models::PlanUpdateParams::three_ds_level?
|
|
78
|
+
|
|
73
79
|
attr_accessor title: String?
|
|
74
80
|
|
|
75
81
|
attr_accessor trial_period_days: Integer?
|
|
@@ -91,6 +97,7 @@ module WhopSDK
|
|
|
91
97
|
?initial_price: Float?,
|
|
92
98
|
?internal_notes: String?,
|
|
93
99
|
?legacy_payment_method_controls: bool?,
|
|
100
|
+
?metadata: ::Hash[Symbol, top]?,
|
|
94
101
|
?offer_cancel_discount: bool?,
|
|
95
102
|
?override_tax_type: WhopSDK::Models::tax_type?,
|
|
96
103
|
?payment_method_configuration: WhopSDK::PlanUpdateParams::PaymentMethodConfiguration?,
|
|
@@ -98,6 +105,7 @@ module WhopSDK
|
|
|
98
105
|
?stock: Integer?,
|
|
99
106
|
?strike_through_initial_price: Float?,
|
|
100
107
|
?strike_through_renewal_price: Float?,
|
|
108
|
+
?three_ds_level: WhopSDK::Models::PlanUpdateParams::three_ds_level?,
|
|
101
109
|
?title: String?,
|
|
102
110
|
?trial_period_days: Integer?,
|
|
103
111
|
?unlimited_stock: bool?,
|
|
@@ -118,6 +126,7 @@ module WhopSDK
|
|
|
118
126
|
initial_price: Float?,
|
|
119
127
|
internal_notes: String?,
|
|
120
128
|
legacy_payment_method_controls: bool?,
|
|
129
|
+
metadata: ::Hash[Symbol, top]?,
|
|
121
130
|
offer_cancel_discount: bool?,
|
|
122
131
|
override_tax_type: WhopSDK::Models::tax_type?,
|
|
123
132
|
payment_method_configuration: WhopSDK::PlanUpdateParams::PaymentMethodConfiguration?,
|
|
@@ -125,6 +134,7 @@ module WhopSDK
|
|
|
125
134
|
stock: Integer?,
|
|
126
135
|
strike_through_initial_price: Float?,
|
|
127
136
|
strike_through_renewal_price: Float?,
|
|
137
|
+
three_ds_level: WhopSDK::Models::PlanUpdateParams::three_ds_level?,
|
|
128
138
|
title: String?,
|
|
129
139
|
trial_period_days: Integer?,
|
|
130
140
|
unlimited_stock: bool?,
|
|
@@ -242,6 +252,17 @@ module WhopSDK
|
|
|
242
252
|
include_platform_defaults: bool?
|
|
243
253
|
}
|
|
244
254
|
end
|
|
255
|
+
|
|
256
|
+
type three_ds_level = :mandate_challenge | :frictionless
|
|
257
|
+
|
|
258
|
+
module ThreeDSLevel
|
|
259
|
+
extend WhopSDK::Internal::Type::Enum
|
|
260
|
+
|
|
261
|
+
MANDATE_CHALLENGE: :mandate_challenge
|
|
262
|
+
FRICTIONLESS: :frictionless
|
|
263
|
+
|
|
264
|
+
def self?.values: -> ::Array[WhopSDK::Models::PlanUpdateParams::three_ds_level]
|
|
265
|
+
end
|
|
245
266
|
end
|
|
246
267
|
end
|
|
247
268
|
end
|
|
@@ -17,6 +17,7 @@ module WhopSDK
|
|
|
17
17
|
member_affiliate_percentage: Float?,
|
|
18
18
|
member_affiliate_status: WhopSDK::Models::global_affiliate_status,
|
|
19
19
|
member_count: Integer,
|
|
20
|
+
metadata: ::Hash[Symbol, top]?,
|
|
20
21
|
owner_user: WhopSDK::Product::OwnerUser,
|
|
21
22
|
product_tax_code: WhopSDK::Product::ProductTaxCode?,
|
|
22
23
|
published_reviews_count: Integer,
|
|
@@ -58,6 +59,8 @@ module WhopSDK
|
|
|
58
59
|
|
|
59
60
|
attr_accessor member_count: Integer
|
|
60
61
|
|
|
62
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
63
|
+
|
|
61
64
|
attr_accessor owner_user: WhopSDK::Product::OwnerUser
|
|
62
65
|
|
|
63
66
|
attr_accessor product_tax_code: WhopSDK::Product::ProductTaxCode?
|
|
@@ -90,6 +93,7 @@ module WhopSDK
|
|
|
90
93
|
member_affiliate_percentage: Float?,
|
|
91
94
|
member_affiliate_status: WhopSDK::Models::global_affiliate_status,
|
|
92
95
|
member_count: Integer,
|
|
96
|
+
metadata: ::Hash[Symbol, top]?,
|
|
93
97
|
owner_user: WhopSDK::Product::OwnerUser,
|
|
94
98
|
product_tax_code: WhopSDK::Product::ProductTaxCode?,
|
|
95
99
|
published_reviews_count: Integer,
|
|
@@ -116,6 +120,7 @@ module WhopSDK
|
|
|
116
120
|
member_affiliate_percentage: Float?,
|
|
117
121
|
member_affiliate_status: WhopSDK::Models::global_affiliate_status,
|
|
118
122
|
member_count: Integer,
|
|
123
|
+
metadata: ::Hash[Symbol, top]?,
|
|
119
124
|
owner_user: WhopSDK::Product::OwnerUser,
|
|
120
125
|
product_tax_code: WhopSDK::Product::ProductTaxCode?,
|
|
121
126
|
published_reviews_count: Integer,
|
|
@@ -15,6 +15,7 @@ module WhopSDK
|
|
|
15
15
|
headline: String?,
|
|
16
16
|
member_affiliate_percentage: Float?,
|
|
17
17
|
member_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
18
|
+
metadata: ::Hash[Symbol, top]?,
|
|
18
19
|
plan_options: WhopSDK::ProductCreateParams::PlanOptions?,
|
|
19
20
|
product_tax_code_id: String?,
|
|
20
21
|
redirect_purchase_url: String?,
|
|
@@ -54,6 +55,8 @@ module WhopSDK
|
|
|
54
55
|
|
|
55
56
|
attr_accessor member_affiliate_status: WhopSDK::Models::global_affiliate_status?
|
|
56
57
|
|
|
58
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
59
|
+
|
|
57
60
|
attr_accessor plan_options: WhopSDK::ProductCreateParams::PlanOptions?
|
|
58
61
|
|
|
59
62
|
attr_accessor product_tax_code_id: String?
|
|
@@ -80,6 +83,7 @@ module WhopSDK
|
|
|
80
83
|
?headline: String?,
|
|
81
84
|
?member_affiliate_percentage: Float?,
|
|
82
85
|
?member_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
86
|
+
?metadata: ::Hash[Symbol, top]?,
|
|
83
87
|
?plan_options: WhopSDK::ProductCreateParams::PlanOptions?,
|
|
84
88
|
?product_tax_code_id: String?,
|
|
85
89
|
?redirect_purchase_url: String?,
|
|
@@ -103,6 +107,7 @@ module WhopSDK
|
|
|
103
107
|
headline: String?,
|
|
104
108
|
member_affiliate_percentage: Float?,
|
|
105
109
|
member_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
110
|
+
metadata: ::Hash[Symbol, top]?,
|
|
106
111
|
plan_options: WhopSDK::ProductCreateParams::PlanOptions?,
|
|
107
112
|
product_tax_code_id: String?,
|
|
108
113
|
redirect_purchase_url: String?,
|
|
@@ -7,6 +7,7 @@ module WhopSDK
|
|
|
7
7
|
external_identifier: String?,
|
|
8
8
|
headline: String?,
|
|
9
9
|
member_count: Integer,
|
|
10
|
+
metadata: ::Hash[Symbol, top]?,
|
|
10
11
|
published_reviews_count: Integer,
|
|
11
12
|
route: String,
|
|
12
13
|
title: String,
|
|
@@ -26,6 +27,8 @@ module WhopSDK
|
|
|
26
27
|
|
|
27
28
|
attr_accessor member_count: Integer
|
|
28
29
|
|
|
30
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
31
|
+
|
|
29
32
|
attr_accessor published_reviews_count: Integer
|
|
30
33
|
|
|
31
34
|
attr_accessor route: String
|
|
@@ -44,6 +47,7 @@ module WhopSDK
|
|
|
44
47
|
external_identifier: String?,
|
|
45
48
|
headline: String?,
|
|
46
49
|
member_count: Integer,
|
|
50
|
+
metadata: ::Hash[Symbol, top]?,
|
|
47
51
|
published_reviews_count: Integer,
|
|
48
52
|
route: String,
|
|
49
53
|
title: String,
|
|
@@ -58,6 +62,7 @@ module WhopSDK
|
|
|
58
62
|
external_identifier: String?,
|
|
59
63
|
headline: String?,
|
|
60
64
|
member_count: Integer,
|
|
65
|
+
metadata: ::Hash[Symbol, top]?,
|
|
61
66
|
published_reviews_count: Integer,
|
|
62
67
|
route: String,
|
|
63
68
|
title: String,
|
|
@@ -14,6 +14,7 @@ module WhopSDK
|
|
|
14
14
|
headline: String?,
|
|
15
15
|
member_affiliate_percentage: Float?,
|
|
16
16
|
member_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
17
|
+
metadata: ::Hash[Symbol, top]?,
|
|
17
18
|
product_tax_code_id: String?,
|
|
18
19
|
redirect_purchase_url: String?,
|
|
19
20
|
route: String?,
|
|
@@ -52,6 +53,8 @@ module WhopSDK
|
|
|
52
53
|
|
|
53
54
|
attr_accessor member_affiliate_status: WhopSDK::Models::global_affiliate_status?
|
|
54
55
|
|
|
56
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
57
|
+
|
|
55
58
|
attr_accessor product_tax_code_id: String?
|
|
56
59
|
|
|
57
60
|
attr_accessor redirect_purchase_url: String?
|
|
@@ -79,6 +82,7 @@ module WhopSDK
|
|
|
79
82
|
?headline: String?,
|
|
80
83
|
?member_affiliate_percentage: Float?,
|
|
81
84
|
?member_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
85
|
+
?metadata: ::Hash[Symbol, top]?,
|
|
82
86
|
?product_tax_code_id: String?,
|
|
83
87
|
?redirect_purchase_url: String?,
|
|
84
88
|
?route: String?,
|
|
@@ -102,6 +106,7 @@ module WhopSDK
|
|
|
102
106
|
headline: String?,
|
|
103
107
|
member_affiliate_percentage: Float?,
|
|
104
108
|
member_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
109
|
+
metadata: ::Hash[Symbol, top]?,
|
|
105
110
|
product_tax_code_id: String?,
|
|
106
111
|
redirect_purchase_url: String?,
|
|
107
112
|
route: String?,
|
|
@@ -114,12 +114,15 @@ module WhopSDK
|
|
|
114
114
|
card_brand: WhopSDK::Models::card_brands?,
|
|
115
115
|
:card_last4 => String?,
|
|
116
116
|
created_at: Time,
|
|
117
|
-
currency: WhopSDK::Models::currency
|
|
117
|
+
currency: WhopSDK::Models::currency,
|
|
118
118
|
dispute_alerted_at: Time?,
|
|
119
119
|
member: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Member?,
|
|
120
120
|
membership: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Membership?,
|
|
121
|
+
metadata: ::Hash[Symbol, top]?,
|
|
121
122
|
paid_at: Time?,
|
|
122
123
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
124
|
+
plan: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Plan?,
|
|
125
|
+
product: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Product?,
|
|
123
126
|
subtotal: Float?,
|
|
124
127
|
tax_amount: Float?,
|
|
125
128
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -140,7 +143,7 @@ module WhopSDK
|
|
|
140
143
|
|
|
141
144
|
attr_accessor created_at: Time
|
|
142
145
|
|
|
143
|
-
attr_accessor currency: WhopSDK::Models::currency
|
|
146
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
144
147
|
|
|
145
148
|
attr_accessor dispute_alerted_at: Time?
|
|
146
149
|
|
|
@@ -148,10 +151,16 @@ module WhopSDK
|
|
|
148
151
|
|
|
149
152
|
attr_accessor membership: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Membership?
|
|
150
153
|
|
|
154
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
155
|
+
|
|
151
156
|
attr_accessor paid_at: Time?
|
|
152
157
|
|
|
153
158
|
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
|
|
154
159
|
|
|
160
|
+
attr_accessor plan: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Plan?
|
|
161
|
+
|
|
162
|
+
attr_accessor product: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Product?
|
|
163
|
+
|
|
155
164
|
attr_accessor subtotal: Float?
|
|
156
165
|
|
|
157
166
|
attr_accessor tax_amount: Float?
|
|
@@ -172,12 +181,15 @@ module WhopSDK
|
|
|
172
181
|
card_brand: WhopSDK::Models::card_brands?,
|
|
173
182
|
card_last4: String?,
|
|
174
183
|
created_at: Time,
|
|
175
|
-
currency: WhopSDK::Models::currency
|
|
184
|
+
currency: WhopSDK::Models::currency,
|
|
176
185
|
dispute_alerted_at: Time?,
|
|
177
186
|
member: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Member?,
|
|
178
187
|
membership: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Membership?,
|
|
188
|
+
metadata: ::Hash[Symbol, top]?,
|
|
179
189
|
paid_at: Time?,
|
|
180
190
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
191
|
+
plan: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Plan?,
|
|
192
|
+
product: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Product?,
|
|
181
193
|
subtotal: Float?,
|
|
182
194
|
tax_amount: Float?,
|
|
183
195
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -193,12 +205,15 @@ module WhopSDK
|
|
|
193
205
|
card_brand: WhopSDK::Models::card_brands?,
|
|
194
206
|
:card_last4 => String?,
|
|
195
207
|
created_at: Time,
|
|
196
|
-
currency: WhopSDK::Models::currency
|
|
208
|
+
currency: WhopSDK::Models::currency,
|
|
197
209
|
dispute_alerted_at: Time?,
|
|
198
210
|
member: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Member?,
|
|
199
211
|
membership: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Membership?,
|
|
212
|
+
metadata: ::Hash[Symbol, top]?,
|
|
200
213
|
paid_at: Time?,
|
|
201
214
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
215
|
+
plan: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Plan?,
|
|
216
|
+
product: WhopSDK::RefundCreatedWebhookEvent::Data::Payment::Product?,
|
|
202
217
|
subtotal: Float?,
|
|
203
218
|
tax_amount: Float?,
|
|
204
219
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -239,6 +254,30 @@ module WhopSDK
|
|
|
239
254
|
}
|
|
240
255
|
end
|
|
241
256
|
|
|
257
|
+
type plan = { id: String, metadata: ::Hash[Symbol, top]? }
|
|
258
|
+
|
|
259
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
260
|
+
attr_accessor id: String
|
|
261
|
+
|
|
262
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
263
|
+
|
|
264
|
+
def initialize: (id: String, metadata: ::Hash[Symbol, top]?) -> void
|
|
265
|
+
|
|
266
|
+
def to_hash: -> { id: String, metadata: ::Hash[Symbol, top]? }
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
type product = { id: String, metadata: ::Hash[Symbol, top]? }
|
|
270
|
+
|
|
271
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
272
|
+
attr_accessor id: String
|
|
273
|
+
|
|
274
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
275
|
+
|
|
276
|
+
def initialize: (id: String, metadata: ::Hash[Symbol, top]?) -> void
|
|
277
|
+
|
|
278
|
+
def to_hash: -> { id: String, metadata: ::Hash[Symbol, top]? }
|
|
279
|
+
end
|
|
280
|
+
|
|
242
281
|
type user =
|
|
243
282
|
{ id: String, email: String?, name: String?, username: String }
|
|
244
283
|
|
|
@@ -73,12 +73,15 @@ module WhopSDK
|
|
|
73
73
|
card_brand: WhopSDK::Models::card_brands?,
|
|
74
74
|
:card_last4 => String?,
|
|
75
75
|
created_at: Time,
|
|
76
|
-
currency: WhopSDK::Models::currency
|
|
76
|
+
currency: WhopSDK::Models::currency,
|
|
77
77
|
dispute_alerted_at: Time?,
|
|
78
78
|
member: WhopSDK::Models::RefundRetrieveResponse::Payment::Member?,
|
|
79
79
|
membership: WhopSDK::Models::RefundRetrieveResponse::Payment::Membership?,
|
|
80
|
+
metadata: ::Hash[Symbol, top]?,
|
|
80
81
|
paid_at: Time?,
|
|
81
82
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
83
|
+
plan: WhopSDK::Models::RefundRetrieveResponse::Payment::Plan?,
|
|
84
|
+
product: WhopSDK::Models::RefundRetrieveResponse::Payment::Product?,
|
|
82
85
|
subtotal: Float?,
|
|
83
86
|
tax_amount: Float?,
|
|
84
87
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -99,7 +102,7 @@ module WhopSDK
|
|
|
99
102
|
|
|
100
103
|
attr_accessor created_at: Time
|
|
101
104
|
|
|
102
|
-
attr_accessor currency: WhopSDK::Models::currency
|
|
105
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
103
106
|
|
|
104
107
|
attr_accessor dispute_alerted_at: Time?
|
|
105
108
|
|
|
@@ -107,10 +110,16 @@ module WhopSDK
|
|
|
107
110
|
|
|
108
111
|
attr_accessor membership: WhopSDK::Models::RefundRetrieveResponse::Payment::Membership?
|
|
109
112
|
|
|
113
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
114
|
+
|
|
110
115
|
attr_accessor paid_at: Time?
|
|
111
116
|
|
|
112
117
|
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
|
|
113
118
|
|
|
119
|
+
attr_accessor plan: WhopSDK::Models::RefundRetrieveResponse::Payment::Plan?
|
|
120
|
+
|
|
121
|
+
attr_accessor product: WhopSDK::Models::RefundRetrieveResponse::Payment::Product?
|
|
122
|
+
|
|
114
123
|
attr_accessor subtotal: Float?
|
|
115
124
|
|
|
116
125
|
attr_accessor tax_amount: Float?
|
|
@@ -131,12 +140,15 @@ module WhopSDK
|
|
|
131
140
|
card_brand: WhopSDK::Models::card_brands?,
|
|
132
141
|
card_last4: String?,
|
|
133
142
|
created_at: Time,
|
|
134
|
-
currency: WhopSDK::Models::currency
|
|
143
|
+
currency: WhopSDK::Models::currency,
|
|
135
144
|
dispute_alerted_at: Time?,
|
|
136
145
|
member: WhopSDK::Models::RefundRetrieveResponse::Payment::Member?,
|
|
137
146
|
membership: WhopSDK::Models::RefundRetrieveResponse::Payment::Membership?,
|
|
147
|
+
metadata: ::Hash[Symbol, top]?,
|
|
138
148
|
paid_at: Time?,
|
|
139
149
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
150
|
+
plan: WhopSDK::Models::RefundRetrieveResponse::Payment::Plan?,
|
|
151
|
+
product: WhopSDK::Models::RefundRetrieveResponse::Payment::Product?,
|
|
140
152
|
subtotal: Float?,
|
|
141
153
|
tax_amount: Float?,
|
|
142
154
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -152,12 +164,15 @@ module WhopSDK
|
|
|
152
164
|
card_brand: WhopSDK::Models::card_brands?,
|
|
153
165
|
:card_last4 => String?,
|
|
154
166
|
created_at: Time,
|
|
155
|
-
currency: WhopSDK::Models::currency
|
|
167
|
+
currency: WhopSDK::Models::currency,
|
|
156
168
|
dispute_alerted_at: Time?,
|
|
157
169
|
member: WhopSDK::Models::RefundRetrieveResponse::Payment::Member?,
|
|
158
170
|
membership: WhopSDK::Models::RefundRetrieveResponse::Payment::Membership?,
|
|
171
|
+
metadata: ::Hash[Symbol, top]?,
|
|
159
172
|
paid_at: Time?,
|
|
160
173
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
174
|
+
plan: WhopSDK::Models::RefundRetrieveResponse::Payment::Plan?,
|
|
175
|
+
product: WhopSDK::Models::RefundRetrieveResponse::Payment::Product?,
|
|
161
176
|
subtotal: Float?,
|
|
162
177
|
tax_amount: Float?,
|
|
163
178
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -198,6 +213,30 @@ module WhopSDK
|
|
|
198
213
|
}
|
|
199
214
|
end
|
|
200
215
|
|
|
216
|
+
type plan = { id: String, metadata: ::Hash[Symbol, top]? }
|
|
217
|
+
|
|
218
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
219
|
+
attr_accessor id: String
|
|
220
|
+
|
|
221
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
222
|
+
|
|
223
|
+
def initialize: (id: String, metadata: ::Hash[Symbol, top]?) -> void
|
|
224
|
+
|
|
225
|
+
def to_hash: -> { id: String, metadata: ::Hash[Symbol, top]? }
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
type product = { id: String, metadata: ::Hash[Symbol, top]? }
|
|
229
|
+
|
|
230
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
231
|
+
attr_accessor id: String
|
|
232
|
+
|
|
233
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
234
|
+
|
|
235
|
+
def initialize: (id: String, metadata: ::Hash[Symbol, top]?) -> void
|
|
236
|
+
|
|
237
|
+
def to_hash: -> { id: String, metadata: ::Hash[Symbol, top]? }
|
|
238
|
+
end
|
|
239
|
+
|
|
201
240
|
type user =
|
|
202
241
|
{ id: String, email: String?, name: String?, username: String }
|
|
203
242
|
|
|
@@ -114,12 +114,15 @@ module WhopSDK
|
|
|
114
114
|
card_brand: WhopSDK::Models::card_brands?,
|
|
115
115
|
:card_last4 => String?,
|
|
116
116
|
created_at: Time,
|
|
117
|
-
currency: WhopSDK::Models::currency
|
|
117
|
+
currency: WhopSDK::Models::currency,
|
|
118
118
|
dispute_alerted_at: Time?,
|
|
119
119
|
member: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Member?,
|
|
120
120
|
membership: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Membership?,
|
|
121
|
+
metadata: ::Hash[Symbol, top]?,
|
|
121
122
|
paid_at: Time?,
|
|
122
123
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
124
|
+
plan: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan?,
|
|
125
|
+
product: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product?,
|
|
123
126
|
subtotal: Float?,
|
|
124
127
|
tax_amount: Float?,
|
|
125
128
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -140,7 +143,7 @@ module WhopSDK
|
|
|
140
143
|
|
|
141
144
|
attr_accessor created_at: Time
|
|
142
145
|
|
|
143
|
-
attr_accessor currency: WhopSDK::Models::currency
|
|
146
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
144
147
|
|
|
145
148
|
attr_accessor dispute_alerted_at: Time?
|
|
146
149
|
|
|
@@ -148,10 +151,16 @@ module WhopSDK
|
|
|
148
151
|
|
|
149
152
|
attr_accessor membership: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Membership?
|
|
150
153
|
|
|
154
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
155
|
+
|
|
151
156
|
attr_accessor paid_at: Time?
|
|
152
157
|
|
|
153
158
|
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
|
|
154
159
|
|
|
160
|
+
attr_accessor plan: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan?
|
|
161
|
+
|
|
162
|
+
attr_accessor product: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product?
|
|
163
|
+
|
|
155
164
|
attr_accessor subtotal: Float?
|
|
156
165
|
|
|
157
166
|
attr_accessor tax_amount: Float?
|
|
@@ -172,12 +181,15 @@ module WhopSDK
|
|
|
172
181
|
card_brand: WhopSDK::Models::card_brands?,
|
|
173
182
|
card_last4: String?,
|
|
174
183
|
created_at: Time,
|
|
175
|
-
currency: WhopSDK::Models::currency
|
|
184
|
+
currency: WhopSDK::Models::currency,
|
|
176
185
|
dispute_alerted_at: Time?,
|
|
177
186
|
member: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Member?,
|
|
178
187
|
membership: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Membership?,
|
|
188
|
+
metadata: ::Hash[Symbol, top]?,
|
|
179
189
|
paid_at: Time?,
|
|
180
190
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
191
|
+
plan: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan?,
|
|
192
|
+
product: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product?,
|
|
181
193
|
subtotal: Float?,
|
|
182
194
|
tax_amount: Float?,
|
|
183
195
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -193,12 +205,15 @@ module WhopSDK
|
|
|
193
205
|
card_brand: WhopSDK::Models::card_brands?,
|
|
194
206
|
:card_last4 => String?,
|
|
195
207
|
created_at: Time,
|
|
196
|
-
currency: WhopSDK::Models::currency
|
|
208
|
+
currency: WhopSDK::Models::currency,
|
|
197
209
|
dispute_alerted_at: Time?,
|
|
198
210
|
member: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Member?,
|
|
199
211
|
membership: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Membership?,
|
|
212
|
+
metadata: ::Hash[Symbol, top]?,
|
|
200
213
|
paid_at: Time?,
|
|
201
214
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
215
|
+
plan: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Plan?,
|
|
216
|
+
product: WhopSDK::RefundUpdatedWebhookEvent::Data::Payment::Product?,
|
|
202
217
|
subtotal: Float?,
|
|
203
218
|
tax_amount: Float?,
|
|
204
219
|
tax_behavior: WhopSDK::Models::receipt_tax_behavior?,
|
|
@@ -239,6 +254,30 @@ module WhopSDK
|
|
|
239
254
|
}
|
|
240
255
|
end
|
|
241
256
|
|
|
257
|
+
type plan = { id: String, metadata: ::Hash[Symbol, top]? }
|
|
258
|
+
|
|
259
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
260
|
+
attr_accessor id: String
|
|
261
|
+
|
|
262
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
263
|
+
|
|
264
|
+
def initialize: (id: String, metadata: ::Hash[Symbol, top]?) -> void
|
|
265
|
+
|
|
266
|
+
def to_hash: -> { id: String, metadata: ::Hash[Symbol, top]? }
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
type product = { id: String, metadata: ::Hash[Symbol, top]? }
|
|
270
|
+
|
|
271
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
272
|
+
attr_accessor id: String
|
|
273
|
+
|
|
274
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
275
|
+
|
|
276
|
+
def initialize: (id: String, metadata: ::Hash[Symbol, top]?) -> void
|
|
277
|
+
|
|
278
|
+
def to_hash: -> { id: String, metadata: ::Hash[Symbol, top]? }
|
|
279
|
+
end
|
|
280
|
+
|
|
242
281
|
type user =
|
|
243
282
|
{ id: String, email: String?, name: String?, username: String }
|
|
244
283
|
|
|
@@ -4,7 +4,6 @@ module WhopSDK
|
|
|
4
4
|
:request_buyer_info
|
|
5
5
|
| :request_merchant_info
|
|
6
6
|
| :merchant_wins
|
|
7
|
-
| :platform_refund
|
|
8
7
|
| :merchant_refund
|
|
9
8
|
|
|
10
9
|
module ResolutionCenterCasePlatformResponse
|
|
@@ -13,7 +12,6 @@ module WhopSDK
|
|
|
13
12
|
REQUEST_BUYER_INFO: :request_buyer_info
|
|
14
13
|
REQUEST_MERCHANT_INFO: :request_merchant_info
|
|
15
14
|
MERCHANT_WINS: :merchant_wins
|
|
16
|
-
PLATFORM_REFUND: :platform_refund
|
|
17
15
|
MERCHANT_REFUND: :merchant_refund
|
|
18
16
|
|
|
19
17
|
def self?.values: -> ::Array[WhopSDK::Models::resolution_center_case_platform_response]
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type result_label_keys =
|
|
4
|
+
:app_installs
|
|
5
|
+
| :messaging_conversations_started
|
|
6
|
+
| :post_engagement
|
|
7
|
+
| :event_responses
|
|
8
|
+
| :impressions
|
|
9
|
+
| :website_purchases
|
|
10
|
+
| :landing_page_views
|
|
11
|
+
| :leads
|
|
12
|
+
| :link_clicks
|
|
13
|
+
| :quality_calls
|
|
14
|
+
| :appointments_booked
|
|
15
|
+
| :messaging_purchases
|
|
16
|
+
| :page_likes
|
|
17
|
+
| :instagram_profile_visits
|
|
18
|
+
| :reach
|
|
19
|
+
| :reminders_set
|
|
20
|
+
| :new_subscribers
|
|
21
|
+
| :video_views
|
|
22
|
+
| :registrations
|
|
23
|
+
| :content_views
|
|
24
|
+
| :searches
|
|
25
|
+
| :website_schedules
|
|
26
|
+
| :website_submit_applications
|
|
27
|
+
| :custom
|
|
28
|
+
|
|
29
|
+
module ResultLabelKeys
|
|
30
|
+
extend WhopSDK::Internal::Type::Enum
|
|
31
|
+
|
|
32
|
+
APP_INSTALLS: :app_installs
|
|
33
|
+
MESSAGING_CONVERSATIONS_STARTED: :messaging_conversations_started
|
|
34
|
+
POST_ENGAGEMENT: :post_engagement
|
|
35
|
+
EVENT_RESPONSES: :event_responses
|
|
36
|
+
IMPRESSIONS: :impressions
|
|
37
|
+
WEBSITE_PURCHASES: :website_purchases
|
|
38
|
+
LANDING_PAGE_VIEWS: :landing_page_views
|
|
39
|
+
LEADS: :leads
|
|
40
|
+
LINK_CLICKS: :link_clicks
|
|
41
|
+
QUALITY_CALLS: :quality_calls
|
|
42
|
+
APPOINTMENTS_BOOKED: :appointments_booked
|
|
43
|
+
MESSAGING_PURCHASES: :messaging_purchases
|
|
44
|
+
PAGE_LIKES: :page_likes
|
|
45
|
+
INSTAGRAM_PROFILE_VISITS: :instagram_profile_visits
|
|
46
|
+
REACH: :reach
|
|
47
|
+
REMINDERS_SET: :reminders_set
|
|
48
|
+
NEW_SUBSCRIBERS: :new_subscribers
|
|
49
|
+
VIDEO_VIEWS: :video_views
|
|
50
|
+
REGISTRATIONS: :registrations
|
|
51
|
+
CONTENT_VIEWS: :content_views
|
|
52
|
+
SEARCHES: :searches
|
|
53
|
+
WEBSITE_SCHEDULES: :website_schedules
|
|
54
|
+
WEBSITE_SUBMIT_APPLICATIONS: :website_submit_applications
|
|
55
|
+
CUSTOM: :custom
|
|
56
|
+
|
|
57
|
+
def self?.values: -> ::Array[WhopSDK::Models::result_label_keys]
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|