whop_sdk 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +18 -2
- data/lib/whop_sdk/internal/transport/base_client.rb +2 -0
- data/lib/whop_sdk/internal/type/union.rb +6 -6
- data/lib/whop_sdk/models/account.rb +144 -0
- data/lib/whop_sdk/models/account_create_params.rb +34 -0
- data/lib/whop_sdk/models/account_list_params.rb +34 -0
- data/lib/whop_sdk/models/account_list_response.rb +66 -0
- data/lib/whop_sdk/models/account_me_params.rb +14 -0
- data/lib/whop_sdk/models/account_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/account_social_link.rb +60 -0
- data/lib/whop_sdk/models/account_update_params.rb +146 -0
- data/lib/whop_sdk/models/account_wallet.rb +46 -0
- data/lib/whop_sdk/models/{ad_retrieve_response.rb → ad.rb} +15 -45
- data/lib/whop_sdk/models/ad_budget_type.rb +16 -0
- data/lib/whop_sdk/models/{ad_campaign_pause_response.rb → ad_campaign.rb} +37 -86
- data/lib/whop_sdk/models/ad_campaign_list_params.rb +12 -27
- data/lib/whop_sdk/models/ad_campaign_list_response.rb +9 -52
- data/lib/whop_sdk/models/ad_campaign_platform.rb +16 -0
- data/lib/whop_sdk/models/ad_campaign_status.rb +20 -0
- data/lib/whop_sdk/models/ad_group.rb +97 -0
- data/lib/whop_sdk/models/ad_group_list_params.rb +16 -19
- data/lib/whop_sdk/models/ad_group_list_response.rb +30 -51
- data/lib/whop_sdk/models/ad_group_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_status.rb +20 -0
- data/lib/whop_sdk/models/ad_group_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_update_params.rb +8 -32
- data/lib/whop_sdk/models/ad_list_params.rb +57 -12
- data/lib/whop_sdk/models/ad_list_response.rb +45 -31
- data/lib/whop_sdk/models/ad_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_report_retrieve_params.rb +45 -15
- data/lib/whop_sdk/models/ad_report_retrieve_response.rb +378 -105
- data/lib/whop_sdk/models/ad_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +22 -1
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +26 -1
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +24 -1
- data/lib/whop_sdk/models/currency.rb +3 -0
- data/lib/whop_sdk/models/deposit_create_params.rb +85 -0
- data/lib/whop_sdk/models/deposit_create_response.rb +102 -0
- data/lib/whop_sdk/models/dispute.rb +6 -7
- data/lib/whop_sdk/models/dispute_alert_created_webhook_event.rb +4 -4
- data/lib/whop_sdk/models/dispute_alert_retrieve_response.rb +4 -4
- data/lib/whop_sdk/models/dispute_list_response.rb +2 -3
- data/lib/whop_sdk/models/external_ad_status.rb +20 -0
- data/lib/whop_sdk/models/file_create_params.rb +3 -15
- data/lib/whop_sdk/models/file_create_response.rb +3 -16
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -16
- data/lib/whop_sdk/models/file_visibility.rb +17 -0
- data/lib/whop_sdk/models/granularities.rb +16 -0
- data/lib/whop_sdk/models/identity_profile_approved_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_needs_action_webhook_event.rb +432 -0
- data/lib/whop_sdk/models/identity_profile_rejected_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_updated_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +65 -1
- data/lib/whop_sdk/models/member_list_response.rb +3 -2
- data/lib/whop_sdk/models/member_retrieve_response.rb +3 -2
- data/lib/whop_sdk/models/membership.rb +23 -2
- data/lib/whop_sdk/models/membership_list_response.rb +23 -2
- data/lib/whop_sdk/models/payment.rb +47 -22
- data/lib/whop_sdk/models/payment_list_params.rb +9 -1
- data/lib/whop_sdk/models/payment_list_response.rb +40 -13
- data/lib/whop_sdk/models/plan.rb +31 -1
- data/lib/whop_sdk/models/plan_create_params.rb +30 -1
- data/lib/whop_sdk/models/plan_list_response.rb +31 -1
- data/lib/whop_sdk/models/plan_update_params.rb +30 -1
- data/lib/whop_sdk/models/product.rb +10 -1
- data/lib/whop_sdk/models/product_create_params.rb +11 -1
- data/lib/whop_sdk/models/product_list_item.rb +10 -1
- data/lib/whop_sdk/models/product_update_params.rb +11 -1
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +84 -5
- data/lib/whop_sdk/models/refund_retrieve_response.rb +82 -5
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +84 -5
- data/lib/whop_sdk/models/resolution_center_case_platform_response.rb +0 -1
- data/lib/whop_sdk/models/result_label_keys.rb +38 -0
- data/lib/whop_sdk/models/swap_create_quote_params.rb +102 -0
- data/lib/whop_sdk/models/swap_create_quote_response.rb +104 -0
- data/lib/whop_sdk/models/transfer_create_params.rb +3 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +41 -33
- data/lib/whop_sdk/models/wallet_balance_params.rb +20 -0
- data/lib/whop_sdk/models/wallet_balance_response.rb +84 -0
- data/lib/whop_sdk/models/wallet_list_params.rb +14 -0
- data/lib/whop_sdk/models/wallet_list_response.rb +38 -0
- data/lib/whop_sdk/models/wallet_send_params.rb +37 -0
- data/lib/whop_sdk/models/wallet_send_response.rb +90 -0
- data/lib/whop_sdk/models/webhook_event.rb +4 -0
- data/lib/whop_sdk/models.rb +64 -0
- data/lib/whop_sdk/resources/accounts.rb +168 -0
- data/lib/whop_sdk/resources/ad_campaigns.rb +13 -13
- data/lib/whop_sdk/resources/ad_groups.rb +63 -8
- data/lib/whop_sdk/resources/ad_reports.rb +14 -8
- data/lib/whop_sdk/resources/ads.rb +66 -4
- data/lib/whop_sdk/resources/deposits.rb +46 -0
- data/lib/whop_sdk/resources/files.rb +1 -1
- data/lib/whop_sdk/resources/payments.rb +3 -1
- data/lib/whop_sdk/resources/plans.rb +10 -2
- data/lib/whop_sdk/resources/products.rb +6 -2
- data/lib/whop_sdk/resources/refunds.rb +2 -0
- data/lib/whop_sdk/resources/swaps.rb +52 -0
- data/lib/whop_sdk/resources/wallets.rb +78 -0
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +42 -7
- data/rbi/whop_sdk/client.rbi +14 -2
- data/rbi/whop_sdk/models/account.rbi +164 -0
- data/rbi/whop_sdk/models/account_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/account_list_params.rbi +59 -0
- data/rbi/whop_sdk/models/account_list_response.rbi +115 -0
- data/rbi/whop_sdk/models/account_me_params.rbi +27 -0
- data/rbi/whop_sdk/models/account_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/account_social_link.rbi +96 -0
- data/rbi/whop_sdk/models/account_update_params.rbi +175 -0
- data/rbi/whop_sdk/models/account_wallet.rbi +75 -0
- data/rbi/whop_sdk/models/ad.rbi +143 -0
- data/rbi/whop_sdk/models/ad_budget_type.rbi +20 -0
- data/rbi/whop_sdk/models/{ad_campaign_pause_response.rbi → ad_campaign.rbi} +57 -245
- data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +11 -46
- data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +9 -143
- data/rbi/whop_sdk/models/ad_campaign_platform.rbi +22 -0
- data/rbi/whop_sdk/models/ad_campaign_status.rbi +27 -0
- data/rbi/whop_sdk/models/ad_group.rbi +126 -0
- data/rbi/whop_sdk/models/ad_group_list_params.rbi +13 -33
- data/rbi/whop_sdk/models/ad_group_list_response.rbi +41 -131
- data/rbi/whop_sdk/models/ad_group_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_status.rbi +24 -0
- data/rbi/whop_sdk/models/ad_group_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_update_params.rbi +16 -67
- data/rbi/whop_sdk/models/ad_list_params.rbi +59 -14
- data/rbi/whop_sdk/models/ad_list_response.rbi +74 -62
- data/rbi/whop_sdk/models/ad_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +75 -19
- data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +537 -349
- data/rbi/whop_sdk/models/ad_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +52 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +56 -1
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +55 -0
- data/rbi/whop_sdk/models/currency.rbi +3 -0
- data/rbi/whop_sdk/models/deposit_create_params.rbi +152 -0
- data/rbi/whop_sdk/models/deposit_create_response.rbi +185 -0
- data/rbi/whop_sdk/models/dispute.rbi +7 -9
- data/rbi/whop_sdk/models/dispute_alert_created_webhook_event.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_alert_retrieve_response.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_list_response.rbi +2 -4
- data/rbi/whop_sdk/models/external_ad_status.rbi +26 -0
- data/rbi/whop_sdk/models/file_create_params.rbi +3 -30
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -38
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -39
- data/rbi/whop_sdk/models/file_visibility.rbi +21 -0
- data/rbi/whop_sdk/models/granularities.rbi +20 -0
- data/rbi/whop_sdk/models/identity_profile_approved_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_needs_action_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_rejected_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_updated_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +109 -3
- data/rbi/whop_sdk/models/member_list_response.rbi +4 -2
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +4 -2
- data/rbi/whop_sdk/models/membership.rbi +44 -5
- data/rbi/whop_sdk/models/membership_list_response.rbi +44 -5
- data/rbi/whop_sdk/models/payment.rbi +75 -36
- data/rbi/whop_sdk/models/payment_list_params.rbi +8 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +67 -24
- data/rbi/whop_sdk/models/plan.rbi +39 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +54 -0
- data/rbi/whop_sdk/models/plan_list_response.rbi +62 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +54 -0
- data/rbi/whop_sdk/models/product.rbi +10 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +12 -0
- data/rbi/whop_sdk/models/product_list_item.rbi +10 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +12 -0
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +159 -5
- data/rbi/whop_sdk/models/refund_retrieve_response.rbi +157 -5
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +159 -5
- data/rbi/whop_sdk/models/resolution_center_case_platform_response.rbi +0 -5
- data/rbi/whop_sdk/models/result_label_keys.rbi +64 -0
- data/rbi/whop_sdk/models/swap_create_quote_params.rbi +134 -0
- data/rbi/whop_sdk/models/swap_create_quote_response.rbi +148 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +6 -2
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +25 -21
- data/rbi/whop_sdk/models/wallet_balance_params.rbi +35 -0
- data/rbi/whop_sdk/models/wallet_balance_response.rbi +145 -0
- data/rbi/whop_sdk/models/wallet_list_params.rbi +27 -0
- data/rbi/whop_sdk/models/wallet_list_response.rbi +66 -0
- data/rbi/whop_sdk/models/wallet_send_params.rbi +57 -0
- data/rbi/whop_sdk/models/wallet_send_response.rbi +146 -0
- data/rbi/whop_sdk/models/webhook_event.rbi +11 -0
- data/rbi/whop_sdk/models.rbi +68 -0
- data/rbi/whop_sdk/resources/accounts.rbi +137 -0
- data/rbi/whop_sdk/resources/ad_campaigns.rbi +8 -8
- data/rbi/whop_sdk/resources/ad_groups.rbi +47 -6
- data/rbi/whop_sdk/resources/ad_reports.rbi +23 -12
- data/rbi/whop_sdk/resources/ads.rbi +59 -2
- data/rbi/whop_sdk/resources/deposits.rbi +41 -0
- data/rbi/whop_sdk/resources/files.rbi +1 -2
- data/rbi/whop_sdk/resources/payments.rbi +3 -0
- data/rbi/whop_sdk/resources/plans.rbi +18 -0
- data/rbi/whop_sdk/resources/products.rbi +10 -0
- data/rbi/whop_sdk/resources/refunds.rbi +2 -0
- data/rbi/whop_sdk/resources/swaps.rbi +46 -0
- data/rbi/whop_sdk/resources/transfers.rbi +3 -1
- data/rbi/whop_sdk/resources/wallets.rbi +55 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +25 -21
- data/sig/whop_sdk/client.rbs +8 -0
- data/sig/whop_sdk/models/account.rbs +100 -0
- data/sig/whop_sdk/models/account_create_params.rbs +32 -0
- data/sig/whop_sdk/models/account_list_params.rbs +32 -0
- data/sig/whop_sdk/models/account_list_response.rbs +62 -0
- data/sig/whop_sdk/models/account_me_params.rbs +14 -0
- data/sig/whop_sdk/models/account_retrieve_params.rbs +23 -0
- data/sig/whop_sdk/models/account_social_link.rbs +62 -0
- data/sig/whop_sdk/models/account_update_params.rbs +111 -0
- data/sig/whop_sdk/models/account_wallet.rbs +42 -0
- data/sig/whop_sdk/models/ad.rbs +75 -0
- data/sig/whop_sdk/models/ad_budget_type.rbs +14 -0
- data/sig/whop_sdk/models/ad_campaign.rbs +194 -0
- data/sig/whop_sdk/models/ad_campaign_list_params.rbs +9 -25
- data/sig/whop_sdk/models/ad_campaign_list_response.rbs +12 -50
- data/sig/whop_sdk/models/ad_campaign_platform.rbs +14 -0
- data/sig/whop_sdk/models/ad_campaign_status.rbs +19 -0
- data/sig/whop_sdk/models/ad_group.rbs +70 -0
- data/sig/whop_sdk/models/ad_group_list_params.rbs +9 -20
- data/sig/whop_sdk/models/ad_group_list_response.rbs +22 -45
- data/sig/whop_sdk/models/ad_group_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_status.rbs +19 -0
- data/sig/whop_sdk/models/ad_group_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_update_params.rbs +18 -36
- data/sig/whop_sdk/models/ad_list_params.rbs +39 -14
- data/sig/whop_sdk/models/ad_list_response.rbs +28 -25
- data/sig/whop_sdk/models/ad_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +26 -4
- data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +240 -131
- data/sig/whop_sdk/models/ad_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +16 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +18 -2
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +16 -0
- data/sig/whop_sdk/models/currency.rbs +6 -0
- data/sig/whop_sdk/models/deposit_create_params.rbs +81 -0
- data/sig/whop_sdk/models/deposit_create_response.rbs +99 -0
- data/sig/whop_sdk/models/dispute.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_created_webhook_event.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_retrieve_response.rbs +4 -4
- data/sig/whop_sdk/models/external_ad_status.rbs +19 -0
- data/sig/whop_sdk/models/file_create_params.rbs +4 -18
- data/sig/whop_sdk/models/file_create_response.rbs +4 -15
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -15
- data/sig/whop_sdk/models/file_visibility.rbs +14 -0
- data/sig/whop_sdk/models/granularities.rbs +14 -0
- data/sig/whop_sdk/models/identity_profile_approved_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_needs_action_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_rejected_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_updated_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +50 -3
- data/sig/whop_sdk/models/membership.rbs +19 -6
- data/sig/whop_sdk/models/membership_list_response.rbs +19 -6
- data/sig/whop_sdk/models/payment.rbs +52 -15
- data/sig/whop_sdk/models/payment_list_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +52 -15
- data/sig/whop_sdk/models/plan.rbs +21 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +21 -0
- data/sig/whop_sdk/models/plan_list_response.rbs +21 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +21 -0
- data/sig/whop_sdk/models/product.rbs +5 -0
- data/sig/whop_sdk/models/product_create_params.rbs +5 -0
- data/sig/whop_sdk/models/product_list_item.rbs +5 -0
- data/sig/whop_sdk/models/product_update_params.rbs +5 -0
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/refund_retrieve_response.rbs +43 -4
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/resolution_center_case_platform_response.rbs +0 -2
- data/sig/whop_sdk/models/result_label_keys.rbs +60 -0
- data/sig/whop_sdk/models/swap_create_quote_params.rbs +84 -0
- data/sig/whop_sdk/models/swap_create_quote_response.rbs +97 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +26 -22
- data/sig/whop_sdk/models/wallet_balance_params.rbs +23 -0
- data/sig/whop_sdk/models/wallet_balance_response.rbs +87 -0
- data/sig/whop_sdk/models/wallet_list_params.rbs +14 -0
- data/sig/whop_sdk/models/wallet_list_response.rbs +40 -0
- data/sig/whop_sdk/models/wallet_send_params.rbs +32 -0
- data/sig/whop_sdk/models/wallet_send_response.rbs +79 -0
- data/sig/whop_sdk/models/webhook_event.rbs +8 -0
- data/sig/whop_sdk/models.rbs +64 -0
- data/sig/whop_sdk/resources/accounts.rbs +46 -0
- data/sig/whop_sdk/resources/ad_campaigns.rbs +6 -6
- data/sig/whop_sdk/resources/ad_groups.rbs +16 -5
- data/sig/whop_sdk/resources/ad_reports.rbs +3 -1
- data/sig/whop_sdk/resources/ads.rbs +18 -2
- data/sig/whop_sdk/resources/deposits.rbs +15 -0
- data/sig/whop_sdk/resources/files.rbs +1 -1
- data/sig/whop_sdk/resources/payments.rbs +1 -0
- data/sig/whop_sdk/resources/plans.rbs +4 -0
- data/sig/whop_sdk/resources/products.rbs +2 -0
- data/sig/whop_sdk/resources/swaps.rbs +20 -0
- data/sig/whop_sdk/resources/wallets.rbs +23 -0
- data/sig/whop_sdk/resources/webhooks.rbs +26 -22
- metadata +128 -23
- data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_update_response.rb +0 -328
- data/lib/whop_sdk/models/ad_group_retrieve_response.rb +0 -140
- data/lib/whop_sdk/models/ad_group_update_response.rb +0 -140
- data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +0 -679
- data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +0 -675
- data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +0 -670
- data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +0 -277
- data/rbi/whop_sdk/models/ad_group_update_response.rbi +0 -274
- data/rbi/whop_sdk/models/ad_retrieve_response.rbi +0 -245
- data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_update_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_group_update_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_retrieve_response.rbs +0 -102
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type identity_profile_rejected_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::IdentityProfileRejectedWebhookEvent::Data,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"identity_profile.rejected",
|
|
10
|
+
company_id: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class IdentityProfileRejectedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor api_version: :v1
|
|
17
|
+
|
|
18
|
+
attr_accessor data: WhopSDK::IdentityProfileRejectedWebhookEvent::Data
|
|
19
|
+
|
|
20
|
+
attr_accessor timestamp: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor type: :"identity_profile.rejected"
|
|
23
|
+
|
|
24
|
+
attr_accessor company_id: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
data: WhopSDK::IdentityProfileRejectedWebhookEvent::Data,
|
|
29
|
+
timestamp: Time,
|
|
30
|
+
?company_id: String?,
|
|
31
|
+
?api_version: :v1,
|
|
32
|
+
?type: :"identity_profile.rejected"
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
api_version: :v1,
|
|
38
|
+
data: WhopSDK::IdentityProfileRejectedWebhookEvent::Data,
|
|
39
|
+
timestamp: Time,
|
|
40
|
+
type: :"identity_profile.rejected",
|
|
41
|
+
company_id: String?
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type data =
|
|
45
|
+
{
|
|
46
|
+
id: String,
|
|
47
|
+
business_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::BusinessAddress?,
|
|
48
|
+
business_name: String?,
|
|
49
|
+
business_structure: String?,
|
|
50
|
+
country: String?,
|
|
51
|
+
created_at: Time,
|
|
52
|
+
date_of_birth: String?,
|
|
53
|
+
email: String?,
|
|
54
|
+
first_name: String?,
|
|
55
|
+
last_name: String?,
|
|
56
|
+
linked_companies: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::LinkedCompany],
|
|
57
|
+
personal_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::PersonalAddress?,
|
|
58
|
+
phone: String?,
|
|
59
|
+
profile_type: String,
|
|
60
|
+
status: WhopSDK::Models::IdentityProfileRejectedWebhookEvent::Data::status,
|
|
61
|
+
updated_at: Time,
|
|
62
|
+
verifications: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::Verification]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
class Data < WhopSDK::Internal::Type::BaseModel
|
|
66
|
+
attr_accessor id: String
|
|
67
|
+
|
|
68
|
+
attr_accessor business_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::BusinessAddress?
|
|
69
|
+
|
|
70
|
+
attr_accessor business_name: String?
|
|
71
|
+
|
|
72
|
+
attr_accessor business_structure: String?
|
|
73
|
+
|
|
74
|
+
attr_accessor country: String?
|
|
75
|
+
|
|
76
|
+
attr_accessor created_at: Time
|
|
77
|
+
|
|
78
|
+
attr_accessor date_of_birth: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor email: String?
|
|
81
|
+
|
|
82
|
+
attr_accessor first_name: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor last_name: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor linked_companies: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::LinkedCompany]
|
|
87
|
+
|
|
88
|
+
attr_accessor personal_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::PersonalAddress?
|
|
89
|
+
|
|
90
|
+
attr_accessor phone: String?
|
|
91
|
+
|
|
92
|
+
attr_accessor profile_type: String
|
|
93
|
+
|
|
94
|
+
attr_accessor status: WhopSDK::Models::IdentityProfileRejectedWebhookEvent::Data::status
|
|
95
|
+
|
|
96
|
+
attr_accessor updated_at: Time
|
|
97
|
+
|
|
98
|
+
attr_accessor verifications: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::Verification]
|
|
99
|
+
|
|
100
|
+
def initialize: (
|
|
101
|
+
id: String,
|
|
102
|
+
business_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::BusinessAddress?,
|
|
103
|
+
business_name: String?,
|
|
104
|
+
business_structure: String?,
|
|
105
|
+
country: String?,
|
|
106
|
+
created_at: Time,
|
|
107
|
+
date_of_birth: String?,
|
|
108
|
+
email: String?,
|
|
109
|
+
first_name: String?,
|
|
110
|
+
last_name: String?,
|
|
111
|
+
linked_companies: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::LinkedCompany],
|
|
112
|
+
personal_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::PersonalAddress?,
|
|
113
|
+
phone: String?,
|
|
114
|
+
profile_type: String,
|
|
115
|
+
status: WhopSDK::Models::IdentityProfileRejectedWebhookEvent::Data::status,
|
|
116
|
+
updated_at: Time,
|
|
117
|
+
verifications: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::Verification]
|
|
118
|
+
) -> void
|
|
119
|
+
|
|
120
|
+
def to_hash: -> {
|
|
121
|
+
id: String,
|
|
122
|
+
business_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::BusinessAddress?,
|
|
123
|
+
business_name: String?,
|
|
124
|
+
business_structure: String?,
|
|
125
|
+
country: String?,
|
|
126
|
+
created_at: Time,
|
|
127
|
+
date_of_birth: String?,
|
|
128
|
+
email: String?,
|
|
129
|
+
first_name: String?,
|
|
130
|
+
last_name: String?,
|
|
131
|
+
linked_companies: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::LinkedCompany],
|
|
132
|
+
personal_address: WhopSDK::IdentityProfileRejectedWebhookEvent::Data::PersonalAddress?,
|
|
133
|
+
phone: String?,
|
|
134
|
+
profile_type: String,
|
|
135
|
+
status: WhopSDK::Models::IdentityProfileRejectedWebhookEvent::Data::status,
|
|
136
|
+
updated_at: Time,
|
|
137
|
+
verifications: ::Array[WhopSDK::IdentityProfileRejectedWebhookEvent::Data::Verification]
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
type business_address =
|
|
141
|
+
{
|
|
142
|
+
city: String?,
|
|
143
|
+
country: String?,
|
|
144
|
+
:line1 => String?,
|
|
145
|
+
:line2 => String?,
|
|
146
|
+
postal_code: String?,
|
|
147
|
+
state: String?
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class BusinessAddress < WhopSDK::Internal::Type::BaseModel
|
|
151
|
+
attr_accessor city: String?
|
|
152
|
+
|
|
153
|
+
attr_accessor country: String?
|
|
154
|
+
|
|
155
|
+
attr_accessor line1: String?
|
|
156
|
+
|
|
157
|
+
attr_accessor line2: String?
|
|
158
|
+
|
|
159
|
+
attr_accessor postal_code: String?
|
|
160
|
+
|
|
161
|
+
attr_accessor state: String?
|
|
162
|
+
|
|
163
|
+
def initialize: (
|
|
164
|
+
city: String?,
|
|
165
|
+
country: String?,
|
|
166
|
+
line1: String?,
|
|
167
|
+
line2: String?,
|
|
168
|
+
postal_code: String?,
|
|
169
|
+
state: String?
|
|
170
|
+
) -> void
|
|
171
|
+
|
|
172
|
+
def to_hash: -> {
|
|
173
|
+
city: String?,
|
|
174
|
+
country: String?,
|
|
175
|
+
:line1 => String?,
|
|
176
|
+
:line2 => String?,
|
|
177
|
+
postal_code: String?,
|
|
178
|
+
state: String?
|
|
179
|
+
}
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
type linked_company = { id: String, title: String }
|
|
183
|
+
|
|
184
|
+
class LinkedCompany < WhopSDK::Internal::Type::BaseModel
|
|
185
|
+
attr_accessor id: String
|
|
186
|
+
|
|
187
|
+
attr_accessor title: String
|
|
188
|
+
|
|
189
|
+
def initialize: (id: String, title: String) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> { id: String, title: String }
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
type personal_address =
|
|
195
|
+
{
|
|
196
|
+
city: String?,
|
|
197
|
+
country: String?,
|
|
198
|
+
:line1 => String?,
|
|
199
|
+
:line2 => String?,
|
|
200
|
+
postal_code: String?,
|
|
201
|
+
state: String?
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
class PersonalAddress < WhopSDK::Internal::Type::BaseModel
|
|
205
|
+
attr_accessor city: String?
|
|
206
|
+
|
|
207
|
+
attr_accessor country: String?
|
|
208
|
+
|
|
209
|
+
attr_accessor line1: String?
|
|
210
|
+
|
|
211
|
+
attr_accessor line2: String?
|
|
212
|
+
|
|
213
|
+
attr_accessor postal_code: String?
|
|
214
|
+
|
|
215
|
+
attr_accessor state: String?
|
|
216
|
+
|
|
217
|
+
def initialize: (
|
|
218
|
+
city: String?,
|
|
219
|
+
country: String?,
|
|
220
|
+
line1: String?,
|
|
221
|
+
line2: String?,
|
|
222
|
+
postal_code: String?,
|
|
223
|
+
state: String?
|
|
224
|
+
) -> void
|
|
225
|
+
|
|
226
|
+
def to_hash: -> {
|
|
227
|
+
city: String?,
|
|
228
|
+
country: String?,
|
|
229
|
+
:line1 => String?,
|
|
230
|
+
:line2 => String?,
|
|
231
|
+
postal_code: String?,
|
|
232
|
+
state: String?
|
|
233
|
+
}
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
type status = :not_started | :pending | :approved | :rejected
|
|
237
|
+
|
|
238
|
+
module Status
|
|
239
|
+
extend WhopSDK::Internal::Type::Enum
|
|
240
|
+
|
|
241
|
+
NOT_STARTED: :not_started
|
|
242
|
+
PENDING: :pending
|
|
243
|
+
APPROVED: :approved
|
|
244
|
+
REJECTED: :rejected
|
|
245
|
+
|
|
246
|
+
def self?.values: -> ::Array[WhopSDK::Models::IdentityProfileRejectedWebhookEvent::Data::status]
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
type verification =
|
|
250
|
+
{
|
|
251
|
+
id: String,
|
|
252
|
+
created_at: Time,
|
|
253
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
254
|
+
last_error_reason: String?,
|
|
255
|
+
session_url: String?,
|
|
256
|
+
status: WhopSDK::Models::verification_status
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
class Verification < WhopSDK::Internal::Type::BaseModel
|
|
260
|
+
attr_accessor id: String
|
|
261
|
+
|
|
262
|
+
attr_accessor created_at: Time
|
|
263
|
+
|
|
264
|
+
attr_accessor last_error_code: WhopSDK::Models::verification_error_code?
|
|
265
|
+
|
|
266
|
+
attr_accessor last_error_reason: String?
|
|
267
|
+
|
|
268
|
+
attr_accessor session_url: String?
|
|
269
|
+
|
|
270
|
+
attr_accessor status: WhopSDK::Models::verification_status
|
|
271
|
+
|
|
272
|
+
def initialize: (
|
|
273
|
+
id: String,
|
|
274
|
+
created_at: Time,
|
|
275
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
276
|
+
last_error_reason: String?,
|
|
277
|
+
session_url: String?,
|
|
278
|
+
status: WhopSDK::Models::verification_status
|
|
279
|
+
) -> void
|
|
280
|
+
|
|
281
|
+
def to_hash: -> {
|
|
282
|
+
id: String,
|
|
283
|
+
created_at: Time,
|
|
284
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
285
|
+
last_error_reason: String?,
|
|
286
|
+
session_url: String?,
|
|
287
|
+
status: WhopSDK::Models::verification_status
|
|
288
|
+
}
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type identity_profile_updated_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"identity_profile.updated",
|
|
10
|
+
company_id: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class IdentityProfileUpdatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor api_version: :v1
|
|
17
|
+
|
|
18
|
+
attr_accessor data: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data
|
|
19
|
+
|
|
20
|
+
attr_accessor timestamp: Time
|
|
21
|
+
|
|
22
|
+
attr_accessor type: :"identity_profile.updated"
|
|
23
|
+
|
|
24
|
+
attr_accessor company_id: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
id: String,
|
|
28
|
+
data: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data,
|
|
29
|
+
timestamp: Time,
|
|
30
|
+
?company_id: String?,
|
|
31
|
+
?api_version: :v1,
|
|
32
|
+
?type: :"identity_profile.updated"
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
id: String,
|
|
37
|
+
api_version: :v1,
|
|
38
|
+
data: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data,
|
|
39
|
+
timestamp: Time,
|
|
40
|
+
type: :"identity_profile.updated",
|
|
41
|
+
company_id: String?
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type data =
|
|
45
|
+
{
|
|
46
|
+
id: String,
|
|
47
|
+
business_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress?,
|
|
48
|
+
business_name: String?,
|
|
49
|
+
business_structure: String?,
|
|
50
|
+
country: String?,
|
|
51
|
+
created_at: Time,
|
|
52
|
+
date_of_birth: String?,
|
|
53
|
+
email: String?,
|
|
54
|
+
first_name: String?,
|
|
55
|
+
last_name: String?,
|
|
56
|
+
linked_companies: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany],
|
|
57
|
+
personal_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress?,
|
|
58
|
+
phone: String?,
|
|
59
|
+
profile_type: String,
|
|
60
|
+
status: WhopSDK::Models::IdentityProfileUpdatedWebhookEvent::Data::status,
|
|
61
|
+
updated_at: Time,
|
|
62
|
+
verifications: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification]
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
class Data < WhopSDK::Internal::Type::BaseModel
|
|
66
|
+
attr_accessor id: String
|
|
67
|
+
|
|
68
|
+
attr_accessor business_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress?
|
|
69
|
+
|
|
70
|
+
attr_accessor business_name: String?
|
|
71
|
+
|
|
72
|
+
attr_accessor business_structure: String?
|
|
73
|
+
|
|
74
|
+
attr_accessor country: String?
|
|
75
|
+
|
|
76
|
+
attr_accessor created_at: Time
|
|
77
|
+
|
|
78
|
+
attr_accessor date_of_birth: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor email: String?
|
|
81
|
+
|
|
82
|
+
attr_accessor first_name: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor last_name: String?
|
|
85
|
+
|
|
86
|
+
attr_accessor linked_companies: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany]
|
|
87
|
+
|
|
88
|
+
attr_accessor personal_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress?
|
|
89
|
+
|
|
90
|
+
attr_accessor phone: String?
|
|
91
|
+
|
|
92
|
+
attr_accessor profile_type: String
|
|
93
|
+
|
|
94
|
+
attr_accessor status: WhopSDK::Models::IdentityProfileUpdatedWebhookEvent::Data::status
|
|
95
|
+
|
|
96
|
+
attr_accessor updated_at: Time
|
|
97
|
+
|
|
98
|
+
attr_accessor verifications: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification]
|
|
99
|
+
|
|
100
|
+
def initialize: (
|
|
101
|
+
id: String,
|
|
102
|
+
business_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress?,
|
|
103
|
+
business_name: String?,
|
|
104
|
+
business_structure: String?,
|
|
105
|
+
country: String?,
|
|
106
|
+
created_at: Time,
|
|
107
|
+
date_of_birth: String?,
|
|
108
|
+
email: String?,
|
|
109
|
+
first_name: String?,
|
|
110
|
+
last_name: String?,
|
|
111
|
+
linked_companies: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany],
|
|
112
|
+
personal_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress?,
|
|
113
|
+
phone: String?,
|
|
114
|
+
profile_type: String,
|
|
115
|
+
status: WhopSDK::Models::IdentityProfileUpdatedWebhookEvent::Data::status,
|
|
116
|
+
updated_at: Time,
|
|
117
|
+
verifications: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification]
|
|
118
|
+
) -> void
|
|
119
|
+
|
|
120
|
+
def to_hash: -> {
|
|
121
|
+
id: String,
|
|
122
|
+
business_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::BusinessAddress?,
|
|
123
|
+
business_name: String?,
|
|
124
|
+
business_structure: String?,
|
|
125
|
+
country: String?,
|
|
126
|
+
created_at: Time,
|
|
127
|
+
date_of_birth: String?,
|
|
128
|
+
email: String?,
|
|
129
|
+
first_name: String?,
|
|
130
|
+
last_name: String?,
|
|
131
|
+
linked_companies: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::LinkedCompany],
|
|
132
|
+
personal_address: WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::PersonalAddress?,
|
|
133
|
+
phone: String?,
|
|
134
|
+
profile_type: String,
|
|
135
|
+
status: WhopSDK::Models::IdentityProfileUpdatedWebhookEvent::Data::status,
|
|
136
|
+
updated_at: Time,
|
|
137
|
+
verifications: ::Array[WhopSDK::IdentityProfileUpdatedWebhookEvent::Data::Verification]
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
type business_address =
|
|
141
|
+
{
|
|
142
|
+
city: String?,
|
|
143
|
+
country: String?,
|
|
144
|
+
:line1 => String?,
|
|
145
|
+
:line2 => String?,
|
|
146
|
+
postal_code: String?,
|
|
147
|
+
state: String?
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class BusinessAddress < WhopSDK::Internal::Type::BaseModel
|
|
151
|
+
attr_accessor city: String?
|
|
152
|
+
|
|
153
|
+
attr_accessor country: String?
|
|
154
|
+
|
|
155
|
+
attr_accessor line1: String?
|
|
156
|
+
|
|
157
|
+
attr_accessor line2: String?
|
|
158
|
+
|
|
159
|
+
attr_accessor postal_code: String?
|
|
160
|
+
|
|
161
|
+
attr_accessor state: String?
|
|
162
|
+
|
|
163
|
+
def initialize: (
|
|
164
|
+
city: String?,
|
|
165
|
+
country: String?,
|
|
166
|
+
line1: String?,
|
|
167
|
+
line2: String?,
|
|
168
|
+
postal_code: String?,
|
|
169
|
+
state: String?
|
|
170
|
+
) -> void
|
|
171
|
+
|
|
172
|
+
def to_hash: -> {
|
|
173
|
+
city: String?,
|
|
174
|
+
country: String?,
|
|
175
|
+
:line1 => String?,
|
|
176
|
+
:line2 => String?,
|
|
177
|
+
postal_code: String?,
|
|
178
|
+
state: String?
|
|
179
|
+
}
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
type linked_company = { id: String, title: String }
|
|
183
|
+
|
|
184
|
+
class LinkedCompany < WhopSDK::Internal::Type::BaseModel
|
|
185
|
+
attr_accessor id: String
|
|
186
|
+
|
|
187
|
+
attr_accessor title: String
|
|
188
|
+
|
|
189
|
+
def initialize: (id: String, title: String) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> { id: String, title: String }
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
type personal_address =
|
|
195
|
+
{
|
|
196
|
+
city: String?,
|
|
197
|
+
country: String?,
|
|
198
|
+
:line1 => String?,
|
|
199
|
+
:line2 => String?,
|
|
200
|
+
postal_code: String?,
|
|
201
|
+
state: String?
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
class PersonalAddress < WhopSDK::Internal::Type::BaseModel
|
|
205
|
+
attr_accessor city: String?
|
|
206
|
+
|
|
207
|
+
attr_accessor country: String?
|
|
208
|
+
|
|
209
|
+
attr_accessor line1: String?
|
|
210
|
+
|
|
211
|
+
attr_accessor line2: String?
|
|
212
|
+
|
|
213
|
+
attr_accessor postal_code: String?
|
|
214
|
+
|
|
215
|
+
attr_accessor state: String?
|
|
216
|
+
|
|
217
|
+
def initialize: (
|
|
218
|
+
city: String?,
|
|
219
|
+
country: String?,
|
|
220
|
+
line1: String?,
|
|
221
|
+
line2: String?,
|
|
222
|
+
postal_code: String?,
|
|
223
|
+
state: String?
|
|
224
|
+
) -> void
|
|
225
|
+
|
|
226
|
+
def to_hash: -> {
|
|
227
|
+
city: String?,
|
|
228
|
+
country: String?,
|
|
229
|
+
:line1 => String?,
|
|
230
|
+
:line2 => String?,
|
|
231
|
+
postal_code: String?,
|
|
232
|
+
state: String?
|
|
233
|
+
}
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
type status = :not_started | :pending | :approved | :rejected
|
|
237
|
+
|
|
238
|
+
module Status
|
|
239
|
+
extend WhopSDK::Internal::Type::Enum
|
|
240
|
+
|
|
241
|
+
NOT_STARTED: :not_started
|
|
242
|
+
PENDING: :pending
|
|
243
|
+
APPROVED: :approved
|
|
244
|
+
REJECTED: :rejected
|
|
245
|
+
|
|
246
|
+
def self?.values: -> ::Array[WhopSDK::Models::IdentityProfileUpdatedWebhookEvent::Data::status]
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
type verification =
|
|
250
|
+
{
|
|
251
|
+
id: String,
|
|
252
|
+
created_at: Time,
|
|
253
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
254
|
+
last_error_reason: String?,
|
|
255
|
+
session_url: String?,
|
|
256
|
+
status: WhopSDK::Models::verification_status
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
class Verification < WhopSDK::Internal::Type::BaseModel
|
|
260
|
+
attr_accessor id: String
|
|
261
|
+
|
|
262
|
+
attr_accessor created_at: Time
|
|
263
|
+
|
|
264
|
+
attr_accessor last_error_code: WhopSDK::Models::verification_error_code?
|
|
265
|
+
|
|
266
|
+
attr_accessor last_error_reason: String?
|
|
267
|
+
|
|
268
|
+
attr_accessor session_url: String?
|
|
269
|
+
|
|
270
|
+
attr_accessor status: WhopSDK::Models::verification_status
|
|
271
|
+
|
|
272
|
+
def initialize: (
|
|
273
|
+
id: String,
|
|
274
|
+
created_at: Time,
|
|
275
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
276
|
+
last_error_reason: String?,
|
|
277
|
+
session_url: String?,
|
|
278
|
+
status: WhopSDK::Models::verification_status
|
|
279
|
+
) -> void
|
|
280
|
+
|
|
281
|
+
def to_hash: -> {
|
|
282
|
+
id: String,
|
|
283
|
+
created_at: Time,
|
|
284
|
+
last_error_code: WhopSDK::Models::verification_error_code?,
|
|
285
|
+
last_error_reason: String?,
|
|
286
|
+
session_url: String?,
|
|
287
|
+
status: WhopSDK::Models::verification_status
|
|
288
|
+
}
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
end
|
|
@@ -8,7 +8,8 @@ module WhopSDK
|
|
|
8
8
|
owner: WhopSDK::Models::LedgerAccountRetrieveResponse::owner?,
|
|
9
9
|
payments_approval_status: WhopSDK::Models::LedgerAccountRetrieveResponse::payments_approval_status?,
|
|
10
10
|
payout_account_details: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails?,
|
|
11
|
-
transfer_fee: Float
|
|
11
|
+
transfer_fee: Float?,
|
|
12
|
+
treasury_balance: WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance?
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
class LedgerAccountRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
@@ -26,6 +27,8 @@ module WhopSDK
|
|
|
26
27
|
|
|
27
28
|
attr_accessor transfer_fee: Float?
|
|
28
29
|
|
|
30
|
+
attr_accessor treasury_balance: WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance?
|
|
31
|
+
|
|
29
32
|
def initialize: (
|
|
30
33
|
id: String,
|
|
31
34
|
balances: ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance],
|
|
@@ -33,7 +36,8 @@ module WhopSDK
|
|
|
33
36
|
owner: WhopSDK::Models::LedgerAccountRetrieveResponse::owner?,
|
|
34
37
|
payments_approval_status: WhopSDK::Models::LedgerAccountRetrieveResponse::payments_approval_status?,
|
|
35
38
|
payout_account_details: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails?,
|
|
36
|
-
transfer_fee: Float
|
|
39
|
+
transfer_fee: Float?,
|
|
40
|
+
treasury_balance: WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance?
|
|
37
41
|
) -> void
|
|
38
42
|
|
|
39
43
|
def to_hash: -> {
|
|
@@ -43,7 +47,8 @@ module WhopSDK
|
|
|
43
47
|
owner: WhopSDK::Models::LedgerAccountRetrieveResponse::owner?,
|
|
44
48
|
payments_approval_status: WhopSDK::Models::LedgerAccountRetrieveResponse::payments_approval_status?,
|
|
45
49
|
payout_account_details: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails?,
|
|
46
|
-
transfer_fee: Float
|
|
50
|
+
transfer_fee: Float?,
|
|
51
|
+
treasury_balance: WhopSDK::Models::LedgerAccountRetrieveResponse::TreasuryBalance?
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
type balance =
|
|
@@ -324,6 +329,48 @@ module WhopSDK
|
|
|
324
329
|
}
|
|
325
330
|
end
|
|
326
331
|
end
|
|
332
|
+
|
|
333
|
+
type treasury_balance =
|
|
334
|
+
{
|
|
335
|
+
balance: Float,
|
|
336
|
+
balance_usd: Float,
|
|
337
|
+
currency: WhopSDK::Models::currency,
|
|
338
|
+
pending_balance: Float,
|
|
339
|
+
reserve_balance: Float,
|
|
340
|
+
total_withdrawable_balance: Float
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
class TreasuryBalance < WhopSDK::Internal::Type::BaseModel
|
|
344
|
+
attr_accessor balance: Float
|
|
345
|
+
|
|
346
|
+
attr_accessor balance_usd: Float
|
|
347
|
+
|
|
348
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
349
|
+
|
|
350
|
+
attr_accessor pending_balance: Float
|
|
351
|
+
|
|
352
|
+
attr_accessor reserve_balance: Float
|
|
353
|
+
|
|
354
|
+
attr_accessor total_withdrawable_balance: Float
|
|
355
|
+
|
|
356
|
+
def initialize: (
|
|
357
|
+
balance: Float,
|
|
358
|
+
balance_usd: Float,
|
|
359
|
+
currency: WhopSDK::Models::currency,
|
|
360
|
+
pending_balance: Float,
|
|
361
|
+
reserve_balance: Float,
|
|
362
|
+
total_withdrawable_balance: Float
|
|
363
|
+
) -> void
|
|
364
|
+
|
|
365
|
+
def to_hash: -> {
|
|
366
|
+
balance: Float,
|
|
367
|
+
balance_usd: Float,
|
|
368
|
+
currency: WhopSDK::Models::currency,
|
|
369
|
+
pending_balance: Float,
|
|
370
|
+
reserve_balance: Float,
|
|
371
|
+
total_withdrawable_balance: Float
|
|
372
|
+
}
|
|
373
|
+
end
|
|
327
374
|
end
|
|
328
375
|
end
|
|
329
376
|
end
|