whop_sdk 0.0.17 → 0.0.18
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 +17 -0
- data/README.md +1 -1
- data/lib/whop_sdk/models/company_update_params.rb +61 -1
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +137 -1
- data/lib/whop_sdk/models/payment_method_list_response.rb +227 -1
- data/lib/whop_sdk/models/payment_method_retrieve_response.rb +229 -1
- data/lib/whop_sdk/resources/companies.rb +3 -1
- data/lib/whop_sdk/resources/ledger_accounts.rb +1 -0
- data/lib/whop_sdk/resources/payment_methods.rb +2 -2
- data/lib/whop_sdk/version.rb +1 -1
- data/rbi/whop_sdk/models/company_update_params.rbi +110 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +262 -0
- data/rbi/whop_sdk/models/payment_method_list_response.rbi +391 -1
- data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +391 -1
- data/rbi/whop_sdk/resources/companies.rbi +9 -0
- data/rbi/whop_sdk/resources/ledger_accounts.rbi +1 -0
- data/sig/whop_sdk/models/company_update_params.rbs +36 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +102 -0
- data/sig/whop_sdk/models/payment_method_list_response.rbs +170 -0
- data/sig/whop_sdk/models/payment_method_retrieve_response.rbs +170 -0
- data/sig/whop_sdk/resources/companies.rbs +1 -0
- metadata +2 -2
|
@@ -4,6 +4,9 @@ module WhopSDK
|
|
|
4
4
|
WhopSDK::Models::PaymentMethodListResponse::BasePaymentMethod
|
|
5
5
|
| WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod
|
|
6
6
|
| WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod
|
|
7
|
+
| WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod
|
|
8
|
+
| WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod
|
|
9
|
+
| WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod
|
|
7
10
|
|
|
8
11
|
module PaymentMethodListResponse
|
|
9
12
|
extend WhopSDK::Internal::Type::Union
|
|
@@ -169,6 +172,173 @@ module WhopSDK
|
|
|
169
172
|
end
|
|
170
173
|
end
|
|
171
174
|
|
|
175
|
+
type cashapp_payment_method =
|
|
176
|
+
{
|
|
177
|
+
id: String,
|
|
178
|
+
cashapp: WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod::Cashapp,
|
|
179
|
+
created_at: Time,
|
|
180
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
181
|
+
typename: :CashappPaymentMethod
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
class CashappPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
185
|
+
attr_accessor id: String
|
|
186
|
+
|
|
187
|
+
attr_accessor cashapp: WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod::Cashapp
|
|
188
|
+
|
|
189
|
+
attr_accessor created_at: Time
|
|
190
|
+
|
|
191
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
192
|
+
|
|
193
|
+
attr_accessor typename: :CashappPaymentMethod
|
|
194
|
+
|
|
195
|
+
def initialize: (
|
|
196
|
+
id: String,
|
|
197
|
+
cashapp: WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod::Cashapp,
|
|
198
|
+
created_at: Time,
|
|
199
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
200
|
+
?typename: :CashappPaymentMethod
|
|
201
|
+
) -> void
|
|
202
|
+
|
|
203
|
+
def to_hash: -> {
|
|
204
|
+
id: String,
|
|
205
|
+
cashapp: WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod::Cashapp,
|
|
206
|
+
created_at: Time,
|
|
207
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
208
|
+
typename: :CashappPaymentMethod
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
type cashapp = { buyer_id: String?, cashtag: String? }
|
|
212
|
+
|
|
213
|
+
class Cashapp < WhopSDK::Internal::Type::BaseModel
|
|
214
|
+
attr_accessor buyer_id: String?
|
|
215
|
+
|
|
216
|
+
attr_accessor cashtag: String?
|
|
217
|
+
|
|
218
|
+
def initialize: (buyer_id: String?, cashtag: String?) -> void
|
|
219
|
+
|
|
220
|
+
def to_hash: -> { buyer_id: String?, cashtag: String? }
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
type ideal_payment_method =
|
|
225
|
+
{
|
|
226
|
+
id: String,
|
|
227
|
+
created_at: Time,
|
|
228
|
+
ideal: WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod::Ideal,
|
|
229
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
230
|
+
typename: :IdealPaymentMethod
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
class IdealPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
234
|
+
attr_accessor id: String
|
|
235
|
+
|
|
236
|
+
attr_accessor created_at: Time
|
|
237
|
+
|
|
238
|
+
attr_accessor ideal: WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod::Ideal
|
|
239
|
+
|
|
240
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
241
|
+
|
|
242
|
+
attr_accessor typename: :IdealPaymentMethod
|
|
243
|
+
|
|
244
|
+
def initialize: (
|
|
245
|
+
id: String,
|
|
246
|
+
created_at: Time,
|
|
247
|
+
ideal: WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod::Ideal,
|
|
248
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
249
|
+
?typename: :IdealPaymentMethod
|
|
250
|
+
) -> void
|
|
251
|
+
|
|
252
|
+
def to_hash: -> {
|
|
253
|
+
id: String,
|
|
254
|
+
created_at: Time,
|
|
255
|
+
ideal: WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod::Ideal,
|
|
256
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
257
|
+
typename: :IdealPaymentMethod
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
type ideal = { bank: String?, bic: String? }
|
|
261
|
+
|
|
262
|
+
class Ideal < WhopSDK::Internal::Type::BaseModel
|
|
263
|
+
attr_accessor bank: String?
|
|
264
|
+
|
|
265
|
+
attr_accessor bic: String?
|
|
266
|
+
|
|
267
|
+
def initialize: (bank: String?, bic: String?) -> void
|
|
268
|
+
|
|
269
|
+
def to_hash: -> { bank: String?, bic: String? }
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
type sepa_debit_payment_method =
|
|
274
|
+
{
|
|
275
|
+
id: String,
|
|
276
|
+
created_at: Time,
|
|
277
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
278
|
+
sepa_debit: WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod::SepaDebit,
|
|
279
|
+
typename: :SepaDebitPaymentMethod
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
class SepaDebitPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
283
|
+
attr_accessor id: String
|
|
284
|
+
|
|
285
|
+
attr_accessor created_at: Time
|
|
286
|
+
|
|
287
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
288
|
+
|
|
289
|
+
attr_accessor sepa_debit: WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod::SepaDebit
|
|
290
|
+
|
|
291
|
+
attr_accessor typename: :SepaDebitPaymentMethod
|
|
292
|
+
|
|
293
|
+
def initialize: (
|
|
294
|
+
id: String,
|
|
295
|
+
created_at: Time,
|
|
296
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
297
|
+
sepa_debit: WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod::SepaDebit,
|
|
298
|
+
?typename: :SepaDebitPaymentMethod
|
|
299
|
+
) -> void
|
|
300
|
+
|
|
301
|
+
def to_hash: -> {
|
|
302
|
+
id: String,
|
|
303
|
+
created_at: Time,
|
|
304
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
305
|
+
sepa_debit: WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod::SepaDebit,
|
|
306
|
+
typename: :SepaDebitPaymentMethod
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
type sepa_debit =
|
|
310
|
+
{
|
|
311
|
+
bank_code: String?,
|
|
312
|
+
branch_code: String?,
|
|
313
|
+
country: String?,
|
|
314
|
+
:last4 => String?
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
class SepaDebit < WhopSDK::Internal::Type::BaseModel
|
|
318
|
+
attr_accessor bank_code: String?
|
|
319
|
+
|
|
320
|
+
attr_accessor branch_code: String?
|
|
321
|
+
|
|
322
|
+
attr_accessor country: String?
|
|
323
|
+
|
|
324
|
+
attr_accessor last4: String?
|
|
325
|
+
|
|
326
|
+
def initialize: (
|
|
327
|
+
bank_code: String?,
|
|
328
|
+
branch_code: String?,
|
|
329
|
+
country: String?,
|
|
330
|
+
last4: String?
|
|
331
|
+
) -> void
|
|
332
|
+
|
|
333
|
+
def to_hash: -> {
|
|
334
|
+
bank_code: String?,
|
|
335
|
+
branch_code: String?,
|
|
336
|
+
country: String?,
|
|
337
|
+
:last4 => String?
|
|
338
|
+
}
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
172
342
|
def self?.variants: -> ::Array[WhopSDK::Models::payment_method_list_response]
|
|
173
343
|
end
|
|
174
344
|
end
|
|
@@ -4,6 +4,9 @@ module WhopSDK
|
|
|
4
4
|
WhopSDK::Models::PaymentMethodRetrieveResponse::BasePaymentMethod
|
|
5
5
|
| WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod
|
|
6
6
|
| WhopSDK::Models::PaymentMethodRetrieveResponse::UsBankAccountPaymentMethod
|
|
7
|
+
| WhopSDK::Models::PaymentMethodRetrieveResponse::CashappPaymentMethod
|
|
8
|
+
| WhopSDK::Models::PaymentMethodRetrieveResponse::IdealPaymentMethod
|
|
9
|
+
| WhopSDK::Models::PaymentMethodRetrieveResponse::SepaDebitPaymentMethod
|
|
7
10
|
|
|
8
11
|
module PaymentMethodRetrieveResponse
|
|
9
12
|
extend WhopSDK::Internal::Type::Union
|
|
@@ -169,6 +172,173 @@ module WhopSDK
|
|
|
169
172
|
end
|
|
170
173
|
end
|
|
171
174
|
|
|
175
|
+
type cashapp_payment_method =
|
|
176
|
+
{
|
|
177
|
+
id: String,
|
|
178
|
+
cashapp: WhopSDK::Models::PaymentMethodRetrieveResponse::CashappPaymentMethod::Cashapp,
|
|
179
|
+
created_at: Time,
|
|
180
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
181
|
+
typename: :CashappPaymentMethod
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
class CashappPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
185
|
+
attr_accessor id: String
|
|
186
|
+
|
|
187
|
+
attr_accessor cashapp: WhopSDK::Models::PaymentMethodRetrieveResponse::CashappPaymentMethod::Cashapp
|
|
188
|
+
|
|
189
|
+
attr_accessor created_at: Time
|
|
190
|
+
|
|
191
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
192
|
+
|
|
193
|
+
attr_accessor typename: :CashappPaymentMethod
|
|
194
|
+
|
|
195
|
+
def initialize: (
|
|
196
|
+
id: String,
|
|
197
|
+
cashapp: WhopSDK::Models::PaymentMethodRetrieveResponse::CashappPaymentMethod::Cashapp,
|
|
198
|
+
created_at: Time,
|
|
199
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
200
|
+
?typename: :CashappPaymentMethod
|
|
201
|
+
) -> void
|
|
202
|
+
|
|
203
|
+
def to_hash: -> {
|
|
204
|
+
id: String,
|
|
205
|
+
cashapp: WhopSDK::Models::PaymentMethodRetrieveResponse::CashappPaymentMethod::Cashapp,
|
|
206
|
+
created_at: Time,
|
|
207
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
208
|
+
typename: :CashappPaymentMethod
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
type cashapp = { buyer_id: String?, cashtag: String? }
|
|
212
|
+
|
|
213
|
+
class Cashapp < WhopSDK::Internal::Type::BaseModel
|
|
214
|
+
attr_accessor buyer_id: String?
|
|
215
|
+
|
|
216
|
+
attr_accessor cashtag: String?
|
|
217
|
+
|
|
218
|
+
def initialize: (buyer_id: String?, cashtag: String?) -> void
|
|
219
|
+
|
|
220
|
+
def to_hash: -> { buyer_id: String?, cashtag: String? }
|
|
221
|
+
end
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
type ideal_payment_method =
|
|
225
|
+
{
|
|
226
|
+
id: String,
|
|
227
|
+
created_at: Time,
|
|
228
|
+
ideal: WhopSDK::Models::PaymentMethodRetrieveResponse::IdealPaymentMethod::Ideal,
|
|
229
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
230
|
+
typename: :IdealPaymentMethod
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
class IdealPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
234
|
+
attr_accessor id: String
|
|
235
|
+
|
|
236
|
+
attr_accessor created_at: Time
|
|
237
|
+
|
|
238
|
+
attr_accessor ideal: WhopSDK::Models::PaymentMethodRetrieveResponse::IdealPaymentMethod::Ideal
|
|
239
|
+
|
|
240
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
241
|
+
|
|
242
|
+
attr_accessor typename: :IdealPaymentMethod
|
|
243
|
+
|
|
244
|
+
def initialize: (
|
|
245
|
+
id: String,
|
|
246
|
+
created_at: Time,
|
|
247
|
+
ideal: WhopSDK::Models::PaymentMethodRetrieveResponse::IdealPaymentMethod::Ideal,
|
|
248
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
249
|
+
?typename: :IdealPaymentMethod
|
|
250
|
+
) -> void
|
|
251
|
+
|
|
252
|
+
def to_hash: -> {
|
|
253
|
+
id: String,
|
|
254
|
+
created_at: Time,
|
|
255
|
+
ideal: WhopSDK::Models::PaymentMethodRetrieveResponse::IdealPaymentMethod::Ideal,
|
|
256
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
257
|
+
typename: :IdealPaymentMethod
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
type ideal = { bank: String?, bic: String? }
|
|
261
|
+
|
|
262
|
+
class Ideal < WhopSDK::Internal::Type::BaseModel
|
|
263
|
+
attr_accessor bank: String?
|
|
264
|
+
|
|
265
|
+
attr_accessor bic: String?
|
|
266
|
+
|
|
267
|
+
def initialize: (bank: String?, bic: String?) -> void
|
|
268
|
+
|
|
269
|
+
def to_hash: -> { bank: String?, bic: String? }
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
type sepa_debit_payment_method =
|
|
274
|
+
{
|
|
275
|
+
id: String,
|
|
276
|
+
created_at: Time,
|
|
277
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
278
|
+
sepa_debit: WhopSDK::Models::PaymentMethodRetrieveResponse::SepaDebitPaymentMethod::SepaDebit,
|
|
279
|
+
typename: :SepaDebitPaymentMethod
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
class SepaDebitPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
283
|
+
attr_accessor id: String
|
|
284
|
+
|
|
285
|
+
attr_accessor created_at: Time
|
|
286
|
+
|
|
287
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
288
|
+
|
|
289
|
+
attr_accessor sepa_debit: WhopSDK::Models::PaymentMethodRetrieveResponse::SepaDebitPaymentMethod::SepaDebit
|
|
290
|
+
|
|
291
|
+
attr_accessor typename: :SepaDebitPaymentMethod
|
|
292
|
+
|
|
293
|
+
def initialize: (
|
|
294
|
+
id: String,
|
|
295
|
+
created_at: Time,
|
|
296
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
297
|
+
sepa_debit: WhopSDK::Models::PaymentMethodRetrieveResponse::SepaDebitPaymentMethod::SepaDebit,
|
|
298
|
+
?typename: :SepaDebitPaymentMethod
|
|
299
|
+
) -> void
|
|
300
|
+
|
|
301
|
+
def to_hash: -> {
|
|
302
|
+
id: String,
|
|
303
|
+
created_at: Time,
|
|
304
|
+
payment_method_type: WhopSDK::Models::payment_method_types,
|
|
305
|
+
sepa_debit: WhopSDK::Models::PaymentMethodRetrieveResponse::SepaDebitPaymentMethod::SepaDebit,
|
|
306
|
+
typename: :SepaDebitPaymentMethod
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
type sepa_debit =
|
|
310
|
+
{
|
|
311
|
+
bank_code: String?,
|
|
312
|
+
branch_code: String?,
|
|
313
|
+
country: String?,
|
|
314
|
+
:last4 => String?
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
class SepaDebit < WhopSDK::Internal::Type::BaseModel
|
|
318
|
+
attr_accessor bank_code: String?
|
|
319
|
+
|
|
320
|
+
attr_accessor branch_code: String?
|
|
321
|
+
|
|
322
|
+
attr_accessor country: String?
|
|
323
|
+
|
|
324
|
+
attr_accessor last4: String?
|
|
325
|
+
|
|
326
|
+
def initialize: (
|
|
327
|
+
bank_code: String?,
|
|
328
|
+
branch_code: String?,
|
|
329
|
+
country: String?,
|
|
330
|
+
last4: String?
|
|
331
|
+
) -> void
|
|
332
|
+
|
|
333
|
+
def to_hash: -> {
|
|
334
|
+
bank_code: String?,
|
|
335
|
+
branch_code: String?,
|
|
336
|
+
country: String?,
|
|
337
|
+
:last4 => String?
|
|
338
|
+
}
|
|
339
|
+
end
|
|
340
|
+
end
|
|
341
|
+
|
|
172
342
|
def self?.variants: -> ::Array[WhopSDK::Models::payment_method_retrieve_response]
|
|
173
343
|
end
|
|
174
344
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whop_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Whop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|