whop_sdk 0.0.20 → 0.0.22
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 +31 -0
- data/README.md +10 -1
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +12 -10
- data/lib/whop_sdk/internal/util.rb +7 -2
- data/lib/whop_sdk/models/lead_create_params.rb +58 -0
- data/lib/whop_sdk/models/lead_create_response.rb +149 -0
- data/lib/whop_sdk/models/lead_list_params.rb +78 -0
- data/lib/whop_sdk/models/lead_list_response.rb +149 -0
- data/lib/whop_sdk/models/lead_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/lead_retrieve_response.rb +149 -0
- data/lib/whop_sdk/models/lead_update_params.rb +30 -0
- data/lib/whop_sdk/models/lead_update_response.rb +149 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +106 -1
- data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +53 -0
- data/lib/whop_sdk/models/membership_status.rb +1 -0
- data/lib/whop_sdk/models/payment.rb +3 -3
- data/lib/whop_sdk/models/payment_create_params.rb +9 -1
- data/lib/whop_sdk/models/payment_list_fees_response.rb +1 -0
- data/lib/whop_sdk/models/payment_list_response.rb +3 -3
- data/lib/whop_sdk/models/payment_method_list_params.rb +16 -8
- data/lib/whop_sdk/models/payment_method_retrieve_params.rb +13 -5
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +168 -0
- data/lib/whop_sdk/models/payout_method_list_response.rb +31 -1
- data/lib/whop_sdk/models/payout_method_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +125 -0
- data/lib/whop_sdk/models/support_channel_create_params.rb +2 -2
- data/lib/whop_sdk/models/topup_create_params.rb +46 -0
- data/lib/whop_sdk/models/topup_create_response.rb +67 -0
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +8 -1
- data/lib/whop_sdk/models/verification_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/verification_retrieve_response.rb +99 -0
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +142 -0
- data/lib/whop_sdk/models.rb +21 -0
- data/lib/whop_sdk/resources/leads.rb +158 -0
- data/lib/whop_sdk/resources/payment_methods.rb +12 -8
- data/lib/whop_sdk/resources/payments.rb +3 -1
- data/lib/whop_sdk/resources/payout_methods.rb +24 -0
- data/lib/whop_sdk/resources/support_channels.rb +1 -1
- data/lib/whop_sdk/resources/topups.rb +46 -0
- data/lib/whop_sdk/resources/verifications.rb +38 -0
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +20 -0
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/lead_create_params.rbi +77 -0
- data/rbi/whop_sdk/models/lead_create_response.rbi +234 -0
- data/rbi/whop_sdk/models/lead_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/lead_list_response.rbi +230 -0
- data/rbi/whop_sdk/models/lead_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/lead_retrieve_response.rbi +238 -0
- data/rbi/whop_sdk/models/lead_update_params.rbi +51 -0
- data/rbi/whop_sdk/models/lead_update_response.rbi +234 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +318 -0
- data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/membership_status.rbi +1 -0
- data/rbi/whop_sdk/models/payment.rbi +4 -4
- data/rbi/whop_sdk/models/payment_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/payment_list_fees_response.rbi +5 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +4 -4
- data/rbi/whop_sdk/models/payment_method_list_params.rbi +16 -8
- data/rbi/whop_sdk/models/payment_method_retrieve_params.rbi +17 -6
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +340 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +58 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +262 -0
- data/rbi/whop_sdk/models/support_channel_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/topup_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/topup_create_response.rbi +89 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +4 -1
- data/rbi/whop_sdk/models/verification_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/verification_retrieve_response.rbi +290 -0
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +367 -0
- data/rbi/whop_sdk/models.rbi +23 -0
- data/rbi/whop_sdk/resources/leads.rbi +138 -0
- data/rbi/whop_sdk/resources/payment_methods.rbi +13 -7
- data/rbi/whop_sdk/resources/payments.rbi +3 -0
- data/rbi/whop_sdk/resources/payout_methods.rbi +18 -0
- data/rbi/whop_sdk/resources/support_channels.rbi +1 -1
- data/rbi/whop_sdk/resources/topups.rbi +39 -0
- data/rbi/whop_sdk/resources/verifications.rbi +30 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +4 -1
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/lead_create_params.rbs +46 -0
- data/sig/whop_sdk/models/lead_create_response.rbs +104 -0
- data/sig/whop_sdk/models/lead_list_params.rbs +61 -0
- data/sig/whop_sdk/models/lead_list_response.rbs +104 -0
- data/sig/whop_sdk/models/lead_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/lead_retrieve_response.rbs +104 -0
- data/sig/whop_sdk/models/lead_update_params.rbs +28 -0
- data/sig/whop_sdk/models/lead_update_response.rbs +104 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +119 -0
- data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/membership_status.rbs +2 -0
- data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_fees_response.rbs +2 -0
- data/sig/whop_sdk/models/payment_method_list_params.rbs +11 -6
- data/sig/whop_sdk/models/payment_method_retrieve_params.rbs +9 -4
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +140 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +20 -0
- data/sig/whop_sdk/models/payout_method_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +103 -0
- data/sig/whop_sdk/models/topup_create_params.rbs +41 -0
- data/sig/whop_sdk/models/topup_create_response.rbs +50 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
- data/sig/whop_sdk/models/verification_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/verification_retrieve_response.rbs +117 -0
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +154 -0
- data/sig/whop_sdk/models.rbs +20 -0
- data/sig/whop_sdk/resources/leads.rbs +40 -0
- data/sig/whop_sdk/resources/payment_methods.rbs +4 -2
- data/sig/whop_sdk/resources/payments.rbs +1 -0
- data/sig/whop_sdk/resources/payout_methods.rbs +5 -0
- data/sig/whop_sdk/resources/topups.rbs +15 -0
- data/sig/whop_sdk/resources/verifications.rbs +12 -0
- data/sig/whop_sdk/resources/webhooks.rbs +4 -1
- metadata +62 -2
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class PayoutMethodCreatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent,
|
|
10
|
+
WhopSDK::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# A unique ID for every single webhook request
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# The API version for this webhook
|
|
19
|
+
sig { returns(Symbol) }
|
|
20
|
+
attr_accessor :api_version
|
|
21
|
+
|
|
22
|
+
# An object representing an user's setup payout destination.
|
|
23
|
+
sig { returns(WhopSDK::PayoutMethodCreatedWebhookEvent::Data) }
|
|
24
|
+
attr_reader :data
|
|
25
|
+
|
|
26
|
+
sig do
|
|
27
|
+
params(
|
|
28
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::OrHash
|
|
29
|
+
).void
|
|
30
|
+
end
|
|
31
|
+
attr_writer :data
|
|
32
|
+
|
|
33
|
+
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
34
|
+
sig { returns(Time) }
|
|
35
|
+
attr_accessor :timestamp
|
|
36
|
+
|
|
37
|
+
# The webhook event type
|
|
38
|
+
sig { returns(Symbol) }
|
|
39
|
+
attr_accessor :type
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
params(
|
|
43
|
+
id: String,
|
|
44
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::OrHash,
|
|
45
|
+
timestamp: Time,
|
|
46
|
+
api_version: Symbol,
|
|
47
|
+
type: Symbol
|
|
48
|
+
).returns(T.attached_class)
|
|
49
|
+
end
|
|
50
|
+
def self.new(
|
|
51
|
+
# A unique ID for every single webhook request
|
|
52
|
+
id:,
|
|
53
|
+
# An object representing an user's setup payout destination.
|
|
54
|
+
data:,
|
|
55
|
+
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
56
|
+
timestamp:,
|
|
57
|
+
# The API version for this webhook
|
|
58
|
+
api_version: :v1,
|
|
59
|
+
# The webhook event type
|
|
60
|
+
type: :"payout_method.created"
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
override.returns(
|
|
66
|
+
{
|
|
67
|
+
id: String,
|
|
68
|
+
api_version: Symbol,
|
|
69
|
+
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
70
|
+
timestamp: Time,
|
|
71
|
+
type: Symbol
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
def to_hash
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
class Data < WhopSDK::Internal::Type::BaseModel
|
|
79
|
+
OrHash =
|
|
80
|
+
T.type_alias do
|
|
81
|
+
T.any(
|
|
82
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
83
|
+
WhopSDK::Internal::AnyHash
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# The ID of the payout token
|
|
88
|
+
sig { returns(String) }
|
|
89
|
+
attr_accessor :id
|
|
90
|
+
|
|
91
|
+
# The company associated with the payout token
|
|
92
|
+
sig do
|
|
93
|
+
returns(
|
|
94
|
+
T.nilable(WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company)
|
|
95
|
+
)
|
|
96
|
+
end
|
|
97
|
+
attr_reader :company
|
|
98
|
+
|
|
99
|
+
sig do
|
|
100
|
+
params(
|
|
101
|
+
company:
|
|
102
|
+
T.nilable(
|
|
103
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
|
|
104
|
+
)
|
|
105
|
+
).void
|
|
106
|
+
end
|
|
107
|
+
attr_writer :company
|
|
108
|
+
|
|
109
|
+
# The currency code of the payout destination. This is the currency that payouts
|
|
110
|
+
# will be made in for this token.
|
|
111
|
+
sig { returns(String) }
|
|
112
|
+
attr_accessor :currency
|
|
113
|
+
|
|
114
|
+
# The payout destination associated with the payout token
|
|
115
|
+
sig do
|
|
116
|
+
returns(
|
|
117
|
+
T.nilable(
|
|
118
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
|
|
119
|
+
)
|
|
120
|
+
)
|
|
121
|
+
end
|
|
122
|
+
attr_reader :destination
|
|
123
|
+
|
|
124
|
+
sig do
|
|
125
|
+
params(
|
|
126
|
+
destination:
|
|
127
|
+
T.nilable(
|
|
128
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
|
|
129
|
+
)
|
|
130
|
+
).void
|
|
131
|
+
end
|
|
132
|
+
attr_writer :destination
|
|
133
|
+
|
|
134
|
+
# Whether this payout token is the default for the payout account
|
|
135
|
+
sig { returns(T::Boolean) }
|
|
136
|
+
attr_accessor :is_default
|
|
137
|
+
|
|
138
|
+
# An optional nickname for the payout token to help the user identify it. This is
|
|
139
|
+
# not used by the provider and is only for the user's reference.
|
|
140
|
+
sig { returns(T.nilable(String)) }
|
|
141
|
+
attr_accessor :nickname
|
|
142
|
+
|
|
143
|
+
# An object representing an user's setup payout destination.
|
|
144
|
+
sig do
|
|
145
|
+
params(
|
|
146
|
+
id: String,
|
|
147
|
+
company:
|
|
148
|
+
T.nilable(
|
|
149
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
|
|
150
|
+
),
|
|
151
|
+
currency: String,
|
|
152
|
+
destination:
|
|
153
|
+
T.nilable(
|
|
154
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
|
|
155
|
+
),
|
|
156
|
+
is_default: T::Boolean,
|
|
157
|
+
nickname: T.nilable(String)
|
|
158
|
+
).returns(T.attached_class)
|
|
159
|
+
end
|
|
160
|
+
def self.new(
|
|
161
|
+
# The ID of the payout token
|
|
162
|
+
id:,
|
|
163
|
+
# The company associated with the payout token
|
|
164
|
+
company:,
|
|
165
|
+
# The currency code of the payout destination. This is the currency that payouts
|
|
166
|
+
# will be made in for this token.
|
|
167
|
+
currency:,
|
|
168
|
+
# The payout destination associated with the payout token
|
|
169
|
+
destination:,
|
|
170
|
+
# Whether this payout token is the default for the payout account
|
|
171
|
+
is_default:,
|
|
172
|
+
# An optional nickname for the payout token to help the user identify it. This is
|
|
173
|
+
# not used by the provider and is only for the user's reference.
|
|
174
|
+
nickname:
|
|
175
|
+
)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
sig do
|
|
179
|
+
override.returns(
|
|
180
|
+
{
|
|
181
|
+
id: String,
|
|
182
|
+
company:
|
|
183
|
+
T.nilable(
|
|
184
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company
|
|
185
|
+
),
|
|
186
|
+
currency: String,
|
|
187
|
+
destination:
|
|
188
|
+
T.nilable(
|
|
189
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
|
|
190
|
+
),
|
|
191
|
+
is_default: T::Boolean,
|
|
192
|
+
nickname: T.nilable(String)
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
end
|
|
196
|
+
def to_hash
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
200
|
+
OrHash =
|
|
201
|
+
T.type_alias do
|
|
202
|
+
T.any(
|
|
203
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company,
|
|
204
|
+
WhopSDK::Internal::AnyHash
|
|
205
|
+
)
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# The ID (tag) of the company.
|
|
209
|
+
sig { returns(String) }
|
|
210
|
+
attr_accessor :id
|
|
211
|
+
|
|
212
|
+
# The company associated with the payout token
|
|
213
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
214
|
+
def self.new(
|
|
215
|
+
# The ID (tag) of the company.
|
|
216
|
+
id:
|
|
217
|
+
)
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
sig { override.returns({ id: String }) }
|
|
221
|
+
def to_hash
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
226
|
+
OrHash =
|
|
227
|
+
T.type_alias do
|
|
228
|
+
T.any(
|
|
229
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination,
|
|
230
|
+
WhopSDK::Internal::AnyHash
|
|
231
|
+
)
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# The category of the payout destination
|
|
235
|
+
sig do
|
|
236
|
+
returns(
|
|
237
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
238
|
+
)
|
|
239
|
+
end
|
|
240
|
+
attr_accessor :category
|
|
241
|
+
|
|
242
|
+
# The country code of the payout destination
|
|
243
|
+
sig { returns(String) }
|
|
244
|
+
attr_accessor :country_code
|
|
245
|
+
|
|
246
|
+
# The name of the payer associated with the payout destination
|
|
247
|
+
sig { returns(String) }
|
|
248
|
+
attr_accessor :name
|
|
249
|
+
|
|
250
|
+
# The payout destination associated with the payout token
|
|
251
|
+
sig do
|
|
252
|
+
params(
|
|
253
|
+
category:
|
|
254
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::OrSymbol,
|
|
255
|
+
country_code: String,
|
|
256
|
+
name: String
|
|
257
|
+
).returns(T.attached_class)
|
|
258
|
+
end
|
|
259
|
+
def self.new(
|
|
260
|
+
# The category of the payout destination
|
|
261
|
+
category:,
|
|
262
|
+
# The country code of the payout destination
|
|
263
|
+
country_code:,
|
|
264
|
+
# The name of the payer associated with the payout destination
|
|
265
|
+
name:
|
|
266
|
+
)
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
sig do
|
|
270
|
+
override.returns(
|
|
271
|
+
{
|
|
272
|
+
category:
|
|
273
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol,
|
|
274
|
+
country_code: String,
|
|
275
|
+
name: String
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
end
|
|
279
|
+
def to_hash
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# The category of the payout destination
|
|
283
|
+
module Category
|
|
284
|
+
extend WhopSDK::Internal::Type::Enum
|
|
285
|
+
|
|
286
|
+
TaggedSymbol =
|
|
287
|
+
T.type_alias do
|
|
288
|
+
T.all(
|
|
289
|
+
Symbol,
|
|
290
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category
|
|
291
|
+
)
|
|
292
|
+
end
|
|
293
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
294
|
+
|
|
295
|
+
CRYPTO =
|
|
296
|
+
T.let(
|
|
297
|
+
:crypto,
|
|
298
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
299
|
+
)
|
|
300
|
+
RTP =
|
|
301
|
+
T.let(
|
|
302
|
+
:rtp,
|
|
303
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
304
|
+
)
|
|
305
|
+
NEXT_DAY_BANK =
|
|
306
|
+
T.let(
|
|
307
|
+
:next_day_bank,
|
|
308
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
309
|
+
)
|
|
310
|
+
BANK_WIRE =
|
|
311
|
+
T.let(
|
|
312
|
+
:bank_wire,
|
|
313
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
314
|
+
)
|
|
315
|
+
DIGITAL_WALLET =
|
|
316
|
+
T.let(
|
|
317
|
+
:digital_wallet,
|
|
318
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
319
|
+
)
|
|
320
|
+
UNKNOWN =
|
|
321
|
+
T.let(
|
|
322
|
+
:unknown,
|
|
323
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
sig do
|
|
327
|
+
override.returns(
|
|
328
|
+
T::Array[
|
|
329
|
+
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::Category::TaggedSymbol
|
|
330
|
+
]
|
|
331
|
+
)
|
|
332
|
+
end
|
|
333
|
+
def self.values
|
|
334
|
+
end
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
end
|
|
@@ -15,6 +15,22 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
|
+
# The company associated with the payout token
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company))
|
|
21
|
+
end
|
|
22
|
+
attr_reader :company
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
company:
|
|
27
|
+
T.nilable(
|
|
28
|
+
WhopSDK::Models::PayoutMethodListResponse::Company::OrHash
|
|
29
|
+
)
|
|
30
|
+
).void
|
|
31
|
+
end
|
|
32
|
+
attr_writer :company
|
|
33
|
+
|
|
18
34
|
# The currency code of the payout destination. This is the currency that payouts
|
|
19
35
|
# will be made in for this token.
|
|
20
36
|
sig { returns(String) }
|
|
@@ -38,6 +54,10 @@ module WhopSDK
|
|
|
38
54
|
end
|
|
39
55
|
attr_writer :destination
|
|
40
56
|
|
|
57
|
+
# Whether this payout token is the default for the payout account
|
|
58
|
+
sig { returns(T::Boolean) }
|
|
59
|
+
attr_accessor :is_default
|
|
60
|
+
|
|
41
61
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
42
62
|
# not used by the provider and is only for the user's reference.
|
|
43
63
|
sig { returns(T.nilable(String)) }
|
|
@@ -47,22 +67,31 @@ module WhopSDK
|
|
|
47
67
|
sig do
|
|
48
68
|
params(
|
|
49
69
|
id: String,
|
|
70
|
+
company:
|
|
71
|
+
T.nilable(
|
|
72
|
+
WhopSDK::Models::PayoutMethodListResponse::Company::OrHash
|
|
73
|
+
),
|
|
50
74
|
currency: String,
|
|
51
75
|
destination:
|
|
52
76
|
T.nilable(
|
|
53
77
|
WhopSDK::Models::PayoutMethodListResponse::Destination::OrHash
|
|
54
78
|
),
|
|
79
|
+
is_default: T::Boolean,
|
|
55
80
|
nickname: T.nilable(String)
|
|
56
81
|
).returns(T.attached_class)
|
|
57
82
|
end
|
|
58
83
|
def self.new(
|
|
59
84
|
# The ID of the payout token
|
|
60
85
|
id:,
|
|
86
|
+
# The company associated with the payout token
|
|
87
|
+
company:,
|
|
61
88
|
# The currency code of the payout destination. This is the currency that payouts
|
|
62
89
|
# will be made in for this token.
|
|
63
90
|
currency:,
|
|
64
91
|
# The payout destination associated with the payout token
|
|
65
92
|
destination:,
|
|
93
|
+
# Whether this payout token is the default for the payout account
|
|
94
|
+
is_default:,
|
|
66
95
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
67
96
|
# not used by the provider and is only for the user's reference.
|
|
68
97
|
nickname:
|
|
@@ -73,9 +102,12 @@ module WhopSDK
|
|
|
73
102
|
override.returns(
|
|
74
103
|
{
|
|
75
104
|
id: String,
|
|
105
|
+
company:
|
|
106
|
+
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company),
|
|
76
107
|
currency: String,
|
|
77
108
|
destination:
|
|
78
109
|
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Destination),
|
|
110
|
+
is_default: T::Boolean,
|
|
79
111
|
nickname: T.nilable(String)
|
|
80
112
|
}
|
|
81
113
|
)
|
|
@@ -83,6 +115,32 @@ module WhopSDK
|
|
|
83
115
|
def to_hash
|
|
84
116
|
end
|
|
85
117
|
|
|
118
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
119
|
+
OrHash =
|
|
120
|
+
T.type_alias do
|
|
121
|
+
T.any(
|
|
122
|
+
WhopSDK::Models::PayoutMethodListResponse::Company,
|
|
123
|
+
WhopSDK::Internal::AnyHash
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# The ID (tag) of the company.
|
|
128
|
+
sig { returns(String) }
|
|
129
|
+
attr_accessor :id
|
|
130
|
+
|
|
131
|
+
# The company associated with the payout token
|
|
132
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
133
|
+
def self.new(
|
|
134
|
+
# The ID (tag) of the company.
|
|
135
|
+
id:
|
|
136
|
+
)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
sig { override.returns({ id: String }) }
|
|
140
|
+
def to_hash
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
86
144
|
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
87
145
|
OrHash =
|
|
88
146
|
T.type_alias do
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class PayoutMethodRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(WhopSDK::PayoutMethodRetrieveParams, WhopSDK::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
sig do
|
|
15
|
+
params(request_options: WhopSDK::RequestOptions::OrHash).returns(
|
|
16
|
+
T.attached_class
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
def self.new(request_options: {})
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
sig { override.returns({ request_options: WhopSDK::RequestOptions }) }
|
|
23
|
+
def to_hash
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|