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
|
@@ -81,6 +81,11 @@ module WhopSDK
|
|
|
81
81
|
sig { returns(Integer) }
|
|
82
82
|
attr_accessor :member_count
|
|
83
83
|
|
|
84
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
85
|
+
# payment and membership events.
|
|
86
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
87
|
+
attr_accessor :metadata
|
|
88
|
+
|
|
84
89
|
# The user who owns the company that sells this product.
|
|
85
90
|
sig { returns(WhopSDK::Product::OwnerUser) }
|
|
86
91
|
attr_reader :owner_user
|
|
@@ -146,6 +151,7 @@ module WhopSDK
|
|
|
146
151
|
member_affiliate_percentage: T.nilable(Float),
|
|
147
152
|
member_affiliate_status: WhopSDK::GlobalAffiliateStatus::OrSymbol,
|
|
148
153
|
member_count: Integer,
|
|
154
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
149
155
|
owner_user: WhopSDK::Product::OwnerUser::OrHash,
|
|
150
156
|
product_tax_code: T.nilable(WhopSDK::Product::ProductTaxCode::OrHash),
|
|
151
157
|
published_reviews_count: Integer,
|
|
@@ -199,6 +205,9 @@ module WhopSDK
|
|
|
199
205
|
# The number of users who currently hold an active membership to this product.
|
|
200
206
|
# Returns 0 if the company has disabled public member counts.
|
|
201
207
|
member_count:,
|
|
208
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
209
|
+
# payment and membership events.
|
|
210
|
+
metadata:,
|
|
202
211
|
# The user who owns the company that sells this product.
|
|
203
212
|
owner_user:,
|
|
204
213
|
# The tax classification code applied to purchases of this product for sales tax
|
|
@@ -242,6 +251,7 @@ module WhopSDK
|
|
|
242
251
|
member_affiliate_status:
|
|
243
252
|
WhopSDK::GlobalAffiliateStatus::TaggedSymbol,
|
|
244
253
|
member_count: Integer,
|
|
254
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
245
255
|
owner_user: WhopSDK::Product::OwnerUser,
|
|
246
256
|
product_tax_code: T.nilable(WhopSDK::Product::ProductTaxCode),
|
|
247
257
|
published_reviews_count: Integer,
|
|
@@ -68,6 +68,12 @@ module WhopSDK
|
|
|
68
68
|
sig { returns(T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol)) }
|
|
69
69
|
attr_accessor :member_affiliate_status
|
|
70
70
|
|
|
71
|
+
# Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
72
|
+
# payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
73
|
+
# value.
|
|
74
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
75
|
+
attr_accessor :metadata
|
|
76
|
+
|
|
71
77
|
# Configuration for an automatically generated plan to attach to this product.
|
|
72
78
|
sig { returns(T.nilable(WhopSDK::ProductCreateParams::PlanOptions)) }
|
|
73
79
|
attr_reader :plan_options
|
|
@@ -118,6 +124,7 @@ module WhopSDK
|
|
|
118
124
|
member_affiliate_percentage: T.nilable(Float),
|
|
119
125
|
member_affiliate_status:
|
|
120
126
|
T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol),
|
|
127
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
121
128
|
plan_options:
|
|
122
129
|
T.nilable(WhopSDK::ProductCreateParams::PlanOptions::OrHash),
|
|
123
130
|
product_tax_code_id: T.nilable(String),
|
|
@@ -160,6 +167,10 @@ module WhopSDK
|
|
|
160
167
|
member_affiliate_percentage: nil,
|
|
161
168
|
# The different statuses of the global affiliate program for a product.
|
|
162
169
|
member_affiliate_status: nil,
|
|
170
|
+
# Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
171
|
+
# payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
172
|
+
# value.
|
|
173
|
+
metadata: nil,
|
|
163
174
|
# Configuration for an automatically generated plan to attach to this product.
|
|
164
175
|
plan_options: nil,
|
|
165
176
|
# The unique identifier of the tax classification code to apply to this product.
|
|
@@ -195,6 +206,7 @@ module WhopSDK
|
|
|
195
206
|
member_affiliate_percentage: T.nilable(Float),
|
|
196
207
|
member_affiliate_status:
|
|
197
208
|
T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol),
|
|
209
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
198
210
|
plan_options: T.nilable(WhopSDK::ProductCreateParams::PlanOptions),
|
|
199
211
|
product_tax_code_id: T.nilable(String),
|
|
200
212
|
redirect_purchase_url: T.nilable(String),
|
|
@@ -31,6 +31,11 @@ module WhopSDK
|
|
|
31
31
|
sig { returns(Integer) }
|
|
32
32
|
attr_accessor :member_count
|
|
33
33
|
|
|
34
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
35
|
+
# payment and membership events.
|
|
36
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
37
|
+
attr_accessor :metadata
|
|
38
|
+
|
|
34
39
|
# The total number of published customer reviews for this product's company.
|
|
35
40
|
sig { returns(Integer) }
|
|
36
41
|
attr_accessor :published_reviews_count
|
|
@@ -67,6 +72,7 @@ module WhopSDK
|
|
|
67
72
|
external_identifier: T.nilable(String),
|
|
68
73
|
headline: T.nilable(String),
|
|
69
74
|
member_count: Integer,
|
|
75
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
70
76
|
published_reviews_count: Integer,
|
|
71
77
|
route: String,
|
|
72
78
|
title: String,
|
|
@@ -89,6 +95,9 @@ module WhopSDK
|
|
|
89
95
|
# The number of users who currently hold an active membership to this product.
|
|
90
96
|
# Returns 0 if the company has disabled public member counts.
|
|
91
97
|
member_count:,
|
|
98
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
99
|
+
# payment and membership events.
|
|
100
|
+
metadata:,
|
|
92
101
|
# The total number of published customer reviews for this product's company.
|
|
93
102
|
published_reviews_count:,
|
|
94
103
|
# The URL slug used in the product's public link (e.g., 'my-product' in
|
|
@@ -115,6 +124,7 @@ module WhopSDK
|
|
|
115
124
|
external_identifier: T.nilable(String),
|
|
116
125
|
headline: T.nilable(String),
|
|
117
126
|
member_count: Integer,
|
|
127
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
118
128
|
published_reviews_count: Integer,
|
|
119
129
|
route: String,
|
|
120
130
|
title: String,
|
|
@@ -65,6 +65,12 @@ module WhopSDK
|
|
|
65
65
|
sig { returns(T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol)) }
|
|
66
66
|
attr_accessor :member_affiliate_status
|
|
67
67
|
|
|
68
|
+
# Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
69
|
+
# payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
70
|
+
# value.
|
|
71
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
72
|
+
attr_accessor :metadata
|
|
73
|
+
|
|
68
74
|
# The unique identifier of the tax classification code to apply to this product.
|
|
69
75
|
sig { returns(T.nilable(String)) }
|
|
70
76
|
attr_accessor :product_tax_code_id
|
|
@@ -121,6 +127,7 @@ module WhopSDK
|
|
|
121
127
|
member_affiliate_percentage: T.nilable(Float),
|
|
122
128
|
member_affiliate_status:
|
|
123
129
|
T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol),
|
|
130
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
124
131
|
product_tax_code_id: T.nilable(String),
|
|
125
132
|
redirect_purchase_url: T.nilable(String),
|
|
126
133
|
route: T.nilable(String),
|
|
@@ -161,6 +168,10 @@ module WhopSDK
|
|
|
161
168
|
member_affiliate_percentage: nil,
|
|
162
169
|
# The different statuses of the global affiliate program for a product.
|
|
163
170
|
member_affiliate_status: nil,
|
|
171
|
+
# Custom key-value pairs to store on the product. Included in webhook payloads for
|
|
172
|
+
# payment and membership events. Max 50 keys, 500 chars per key, 5000 chars per
|
|
173
|
+
# value.
|
|
174
|
+
metadata: nil,
|
|
164
175
|
# The unique identifier of the tax classification code to apply to this product.
|
|
165
176
|
product_tax_code_id: nil,
|
|
166
177
|
# A URL to redirect the customer to after completing a purchase.
|
|
@@ -198,6 +209,7 @@ module WhopSDK
|
|
|
198
209
|
member_affiliate_percentage: T.nilable(Float),
|
|
199
210
|
member_affiliate_status:
|
|
200
211
|
T.nilable(WhopSDK::GlobalAffiliateStatus::OrSymbol),
|
|
212
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
201
213
|
product_tax_code_id: T.nilable(String),
|
|
202
214
|
redirect_purchase_url: T.nilable(String),
|
|
203
215
|
route: T.nilable(String),
|
|
@@ -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::RefundCreatedWebhookEvent::Data::Payment::Plan)
|
|
324
|
+
)
|
|
325
|
+
end
|
|
326
|
+
attr_reader :plan
|
|
327
|
+
|
|
328
|
+
sig do
|
|
329
|
+
params(
|
|
330
|
+
plan:
|
|
331
|
+
T.nilable(
|
|
332
|
+
WhopSDK::RefundCreatedWebhookEvent::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::RefundCreatedWebhookEvent::Data::Payment::Product
|
|
343
|
+
)
|
|
344
|
+
)
|
|
345
|
+
end
|
|
346
|
+
attr_reader :product
|
|
347
|
+
|
|
348
|
+
sig do
|
|
349
|
+
params(
|
|
350
|
+
product:
|
|
351
|
+
T.nilable(
|
|
352
|
+
WhopSDK::RefundCreatedWebhookEvent::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::RefundCreatedWebhookEvent::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::RefundCreatedWebhookEvent::Data::Payment::Plan::OrHash
|
|
427
|
+
),
|
|
428
|
+
product:
|
|
429
|
+
T.nilable(
|
|
430
|
+
WhopSDK::RefundCreatedWebhookEvent::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::RefundCreatedWebhookEvent::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::RefundCreatedWebhookEvent::Data::Payment::Plan
|
|
520
|
+
),
|
|
521
|
+
product:
|
|
522
|
+
T.nilable(
|
|
523
|
+
WhopSDK::RefundCreatedWebhookEvent::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::RefundCreatedWebhookEvent::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::RefundCreatedWebhookEvent::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
|
|
@@ -172,8 +172,8 @@ module WhopSDK
|
|
|
172
172
|
sig { returns(Time) }
|
|
173
173
|
attr_accessor :created_at
|
|
174
174
|
|
|
175
|
-
# The
|
|
176
|
-
sig { returns(
|
|
175
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
176
|
+
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
177
177
|
attr_accessor :currency
|
|
178
178
|
|
|
179
179
|
# When an alert came in that this transaction will be disputed
|
|
@@ -218,6 +218,11 @@ module WhopSDK
|
|
|
218
218
|
end
|
|
219
219
|
attr_writer :membership
|
|
220
220
|
|
|
221
|
+
# The custom metadata stored on this payment. This will be copied over to the
|
|
222
|
+
# checkout configuration for which this payment was made
|
|
223
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
224
|
+
attr_accessor :metadata
|
|
225
|
+
|
|
221
226
|
# The time at which this payment was successfully collected. Null if the payment
|
|
222
227
|
# has not yet succeeded. As a Unix timestamp.
|
|
223
228
|
sig { returns(T.nilable(Time)) }
|
|
@@ -227,6 +232,42 @@ module WhopSDK
|
|
|
227
232
|
sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
|
|
228
233
|
attr_accessor :payment_method_type
|
|
229
234
|
|
|
235
|
+
# The plan attached to this payment.
|
|
236
|
+
sig do
|
|
237
|
+
returns(
|
|
238
|
+
T.nilable(WhopSDK::Models::RefundRetrieveResponse::Payment::Plan)
|
|
239
|
+
)
|
|
240
|
+
end
|
|
241
|
+
attr_reader :plan
|
|
242
|
+
|
|
243
|
+
sig do
|
|
244
|
+
params(
|
|
245
|
+
plan:
|
|
246
|
+
T.nilable(
|
|
247
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Plan::OrHash
|
|
248
|
+
)
|
|
249
|
+
).void
|
|
250
|
+
end
|
|
251
|
+
attr_writer :plan
|
|
252
|
+
|
|
253
|
+
# The product this payment was made for
|
|
254
|
+
sig do
|
|
255
|
+
returns(
|
|
256
|
+
T.nilable(WhopSDK::Models::RefundRetrieveResponse::Payment::Product)
|
|
257
|
+
)
|
|
258
|
+
end
|
|
259
|
+
attr_reader :product
|
|
260
|
+
|
|
261
|
+
sig do
|
|
262
|
+
params(
|
|
263
|
+
product:
|
|
264
|
+
T.nilable(
|
|
265
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Product::OrHash
|
|
266
|
+
)
|
|
267
|
+
).void
|
|
268
|
+
end
|
|
269
|
+
attr_writer :product
|
|
270
|
+
|
|
230
271
|
# The subtotal to show to the creator (excluding buyer fees).
|
|
231
272
|
sig { returns(T.nilable(Float)) }
|
|
232
273
|
attr_accessor :subtotal
|
|
@@ -279,7 +320,7 @@ module WhopSDK
|
|
|
279
320
|
card_brand: T.nilable(WhopSDK::CardBrands::OrSymbol),
|
|
280
321
|
card_last4: T.nilable(String),
|
|
281
322
|
created_at: Time,
|
|
282
|
-
currency:
|
|
323
|
+
currency: WhopSDK::Currency::OrSymbol,
|
|
283
324
|
dispute_alerted_at: T.nilable(Time),
|
|
284
325
|
member:
|
|
285
326
|
T.nilable(
|
|
@@ -289,9 +330,18 @@ module WhopSDK
|
|
|
289
330
|
T.nilable(
|
|
290
331
|
WhopSDK::Models::RefundRetrieveResponse::Payment::Membership::OrHash
|
|
291
332
|
),
|
|
333
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
292
334
|
paid_at: T.nilable(Time),
|
|
293
335
|
payment_method_type:
|
|
294
336
|
T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
|
|
337
|
+
plan:
|
|
338
|
+
T.nilable(
|
|
339
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Plan::OrHash
|
|
340
|
+
),
|
|
341
|
+
product:
|
|
342
|
+
T.nilable(
|
|
343
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Product::OrHash
|
|
344
|
+
),
|
|
295
345
|
subtotal: T.nilable(Float),
|
|
296
346
|
tax_amount: T.nilable(Float),
|
|
297
347
|
tax_behavior: T.nilable(WhopSDK::ReceiptTaxBehavior::OrSymbol),
|
|
@@ -316,7 +366,7 @@ module WhopSDK
|
|
|
316
366
|
card_last4:,
|
|
317
367
|
# The datetime the payment was created.
|
|
318
368
|
created_at:,
|
|
319
|
-
# The
|
|
369
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
320
370
|
currency:,
|
|
321
371
|
# When an alert came in that this transaction will be disputed
|
|
322
372
|
dispute_alerted_at:,
|
|
@@ -324,11 +374,18 @@ module WhopSDK
|
|
|
324
374
|
member:,
|
|
325
375
|
# The membership attached to this payment.
|
|
326
376
|
membership:,
|
|
377
|
+
# The custom metadata stored on this payment. This will be copied over to the
|
|
378
|
+
# checkout configuration for which this payment was made
|
|
379
|
+
metadata:,
|
|
327
380
|
# The time at which this payment was successfully collected. Null if the payment
|
|
328
381
|
# has not yet succeeded. As a Unix timestamp.
|
|
329
382
|
paid_at:,
|
|
330
383
|
# The different types of payment methods that can be used.
|
|
331
384
|
payment_method_type:,
|
|
385
|
+
# The plan attached to this payment.
|
|
386
|
+
plan:,
|
|
387
|
+
# The product this payment was made for
|
|
388
|
+
product:,
|
|
332
389
|
# The subtotal to show to the creator (excluding buyer fees).
|
|
333
390
|
subtotal:,
|
|
334
391
|
# The calculated amount of the sales/VAT tax (if applicable).
|
|
@@ -355,7 +412,7 @@ module WhopSDK
|
|
|
355
412
|
card_brand: T.nilable(WhopSDK::CardBrands::TaggedSymbol),
|
|
356
413
|
card_last4: T.nilable(String),
|
|
357
414
|
created_at: Time,
|
|
358
|
-
currency:
|
|
415
|
+
currency: WhopSDK::Currency::TaggedSymbol,
|
|
359
416
|
dispute_alerted_at: T.nilable(Time),
|
|
360
417
|
member:
|
|
361
418
|
T.nilable(
|
|
@@ -365,9 +422,18 @@ module WhopSDK
|
|
|
365
422
|
T.nilable(
|
|
366
423
|
WhopSDK::Models::RefundRetrieveResponse::Payment::Membership
|
|
367
424
|
),
|
|
425
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
368
426
|
paid_at: T.nilable(Time),
|
|
369
427
|
payment_method_type:
|
|
370
428
|
T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
|
|
429
|
+
plan:
|
|
430
|
+
T.nilable(
|
|
431
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Plan
|
|
432
|
+
),
|
|
433
|
+
product:
|
|
434
|
+
T.nilable(
|
|
435
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Product
|
|
436
|
+
),
|
|
371
437
|
subtotal: T.nilable(Float),
|
|
372
438
|
tax_amount: T.nilable(Float),
|
|
373
439
|
tax_behavior:
|
|
@@ -462,6 +528,92 @@ module WhopSDK
|
|
|
462
528
|
end
|
|
463
529
|
end
|
|
464
530
|
|
|
531
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
532
|
+
OrHash =
|
|
533
|
+
T.type_alias do
|
|
534
|
+
T.any(
|
|
535
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Plan,
|
|
536
|
+
WhopSDK::Internal::AnyHash
|
|
537
|
+
)
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
# The unique identifier for the plan.
|
|
541
|
+
sig { returns(String) }
|
|
542
|
+
attr_accessor :id
|
|
543
|
+
|
|
544
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
545
|
+
# payment and membership events.
|
|
546
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
547
|
+
attr_accessor :metadata
|
|
548
|
+
|
|
549
|
+
# The plan attached to this payment.
|
|
550
|
+
sig do
|
|
551
|
+
params(
|
|
552
|
+
id: String,
|
|
553
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
554
|
+
).returns(T.attached_class)
|
|
555
|
+
end
|
|
556
|
+
def self.new(
|
|
557
|
+
# The unique identifier for the plan.
|
|
558
|
+
id:,
|
|
559
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
560
|
+
# payment and membership events.
|
|
561
|
+
metadata:
|
|
562
|
+
)
|
|
563
|
+
end
|
|
564
|
+
|
|
565
|
+
sig do
|
|
566
|
+
override.returns(
|
|
567
|
+
{ id: String, metadata: T.nilable(T::Hash[Symbol, T.anything]) }
|
|
568
|
+
)
|
|
569
|
+
end
|
|
570
|
+
def to_hash
|
|
571
|
+
end
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
575
|
+
OrHash =
|
|
576
|
+
T.type_alias do
|
|
577
|
+
T.any(
|
|
578
|
+
WhopSDK::Models::RefundRetrieveResponse::Payment::Product,
|
|
579
|
+
WhopSDK::Internal::AnyHash
|
|
580
|
+
)
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
# The unique identifier for the product.
|
|
584
|
+
sig { returns(String) }
|
|
585
|
+
attr_accessor :id
|
|
586
|
+
|
|
587
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
588
|
+
# payment and membership events.
|
|
589
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
590
|
+
attr_accessor :metadata
|
|
591
|
+
|
|
592
|
+
# The product this payment was made for
|
|
593
|
+
sig do
|
|
594
|
+
params(
|
|
595
|
+
id: String,
|
|
596
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
597
|
+
).returns(T.attached_class)
|
|
598
|
+
end
|
|
599
|
+
def self.new(
|
|
600
|
+
# The unique identifier for the product.
|
|
601
|
+
id:,
|
|
602
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
603
|
+
# payment and membership events.
|
|
604
|
+
metadata:
|
|
605
|
+
)
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
sig do
|
|
609
|
+
override.returns(
|
|
610
|
+
{ id: String, metadata: T.nilable(T::Hash[Symbol, T.anything]) }
|
|
611
|
+
)
|
|
612
|
+
end
|
|
613
|
+
def to_hash
|
|
614
|
+
end
|
|
615
|
+
end
|
|
616
|
+
|
|
465
617
|
class User < WhopSDK::Internal::Type::BaseModel
|
|
466
618
|
OrHash =
|
|
467
619
|
T.type_alias do
|