whop_sdk 0.0.24 → 0.0.26
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 +32 -0
- data/README.md +3 -3
- data/lib/whop_sdk/client.rb +16 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/whop_sdk/models/ai_chat.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
- data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
- data/lib/whop_sdk/models/api_version.rb +17 -0
- data/lib/whop_sdk/models/app_list_params.rb +1 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +9 -9
- data/lib/whop_sdk/models/authorized_user_list_response.rb +31 -1
- data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +31 -1
- data/lib/whop_sdk/models/bot_token_transaction_types.rb +17 -0
- data/lib/whop_sdk/models/cancel_options.rb +22 -0
- data/lib/whop_sdk/models/company_token_transaction.rb +165 -0
- data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +70 -0
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +165 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_create_params.rb +38 -0
- data/lib/whop_sdk/models/dm_channel_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_channel_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_channel_list_response.rb +43 -0
- data/lib/whop_sdk/models/dm_channel_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_channel_update_params.rb +22 -0
- data/lib/whop_sdk/models/dm_feed_member_notification_preferences.rb +17 -0
- data/lib/whop_sdk/models/dm_feed_member_statuses.rb +19 -0
- data/lib/whop_sdk/models/dm_member.rb +63 -0
- data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
- data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_member_list_response.rb +55 -0
- data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_update_params.rb +30 -0
- data/lib/whop_sdk/models/file_create_response.rb +3 -18
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -18
- data/lib/whop_sdk/models/{lead_create_response.rb → lead.rb} +13 -13
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +6 -63
- data/lib/whop_sdk/models/member_list_params.rb +9 -9
- data/lib/whop_sdk/models/membership.rb +3 -22
- data/lib/whop_sdk/models/membership_list_params.rb +3 -20
- data/lib/whop_sdk/models/membership_list_response.rb +3 -22
- data/lib/whop_sdk/models/message_create_params.rb +9 -1
- data/lib/whop_sdk/models/message_delete_params.rb +14 -0
- data/lib/whop_sdk/models/message_delete_response.rb +8 -0
- data/lib/whop_sdk/models/payment.rb +63 -1
- data/lib/whop_sdk/models/payment_list_response.rb +63 -1
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payout_destination_category.rb +20 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +3 -20
- data/lib/whop_sdk/models/payout_method_list_response.rb +3 -20
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +3 -20
- data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
- data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
- data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
- data/lib/whop_sdk/models/upload_status.rb +18 -0
- data/lib/whop_sdk/models/verification_error_code.rb +33 -0
- data/lib/whop_sdk/models/verification_retrieve_response.rb +6 -62
- data/lib/whop_sdk/models/verification_status.rb +27 -0
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +6 -62
- data/lib/whop_sdk/models/webhook.rb +88 -0
- data/lib/whop_sdk/models/webhook_create_params.rb +6 -56
- data/lib/whop_sdk/models/webhook_create_response.rb +9 -97
- data/lib/whop_sdk/models/webhook_event.rb +41 -0
- data/lib/whop_sdk/models/webhook_list_response.rb +6 -57
- data/lib/whop_sdk/models/webhook_update_params.rb +6 -56
- data/lib/whop_sdk/models/{withdrawal_create_response.rb → withdrawal.rb} +15 -15
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +3 -267
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +3 -267
- data/lib/whop_sdk/models.rb +74 -0
- data/lib/whop_sdk/resources/ai_chats.rb +141 -0
- data/lib/whop_sdk/resources/authorized_users.rb +4 -4
- data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
- data/lib/whop_sdk/resources/dm_channels.rb +151 -0
- data/lib/whop_sdk/resources/dm_members.rb +155 -0
- data/lib/whop_sdk/resources/leads.rb +6 -12
- data/lib/whop_sdk/resources/members.rb +4 -4
- data/lib/whop_sdk/resources/memberships.rb +1 -1
- data/lib/whop_sdk/resources/messages.rb +27 -1
- data/lib/whop_sdk/resources/reactions.rb +34 -1
- data/lib/whop_sdk/resources/webhooks.rb +8 -8
- data/lib/whop_sdk/resources/withdrawals.rb +4 -4
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +50 -7
- data/rbi/whop_sdk/client.rbi +12 -0
- data/rbi/whop_sdk/models/ai_chat.rbi +118 -0
- data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
- data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/api_version.rbi +21 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +2 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/authorized_user_list_response.rbi +47 -0
- data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +49 -0
- data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +28 -0
- data/rbi/whop_sdk/models/cancel_options.rbi +30 -0
- data/rbi/whop_sdk/models/company_token_transaction.rbi +237 -0
- data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +96 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +262 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/dm_channel.rbi +60 -0
- data/rbi/whop_sdk/models/dm_channel_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/dm_channel_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_channel_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_channel_list_response.rbi +65 -0
- data/rbi/whop_sdk/models/dm_channel_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_channel_update_params.rbi +43 -0
- data/rbi/whop_sdk/models/dm_feed_member_notification_preferences.rbi +34 -0
- data/rbi/whop_sdk/models/dm_feed_member_statuses.rbi +26 -0
- data/rbi/whop_sdk/models/dm_member.rbi +82 -0
- data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_member_list_response.rbi +75 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +57 -0
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -49
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -51
- data/rbi/whop_sdk/models/{lead_update_response.rbi → lead.rbi} +17 -42
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/member_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/membership.rbi +3 -47
- data/rbi/whop_sdk/models/membership_list_params.rbi +3 -70
- data/rbi/whop_sdk/models/membership_list_response.rbi +3 -73
- data/rbi/whop_sdk/models/message_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/payment.rbi +88 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +100 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payout_destination_category.rbi +33 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +3 -64
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +3 -64
- data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
- data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
- data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/upload_status.rbi +22 -0
- data/rbi/whop_sdk/models/verification_error_code.rbi +101 -0
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +6 -230
- data/rbi/whop_sdk/models/verification_status.rbi +38 -0
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +6 -232
- data/rbi/whop_sdk/models/webhook.rbi +104 -0
- data/rbi/whop_sdk/models/webhook_create_params.rbi +6 -194
- data/rbi/whop_sdk/models/webhook_create_response.rbi +9 -386
- data/rbi/whop_sdk/models/webhook_event.rbi +79 -0
- data/rbi/whop_sdk/models/webhook_list_response.rbi +6 -210
- data/rbi/whop_sdk/models/webhook_update_params.rbi +6 -194
- data/rbi/whop_sdk/models/{withdrawal_create_response.rbi → withdrawal.rbi} +63 -127
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -571
- data/rbi/whop_sdk/models.rbi +78 -0
- data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +112 -0
- data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
- data/rbi/whop_sdk/resources/dm_members.rbi +126 -0
- data/rbi/whop_sdk/resources/leads.rbi +3 -3
- data/rbi/whop_sdk/resources/members.rbi +3 -3
- data/rbi/whop_sdk/resources/memberships.rbi +1 -4
- data/rbi/whop_sdk/resources/messages.rbi +21 -0
- data/rbi/whop_sdk/resources/reactions.rbi +26 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +6 -10
- data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
- data/sig/whop_sdk/client.rbs +8 -0
- data/sig/whop_sdk/models/ai_chat.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
- data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
- data/sig/whop_sdk/models/api_version.rbs +15 -0
- data/sig/whop_sdk/models/app_list_params.rbs +3 -1
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +5 -5
- data/sig/whop_sdk/models/authorized_user_list_response.rbs +17 -0
- data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +17 -0
- data/sig/whop_sdk/models/bot_token_transaction_types.rbs +15 -0
- data/sig/whop_sdk/models/cancel_options.rbs +26 -0
- data/sig/whop_sdk/models/company_token_transaction.rbs +103 -0
- data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +103 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_create_params.rbs +36 -0
- data/sig/whop_sdk/models/dm_channel_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_channel_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_channel_list_response.rbs +30 -0
- data/sig/whop_sdk/models/dm_channel_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_channel_update_params.rbs +23 -0
- data/sig/whop_sdk/models/dm_feed_member_notification_preferences.rbs +15 -0
- data/sig/whop_sdk/models/dm_feed_member_statuses.rbs +18 -0
- data/sig/whop_sdk/models/dm_member.rbs +45 -0
- data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
- data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_member_list_response.rbs +40 -0
- data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_update_params.rbs +31 -0
- data/sig/whop_sdk/models/file_create_response.rbs +4 -17
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -17
- data/sig/whop_sdk/models/{lead_create_response.rbs → lead.rbs} +14 -14
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/member_list_params.rbs +5 -5
- data/sig/whop_sdk/models/membership.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_params.rbs +4 -27
- data/sig/whop_sdk/models/membership_list_response.rbs +4 -27
- data/sig/whop_sdk/models/message_create_params.rbs +6 -1
- data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/payment.rbs +47 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +47 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payout_destination_category.rbs +19 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_list_response.rbs +4 -25
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +4 -25
- data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
- data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
- data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/upload_status.rbs +16 -0
- data/sig/whop_sdk/models/verification_error_code.rbs +50 -0
- data/sig/whop_sdk/models/verification_retrieve_response.rbs +8 -90
- data/sig/whop_sdk/models/verification_status.rbs +38 -0
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +8 -90
- data/sig/whop_sdk/models/webhook.rbs +60 -0
- data/sig/whop_sdk/models/webhook_create_params.rbs +8 -83
- data/sig/whop_sdk/models/webhook_create_response.rbs +12 -150
- data/sig/whop_sdk/models/webhook_event.rbs +66 -0
- data/sig/whop_sdk/models/webhook_list_response.rbs +8 -83
- data/sig/whop_sdk/models/webhook_update_params.rbs +8 -83
- data/sig/whop_sdk/models/{withdrawal_create_response.rbs → withdrawal.rbs} +15 -15
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +4 -241
- data/sig/whop_sdk/models.rbs +74 -0
- data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
- data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
- data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
- data/sig/whop_sdk/resources/dm_members.rbs +36 -0
- data/sig/whop_sdk/resources/leads.rbs +3 -3
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- data/sig/whop_sdk/resources/messages.rbs +3 -0
- data/sig/whop_sdk/resources/reactions.rbs +7 -0
- data/sig/whop_sdk/resources/webhooks.rbs +6 -6
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
- metadata +152 -23
- data/lib/whop_sdk/models/lead_retrieve_response.rb +0 -149
- data/lib/whop_sdk/models/lead_update_response.rb +0 -149
- data/lib/whop_sdk/models/webhook_retrieve_response.rb +0 -176
- data/lib/whop_sdk/models/webhook_update_response.rb +0 -176
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +0 -268
- data/rbi/whop_sdk/models/lead_create_response.rbi +0 -234
- data/rbi/whop_sdk/models/lead_retrieve_response.rbi +0 -238
- data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +0 -491
- data/rbi/whop_sdk/models/webhook_update_response.rbi +0 -486
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +0 -568
- data/sig/whop_sdk/models/lead_retrieve_response.rbs +0 -104
- data/sig/whop_sdk/models/lead_update_response.rbs +0 -104
- data/sig/whop_sdk/models/webhook_retrieve_response.rbs +0 -198
- data/sig/whop_sdk/models/webhook_update_response.rbs +0 -198
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +0 -240
|
@@ -10,8 +10,8 @@ module WhopSDK
|
|
|
10
10
|
# @!attribute api_version
|
|
11
11
|
# The different API versions
|
|
12
12
|
#
|
|
13
|
-
# @return [Symbol, WhopSDK::Models::
|
|
14
|
-
optional :api_version, enum: -> { WhopSDK::
|
|
13
|
+
# @return [Symbol, WhopSDK::Models::APIVersion, nil]
|
|
14
|
+
optional :api_version, enum: -> { WhopSDK::APIVersion }, nil?: true
|
|
15
15
|
|
|
16
16
|
# @!attribute child_resource_events
|
|
17
17
|
# Whether or not to send events for child resources.
|
|
@@ -28,10 +28,8 @@ module WhopSDK
|
|
|
28
28
|
# @!attribute events
|
|
29
29
|
# The events to send the webhook for.
|
|
30
30
|
#
|
|
31
|
-
# @return [Array<Symbol, WhopSDK::Models::
|
|
32
|
-
optional :events,
|
|
33
|
-
-> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::WebhookUpdateParams::Event] },
|
|
34
|
-
nil?: true
|
|
31
|
+
# @return [Array<Symbol, WhopSDK::Models::WebhookEvent>, nil]
|
|
32
|
+
optional :events, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::WebhookEvent] }, nil?: true
|
|
35
33
|
|
|
36
34
|
# @!attribute url
|
|
37
35
|
# The URL to send the webhook to.
|
|
@@ -40,65 +38,17 @@ module WhopSDK
|
|
|
40
38
|
optional :url, String, nil?: true
|
|
41
39
|
|
|
42
40
|
# @!method initialize(api_version: nil, child_resource_events: nil, enabled: nil, events: nil, url: nil, request_options: {})
|
|
43
|
-
# @param api_version [Symbol, WhopSDK::Models::
|
|
41
|
+
# @param api_version [Symbol, WhopSDK::Models::APIVersion, nil] The different API versions
|
|
44
42
|
#
|
|
45
43
|
# @param child_resource_events [Boolean, nil] Whether or not to send events for child resources.
|
|
46
44
|
#
|
|
47
45
|
# @param enabled [Boolean, nil] Whether or not the webhook is enabled.
|
|
48
46
|
#
|
|
49
|
-
# @param events [Array<Symbol, WhopSDK::Models::
|
|
47
|
+
# @param events [Array<Symbol, WhopSDK::Models::WebhookEvent>, nil] The events to send the webhook for.
|
|
50
48
|
#
|
|
51
49
|
# @param url [String, nil] The URL to send the webhook to.
|
|
52
50
|
#
|
|
53
51
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
54
|
-
|
|
55
|
-
# The different API versions
|
|
56
|
-
module APIVersion
|
|
57
|
-
extend WhopSDK::Internal::Type::Enum
|
|
58
|
-
|
|
59
|
-
V1 = :v1
|
|
60
|
-
V2 = :v2
|
|
61
|
-
V5 = :v5
|
|
62
|
-
|
|
63
|
-
# @!method self.values
|
|
64
|
-
# @return [Array<Symbol>]
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
# The different event types available
|
|
68
|
-
module Event
|
|
69
|
-
extend WhopSDK::Internal::Type::Enum
|
|
70
|
-
|
|
71
|
-
INVOICE_CREATED = :"invoice.created"
|
|
72
|
-
INVOICE_PAID = :"invoice.paid"
|
|
73
|
-
INVOICE_PAST_DUE = :"invoice.past_due"
|
|
74
|
-
INVOICE_VOIDED = :"invoice.voided"
|
|
75
|
-
MEMBERSHIP_ACTIVATED = :"membership.activated"
|
|
76
|
-
MEMBERSHIP_DEACTIVATED = :"membership.deactivated"
|
|
77
|
-
ENTRY_CREATED = :"entry.created"
|
|
78
|
-
ENTRY_APPROVED = :"entry.approved"
|
|
79
|
-
ENTRY_DENIED = :"entry.denied"
|
|
80
|
-
ENTRY_DELETED = :"entry.deleted"
|
|
81
|
-
SETUP_INTENT_REQUIRES_ACTION = :"setup_intent.requires_action"
|
|
82
|
-
SETUP_INTENT_SUCCEEDED = :"setup_intent.succeeded"
|
|
83
|
-
SETUP_INTENT_CANCELED = :"setup_intent.canceled"
|
|
84
|
-
WITHDRAWAL_CREATED = :"withdrawal.created"
|
|
85
|
-
WITHDRAWAL_UPDATED = :"withdrawal.updated"
|
|
86
|
-
COURSE_LESSON_INTERACTION_COMPLETED = :"course_lesson_interaction.completed"
|
|
87
|
-
PAYOUT_METHOD_CREATED = :"payout_method.created"
|
|
88
|
-
VERIFICATION_SUCCEEDED = :"verification.succeeded"
|
|
89
|
-
PAYMENT_CREATED = :"payment.created"
|
|
90
|
-
PAYMENT_SUCCEEDED = :"payment.succeeded"
|
|
91
|
-
PAYMENT_FAILED = :"payment.failed"
|
|
92
|
-
PAYMENT_PENDING = :"payment.pending"
|
|
93
|
-
DISPUTE_CREATED = :"dispute.created"
|
|
94
|
-
DISPUTE_UPDATED = :"dispute.updated"
|
|
95
|
-
REFUND_CREATED = :"refund.created"
|
|
96
|
-
REFUND_UPDATED = :"refund.updated"
|
|
97
|
-
MEMBERSHIP_CANCEL_AT_PERIOD_END_CHANGED = :"membership.cancel_at_period_end_changed"
|
|
98
|
-
|
|
99
|
-
# @!method self.values
|
|
100
|
-
# @return [Array<Symbol>]
|
|
101
|
-
end
|
|
102
52
|
end
|
|
103
53
|
end
|
|
104
54
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Models
|
|
5
5
|
# @see WhopSDK::Resources::Withdrawals#create
|
|
6
|
-
class
|
|
6
|
+
class Withdrawal < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
8
|
# Internal ID of the withdrawal request.
|
|
9
9
|
#
|
|
@@ -31,8 +31,8 @@ module WhopSDK
|
|
|
31
31
|
# @!attribute error_code
|
|
32
32
|
# The different error codes a payout can be in.
|
|
33
33
|
#
|
|
34
|
-
# @return [Symbol, WhopSDK::Models::
|
|
35
|
-
required :error_code, enum: -> { WhopSDK::
|
|
34
|
+
# @return [Symbol, WhopSDK::Models::Withdrawal::ErrorCode, nil]
|
|
35
|
+
required :error_code, enum: -> { WhopSDK::Withdrawal::ErrorCode }, nil?: true
|
|
36
36
|
|
|
37
37
|
# @!attribute error_message
|
|
38
38
|
# The error message for the withdrawal, if any.
|
|
@@ -62,8 +62,8 @@ module WhopSDK
|
|
|
62
62
|
# @!attribute ledger_account
|
|
63
63
|
# The ledger account associated with the withdrawal.
|
|
64
64
|
#
|
|
65
|
-
# @return [WhopSDK::Models::
|
|
66
|
-
required :ledger_account, -> { WhopSDK::
|
|
65
|
+
# @return [WhopSDK::Models::Withdrawal::LedgerAccount]
|
|
66
|
+
required :ledger_account, -> { WhopSDK::Withdrawal::LedgerAccount }
|
|
67
67
|
|
|
68
68
|
# @!attribute markup_fee
|
|
69
69
|
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
@@ -76,8 +76,8 @@ module WhopSDK
|
|
|
76
76
|
# @!attribute payout_token
|
|
77
77
|
# The payout token used for the withdrawal, if applicable.
|
|
78
78
|
#
|
|
79
|
-
# @return [WhopSDK::Models::
|
|
80
|
-
required :payout_token, -> { WhopSDK::
|
|
79
|
+
# @return [WhopSDK::Models::Withdrawal::PayoutToken, nil]
|
|
80
|
+
required :payout_token, -> { WhopSDK::Withdrawal::PayoutToken }, nil?: true
|
|
81
81
|
|
|
82
82
|
# @!attribute speed
|
|
83
83
|
# The speed of the withdrawal.
|
|
@@ -100,7 +100,7 @@ module WhopSDK
|
|
|
100
100
|
|
|
101
101
|
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:)
|
|
102
102
|
# Some parameter documentations has been truncated, see
|
|
103
|
-
# {WhopSDK::Models::
|
|
103
|
+
# {WhopSDK::Models::Withdrawal} for more details.
|
|
104
104
|
#
|
|
105
105
|
# A withdrawal request.
|
|
106
106
|
#
|
|
@@ -112,7 +112,7 @@ module WhopSDK
|
|
|
112
112
|
#
|
|
113
113
|
# @param currency [Symbol, WhopSDK::Models::Currency] The currency of the withdrawal request.
|
|
114
114
|
#
|
|
115
|
-
# @param error_code [Symbol, WhopSDK::Models::
|
|
115
|
+
# @param error_code [Symbol, WhopSDK::Models::Withdrawal::ErrorCode, nil] The different error codes a payout can be in.
|
|
116
116
|
#
|
|
117
117
|
# @param error_message [String, nil] The error message for the withdrawal, if any.
|
|
118
118
|
#
|
|
@@ -122,11 +122,11 @@ module WhopSDK
|
|
|
122
122
|
#
|
|
123
123
|
# @param fee_type [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil] The different fee types for a withdrawal.
|
|
124
124
|
#
|
|
125
|
-
# @param ledger_account [WhopSDK::Models::
|
|
125
|
+
# @param ledger_account [WhopSDK::Models::Withdrawal::LedgerAccount] The ledger account associated with the withdrawal.
|
|
126
126
|
#
|
|
127
127
|
# @param markup_fee [Float] The markup fee that was charged for the withdrawal. This is in the same currency
|
|
128
128
|
#
|
|
129
|
-
# @param payout_token [WhopSDK::Models::
|
|
129
|
+
# @param payout_token [WhopSDK::Models::Withdrawal::PayoutToken, nil] The payout token used for the withdrawal, if applicable.
|
|
130
130
|
#
|
|
131
131
|
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
132
132
|
#
|
|
@@ -136,7 +136,7 @@ module WhopSDK
|
|
|
136
136
|
|
|
137
137
|
# The different error codes a payout can be in.
|
|
138
138
|
#
|
|
139
|
-
# @see WhopSDK::Models::
|
|
139
|
+
# @see WhopSDK::Models::Withdrawal#error_code
|
|
140
140
|
module ErrorCode
|
|
141
141
|
extend WhopSDK::Internal::Type::Enum
|
|
142
142
|
|
|
@@ -191,7 +191,7 @@ module WhopSDK
|
|
|
191
191
|
# @return [Array<Symbol>]
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
# @see WhopSDK::Models::
|
|
194
|
+
# @see WhopSDK::Models::Withdrawal#ledger_account
|
|
195
195
|
class LedgerAccount < WhopSDK::Internal::Type::BaseModel
|
|
196
196
|
# @!attribute id
|
|
197
197
|
# The ID of the LedgerAccount.
|
|
@@ -213,7 +213,7 @@ module WhopSDK
|
|
|
213
213
|
# @param company_id [String, nil] The ID of the company associated with this ledger account.
|
|
214
214
|
end
|
|
215
215
|
|
|
216
|
-
# @see WhopSDK::Models::
|
|
216
|
+
# @see WhopSDK::Models::Withdrawal#payout_token
|
|
217
217
|
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
218
218
|
# @!attribute id
|
|
219
219
|
# The ID of the payout token
|
|
@@ -249,7 +249,7 @@ module WhopSDK
|
|
|
249
249
|
|
|
250
250
|
# @!method initialize(id:, created_at:, destination_currency_code:, nickname:, payer_name:)
|
|
251
251
|
# Some parameter documentations has been truncated, see
|
|
252
|
-
# {WhopSDK::Models::
|
|
252
|
+
# {WhopSDK::Models::Withdrawal::PayoutToken} for more details.
|
|
253
253
|
#
|
|
254
254
|
# The payout token used for the withdrawal, if applicable.
|
|
255
255
|
#
|
|
@@ -18,8 +18,8 @@ module WhopSDK
|
|
|
18
18
|
# @!attribute data
|
|
19
19
|
# A withdrawal request.
|
|
20
20
|
#
|
|
21
|
-
# @return [WhopSDK::Models::
|
|
22
|
-
required :data, -> { WhopSDK::
|
|
21
|
+
# @return [WhopSDK::Models::Withdrawal]
|
|
22
|
+
required :data, -> { WhopSDK::Withdrawal }
|
|
23
23
|
|
|
24
24
|
# @!attribute timestamp
|
|
25
25
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
@@ -42,7 +42,7 @@ module WhopSDK
|
|
|
42
42
|
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"withdrawal.created")
|
|
43
43
|
# @param id [String] A unique ID for every single webhook request
|
|
44
44
|
#
|
|
45
|
-
# @param data [WhopSDK::Models::
|
|
45
|
+
# @param data [WhopSDK::Models::Withdrawal] A withdrawal request.
|
|
46
46
|
#
|
|
47
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
48
48
|
#
|
|
@@ -51,270 +51,6 @@ module WhopSDK
|
|
|
51
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
52
52
|
#
|
|
53
53
|
# @param type [Symbol, :"withdrawal.created"] The webhook event type
|
|
54
|
-
|
|
55
|
-
# @see WhopSDK::Models::WithdrawalCreatedWebhookEvent#data
|
|
56
|
-
class Data < WhopSDK::Internal::Type::BaseModel
|
|
57
|
-
# @!attribute id
|
|
58
|
-
# Internal ID of the withdrawal request.
|
|
59
|
-
#
|
|
60
|
-
# @return [String]
|
|
61
|
-
required :id, String
|
|
62
|
-
|
|
63
|
-
# @!attribute amount
|
|
64
|
-
# How much money was attempted to be withdrawn, in a float type.
|
|
65
|
-
#
|
|
66
|
-
# @return [Float]
|
|
67
|
-
required :amount, Float
|
|
68
|
-
|
|
69
|
-
# @!attribute created_at
|
|
70
|
-
# When the withdrawal request was created.
|
|
71
|
-
#
|
|
72
|
-
# @return [Time]
|
|
73
|
-
required :created_at, Time
|
|
74
|
-
|
|
75
|
-
# @!attribute currency
|
|
76
|
-
# The currency of the withdrawal request.
|
|
77
|
-
#
|
|
78
|
-
# @return [Symbol, WhopSDK::Models::Currency]
|
|
79
|
-
required :currency, enum: -> { WhopSDK::Currency }
|
|
80
|
-
|
|
81
|
-
# @!attribute error_code
|
|
82
|
-
# The different error codes a payout can be in.
|
|
83
|
-
#
|
|
84
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::ErrorCode, nil]
|
|
85
|
-
required :error_code, enum: -> { WhopSDK::WithdrawalCreatedWebhookEvent::Data::ErrorCode }, nil?: true
|
|
86
|
-
|
|
87
|
-
# @!attribute error_message
|
|
88
|
-
# The error message for the withdrawal, if any.
|
|
89
|
-
#
|
|
90
|
-
# @return [String, nil]
|
|
91
|
-
required :error_message, String, nil?: true
|
|
92
|
-
|
|
93
|
-
# @!attribute estimated_availability
|
|
94
|
-
# The estimated availability date for the withdrawal, if any.
|
|
95
|
-
#
|
|
96
|
-
# @return [Time, nil]
|
|
97
|
-
required :estimated_availability, Time, nil?: true
|
|
98
|
-
|
|
99
|
-
# @!attribute fee_amount
|
|
100
|
-
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
101
|
-
# as the withdrawal amount.
|
|
102
|
-
#
|
|
103
|
-
# @return [Float]
|
|
104
|
-
required :fee_amount, Float
|
|
105
|
-
|
|
106
|
-
# @!attribute fee_type
|
|
107
|
-
# The different fee types for a withdrawal.
|
|
108
|
-
#
|
|
109
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil]
|
|
110
|
-
required :fee_type, enum: -> { WhopSDK::WithdrawalFeeTypes }, nil?: true
|
|
111
|
-
|
|
112
|
-
# @!attribute ledger_account
|
|
113
|
-
# The ledger account associated with the withdrawal.
|
|
114
|
-
#
|
|
115
|
-
# @return [WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::LedgerAccount]
|
|
116
|
-
required :ledger_account, -> { WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount }
|
|
117
|
-
|
|
118
|
-
# @!attribute markup_fee
|
|
119
|
-
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
120
|
-
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
121
|
-
# Rails.
|
|
122
|
-
#
|
|
123
|
-
# @return [Float]
|
|
124
|
-
required :markup_fee, Float
|
|
125
|
-
|
|
126
|
-
# @!attribute payout_token
|
|
127
|
-
# The payout token used for the withdrawal, if applicable.
|
|
128
|
-
#
|
|
129
|
-
# @return [WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::PayoutToken, nil]
|
|
130
|
-
required :payout_token, -> { WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken }, nil?: true
|
|
131
|
-
|
|
132
|
-
# @!attribute speed
|
|
133
|
-
# The speed of the withdrawal.
|
|
134
|
-
#
|
|
135
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalSpeeds]
|
|
136
|
-
required :speed, enum: -> { WhopSDK::WithdrawalSpeeds }
|
|
137
|
-
|
|
138
|
-
# @!attribute status
|
|
139
|
-
# Status of the withdrawal.
|
|
140
|
-
#
|
|
141
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalStatus]
|
|
142
|
-
required :status, enum: -> { WhopSDK::WithdrawalStatus }
|
|
143
|
-
|
|
144
|
-
# @!attribute trace_code
|
|
145
|
-
# The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
146
|
-
# available.
|
|
147
|
-
#
|
|
148
|
-
# @return [String, nil]
|
|
149
|
-
required :trace_code, String, nil?: true
|
|
150
|
-
|
|
151
|
-
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:)
|
|
152
|
-
# Some parameter documentations has been truncated, see
|
|
153
|
-
# {WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data} for more details.
|
|
154
|
-
#
|
|
155
|
-
# A withdrawal request.
|
|
156
|
-
#
|
|
157
|
-
# @param id [String] Internal ID of the withdrawal request.
|
|
158
|
-
#
|
|
159
|
-
# @param amount [Float] How much money was attempted to be withdrawn, in a float type.
|
|
160
|
-
#
|
|
161
|
-
# @param created_at [Time] When the withdrawal request was created.
|
|
162
|
-
#
|
|
163
|
-
# @param currency [Symbol, WhopSDK::Models::Currency] The currency of the withdrawal request.
|
|
164
|
-
#
|
|
165
|
-
# @param error_code [Symbol, WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::ErrorCode, nil] The different error codes a payout can be in.
|
|
166
|
-
#
|
|
167
|
-
# @param error_message [String, nil] The error message for the withdrawal, if any.
|
|
168
|
-
#
|
|
169
|
-
# @param estimated_availability [Time, nil] The estimated availability date for the withdrawal, if any.
|
|
170
|
-
#
|
|
171
|
-
# @param fee_amount [Float] The fee amount that was charged for the withdrawal. This is in the same currency
|
|
172
|
-
#
|
|
173
|
-
# @param fee_type [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil] The different fee types for a withdrawal.
|
|
174
|
-
#
|
|
175
|
-
# @param ledger_account [WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::LedgerAccount] The ledger account associated with the withdrawal.
|
|
176
|
-
#
|
|
177
|
-
# @param markup_fee [Float] The markup fee that was charged for the withdrawal. This is in the same currency
|
|
178
|
-
#
|
|
179
|
-
# @param payout_token [WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::PayoutToken, nil] The payout token used for the withdrawal, if applicable.
|
|
180
|
-
#
|
|
181
|
-
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
182
|
-
#
|
|
183
|
-
# @param status [Symbol, WhopSDK::Models::WithdrawalStatus] Status of the withdrawal.
|
|
184
|
-
#
|
|
185
|
-
# @param trace_code [String, nil] The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
186
|
-
|
|
187
|
-
# The different error codes a payout can be in.
|
|
188
|
-
#
|
|
189
|
-
# @see WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data#error_code
|
|
190
|
-
module ErrorCode
|
|
191
|
-
extend WhopSDK::Internal::Type::Enum
|
|
192
|
-
|
|
193
|
-
ACCOUNT_CLOSED = :account_closed
|
|
194
|
-
ACCOUNT_DOES_NOT_EXIST = :account_does_not_exist
|
|
195
|
-
ACCOUNT_INFORMATION_INVALID = :account_information_invalid
|
|
196
|
-
ACCOUNT_NUMBER_INVALID_REGION = :account_number_invalid_region
|
|
197
|
-
ACCOUNT_FROZEN = :account_frozen
|
|
198
|
-
ACCOUNT_LOOKUP_FAILED = :account_lookup_failed
|
|
199
|
-
ACCOUNT_NOT_FOUND = :account_not_found
|
|
200
|
-
AMOUNT_OUT_OF_BOUNDS = :amount_out_of_bounds
|
|
201
|
-
ATTRIBUTES_NOT_VALIDATED = :attributes_not_validated
|
|
202
|
-
B2B_PAYMENTS_PROHIBITED = :b2b_payments_prohibited
|
|
203
|
-
BANK_STATEMENT_REQUIRED = :bank_statement_required
|
|
204
|
-
COMPLIANCE_REVIEW = :compliance_review
|
|
205
|
-
CURRENCY_NOT_SUPPORTED = :currency_not_supported
|
|
206
|
-
DEPOSIT_CANCELED = :deposit_canceled
|
|
207
|
-
DEPOSIT_FAILED = :deposit_failed
|
|
208
|
-
DEPOSIT_REJECTED = :deposit_rejected
|
|
209
|
-
DESTINATION_UNAVAILABLE = :destination_unavailable
|
|
210
|
-
EXCEEDED_ACCOUNT_LIMIT = :exceeded_account_limit
|
|
211
|
-
EXPIRED_QUOTE = :expired_quote
|
|
212
|
-
GENERIC_PAYOUT_ERROR = :generic_payout_error
|
|
213
|
-
TECHNICAL_PROBLEM = :technical_problem
|
|
214
|
-
IDENTIFICATION_NUMBER_INVALID = :identification_number_invalid
|
|
215
|
-
INVALID_ACCOUNT_NUMBER = :invalid_account_number
|
|
216
|
-
INVALID_BANK_CODE = :invalid_bank_code
|
|
217
|
-
INVALID_BENEFICIARY = :invalid_beneficiary
|
|
218
|
-
INVALID_MAILING_ADDRESS = :invalid_mailing_address
|
|
219
|
-
INVALID_BRANCH_NUMBER = :invalid_branch_number
|
|
220
|
-
INVALID_BRANCH_CODE = :invalid_branch_code
|
|
221
|
-
INVALID_PHONE_NUMBER = :invalid_phone_number
|
|
222
|
-
INVALID_ROUTING_NUMBER = :invalid_routing_number
|
|
223
|
-
INVALID_SWIFT_CODE = :invalid_swift_code
|
|
224
|
-
INVALID_COMPANY_DETAILS = :invalid_company_details
|
|
225
|
-
MANUAL_CANCELATION = :manual_cancelation
|
|
226
|
-
MISC_ERROR = :misc_error
|
|
227
|
-
MISSING_CITY_AND_COUNTRY = :missing_city_and_country
|
|
228
|
-
MISSING_PHONE_NUMBER = :missing_phone_number
|
|
229
|
-
MISSING_REMITTANCE_INFO = :missing_remittance_info
|
|
230
|
-
PAYEE_NAME_INVALID = :payee_name_invalid
|
|
231
|
-
RECEIVING_ACCOUNT_LOCKED = :receiving_account_locked
|
|
232
|
-
REJECTED_BY_COMPLIANCE = :rejected_by_compliance
|
|
233
|
-
RTP_NOT_SUPPORTED = :rtp_not_supported
|
|
234
|
-
NON_TRANSACTION_ACCOUNT = :non_transaction_account
|
|
235
|
-
SOURCE_TOKEN_INSUFFICIENT_FUNDS = :source_token_insufficient_funds
|
|
236
|
-
SSN_INVALID = :ssn_invalid
|
|
237
|
-
WALLET_SCREENSHOT_REQUIRED = :wallet_screenshot_required
|
|
238
|
-
UNSUPPORTED_REGION = :unsupported_region
|
|
239
|
-
|
|
240
|
-
# @!method self.values
|
|
241
|
-
# @return [Array<Symbol>]
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# @see WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data#ledger_account
|
|
245
|
-
class LedgerAccount < WhopSDK::Internal::Type::BaseModel
|
|
246
|
-
# @!attribute id
|
|
247
|
-
# The ID of the LedgerAccount.
|
|
248
|
-
#
|
|
249
|
-
# @return [String]
|
|
250
|
-
required :id, String
|
|
251
|
-
|
|
252
|
-
# @!attribute company_id
|
|
253
|
-
# The ID of the company associated with this ledger account.
|
|
254
|
-
#
|
|
255
|
-
# @return [String, nil]
|
|
256
|
-
required :company_id, String, nil?: true
|
|
257
|
-
|
|
258
|
-
# @!method initialize(id:, company_id:)
|
|
259
|
-
# The ledger account associated with the withdrawal.
|
|
260
|
-
#
|
|
261
|
-
# @param id [String] The ID of the LedgerAccount.
|
|
262
|
-
#
|
|
263
|
-
# @param company_id [String, nil] The ID of the company associated with this ledger account.
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
# @see WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data#payout_token
|
|
267
|
-
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
268
|
-
# @!attribute id
|
|
269
|
-
# The ID of the payout token
|
|
270
|
-
#
|
|
271
|
-
# @return [String]
|
|
272
|
-
required :id, String
|
|
273
|
-
|
|
274
|
-
# @!attribute created_at
|
|
275
|
-
# The date and time the payout token was created
|
|
276
|
-
#
|
|
277
|
-
# @return [Time]
|
|
278
|
-
required :created_at, Time
|
|
279
|
-
|
|
280
|
-
# @!attribute destination_currency_code
|
|
281
|
-
# The currency code of the payout destination. This is the currency that payouts
|
|
282
|
-
# will be made in for this token.
|
|
283
|
-
#
|
|
284
|
-
# @return [String]
|
|
285
|
-
required :destination_currency_code, String
|
|
286
|
-
|
|
287
|
-
# @!attribute nickname
|
|
288
|
-
# An optional nickname for the payout token to help the user identify it. This is
|
|
289
|
-
# not used by the provider and is only for the user's reference.
|
|
290
|
-
#
|
|
291
|
-
# @return [String, nil]
|
|
292
|
-
required :nickname, String, nil?: true
|
|
293
|
-
|
|
294
|
-
# @!attribute payer_name
|
|
295
|
-
# The name of the payer associated with the payout token.
|
|
296
|
-
#
|
|
297
|
-
# @return [String, nil]
|
|
298
|
-
required :payer_name, String, nil?: true
|
|
299
|
-
|
|
300
|
-
# @!method initialize(id:, created_at:, destination_currency_code:, nickname:, payer_name:)
|
|
301
|
-
# Some parameter documentations has been truncated, see
|
|
302
|
-
# {WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::PayoutToken} for more
|
|
303
|
-
# details.
|
|
304
|
-
#
|
|
305
|
-
# The payout token used for the withdrawal, if applicable.
|
|
306
|
-
#
|
|
307
|
-
# @param id [String] The ID of the payout token
|
|
308
|
-
#
|
|
309
|
-
# @param created_at [Time] The date and time the payout token was created
|
|
310
|
-
#
|
|
311
|
-
# @param destination_currency_code [String] The currency code of the payout destination. This is the currency that payouts w
|
|
312
|
-
#
|
|
313
|
-
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
314
|
-
#
|
|
315
|
-
# @param payer_name [String, nil] The name of the payer associated with the payout token.
|
|
316
|
-
end
|
|
317
|
-
end
|
|
318
54
|
end
|
|
319
55
|
end
|
|
320
56
|
end
|