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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fab47db38d1010aae0536961bcec0a21c307b48c8814b8c6ed7dbfa1a81b0ca
|
|
4
|
+
data.tar.gz: c5d00051e528219d5f4dbaf7542e3ca24dd3e651975f1a8bbecaa6b6aed32095
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3aefb0384243a1477f5d00166eb6b7f0e18e77aec36ef889daba584cf5ca4c61d71003ee20ec968643acde015ccf111901ac2733a12d5b4f7099e23c60839d34
|
|
7
|
+
data.tar.gz: 034b25b8a035071a4a4ce8999feb474d895705f663317d7f4d6a24812b23f6afc277a5ae4157b4bc9b07cced0a2e4833bf580622ce97e62052e5526bba5fd822
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.18 (2025-12-11)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.17...v0.0.18](https://github.com/whopio/whopsdk-ruby/compare/v0.0.17...v0.0.18)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([00090d5](https://github.com/whopio/whopsdk-ruby/commit/00090d5bbd2fdf9c172ad0698732f2e9cbc3754f))
|
|
10
|
+
|
|
11
|
+
## 0.0.17 (2025-12-11)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.0.17...v0.0.17](https://github.com/whopio/whopsdk-ruby/compare/v0.0.17...v0.0.17)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([b7f6269](https://github.com/whopio/whopsdk-ruby/commit/b7f6269ea6578738899a4b0547ec3065e46b933b))
|
|
18
|
+
* **api:** api update ([829c1a9](https://github.com/whopio/whopsdk-ruby/commit/829c1a93d487c68c11c6f5deeddd5c48f2da0499))
|
|
19
|
+
|
|
3
20
|
## 0.0.17 (2025-12-10)
|
|
4
21
|
|
|
5
22
|
Full Changelog: [v0.0.16...v0.0.17](https://github.com/whopio/whopsdk-ruby/compare/v0.0.16...v0.0.17)
|
data/README.md
CHANGED
|
@@ -7,6 +7,12 @@ module WhopSDK
|
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute banner_image
|
|
11
|
+
# The banner image for the company in png or jpeg format
|
|
12
|
+
#
|
|
13
|
+
# @return [WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID, nil]
|
|
14
|
+
optional :banner_image, union: -> { WhopSDK::CompanyUpdateParams::BannerImage }, nil?: true
|
|
15
|
+
|
|
10
16
|
# @!attribute logo
|
|
11
17
|
# The logo for the company in png, jpeg, or gif format
|
|
12
18
|
#
|
|
@@ -28,10 +34,12 @@ module WhopSDK
|
|
|
28
34
|
# @return [String, nil]
|
|
29
35
|
optional :title, String, nil?: true
|
|
30
36
|
|
|
31
|
-
# @!method initialize(logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
37
|
+
# @!method initialize(banner_image: nil, logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
32
38
|
# Some parameter documentations has been truncated, see
|
|
33
39
|
# {WhopSDK::Models::CompanyUpdateParams} for more details.
|
|
34
40
|
#
|
|
41
|
+
# @param banner_image [WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID, nil] The banner image for the company in png or jpeg format
|
|
42
|
+
#
|
|
35
43
|
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
|
|
36
44
|
#
|
|
37
45
|
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -40,6 +48,58 @@ module WhopSDK
|
|
|
40
48
|
#
|
|
41
49
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
42
50
|
|
|
51
|
+
# The banner image for the company in png or jpeg format
|
|
52
|
+
module BannerImage
|
|
53
|
+
extend WhopSDK::Internal::Type::Union
|
|
54
|
+
|
|
55
|
+
# Input for an attachment
|
|
56
|
+
variant -> { WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID }
|
|
57
|
+
|
|
58
|
+
# Input for an attachment
|
|
59
|
+
variant -> { WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID }
|
|
60
|
+
|
|
61
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
62
|
+
# @!attribute direct_upload_id
|
|
63
|
+
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
64
|
+
# the direct upload that was created when uploading the file to S3 via the
|
|
65
|
+
# mediaDirectUpload mutation.
|
|
66
|
+
#
|
|
67
|
+
# @return [String]
|
|
68
|
+
required :direct_upload_id, String
|
|
69
|
+
|
|
70
|
+
# @!method initialize(direct_upload_id:)
|
|
71
|
+
# Some parameter documentations has been truncated, see
|
|
72
|
+
# {WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID}
|
|
73
|
+
# for more details.
|
|
74
|
+
#
|
|
75
|
+
# Input for an attachment
|
|
76
|
+
#
|
|
77
|
+
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
81
|
+
# @!attribute id
|
|
82
|
+
# The ID of an existing attachment object. Use this when updating a resource and
|
|
83
|
+
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
84
|
+
# doing.
|
|
85
|
+
#
|
|
86
|
+
# @return [String]
|
|
87
|
+
required :id, String
|
|
88
|
+
|
|
89
|
+
# @!method initialize(id:)
|
|
90
|
+
# Some parameter documentations has been truncated, see
|
|
91
|
+
# {WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID} for
|
|
92
|
+
# more details.
|
|
93
|
+
#
|
|
94
|
+
# Input for an attachment
|
|
95
|
+
#
|
|
96
|
+
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# @!method self.variants
|
|
100
|
+
# @return [Array(WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID)]
|
|
101
|
+
end
|
|
102
|
+
|
|
43
103
|
# The logo for the company in png, jpeg, or gif format
|
|
44
104
|
module Logo
|
|
45
105
|
extend WhopSDK::Internal::Type::Union
|
|
@@ -45,13 +45,21 @@ module WhopSDK
|
|
|
45
45
|
enum: -> { WhopSDK::Models::LedgerAccountRetrieveResponse::PaymentsApprovalStatus },
|
|
46
46
|
nil?: true
|
|
47
47
|
|
|
48
|
+
# @!attribute payout_account_details
|
|
49
|
+
# The payout account associated with the LedgerAccount, if any.
|
|
50
|
+
#
|
|
51
|
+
# @return [WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails, nil]
|
|
52
|
+
required :payout_account_details,
|
|
53
|
+
-> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails },
|
|
54
|
+
nil?: true
|
|
55
|
+
|
|
48
56
|
# @!attribute transfer_fee
|
|
49
57
|
# The fee for transfers, if applicable.
|
|
50
58
|
#
|
|
51
59
|
# @return [Float, nil]
|
|
52
60
|
required :transfer_fee, Float, nil?: true
|
|
53
61
|
|
|
54
|
-
# @!method initialize(id:, balances:, ledger_account_audit_status:, ledger_type:, owner:, payments_approval_status:, transfer_fee:)
|
|
62
|
+
# @!method initialize(id:, balances:, ledger_account_audit_status:, ledger_type:, owner:, payments_approval_status:, payout_account_details:, transfer_fee:)
|
|
55
63
|
# Represents a LedgerAccount.
|
|
56
64
|
#
|
|
57
65
|
# @param id [String] The ID of the LedgerAccount.
|
|
@@ -66,6 +74,8 @@ module WhopSDK
|
|
|
66
74
|
#
|
|
67
75
|
# @param payments_approval_status [Symbol, WhopSDK::Models::LedgerAccountRetrieveResponse::PaymentsApprovalStatus, nil] The different approval statuses an account can have.
|
|
68
76
|
#
|
|
77
|
+
# @param payout_account_details [WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails, nil] The payout account associated with the LedgerAccount, if any.
|
|
78
|
+
#
|
|
69
79
|
# @param transfer_fee [Float, nil] The fee for transfers, if applicable.
|
|
70
80
|
|
|
71
81
|
class Balance < WhopSDK::Internal::Type::BaseModel
|
|
@@ -247,6 +257,132 @@ module WhopSDK
|
|
|
247
257
|
# @!method self.values
|
|
248
258
|
# @return [Array<Symbol>]
|
|
249
259
|
end
|
|
260
|
+
|
|
261
|
+
# @see WhopSDK::Models::LedgerAccountRetrieveResponse#payout_account_details
|
|
262
|
+
class PayoutAccountDetails < WhopSDK::Internal::Type::BaseModel
|
|
263
|
+
# @!attribute id
|
|
264
|
+
# Unique identifier for the object
|
|
265
|
+
#
|
|
266
|
+
# @return [String]
|
|
267
|
+
required :id, String
|
|
268
|
+
|
|
269
|
+
# @!attribute address
|
|
270
|
+
# The physical address associated with this payout account
|
|
271
|
+
#
|
|
272
|
+
# @return [WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address, nil]
|
|
273
|
+
required :address,
|
|
274
|
+
-> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address },
|
|
275
|
+
nil?: true
|
|
276
|
+
|
|
277
|
+
# @!attribute business_name
|
|
278
|
+
# The company's legal name
|
|
279
|
+
#
|
|
280
|
+
# @return [String, nil]
|
|
281
|
+
required :business_name, String, nil?: true
|
|
282
|
+
|
|
283
|
+
# @!attribute business_representative
|
|
284
|
+
# The business representative for this payout account
|
|
285
|
+
#
|
|
286
|
+
# @return [WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative, nil]
|
|
287
|
+
required :business_representative,
|
|
288
|
+
-> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative },
|
|
289
|
+
nil?: true
|
|
290
|
+
|
|
291
|
+
# @!method initialize(id:, address:, business_name:, business_representative:)
|
|
292
|
+
# The payout account associated with the LedgerAccount, if any.
|
|
293
|
+
#
|
|
294
|
+
# @param id [String] Unique identifier for the object
|
|
295
|
+
#
|
|
296
|
+
# @param address [WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address, nil] The physical address associated with this payout account
|
|
297
|
+
#
|
|
298
|
+
# @param business_name [String, nil] The company's legal name
|
|
299
|
+
#
|
|
300
|
+
# @param business_representative [WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative, nil] The business representative for this payout account
|
|
301
|
+
|
|
302
|
+
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails#address
|
|
303
|
+
class Address < WhopSDK::Internal::Type::BaseModel
|
|
304
|
+
# @!attribute city
|
|
305
|
+
# The city of the address.
|
|
306
|
+
#
|
|
307
|
+
# @return [String, nil]
|
|
308
|
+
required :city, String, nil?: true
|
|
309
|
+
|
|
310
|
+
# @!attribute country
|
|
311
|
+
# The country of the address.
|
|
312
|
+
#
|
|
313
|
+
# @return [String, nil]
|
|
314
|
+
required :country, String, nil?: true
|
|
315
|
+
|
|
316
|
+
# @!attribute line1
|
|
317
|
+
# The line 1 of the address.
|
|
318
|
+
#
|
|
319
|
+
# @return [String, nil]
|
|
320
|
+
required :line1, String, nil?: true
|
|
321
|
+
|
|
322
|
+
# @!attribute line2
|
|
323
|
+
# The line 2 of the address.
|
|
324
|
+
#
|
|
325
|
+
# @return [String, nil]
|
|
326
|
+
required :line2, String, nil?: true
|
|
327
|
+
|
|
328
|
+
# @!attribute postal_code
|
|
329
|
+
# The postal code of the address.
|
|
330
|
+
#
|
|
331
|
+
# @return [String, nil]
|
|
332
|
+
required :postal_code, String, nil?: true
|
|
333
|
+
|
|
334
|
+
# @!attribute state
|
|
335
|
+
# The state of the address.
|
|
336
|
+
#
|
|
337
|
+
# @return [String, nil]
|
|
338
|
+
required :state, String, nil?: true
|
|
339
|
+
|
|
340
|
+
# @!method initialize(city:, country:, line1:, line2:, postal_code:, state:)
|
|
341
|
+
# The physical address associated with this payout account
|
|
342
|
+
#
|
|
343
|
+
# @param city [String, nil] The city of the address.
|
|
344
|
+
#
|
|
345
|
+
# @param country [String, nil] The country of the address.
|
|
346
|
+
#
|
|
347
|
+
# @param line1 [String, nil] The line 1 of the address.
|
|
348
|
+
#
|
|
349
|
+
# @param line2 [String, nil] The line 2 of the address.
|
|
350
|
+
#
|
|
351
|
+
# @param postal_code [String, nil] The postal code of the address.
|
|
352
|
+
#
|
|
353
|
+
# @param state [String, nil] The state of the address.
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails#business_representative
|
|
357
|
+
class BusinessRepresentative < WhopSDK::Internal::Type::BaseModel
|
|
358
|
+
# @!attribute first_name
|
|
359
|
+
# The first name of the business representative.
|
|
360
|
+
#
|
|
361
|
+
# @return [String, nil]
|
|
362
|
+
required :first_name, String, nil?: true
|
|
363
|
+
|
|
364
|
+
# @!attribute last_name
|
|
365
|
+
# The last name of the business representative.
|
|
366
|
+
#
|
|
367
|
+
# @return [String, nil]
|
|
368
|
+
required :last_name, String, nil?: true
|
|
369
|
+
|
|
370
|
+
# @!attribute middle_name
|
|
371
|
+
# The middle name of the business representative.
|
|
372
|
+
#
|
|
373
|
+
# @return [String, nil]
|
|
374
|
+
required :middle_name, String, nil?: true
|
|
375
|
+
|
|
376
|
+
# @!method initialize(first_name:, last_name:, middle_name:)
|
|
377
|
+
# The business representative for this payout account
|
|
378
|
+
#
|
|
379
|
+
# @param first_name [String, nil] The first name of the business representative.
|
|
380
|
+
#
|
|
381
|
+
# @param last_name [String, nil] The last name of the business representative.
|
|
382
|
+
#
|
|
383
|
+
# @param middle_name [String, nil] The middle name of the business representative.
|
|
384
|
+
end
|
|
385
|
+
end
|
|
250
386
|
end
|
|
251
387
|
end
|
|
252
388
|
end
|
|
@@ -20,6 +20,15 @@ module WhopSDK
|
|
|
20
20
|
variant :UsBankAccountPaymentMethod,
|
|
21
21
|
-> { WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod }
|
|
22
22
|
|
|
23
|
+
# The Cash App details for the payment method
|
|
24
|
+
variant :CashappPaymentMethod, -> { WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod }
|
|
25
|
+
|
|
26
|
+
# The iDEAL details for the payment method
|
|
27
|
+
variant :IdealPaymentMethod, -> { WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod }
|
|
28
|
+
|
|
29
|
+
# The SEPA Direct Debit details for the payment method
|
|
30
|
+
variant :SepaDebitPaymentMethod, -> { WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod }
|
|
31
|
+
|
|
23
32
|
class BasePaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
24
33
|
# @!attribute id
|
|
25
34
|
# The ID of the payment method
|
|
@@ -216,8 +225,225 @@ module WhopSDK
|
|
|
216
225
|
end
|
|
217
226
|
end
|
|
218
227
|
|
|
228
|
+
class CashappPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
229
|
+
# @!attribute id
|
|
230
|
+
# The ID of the payment method
|
|
231
|
+
#
|
|
232
|
+
# @return [String]
|
|
233
|
+
required :id, String
|
|
234
|
+
|
|
235
|
+
# @!attribute cashapp
|
|
236
|
+
# The Cash App details associated with this payment method
|
|
237
|
+
#
|
|
238
|
+
# @return [WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod::Cashapp]
|
|
239
|
+
required :cashapp, -> { WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod::Cashapp }
|
|
240
|
+
|
|
241
|
+
# @!attribute created_at
|
|
242
|
+
# When the payment method was created
|
|
243
|
+
#
|
|
244
|
+
# @return [Time]
|
|
245
|
+
required :created_at, Time
|
|
246
|
+
|
|
247
|
+
# @!attribute payment_method_type
|
|
248
|
+
# The type of the payment method
|
|
249
|
+
#
|
|
250
|
+
# @return [Symbol, WhopSDK::Models::PaymentMethodTypes]
|
|
251
|
+
required :payment_method_type, enum: -> { WhopSDK::PaymentMethodTypes }
|
|
252
|
+
|
|
253
|
+
# @!attribute typename
|
|
254
|
+
# The typename of this object
|
|
255
|
+
#
|
|
256
|
+
# @return [Symbol, :CashappPaymentMethod]
|
|
257
|
+
required :typename, const: :CashappPaymentMethod
|
|
258
|
+
|
|
259
|
+
# @!method initialize(id:, cashapp:, created_at:, payment_method_type:, typename: :CashappPaymentMethod)
|
|
260
|
+
# The Cash App details for the payment method
|
|
261
|
+
#
|
|
262
|
+
# @param id [String] The ID of the payment method
|
|
263
|
+
#
|
|
264
|
+
# @param cashapp [WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod::Cashapp] The Cash App details associated with this payment method
|
|
265
|
+
#
|
|
266
|
+
# @param created_at [Time] When the payment method was created
|
|
267
|
+
#
|
|
268
|
+
# @param payment_method_type [Symbol, WhopSDK::Models::PaymentMethodTypes] The type of the payment method
|
|
269
|
+
#
|
|
270
|
+
# @param typename [Symbol, :CashappPaymentMethod] The typename of this object
|
|
271
|
+
|
|
272
|
+
# @see WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod#cashapp
|
|
273
|
+
class Cashapp < WhopSDK::Internal::Type::BaseModel
|
|
274
|
+
# @!attribute buyer_id
|
|
275
|
+
# A unique and immutable identifier assigned by Cash App to every buyer.
|
|
276
|
+
#
|
|
277
|
+
# @return [String, nil]
|
|
278
|
+
required :buyer_id, String, nil?: true
|
|
279
|
+
|
|
280
|
+
# @!attribute cashtag
|
|
281
|
+
# A public identifier for buyers using Cash App.
|
|
282
|
+
#
|
|
283
|
+
# @return [String, nil]
|
|
284
|
+
required :cashtag, String, nil?: true
|
|
285
|
+
|
|
286
|
+
# @!method initialize(buyer_id:, cashtag:)
|
|
287
|
+
# The Cash App details associated with this payment method
|
|
288
|
+
#
|
|
289
|
+
# @param buyer_id [String, nil] A unique and immutable identifier assigned by Cash App to every buyer.
|
|
290
|
+
#
|
|
291
|
+
# @param cashtag [String, nil] A public identifier for buyers using Cash App.
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class IdealPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
296
|
+
# @!attribute id
|
|
297
|
+
# The ID of the payment method
|
|
298
|
+
#
|
|
299
|
+
# @return [String]
|
|
300
|
+
required :id, String
|
|
301
|
+
|
|
302
|
+
# @!attribute created_at
|
|
303
|
+
# When the payment method was created
|
|
304
|
+
#
|
|
305
|
+
# @return [Time]
|
|
306
|
+
required :created_at, Time
|
|
307
|
+
|
|
308
|
+
# @!attribute ideal
|
|
309
|
+
# The iDEAL details associated with this payment method
|
|
310
|
+
#
|
|
311
|
+
# @return [WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod::Ideal]
|
|
312
|
+
required :ideal, -> { WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod::Ideal }
|
|
313
|
+
|
|
314
|
+
# @!attribute payment_method_type
|
|
315
|
+
# The type of the payment method
|
|
316
|
+
#
|
|
317
|
+
# @return [Symbol, WhopSDK::Models::PaymentMethodTypes]
|
|
318
|
+
required :payment_method_type, enum: -> { WhopSDK::PaymentMethodTypes }
|
|
319
|
+
|
|
320
|
+
# @!attribute typename
|
|
321
|
+
# The typename of this object
|
|
322
|
+
#
|
|
323
|
+
# @return [Symbol, :IdealPaymentMethod]
|
|
324
|
+
required :typename, const: :IdealPaymentMethod
|
|
325
|
+
|
|
326
|
+
# @!method initialize(id:, created_at:, ideal:, payment_method_type:, typename: :IdealPaymentMethod)
|
|
327
|
+
# The iDEAL details for the payment method
|
|
328
|
+
#
|
|
329
|
+
# @param id [String] The ID of the payment method
|
|
330
|
+
#
|
|
331
|
+
# @param created_at [Time] When the payment method was created
|
|
332
|
+
#
|
|
333
|
+
# @param ideal [WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod::Ideal] The iDEAL details associated with this payment method
|
|
334
|
+
#
|
|
335
|
+
# @param payment_method_type [Symbol, WhopSDK::Models::PaymentMethodTypes] The type of the payment method
|
|
336
|
+
#
|
|
337
|
+
# @param typename [Symbol, :IdealPaymentMethod] The typename of this object
|
|
338
|
+
|
|
339
|
+
# @see WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod#ideal
|
|
340
|
+
class Ideal < WhopSDK::Internal::Type::BaseModel
|
|
341
|
+
# @!attribute bank
|
|
342
|
+
# The customer's bank.
|
|
343
|
+
#
|
|
344
|
+
# @return [String, nil]
|
|
345
|
+
required :bank, String, nil?: true
|
|
346
|
+
|
|
347
|
+
# @!attribute bic
|
|
348
|
+
# The Bank Identifier Code of the customer's bank.
|
|
349
|
+
#
|
|
350
|
+
# @return [String, nil]
|
|
351
|
+
required :bic, String, nil?: true
|
|
352
|
+
|
|
353
|
+
# @!method initialize(bank:, bic:)
|
|
354
|
+
# The iDEAL details associated with this payment method
|
|
355
|
+
#
|
|
356
|
+
# @param bank [String, nil] The customer's bank.
|
|
357
|
+
#
|
|
358
|
+
# @param bic [String, nil] The Bank Identifier Code of the customer's bank.
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
class SepaDebitPaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
363
|
+
# @!attribute id
|
|
364
|
+
# The ID of the payment method
|
|
365
|
+
#
|
|
366
|
+
# @return [String]
|
|
367
|
+
required :id, String
|
|
368
|
+
|
|
369
|
+
# @!attribute created_at
|
|
370
|
+
# When the payment method was created
|
|
371
|
+
#
|
|
372
|
+
# @return [Time]
|
|
373
|
+
required :created_at, Time
|
|
374
|
+
|
|
375
|
+
# @!attribute payment_method_type
|
|
376
|
+
# The type of the payment method
|
|
377
|
+
#
|
|
378
|
+
# @return [Symbol, WhopSDK::Models::PaymentMethodTypes]
|
|
379
|
+
required :payment_method_type, enum: -> { WhopSDK::PaymentMethodTypes }
|
|
380
|
+
|
|
381
|
+
# @!attribute sepa_debit
|
|
382
|
+
# The SEPA Direct Debit details associated with this payment method
|
|
383
|
+
#
|
|
384
|
+
# @return [WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod::SepaDebit]
|
|
385
|
+
required :sepa_debit, -> { WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod::SepaDebit }
|
|
386
|
+
|
|
387
|
+
# @!attribute typename
|
|
388
|
+
# The typename of this object
|
|
389
|
+
#
|
|
390
|
+
# @return [Symbol, :SepaDebitPaymentMethod]
|
|
391
|
+
required :typename, const: :SepaDebitPaymentMethod
|
|
392
|
+
|
|
393
|
+
# @!method initialize(id:, created_at:, payment_method_type:, sepa_debit:, typename: :SepaDebitPaymentMethod)
|
|
394
|
+
# The SEPA Direct Debit details for the payment method
|
|
395
|
+
#
|
|
396
|
+
# @param id [String] The ID of the payment method
|
|
397
|
+
#
|
|
398
|
+
# @param created_at [Time] When the payment method was created
|
|
399
|
+
#
|
|
400
|
+
# @param payment_method_type [Symbol, WhopSDK::Models::PaymentMethodTypes] The type of the payment method
|
|
401
|
+
#
|
|
402
|
+
# @param sepa_debit [WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod::SepaDebit] The SEPA Direct Debit details associated with this payment method
|
|
403
|
+
#
|
|
404
|
+
# @param typename [Symbol, :SepaDebitPaymentMethod] The typename of this object
|
|
405
|
+
|
|
406
|
+
# @see WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod#sepa_debit
|
|
407
|
+
class SepaDebit < WhopSDK::Internal::Type::BaseModel
|
|
408
|
+
# @!attribute bank_code
|
|
409
|
+
# Bank code of the bank associated with the account.
|
|
410
|
+
#
|
|
411
|
+
# @return [String, nil]
|
|
412
|
+
required :bank_code, String, nil?: true
|
|
413
|
+
|
|
414
|
+
# @!attribute branch_code
|
|
415
|
+
# Branch code of the bank associated with the account.
|
|
416
|
+
#
|
|
417
|
+
# @return [String, nil]
|
|
418
|
+
required :branch_code, String, nil?: true
|
|
419
|
+
|
|
420
|
+
# @!attribute country
|
|
421
|
+
# Two-letter ISO code representing the country the bank account is located in.
|
|
422
|
+
#
|
|
423
|
+
# @return [String, nil]
|
|
424
|
+
required :country, String, nil?: true
|
|
425
|
+
|
|
426
|
+
# @!attribute last4
|
|
427
|
+
# Last four digits of the IBAN.
|
|
428
|
+
#
|
|
429
|
+
# @return [String, nil]
|
|
430
|
+
required :last4, String, nil?: true
|
|
431
|
+
|
|
432
|
+
# @!method initialize(bank_code:, branch_code:, country:, last4:)
|
|
433
|
+
# The SEPA Direct Debit details associated with this payment method
|
|
434
|
+
#
|
|
435
|
+
# @param bank_code [String, nil] Bank code of the bank associated with the account.
|
|
436
|
+
#
|
|
437
|
+
# @param branch_code [String, nil] Branch code of the bank associated with the account.
|
|
438
|
+
#
|
|
439
|
+
# @param country [String, nil] Two-letter ISO code representing the country the bank account is located in.
|
|
440
|
+
#
|
|
441
|
+
# @param last4 [String, nil] Last four digits of the IBAN.
|
|
442
|
+
end
|
|
443
|
+
end
|
|
444
|
+
|
|
219
445
|
# @!method self.variants
|
|
220
|
-
# @return [Array(WhopSDK::Models::PaymentMethodListResponse::BasePaymentMethod, WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod, WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod)]
|
|
446
|
+
# @return [Array(WhopSDK::Models::PaymentMethodListResponse::BasePaymentMethod, WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod, WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod, WhopSDK::Models::PaymentMethodListResponse::CashappPaymentMethod, WhopSDK::Models::PaymentMethodListResponse::IdealPaymentMethod, WhopSDK::Models::PaymentMethodListResponse::SepaDebitPaymentMethod)]
|
|
221
447
|
end
|
|
222
448
|
end
|
|
223
449
|
end
|