whop_sdk 0.0.25 → 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 +15 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/whop_sdk/models/{ai_chat_create_response.rb → ai_chat.rb} +5 -5
- data/lib/whop_sdk/models/api_version.rb +17 -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_create_response.rb → company_token_transaction.rb} +16 -31
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +3 -17
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +3 -18
- 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_create_response.rb → dm_member.rb} +8 -39
- data/lib/whop_sdk/models/dm_member_list_response.rb +3 -19
- data/lib/whop_sdk/models/dm_member_update_params.rb +6 -34
- 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/payment.rb +63 -1
- data/lib/whop_sdk/models/payment_list_response.rb +63 -1
- 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/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 +44 -0
- data/lib/whop_sdk/resources/ai_chats.rb +6 -6
- data/lib/whop_sdk/resources/authorized_users.rb +4 -4
- data/lib/whop_sdk/resources/company_token_transactions.rb +5 -5
- data/lib/whop_sdk/resources/dm_channels.rb +151 -0
- data/lib/whop_sdk/resources/dm_members.rb +8 -8
- 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/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 +25 -15
- data/rbi/whop_sdk/client.rbi +3 -0
- data/rbi/whop_sdk/models/{ai_chat_update_response.rbi → ai_chat.rbi} +7 -17
- data/rbi/whop_sdk/models/api_version.rbi +21 -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_create_response.rbi → company_token_transaction.rbi} +20 -91
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +3 -53
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +3 -49
- 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_list_response.rbi +3 -52
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +6 -79
- 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/payment.rbi +88 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +100 -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/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 +45 -0
- data/rbi/whop_sdk/resources/ai_chats.rbi +3 -3
- data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +3 -5
- data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
- data/rbi/whop_sdk/resources/dm_members.rbi +5 -7
- 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/webhooks.rbi +6 -10
- data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
- data/sig/whop_sdk/client.rbs +2 -0
- data/sig/whop_sdk/models/{ai_chat_update_response.rbs → ai_chat.rbs} +6 -6
- data/sig/whop_sdk/models/api_version.rbs +15 -0
- 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_create_response.rbs → company_token_transaction.rbs} +18 -30
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +4 -16
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +4 -16
- 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_list_response.rbs +4 -18
- data/sig/whop_sdk/models/dm_member_update_params.rbs +8 -34
- 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_update_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/payment.rbs +47 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +47 -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/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 +44 -0
- data/sig/whop_sdk/resources/ai_chats.rbs +3 -3
- data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
- data/sig/whop_sdk/resources/company_token_transactions.rbs +3 -3
- data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
- data/sig/whop_sdk/resources/dm_members.rbs +5 -5
- 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/webhooks.rbs +6 -6
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
- metadata +77 -47
- data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +0 -89
- data/lib/whop_sdk/models/ai_chat_update_response.rb +0 -89
- data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +0 -180
- data/lib/whop_sdk/models/dm_member_retrieve_response.rb +0 -94
- data/lib/whop_sdk/models/dm_member_update_response.rb +0 -94
- 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/ai_chat_create_response.rbi +0 -128
- data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +0 -128
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +0 -312
- data/rbi/whop_sdk/models/dm_member_create_response.rbi +0 -179
- data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +0 -179
- data/rbi/whop_sdk/models/dm_member_update_response.rbi +0 -179
- 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/ai_chat_create_response.rbs +0 -65
- data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +0 -65
- data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +0 -115
- data/sig/whop_sdk/models/dm_member_create_response.rbs +0 -71
- data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +0 -71
- data/sig/whop_sdk/models/dm_member_update_response.rbs +0 -71
- data/sig/whop_sdk/models/lead_create_response.rbs +0 -104
- data/sig/whop_sdk/models/lead_retrieve_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
|
@@ -20,12 +20,10 @@ module WhopSDK
|
|
|
20
20
|
attr_accessor :api_version
|
|
21
21
|
|
|
22
22
|
# A withdrawal request.
|
|
23
|
-
sig { returns(WhopSDK::
|
|
23
|
+
sig { returns(WhopSDK::Withdrawal) }
|
|
24
24
|
attr_reader :data
|
|
25
25
|
|
|
26
|
-
sig
|
|
27
|
-
params(data: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::OrHash).void
|
|
28
|
-
end
|
|
26
|
+
sig { params(data: WhopSDK::Withdrawal::OrHash).void }
|
|
29
27
|
attr_writer :data
|
|
30
28
|
|
|
31
29
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
@@ -43,7 +41,7 @@ module WhopSDK
|
|
|
43
41
|
sig do
|
|
44
42
|
params(
|
|
45
43
|
id: String,
|
|
46
|
-
data: WhopSDK::
|
|
44
|
+
data: WhopSDK::Withdrawal::OrHash,
|
|
47
45
|
timestamp: Time,
|
|
48
46
|
company_id: T.nilable(String),
|
|
49
47
|
api_version: Symbol,
|
|
@@ -71,7 +69,7 @@ module WhopSDK
|
|
|
71
69
|
{
|
|
72
70
|
id: String,
|
|
73
71
|
api_version: Symbol,
|
|
74
|
-
data: WhopSDK::
|
|
72
|
+
data: WhopSDK::Withdrawal,
|
|
75
73
|
timestamp: Time,
|
|
76
74
|
type: Symbol,
|
|
77
75
|
company_id: T.nilable(String)
|
|
@@ -80,571 +78,6 @@ module WhopSDK
|
|
|
80
78
|
end
|
|
81
79
|
def to_hash
|
|
82
80
|
end
|
|
83
|
-
|
|
84
|
-
class Data < WhopSDK::Internal::Type::BaseModel
|
|
85
|
-
OrHash =
|
|
86
|
-
T.type_alias do
|
|
87
|
-
T.any(
|
|
88
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data,
|
|
89
|
-
WhopSDK::Internal::AnyHash
|
|
90
|
-
)
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Internal ID of the withdrawal request.
|
|
94
|
-
sig { returns(String) }
|
|
95
|
-
attr_accessor :id
|
|
96
|
-
|
|
97
|
-
# How much money was attempted to be withdrawn, in a float type.
|
|
98
|
-
sig { returns(Float) }
|
|
99
|
-
attr_accessor :amount
|
|
100
|
-
|
|
101
|
-
# When the withdrawal request was created.
|
|
102
|
-
sig { returns(Time) }
|
|
103
|
-
attr_accessor :created_at
|
|
104
|
-
|
|
105
|
-
# The currency of the withdrawal request.
|
|
106
|
-
sig { returns(WhopSDK::Currency::TaggedSymbol) }
|
|
107
|
-
attr_accessor :currency
|
|
108
|
-
|
|
109
|
-
# The different error codes a payout can be in.
|
|
110
|
-
sig do
|
|
111
|
-
returns(
|
|
112
|
-
T.nilable(
|
|
113
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
114
|
-
)
|
|
115
|
-
)
|
|
116
|
-
end
|
|
117
|
-
attr_accessor :error_code
|
|
118
|
-
|
|
119
|
-
# The error message for the withdrawal, if any.
|
|
120
|
-
sig { returns(T.nilable(String)) }
|
|
121
|
-
attr_accessor :error_message
|
|
122
|
-
|
|
123
|
-
# The estimated availability date for the withdrawal, if any.
|
|
124
|
-
sig { returns(T.nilable(Time)) }
|
|
125
|
-
attr_accessor :estimated_availability
|
|
126
|
-
|
|
127
|
-
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
128
|
-
# as the withdrawal amount.
|
|
129
|
-
sig { returns(Float) }
|
|
130
|
-
attr_accessor :fee_amount
|
|
131
|
-
|
|
132
|
-
# The different fee types for a withdrawal.
|
|
133
|
-
sig { returns(T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol)) }
|
|
134
|
-
attr_accessor :fee_type
|
|
135
|
-
|
|
136
|
-
# The ledger account associated with the withdrawal.
|
|
137
|
-
sig do
|
|
138
|
-
returns(WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount)
|
|
139
|
-
end
|
|
140
|
-
attr_reader :ledger_account
|
|
141
|
-
|
|
142
|
-
sig do
|
|
143
|
-
params(
|
|
144
|
-
ledger_account:
|
|
145
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount::OrHash
|
|
146
|
-
).void
|
|
147
|
-
end
|
|
148
|
-
attr_writer :ledger_account
|
|
149
|
-
|
|
150
|
-
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
151
|
-
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
152
|
-
# Rails.
|
|
153
|
-
sig { returns(Float) }
|
|
154
|
-
attr_accessor :markup_fee
|
|
155
|
-
|
|
156
|
-
# The payout token used for the withdrawal, if applicable.
|
|
157
|
-
sig do
|
|
158
|
-
returns(
|
|
159
|
-
T.nilable(WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken)
|
|
160
|
-
)
|
|
161
|
-
end
|
|
162
|
-
attr_reader :payout_token
|
|
163
|
-
|
|
164
|
-
sig do
|
|
165
|
-
params(
|
|
166
|
-
payout_token:
|
|
167
|
-
T.nilable(
|
|
168
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken::OrHash
|
|
169
|
-
)
|
|
170
|
-
).void
|
|
171
|
-
end
|
|
172
|
-
attr_writer :payout_token
|
|
173
|
-
|
|
174
|
-
# The speed of the withdrawal.
|
|
175
|
-
sig { returns(WhopSDK::WithdrawalSpeeds::TaggedSymbol) }
|
|
176
|
-
attr_accessor :speed
|
|
177
|
-
|
|
178
|
-
# Status of the withdrawal.
|
|
179
|
-
sig { returns(WhopSDK::WithdrawalStatus::TaggedSymbol) }
|
|
180
|
-
attr_accessor :status
|
|
181
|
-
|
|
182
|
-
# The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
183
|
-
# available.
|
|
184
|
-
sig { returns(T.nilable(String)) }
|
|
185
|
-
attr_accessor :trace_code
|
|
186
|
-
|
|
187
|
-
# A withdrawal request.
|
|
188
|
-
sig do
|
|
189
|
-
params(
|
|
190
|
-
id: String,
|
|
191
|
-
amount: Float,
|
|
192
|
-
created_at: Time,
|
|
193
|
-
currency: WhopSDK::Currency::OrSymbol,
|
|
194
|
-
error_code:
|
|
195
|
-
T.nilable(
|
|
196
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::OrSymbol
|
|
197
|
-
),
|
|
198
|
-
error_message: T.nilable(String),
|
|
199
|
-
estimated_availability: T.nilable(Time),
|
|
200
|
-
fee_amount: Float,
|
|
201
|
-
fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::OrSymbol),
|
|
202
|
-
ledger_account:
|
|
203
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount::OrHash,
|
|
204
|
-
markup_fee: Float,
|
|
205
|
-
payout_token:
|
|
206
|
-
T.nilable(
|
|
207
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken::OrHash
|
|
208
|
-
),
|
|
209
|
-
speed: WhopSDK::WithdrawalSpeeds::OrSymbol,
|
|
210
|
-
status: WhopSDK::WithdrawalStatus::OrSymbol,
|
|
211
|
-
trace_code: T.nilable(String)
|
|
212
|
-
).returns(T.attached_class)
|
|
213
|
-
end
|
|
214
|
-
def self.new(
|
|
215
|
-
# Internal ID of the withdrawal request.
|
|
216
|
-
id:,
|
|
217
|
-
# How much money was attempted to be withdrawn, in a float type.
|
|
218
|
-
amount:,
|
|
219
|
-
# When the withdrawal request was created.
|
|
220
|
-
created_at:,
|
|
221
|
-
# The currency of the withdrawal request.
|
|
222
|
-
currency:,
|
|
223
|
-
# The different error codes a payout can be in.
|
|
224
|
-
error_code:,
|
|
225
|
-
# The error message for the withdrawal, if any.
|
|
226
|
-
error_message:,
|
|
227
|
-
# The estimated availability date for the withdrawal, if any.
|
|
228
|
-
estimated_availability:,
|
|
229
|
-
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
230
|
-
# as the withdrawal amount.
|
|
231
|
-
fee_amount:,
|
|
232
|
-
# The different fee types for a withdrawal.
|
|
233
|
-
fee_type:,
|
|
234
|
-
# The ledger account associated with the withdrawal.
|
|
235
|
-
ledger_account:,
|
|
236
|
-
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
237
|
-
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
238
|
-
# Rails.
|
|
239
|
-
markup_fee:,
|
|
240
|
-
# The payout token used for the withdrawal, if applicable.
|
|
241
|
-
payout_token:,
|
|
242
|
-
# The speed of the withdrawal.
|
|
243
|
-
speed:,
|
|
244
|
-
# Status of the withdrawal.
|
|
245
|
-
status:,
|
|
246
|
-
# The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
247
|
-
# available.
|
|
248
|
-
trace_code:
|
|
249
|
-
)
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
sig do
|
|
253
|
-
override.returns(
|
|
254
|
-
{
|
|
255
|
-
id: String,
|
|
256
|
-
amount: Float,
|
|
257
|
-
created_at: Time,
|
|
258
|
-
currency: WhopSDK::Currency::TaggedSymbol,
|
|
259
|
-
error_code:
|
|
260
|
-
T.nilable(
|
|
261
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
262
|
-
),
|
|
263
|
-
error_message: T.nilable(String),
|
|
264
|
-
estimated_availability: T.nilable(Time),
|
|
265
|
-
fee_amount: Float,
|
|
266
|
-
fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol),
|
|
267
|
-
ledger_account:
|
|
268
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
|
|
269
|
-
markup_fee: Float,
|
|
270
|
-
payout_token:
|
|
271
|
-
T.nilable(
|
|
272
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken
|
|
273
|
-
),
|
|
274
|
-
speed: WhopSDK::WithdrawalSpeeds::TaggedSymbol,
|
|
275
|
-
status: WhopSDK::WithdrawalStatus::TaggedSymbol,
|
|
276
|
-
trace_code: T.nilable(String)
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
end
|
|
280
|
-
def to_hash
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
# The different error codes a payout can be in.
|
|
284
|
-
module ErrorCode
|
|
285
|
-
extend WhopSDK::Internal::Type::Enum
|
|
286
|
-
|
|
287
|
-
TaggedSymbol =
|
|
288
|
-
T.type_alias do
|
|
289
|
-
T.all(
|
|
290
|
-
Symbol,
|
|
291
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode
|
|
292
|
-
)
|
|
293
|
-
end
|
|
294
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
295
|
-
|
|
296
|
-
ACCOUNT_CLOSED =
|
|
297
|
-
T.let(
|
|
298
|
-
:account_closed,
|
|
299
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
300
|
-
)
|
|
301
|
-
ACCOUNT_DOES_NOT_EXIST =
|
|
302
|
-
T.let(
|
|
303
|
-
:account_does_not_exist,
|
|
304
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
305
|
-
)
|
|
306
|
-
ACCOUNT_INFORMATION_INVALID =
|
|
307
|
-
T.let(
|
|
308
|
-
:account_information_invalid,
|
|
309
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
310
|
-
)
|
|
311
|
-
ACCOUNT_NUMBER_INVALID_REGION =
|
|
312
|
-
T.let(
|
|
313
|
-
:account_number_invalid_region,
|
|
314
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
315
|
-
)
|
|
316
|
-
ACCOUNT_FROZEN =
|
|
317
|
-
T.let(
|
|
318
|
-
:account_frozen,
|
|
319
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
320
|
-
)
|
|
321
|
-
ACCOUNT_LOOKUP_FAILED =
|
|
322
|
-
T.let(
|
|
323
|
-
:account_lookup_failed,
|
|
324
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
325
|
-
)
|
|
326
|
-
ACCOUNT_NOT_FOUND =
|
|
327
|
-
T.let(
|
|
328
|
-
:account_not_found,
|
|
329
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
330
|
-
)
|
|
331
|
-
AMOUNT_OUT_OF_BOUNDS =
|
|
332
|
-
T.let(
|
|
333
|
-
:amount_out_of_bounds,
|
|
334
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
335
|
-
)
|
|
336
|
-
ATTRIBUTES_NOT_VALIDATED =
|
|
337
|
-
T.let(
|
|
338
|
-
:attributes_not_validated,
|
|
339
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
340
|
-
)
|
|
341
|
-
B2B_PAYMENTS_PROHIBITED =
|
|
342
|
-
T.let(
|
|
343
|
-
:b2b_payments_prohibited,
|
|
344
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
345
|
-
)
|
|
346
|
-
BANK_STATEMENT_REQUIRED =
|
|
347
|
-
T.let(
|
|
348
|
-
:bank_statement_required,
|
|
349
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
350
|
-
)
|
|
351
|
-
COMPLIANCE_REVIEW =
|
|
352
|
-
T.let(
|
|
353
|
-
:compliance_review,
|
|
354
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
355
|
-
)
|
|
356
|
-
CURRENCY_NOT_SUPPORTED =
|
|
357
|
-
T.let(
|
|
358
|
-
:currency_not_supported,
|
|
359
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
360
|
-
)
|
|
361
|
-
DEPOSIT_CANCELED =
|
|
362
|
-
T.let(
|
|
363
|
-
:deposit_canceled,
|
|
364
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
365
|
-
)
|
|
366
|
-
DEPOSIT_FAILED =
|
|
367
|
-
T.let(
|
|
368
|
-
:deposit_failed,
|
|
369
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
370
|
-
)
|
|
371
|
-
DEPOSIT_REJECTED =
|
|
372
|
-
T.let(
|
|
373
|
-
:deposit_rejected,
|
|
374
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
375
|
-
)
|
|
376
|
-
DESTINATION_UNAVAILABLE =
|
|
377
|
-
T.let(
|
|
378
|
-
:destination_unavailable,
|
|
379
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
380
|
-
)
|
|
381
|
-
EXCEEDED_ACCOUNT_LIMIT =
|
|
382
|
-
T.let(
|
|
383
|
-
:exceeded_account_limit,
|
|
384
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
385
|
-
)
|
|
386
|
-
EXPIRED_QUOTE =
|
|
387
|
-
T.let(
|
|
388
|
-
:expired_quote,
|
|
389
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
390
|
-
)
|
|
391
|
-
GENERIC_PAYOUT_ERROR =
|
|
392
|
-
T.let(
|
|
393
|
-
:generic_payout_error,
|
|
394
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
395
|
-
)
|
|
396
|
-
TECHNICAL_PROBLEM =
|
|
397
|
-
T.let(
|
|
398
|
-
:technical_problem,
|
|
399
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
400
|
-
)
|
|
401
|
-
IDENTIFICATION_NUMBER_INVALID =
|
|
402
|
-
T.let(
|
|
403
|
-
:identification_number_invalid,
|
|
404
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
405
|
-
)
|
|
406
|
-
INVALID_ACCOUNT_NUMBER =
|
|
407
|
-
T.let(
|
|
408
|
-
:invalid_account_number,
|
|
409
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
410
|
-
)
|
|
411
|
-
INVALID_BANK_CODE =
|
|
412
|
-
T.let(
|
|
413
|
-
:invalid_bank_code,
|
|
414
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
415
|
-
)
|
|
416
|
-
INVALID_BENEFICIARY =
|
|
417
|
-
T.let(
|
|
418
|
-
:invalid_beneficiary,
|
|
419
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
420
|
-
)
|
|
421
|
-
INVALID_MAILING_ADDRESS =
|
|
422
|
-
T.let(
|
|
423
|
-
:invalid_mailing_address,
|
|
424
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
425
|
-
)
|
|
426
|
-
INVALID_BRANCH_NUMBER =
|
|
427
|
-
T.let(
|
|
428
|
-
:invalid_branch_number,
|
|
429
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
430
|
-
)
|
|
431
|
-
INVALID_BRANCH_CODE =
|
|
432
|
-
T.let(
|
|
433
|
-
:invalid_branch_code,
|
|
434
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
435
|
-
)
|
|
436
|
-
INVALID_PHONE_NUMBER =
|
|
437
|
-
T.let(
|
|
438
|
-
:invalid_phone_number,
|
|
439
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
440
|
-
)
|
|
441
|
-
INVALID_ROUTING_NUMBER =
|
|
442
|
-
T.let(
|
|
443
|
-
:invalid_routing_number,
|
|
444
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
445
|
-
)
|
|
446
|
-
INVALID_SWIFT_CODE =
|
|
447
|
-
T.let(
|
|
448
|
-
:invalid_swift_code,
|
|
449
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
450
|
-
)
|
|
451
|
-
INVALID_COMPANY_DETAILS =
|
|
452
|
-
T.let(
|
|
453
|
-
:invalid_company_details,
|
|
454
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
455
|
-
)
|
|
456
|
-
MANUAL_CANCELATION =
|
|
457
|
-
T.let(
|
|
458
|
-
:manual_cancelation,
|
|
459
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
460
|
-
)
|
|
461
|
-
MISC_ERROR =
|
|
462
|
-
T.let(
|
|
463
|
-
:misc_error,
|
|
464
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
465
|
-
)
|
|
466
|
-
MISSING_CITY_AND_COUNTRY =
|
|
467
|
-
T.let(
|
|
468
|
-
:missing_city_and_country,
|
|
469
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
470
|
-
)
|
|
471
|
-
MISSING_PHONE_NUMBER =
|
|
472
|
-
T.let(
|
|
473
|
-
:missing_phone_number,
|
|
474
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
475
|
-
)
|
|
476
|
-
MISSING_REMITTANCE_INFO =
|
|
477
|
-
T.let(
|
|
478
|
-
:missing_remittance_info,
|
|
479
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
480
|
-
)
|
|
481
|
-
PAYEE_NAME_INVALID =
|
|
482
|
-
T.let(
|
|
483
|
-
:payee_name_invalid,
|
|
484
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
485
|
-
)
|
|
486
|
-
RECEIVING_ACCOUNT_LOCKED =
|
|
487
|
-
T.let(
|
|
488
|
-
:receiving_account_locked,
|
|
489
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
490
|
-
)
|
|
491
|
-
REJECTED_BY_COMPLIANCE =
|
|
492
|
-
T.let(
|
|
493
|
-
:rejected_by_compliance,
|
|
494
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
495
|
-
)
|
|
496
|
-
RTP_NOT_SUPPORTED =
|
|
497
|
-
T.let(
|
|
498
|
-
:rtp_not_supported,
|
|
499
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
500
|
-
)
|
|
501
|
-
NON_TRANSACTION_ACCOUNT =
|
|
502
|
-
T.let(
|
|
503
|
-
:non_transaction_account,
|
|
504
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
505
|
-
)
|
|
506
|
-
SOURCE_TOKEN_INSUFFICIENT_FUNDS =
|
|
507
|
-
T.let(
|
|
508
|
-
:source_token_insufficient_funds,
|
|
509
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
510
|
-
)
|
|
511
|
-
SSN_INVALID =
|
|
512
|
-
T.let(
|
|
513
|
-
:ssn_invalid,
|
|
514
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
515
|
-
)
|
|
516
|
-
WALLET_SCREENSHOT_REQUIRED =
|
|
517
|
-
T.let(
|
|
518
|
-
:wallet_screenshot_required,
|
|
519
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
520
|
-
)
|
|
521
|
-
UNSUPPORTED_REGION =
|
|
522
|
-
T.let(
|
|
523
|
-
:unsupported_region,
|
|
524
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
525
|
-
)
|
|
526
|
-
|
|
527
|
-
sig do
|
|
528
|
-
override.returns(
|
|
529
|
-
T::Array[
|
|
530
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::ErrorCode::TaggedSymbol
|
|
531
|
-
]
|
|
532
|
-
)
|
|
533
|
-
end
|
|
534
|
-
def self.values
|
|
535
|
-
end
|
|
536
|
-
end
|
|
537
|
-
|
|
538
|
-
class LedgerAccount < WhopSDK::Internal::Type::BaseModel
|
|
539
|
-
OrHash =
|
|
540
|
-
T.type_alias do
|
|
541
|
-
T.any(
|
|
542
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
|
|
543
|
-
WhopSDK::Internal::AnyHash
|
|
544
|
-
)
|
|
545
|
-
end
|
|
546
|
-
|
|
547
|
-
# The ID of the LedgerAccount.
|
|
548
|
-
sig { returns(String) }
|
|
549
|
-
attr_accessor :id
|
|
550
|
-
|
|
551
|
-
# The ID of the company associated with this ledger account.
|
|
552
|
-
sig { returns(T.nilable(String)) }
|
|
553
|
-
attr_accessor :company_id
|
|
554
|
-
|
|
555
|
-
# The ledger account associated with the withdrawal.
|
|
556
|
-
sig do
|
|
557
|
-
params(id: String, company_id: T.nilable(String)).returns(
|
|
558
|
-
T.attached_class
|
|
559
|
-
)
|
|
560
|
-
end
|
|
561
|
-
def self.new(
|
|
562
|
-
# The ID of the LedgerAccount.
|
|
563
|
-
id:,
|
|
564
|
-
# The ID of the company associated with this ledger account.
|
|
565
|
-
company_id:
|
|
566
|
-
)
|
|
567
|
-
end
|
|
568
|
-
|
|
569
|
-
sig do
|
|
570
|
-
override.returns({ id: String, company_id: T.nilable(String) })
|
|
571
|
-
end
|
|
572
|
-
def to_hash
|
|
573
|
-
end
|
|
574
|
-
end
|
|
575
|
-
|
|
576
|
-
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
577
|
-
OrHash =
|
|
578
|
-
T.type_alias do
|
|
579
|
-
T.any(
|
|
580
|
-
WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken,
|
|
581
|
-
WhopSDK::Internal::AnyHash
|
|
582
|
-
)
|
|
583
|
-
end
|
|
584
|
-
|
|
585
|
-
# The ID of the payout token
|
|
586
|
-
sig { returns(String) }
|
|
587
|
-
attr_accessor :id
|
|
588
|
-
|
|
589
|
-
# The date and time the payout token was created
|
|
590
|
-
sig { returns(Time) }
|
|
591
|
-
attr_accessor :created_at
|
|
592
|
-
|
|
593
|
-
# The currency code of the payout destination. This is the currency that payouts
|
|
594
|
-
# will be made in for this token.
|
|
595
|
-
sig { returns(String) }
|
|
596
|
-
attr_accessor :destination_currency_code
|
|
597
|
-
|
|
598
|
-
# An optional nickname for the payout token to help the user identify it. This is
|
|
599
|
-
# not used by the provider and is only for the user's reference.
|
|
600
|
-
sig { returns(T.nilable(String)) }
|
|
601
|
-
attr_accessor :nickname
|
|
602
|
-
|
|
603
|
-
# The name of the payer associated with the payout token.
|
|
604
|
-
sig { returns(T.nilable(String)) }
|
|
605
|
-
attr_accessor :payer_name
|
|
606
|
-
|
|
607
|
-
# The payout token used for the withdrawal, if applicable.
|
|
608
|
-
sig do
|
|
609
|
-
params(
|
|
610
|
-
id: String,
|
|
611
|
-
created_at: Time,
|
|
612
|
-
destination_currency_code: String,
|
|
613
|
-
nickname: T.nilable(String),
|
|
614
|
-
payer_name: T.nilable(String)
|
|
615
|
-
).returns(T.attached_class)
|
|
616
|
-
end
|
|
617
|
-
def self.new(
|
|
618
|
-
# The ID of the payout token
|
|
619
|
-
id:,
|
|
620
|
-
# The date and time the payout token was created
|
|
621
|
-
created_at:,
|
|
622
|
-
# The currency code of the payout destination. This is the currency that payouts
|
|
623
|
-
# will be made in for this token.
|
|
624
|
-
destination_currency_code:,
|
|
625
|
-
# An optional nickname for the payout token to help the user identify it. This is
|
|
626
|
-
# not used by the provider and is only for the user's reference.
|
|
627
|
-
nickname:,
|
|
628
|
-
# The name of the payer associated with the payout token.
|
|
629
|
-
payer_name:
|
|
630
|
-
)
|
|
631
|
-
end
|
|
632
|
-
|
|
633
|
-
sig do
|
|
634
|
-
override.returns(
|
|
635
|
-
{
|
|
636
|
-
id: String,
|
|
637
|
-
created_at: Time,
|
|
638
|
-
destination_currency_code: String,
|
|
639
|
-
nickname: T.nilable(String),
|
|
640
|
-
payer_name: T.nilable(String)
|
|
641
|
-
}
|
|
642
|
-
)
|
|
643
|
-
end
|
|
644
|
-
def to_hash
|
|
645
|
-
end
|
|
646
|
-
end
|
|
647
|
-
end
|
|
648
81
|
end
|
|
649
82
|
end
|
|
650
83
|
end
|