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.
@@ -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
@@ -17,6 +17,7 @@ module WhopSDK
17
17
 
18
18
  def update: (
19
19
  String id,
20
+ ?banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
20
21
  ?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
21
22
  ?send_customer_emails: bool?,
22
23
  ?title: String?,
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.17
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-10 00:00:00.000000000 Z
11
+ date: 2025-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool