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
|
@@ -75,6 +75,26 @@ module WhopSDK
|
|
|
75
75
|
sig { returns(T.nilable(Float)) }
|
|
76
76
|
attr_accessor :transfer_fee
|
|
77
77
|
|
|
78
|
+
# The balance cache associated with the account by currency.
|
|
79
|
+
sig do
|
|
80
|
+
returns(
|
|
81
|
+
T.nilable(
|
|
82
|
+
WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance
|
|
83
|
+
)
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
attr_reader :treasury_balance
|
|
87
|
+
|
|
88
|
+
sig do
|
|
89
|
+
params(
|
|
90
|
+
treasury_balance:
|
|
91
|
+
T.nilable(
|
|
92
|
+
WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance::OrHash
|
|
93
|
+
)
|
|
94
|
+
).void
|
|
95
|
+
end
|
|
96
|
+
attr_writer :treasury_balance
|
|
97
|
+
|
|
78
98
|
# A ledger account represents a financial account on Whop that can hold many
|
|
79
99
|
# balances.
|
|
80
100
|
sig do
|
|
@@ -101,7 +121,11 @@ module WhopSDK
|
|
|
101
121
|
T.nilable(
|
|
102
122
|
WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::OrHash
|
|
103
123
|
),
|
|
104
|
-
transfer_fee: T.nilable(Float)
|
|
124
|
+
transfer_fee: T.nilable(Float),
|
|
125
|
+
treasury_balance:
|
|
126
|
+
T.nilable(
|
|
127
|
+
WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance::OrHash
|
|
128
|
+
)
|
|
105
129
|
).returns(T.attached_class)
|
|
106
130
|
end
|
|
107
131
|
def self.new(
|
|
@@ -118,7 +142,9 @@ module WhopSDK
|
|
|
118
142
|
# The payout account associated with the LedgerAccount, if any.
|
|
119
143
|
payout_account_details:,
|
|
120
144
|
# The fee for transfers, if applicable.
|
|
121
|
-
transfer_fee
|
|
145
|
+
transfer_fee:,
|
|
146
|
+
# The balance cache associated with the account by currency.
|
|
147
|
+
treasury_balance:
|
|
122
148
|
)
|
|
123
149
|
end
|
|
124
150
|
|
|
@@ -142,7 +168,11 @@ module WhopSDK
|
|
|
142
168
|
T.nilable(
|
|
143
169
|
WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails
|
|
144
170
|
),
|
|
145
|
-
transfer_fee: T.nilable(Float)
|
|
171
|
+
transfer_fee: T.nilable(Float),
|
|
172
|
+
treasury_balance:
|
|
173
|
+
T.nilable(
|
|
174
|
+
WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance
|
|
175
|
+
)
|
|
146
176
|
}
|
|
147
177
|
)
|
|
148
178
|
end
|
|
@@ -802,6 +832,82 @@ module WhopSDK
|
|
|
802
832
|
end
|
|
803
833
|
end
|
|
804
834
|
end
|
|
835
|
+
|
|
836
|
+
class TreasuryBalance < WhopSDK::Internal::Type::BaseModel
|
|
837
|
+
OrHash =
|
|
838
|
+
T.type_alias do
|
|
839
|
+
T.any(
|
|
840
|
+
WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance,
|
|
841
|
+
WhopSDK::Internal::AnyHash
|
|
842
|
+
)
|
|
843
|
+
end
|
|
844
|
+
|
|
845
|
+
# The amount of the balance.
|
|
846
|
+
sig { returns(Float) }
|
|
847
|
+
attr_accessor :balance
|
|
848
|
+
|
|
849
|
+
# The balance converted to USD.
|
|
850
|
+
sig { returns(Float) }
|
|
851
|
+
attr_accessor :balance_usd
|
|
852
|
+
|
|
853
|
+
# The currency of the balance.
|
|
854
|
+
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
855
|
+
attr_accessor :currency
|
|
856
|
+
|
|
857
|
+
# The amount of the balance that is pending.
|
|
858
|
+
sig { returns(Float) }
|
|
859
|
+
attr_accessor :pending_balance
|
|
860
|
+
|
|
861
|
+
# The amount of the balance that is reserved.
|
|
862
|
+
sig { returns(Float) }
|
|
863
|
+
attr_accessor :reserve_balance
|
|
864
|
+
|
|
865
|
+
# The amount of the balance that is withdrawable.
|
|
866
|
+
sig { returns(Float) }
|
|
867
|
+
attr_accessor :total_withdrawable_balance
|
|
868
|
+
|
|
869
|
+
# The balance cache associated with the account by currency.
|
|
870
|
+
sig do
|
|
871
|
+
params(
|
|
872
|
+
balance: Float,
|
|
873
|
+
balance_usd: Float,
|
|
874
|
+
currency: WhopSDK::Currency::OrSymbol,
|
|
875
|
+
pending_balance: Float,
|
|
876
|
+
reserve_balance: Float,
|
|
877
|
+
total_withdrawable_balance: Float
|
|
878
|
+
).returns(T.attached_class)
|
|
879
|
+
end
|
|
880
|
+
def self.new(
|
|
881
|
+
# The amount of the balance.
|
|
882
|
+
balance:,
|
|
883
|
+
# The balance converted to USD.
|
|
884
|
+
balance_usd:,
|
|
885
|
+
# The currency of the balance.
|
|
886
|
+
currency:,
|
|
887
|
+
# The amount of the balance that is pending.
|
|
888
|
+
pending_balance:,
|
|
889
|
+
# The amount of the balance that is reserved.
|
|
890
|
+
reserve_balance:,
|
|
891
|
+
# The amount of the balance that is withdrawable.
|
|
892
|
+
total_withdrawable_balance:
|
|
893
|
+
)
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
sig do
|
|
897
|
+
override.returns(
|
|
898
|
+
{
|
|
899
|
+
balance: Float,
|
|
900
|
+
balance_usd: Float,
|
|
901
|
+
currency: WhopSDK::Currency::TaggedSymbol,
|
|
902
|
+
pending_balance: Float,
|
|
903
|
+
reserve_balance: Float,
|
|
904
|
+
total_withdrawable_balance: Float
|
|
905
|
+
}
|
|
906
|
+
)
|
|
907
|
+
end
|
|
908
|
+
def to_hash
|
|
909
|
+
end
|
|
910
|
+
end
|
|
805
911
|
end
|
|
806
912
|
end
|
|
807
913
|
end
|
|
@@ -19,7 +19,8 @@ module WhopSDK
|
|
|
19
19
|
sig { returns(WhopSDK::AccessLevel::TaggedSymbol) }
|
|
20
20
|
attr_accessor :access_level
|
|
21
21
|
|
|
22
|
-
# The member's token balance for this company
|
|
22
|
+
# The member's token balance for this company. Computed live from the ledger, not
|
|
23
|
+
# from a cache.
|
|
23
24
|
sig { returns(Float) }
|
|
24
25
|
attr_accessor :company_token_balance
|
|
25
26
|
|
|
@@ -93,7 +94,8 @@ module WhopSDK
|
|
|
93
94
|
# membership to any product on the company. If its no_access, the member does not
|
|
94
95
|
# have access to the product.
|
|
95
96
|
access_level:,
|
|
96
|
-
# The member's token balance for this company
|
|
97
|
+
# The member's token balance for this company. Computed live from the ledger, not
|
|
98
|
+
# from a cache.
|
|
97
99
|
company_token_balance:,
|
|
98
100
|
# The datetime the company member was created.
|
|
99
101
|
created_at:,
|
|
@@ -33,7 +33,8 @@ module WhopSDK
|
|
|
33
33
|
end
|
|
34
34
|
attr_writer :company
|
|
35
35
|
|
|
36
|
-
# The member's token balance for this company
|
|
36
|
+
# The member's token balance for this company. Computed live from the ledger, not
|
|
37
|
+
# from a cache.
|
|
37
38
|
sig { returns(Float) }
|
|
38
39
|
attr_accessor :company_token_balance
|
|
39
40
|
|
|
@@ -110,7 +111,8 @@ module WhopSDK
|
|
|
110
111
|
access_level:,
|
|
111
112
|
# The company for the member.
|
|
112
113
|
company:,
|
|
113
|
-
# The member's token balance for this company
|
|
114
|
+
# The member's token balance for this company. Computed live from the ledger, not
|
|
115
|
+
# from a cache.
|
|
114
116
|
company_token_balance:,
|
|
115
117
|
# The datetime the company member was created.
|
|
116
118
|
created_at:,
|
|
@@ -384,15 +384,32 @@ module WhopSDK
|
|
|
384
384
|
sig { returns(String) }
|
|
385
385
|
attr_accessor :id
|
|
386
386
|
|
|
387
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
388
|
+
# payment and membership events.
|
|
389
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
390
|
+
attr_accessor :metadata
|
|
391
|
+
|
|
387
392
|
# The plan the customer purchased to create this membership.
|
|
388
|
-
sig
|
|
393
|
+
sig do
|
|
394
|
+
params(
|
|
395
|
+
id: String,
|
|
396
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
397
|
+
).returns(T.attached_class)
|
|
398
|
+
end
|
|
389
399
|
def self.new(
|
|
390
400
|
# The unique identifier for the plan.
|
|
391
|
-
id
|
|
401
|
+
id:,
|
|
402
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
403
|
+
# payment and membership events.
|
|
404
|
+
metadata:
|
|
392
405
|
)
|
|
393
406
|
end
|
|
394
407
|
|
|
395
|
-
sig
|
|
408
|
+
sig do
|
|
409
|
+
override.returns(
|
|
410
|
+
{ id: String, metadata: T.nilable(T::Hash[Symbol, T.anything]) }
|
|
411
|
+
)
|
|
412
|
+
end
|
|
396
413
|
def to_hash
|
|
397
414
|
end
|
|
398
415
|
end
|
|
@@ -407,23 +424,45 @@ module WhopSDK
|
|
|
407
424
|
sig { returns(String) }
|
|
408
425
|
attr_accessor :id
|
|
409
426
|
|
|
427
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
428
|
+
# payment and membership events.
|
|
429
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
430
|
+
attr_accessor :metadata
|
|
431
|
+
|
|
410
432
|
# The display name of the product shown to customers on the product page and in
|
|
411
433
|
# search results.
|
|
412
434
|
sig { returns(String) }
|
|
413
435
|
attr_accessor :title
|
|
414
436
|
|
|
415
437
|
# The product this membership grants access to.
|
|
416
|
-
sig
|
|
438
|
+
sig do
|
|
439
|
+
params(
|
|
440
|
+
id: String,
|
|
441
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
442
|
+
title: String
|
|
443
|
+
).returns(T.attached_class)
|
|
444
|
+
end
|
|
417
445
|
def self.new(
|
|
418
446
|
# The unique identifier for the product.
|
|
419
447
|
id:,
|
|
448
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
449
|
+
# payment and membership events.
|
|
450
|
+
metadata:,
|
|
420
451
|
# The display name of the product shown to customers on the product page and in
|
|
421
452
|
# search results.
|
|
422
453
|
title:
|
|
423
454
|
)
|
|
424
455
|
end
|
|
425
456
|
|
|
426
|
-
sig
|
|
457
|
+
sig do
|
|
458
|
+
override.returns(
|
|
459
|
+
{
|
|
460
|
+
id: String,
|
|
461
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
462
|
+
title: String
|
|
463
|
+
}
|
|
464
|
+
)
|
|
465
|
+
end
|
|
427
466
|
def to_hash
|
|
428
467
|
end
|
|
429
468
|
end
|
|
@@ -371,15 +371,32 @@ module WhopSDK
|
|
|
371
371
|
sig { returns(String) }
|
|
372
372
|
attr_accessor :id
|
|
373
373
|
|
|
374
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
375
|
+
# payment and membership events.
|
|
376
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
377
|
+
attr_accessor :metadata
|
|
378
|
+
|
|
374
379
|
# The plan the customer purchased to create this membership.
|
|
375
|
-
sig
|
|
380
|
+
sig do
|
|
381
|
+
params(
|
|
382
|
+
id: String,
|
|
383
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
384
|
+
).returns(T.attached_class)
|
|
385
|
+
end
|
|
376
386
|
def self.new(
|
|
377
387
|
# The unique identifier for the plan.
|
|
378
|
-
id
|
|
388
|
+
id:,
|
|
389
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
390
|
+
# payment and membership events.
|
|
391
|
+
metadata:
|
|
379
392
|
)
|
|
380
393
|
end
|
|
381
394
|
|
|
382
|
-
sig
|
|
395
|
+
sig do
|
|
396
|
+
override.returns(
|
|
397
|
+
{ id: String, metadata: T.nilable(T::Hash[Symbol, T.anything]) }
|
|
398
|
+
)
|
|
399
|
+
end
|
|
383
400
|
def to_hash
|
|
384
401
|
end
|
|
385
402
|
end
|
|
@@ -397,23 +414,45 @@ module WhopSDK
|
|
|
397
414
|
sig { returns(String) }
|
|
398
415
|
attr_accessor :id
|
|
399
416
|
|
|
417
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
418
|
+
# payment and membership events.
|
|
419
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
420
|
+
attr_accessor :metadata
|
|
421
|
+
|
|
400
422
|
# The display name of the product shown to customers on the product page and in
|
|
401
423
|
# search results.
|
|
402
424
|
sig { returns(String) }
|
|
403
425
|
attr_accessor :title
|
|
404
426
|
|
|
405
427
|
# The product this membership grants access to.
|
|
406
|
-
sig
|
|
428
|
+
sig do
|
|
429
|
+
params(
|
|
430
|
+
id: String,
|
|
431
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
432
|
+
title: String
|
|
433
|
+
).returns(T.attached_class)
|
|
434
|
+
end
|
|
407
435
|
def self.new(
|
|
408
436
|
# The unique identifier for the product.
|
|
409
437
|
id:,
|
|
438
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
439
|
+
# payment and membership events.
|
|
440
|
+
metadata:,
|
|
410
441
|
# The display name of the product shown to customers on the product page and in
|
|
411
442
|
# search results.
|
|
412
443
|
title:
|
|
413
444
|
)
|
|
414
445
|
end
|
|
415
446
|
|
|
416
|
-
sig
|
|
447
|
+
sig do
|
|
448
|
+
override.returns(
|
|
449
|
+
{
|
|
450
|
+
id: String,
|
|
451
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
452
|
+
title: String
|
|
453
|
+
}
|
|
454
|
+
)
|
|
455
|
+
end
|
|
417
456
|
def to_hash
|
|
418
457
|
end
|
|
419
458
|
end
|
|
@@ -69,8 +69,8 @@ module WhopSDK
|
|
|
69
69
|
sig { returns(Time) }
|
|
70
70
|
attr_accessor :created_at
|
|
71
71
|
|
|
72
|
-
# The
|
|
73
|
-
sig { returns(
|
|
72
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
73
|
+
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
74
74
|
attr_accessor :currency
|
|
75
75
|
|
|
76
76
|
# When an alert came in that this transaction will be disputed
|
|
@@ -198,19 +198,16 @@ module WhopSDK
|
|
|
198
198
|
sig { returns(T::Boolean) }
|
|
199
199
|
attr_accessor :retryable
|
|
200
200
|
|
|
201
|
-
# The
|
|
202
|
-
#
|
|
201
|
+
# The total amount charged to the customer for this payment, including taxes and
|
|
202
|
+
# after any discounts. In the currency specified by the currency field.
|
|
203
203
|
sig { returns(Float) }
|
|
204
204
|
attr_accessor :settlement_amount
|
|
205
205
|
|
|
206
|
-
# The
|
|
207
|
-
|
|
208
|
-
# currency.
|
|
209
|
-
sig { returns(String) }
|
|
206
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
207
|
+
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
210
208
|
attr_accessor :settlement_currency
|
|
211
209
|
|
|
212
|
-
#
|
|
213
|
-
# the creator's settlement currency. Null for single-currency payments.
|
|
210
|
+
# Deprecated. Always returns null.
|
|
214
211
|
sig { returns(T.nilable(Float)) }
|
|
215
212
|
attr_accessor :settlement_exchange_rate
|
|
216
213
|
|
|
@@ -278,7 +275,7 @@ module WhopSDK
|
|
|
278
275
|
checkout_configuration_id: T.nilable(String),
|
|
279
276
|
company: T.nilable(WhopSDK::Payment::Company::OrHash),
|
|
280
277
|
created_at: Time,
|
|
281
|
-
currency:
|
|
278
|
+
currency: WhopSDK::Currency::OrSymbol,
|
|
282
279
|
dispute_alerted_at: T.nilable(Time),
|
|
283
280
|
disputes: T.nilable(T::Array[WhopSDK::Payment::Dispute::OrHash]),
|
|
284
281
|
failure_message: T.nilable(String),
|
|
@@ -304,7 +301,7 @@ module WhopSDK
|
|
|
304
301
|
T.nilable(T::Array[WhopSDK::Payment::Resolution::OrHash]),
|
|
305
302
|
retryable: T::Boolean,
|
|
306
303
|
settlement_amount: Float,
|
|
307
|
-
settlement_currency:
|
|
304
|
+
settlement_currency: WhopSDK::Currency::OrSymbol,
|
|
308
305
|
settlement_exchange_rate: T.nilable(Float),
|
|
309
306
|
status: T.nilable(WhopSDK::ReceiptStatus::OrSymbol),
|
|
310
307
|
substatus: WhopSDK::FriendlyReceiptStatus::OrSymbol,
|
|
@@ -344,7 +341,7 @@ module WhopSDK
|
|
|
344
341
|
company:,
|
|
345
342
|
# The datetime the payment was created.
|
|
346
343
|
created_at:,
|
|
347
|
-
# The
|
|
344
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
348
345
|
currency:,
|
|
349
346
|
# When an alert came in that this transaction will be disputed
|
|
350
347
|
dispute_alerted_at:,
|
|
@@ -401,15 +398,12 @@ module WhopSDK
|
|
|
401
398
|
# retry-eligible states (`active`, `trialing`, `completed`, or `past_due`);
|
|
402
399
|
# otherwise false. Used to decide if Whop can attempt the charge again.
|
|
403
400
|
retryable:,
|
|
404
|
-
# The
|
|
405
|
-
#
|
|
401
|
+
# The total amount charged to the customer for this payment, including taxes and
|
|
402
|
+
# after any discounts. In the currency specified by the currency field.
|
|
406
403
|
settlement_amount:,
|
|
407
|
-
# The
|
|
408
|
-
# 'usd', 'eur'). For multi-currency payments this differs from the payment
|
|
409
|
-
# currency.
|
|
404
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
410
405
|
settlement_currency:,
|
|
411
|
-
#
|
|
412
|
-
# the creator's settlement currency. Null for single-currency payments.
|
|
406
|
+
# Deprecated. Always returns null.
|
|
413
407
|
settlement_exchange_rate:,
|
|
414
408
|
# The status of a receipt
|
|
415
409
|
status:,
|
|
@@ -452,7 +446,7 @@ module WhopSDK
|
|
|
452
446
|
checkout_configuration_id: T.nilable(String),
|
|
453
447
|
company: T.nilable(WhopSDK::Payment::Company),
|
|
454
448
|
created_at: Time,
|
|
455
|
-
currency:
|
|
449
|
+
currency: WhopSDK::Currency::TaggedSymbol,
|
|
456
450
|
dispute_alerted_at: T.nilable(Time),
|
|
457
451
|
disputes: T.nilable(T::Array[WhopSDK::Payment::Dispute]),
|
|
458
452
|
failure_message: T.nilable(String),
|
|
@@ -478,7 +472,7 @@ module WhopSDK
|
|
|
478
472
|
resolutions: T.nilable(T::Array[WhopSDK::Payment::Resolution]),
|
|
479
473
|
retryable: T::Boolean,
|
|
480
474
|
settlement_amount: Float,
|
|
481
|
-
settlement_currency:
|
|
475
|
+
settlement_currency: WhopSDK::Currency::TaggedSymbol,
|
|
482
476
|
settlement_exchange_rate: T.nilable(Float),
|
|
483
477
|
status: T.nilable(WhopSDK::ReceiptStatus::TaggedSymbol),
|
|
484
478
|
substatus: WhopSDK::FriendlyReceiptStatus::TaggedSymbol,
|
|
@@ -708,8 +702,7 @@ module WhopSDK
|
|
|
708
702
|
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
709
703
|
attr_accessor :currency
|
|
710
704
|
|
|
711
|
-
# Whether the dispute evidence can still be edited and submitted.
|
|
712
|
-
# only when the dispute status requires a response.
|
|
705
|
+
# Whether the dispute evidence can still be edited and submitted.
|
|
713
706
|
sig { returns(T.nilable(T::Boolean)) }
|
|
714
707
|
attr_accessor :editable
|
|
715
708
|
|
|
@@ -753,8 +746,7 @@ module WhopSDK
|
|
|
753
746
|
amount:,
|
|
754
747
|
# The three-letter ISO currency code for the disputed amount.
|
|
755
748
|
currency:,
|
|
756
|
-
# Whether the dispute evidence can still be edited and submitted.
|
|
757
|
-
# only when the dispute status requires a response.
|
|
749
|
+
# Whether the dispute evidence can still be edited and submitted.
|
|
758
750
|
editable:,
|
|
759
751
|
# The deadline by which dispute evidence must be submitted. Null if no response
|
|
760
752
|
# deadline is set.
|
|
@@ -1068,6 +1060,10 @@ module WhopSDK
|
|
|
1068
1060
|
sig { returns(String) }
|
|
1069
1061
|
attr_accessor :id
|
|
1070
1062
|
|
|
1063
|
+
# The phone number associated with this membership.
|
|
1064
|
+
sig { returns(T.nilable(String)) }
|
|
1065
|
+
attr_accessor :phone_number
|
|
1066
|
+
|
|
1071
1067
|
# The state of the membership.
|
|
1072
1068
|
sig { returns(WhopSDK::MembershipStatus::TaggedSymbol) }
|
|
1073
1069
|
attr_accessor :status
|
|
@@ -1076,12 +1072,15 @@ module WhopSDK
|
|
|
1076
1072
|
sig do
|
|
1077
1073
|
params(
|
|
1078
1074
|
id: String,
|
|
1075
|
+
phone_number: T.nilable(String),
|
|
1079
1076
|
status: WhopSDK::MembershipStatus::OrSymbol
|
|
1080
1077
|
).returns(T.attached_class)
|
|
1081
1078
|
end
|
|
1082
1079
|
def self.new(
|
|
1083
1080
|
# The unique identifier for the membership.
|
|
1084
1081
|
id:,
|
|
1082
|
+
# The phone number associated with this membership.
|
|
1083
|
+
phone_number:,
|
|
1085
1084
|
# The state of the membership.
|
|
1086
1085
|
status:
|
|
1087
1086
|
)
|
|
@@ -1089,7 +1088,11 @@ module WhopSDK
|
|
|
1089
1088
|
|
|
1090
1089
|
sig do
|
|
1091
1090
|
override.returns(
|
|
1092
|
-
{
|
|
1091
|
+
{
|
|
1092
|
+
id: String,
|
|
1093
|
+
phone_number: T.nilable(String),
|
|
1094
|
+
status: WhopSDK::MembershipStatus::TaggedSymbol
|
|
1095
|
+
}
|
|
1093
1096
|
)
|
|
1094
1097
|
end
|
|
1095
1098
|
def to_hash
|
|
@@ -1237,22 +1240,38 @@ module WhopSDK
|
|
|
1237
1240
|
sig { returns(T.nilable(String)) }
|
|
1238
1241
|
attr_accessor :internal_notes
|
|
1239
1242
|
|
|
1243
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
1244
|
+
# payment and membership events.
|
|
1245
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
1246
|
+
attr_accessor :metadata
|
|
1247
|
+
|
|
1240
1248
|
# The plan attached to this payment.
|
|
1241
1249
|
sig do
|
|
1242
|
-
params(
|
|
1243
|
-
|
|
1244
|
-
|
|
1250
|
+
params(
|
|
1251
|
+
id: String,
|
|
1252
|
+
internal_notes: T.nilable(String),
|
|
1253
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
1254
|
+
).returns(T.attached_class)
|
|
1245
1255
|
end
|
|
1246
1256
|
def self.new(
|
|
1247
1257
|
# The unique identifier for the plan.
|
|
1248
1258
|
id:,
|
|
1249
1259
|
# A personal description or notes section for the business.
|
|
1250
|
-
internal_notes
|
|
1260
|
+
internal_notes:,
|
|
1261
|
+
# Custom key-value pairs stored on the plan. Included in webhook payloads for
|
|
1262
|
+
# payment and membership events.
|
|
1263
|
+
metadata:
|
|
1251
1264
|
)
|
|
1252
1265
|
end
|
|
1253
1266
|
|
|
1254
1267
|
sig do
|
|
1255
|
-
override.returns(
|
|
1268
|
+
override.returns(
|
|
1269
|
+
{
|
|
1270
|
+
id: String,
|
|
1271
|
+
internal_notes: T.nilable(String),
|
|
1272
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything])
|
|
1273
|
+
}
|
|
1274
|
+
)
|
|
1256
1275
|
end
|
|
1257
1276
|
def to_hash
|
|
1258
1277
|
end
|
|
@@ -1268,6 +1287,11 @@ module WhopSDK
|
|
|
1268
1287
|
sig { returns(String) }
|
|
1269
1288
|
attr_accessor :id
|
|
1270
1289
|
|
|
1290
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
1291
|
+
# payment and membership events.
|
|
1292
|
+
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
1293
|
+
attr_accessor :metadata
|
|
1294
|
+
|
|
1271
1295
|
# The URL slug used in the product's public link (e.g., 'my-product' in
|
|
1272
1296
|
# whop.com/company/my-product).
|
|
1273
1297
|
sig { returns(String) }
|
|
@@ -1280,13 +1304,19 @@ module WhopSDK
|
|
|
1280
1304
|
|
|
1281
1305
|
# The product this payment was made for
|
|
1282
1306
|
sig do
|
|
1283
|
-
params(
|
|
1284
|
-
|
|
1285
|
-
|
|
1307
|
+
params(
|
|
1308
|
+
id: String,
|
|
1309
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
1310
|
+
route: String,
|
|
1311
|
+
title: String
|
|
1312
|
+
).returns(T.attached_class)
|
|
1286
1313
|
end
|
|
1287
1314
|
def self.new(
|
|
1288
1315
|
# The unique identifier for the product.
|
|
1289
1316
|
id:,
|
|
1317
|
+
# Custom key-value pairs stored on the product. Included in webhook payloads for
|
|
1318
|
+
# payment and membership events.
|
|
1319
|
+
metadata:,
|
|
1290
1320
|
# The URL slug used in the product's public link (e.g., 'my-product' in
|
|
1291
1321
|
# whop.com/company/my-product).
|
|
1292
1322
|
route:,
|
|
@@ -1296,7 +1326,16 @@ module WhopSDK
|
|
|
1296
1326
|
)
|
|
1297
1327
|
end
|
|
1298
1328
|
|
|
1299
|
-
sig
|
|
1329
|
+
sig do
|
|
1330
|
+
override.returns(
|
|
1331
|
+
{
|
|
1332
|
+
id: String,
|
|
1333
|
+
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
1334
|
+
route: String,
|
|
1335
|
+
title: String
|
|
1336
|
+
}
|
|
1337
|
+
)
|
|
1338
|
+
end
|
|
1300
1339
|
def to_hash
|
|
1301
1340
|
end
|
|
1302
1341
|
end
|
|
@@ -23,6 +23,10 @@ module WhopSDK
|
|
|
23
23
|
sig { returns(T.nilable(T::Array[WhopSDK::BillingReasons::OrSymbol])) }
|
|
24
24
|
attr_accessor :billing_reasons
|
|
25
25
|
|
|
26
|
+
# Only return payments from these checkout configurations.
|
|
27
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
28
|
+
attr_accessor :checkout_configuration_ids
|
|
29
|
+
|
|
26
30
|
# The unique identifier of the company to list payments for.
|
|
27
31
|
sig { returns(T.nilable(String)) }
|
|
28
32
|
attr_accessor :company_id
|
|
@@ -97,6 +101,7 @@ module WhopSDK
|
|
|
97
101
|
before: T.nilable(String),
|
|
98
102
|
billing_reasons:
|
|
99
103
|
T.nilable(T::Array[WhopSDK::BillingReasons::OrSymbol]),
|
|
104
|
+
checkout_configuration_ids: T.nilable(T::Array[String]),
|
|
100
105
|
company_id: T.nilable(String),
|
|
101
106
|
created_after: T.nilable(Time),
|
|
102
107
|
created_before: T.nilable(Time),
|
|
@@ -124,6 +129,8 @@ module WhopSDK
|
|
|
124
129
|
before: nil,
|
|
125
130
|
# Filter payments by their billing reason.
|
|
126
131
|
billing_reasons: nil,
|
|
132
|
+
# Only return payments from these checkout configurations.
|
|
133
|
+
checkout_configuration_ids: nil,
|
|
127
134
|
# The unique identifier of the company to list payments for.
|
|
128
135
|
company_id: nil,
|
|
129
136
|
# Only return payments created after this timestamp.
|
|
@@ -169,6 +176,7 @@ module WhopSDK
|
|
|
169
176
|
before: T.nilable(String),
|
|
170
177
|
billing_reasons:
|
|
171
178
|
T.nilable(T::Array[WhopSDK::BillingReasons::OrSymbol]),
|
|
179
|
+
checkout_configuration_ids: T.nilable(T::Array[String]),
|
|
172
180
|
company_id: T.nilable(String),
|
|
173
181
|
created_after: T.nilable(Time),
|
|
174
182
|
created_before: T.nilable(Time),
|