dodopayments 1.75.1 → 1.78.0

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.
@@ -235,15 +235,7 @@ module Dodopayments
235
235
  }
236
236
 
237
237
  type field_type =
238
- :text
239
- | :number
240
- | :email
241
- | :url
242
- | :phone
243
- | :date
244
- | :datetime
245
- | :dropdown
246
- | :boolean
238
+ :text | :number | :email | :url | :date | :dropdown | :boolean
247
239
 
248
240
  module FieldType
249
241
  extend Dodopayments::Internal::Type::Enum
@@ -252,9 +244,7 @@ module Dodopayments
252
244
  NUMBER: :number
253
245
  EMAIL: :email
254
246
  URL: :url
255
- PHONE: :phone
256
247
  DATE: :date
257
- DATETIME: :datetime
258
248
  DROPDOWN: :dropdown
259
249
  BOOLEAN: :boolean
260
250
 
@@ -267,7 +257,8 @@ module Dodopayments
267
257
  force_language: String?,
268
258
  show_on_demand_tag: bool,
269
259
  show_order_details: bool,
270
- theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme
260
+ theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme,
261
+ theme_config: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig?
271
262
  }
272
263
 
273
264
  class Customization < Dodopayments::Internal::Type::BaseModel
@@ -287,18 +278,22 @@ module Dodopayments
287
278
  Dodopayments::Models::CheckoutSessionRequest::Customization::theme
288
279
  ) -> Dodopayments::Models::CheckoutSessionRequest::Customization::theme
289
280
 
281
+ attr_accessor theme_config: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig?
282
+
290
283
  def initialize: (
291
284
  ?force_language: String?,
292
285
  ?show_on_demand_tag: bool,
293
286
  ?show_order_details: bool,
294
- ?theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme
287
+ ?theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme,
288
+ ?theme_config: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig?
295
289
  ) -> void
296
290
 
297
291
  def to_hash: -> {
298
292
  force_language: String?,
299
293
  show_on_demand_tag: bool,
300
294
  show_order_details: bool,
301
- theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme
295
+ theme: Dodopayments::Models::CheckoutSessionRequest::Customization::theme,
296
+ theme_config: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig?
302
297
  }
303
298
 
304
299
  type theme = :dark | :light | :system
@@ -312,6 +307,260 @@ module Dodopayments
312
307
 
313
308
  def self?.values: -> ::Array[Dodopayments::Models::CheckoutSessionRequest::Customization::theme]
314
309
  end
310
+
311
+ type theme_config =
312
+ {
313
+ dark: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark?,
314
+ font_size: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_size?,
315
+ font_weight: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_weight?,
316
+ light: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light?,
317
+ pay_button_text: String?,
318
+ radius: String?
319
+ }
320
+
321
+ class ThemeConfig < Dodopayments::Internal::Type::BaseModel
322
+ attr_accessor dark: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark?
323
+
324
+ attr_accessor font_size: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_size?
325
+
326
+ attr_accessor font_weight: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_weight?
327
+
328
+ attr_accessor light: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light?
329
+
330
+ attr_accessor pay_button_text: String?
331
+
332
+ attr_accessor radius: String?
333
+
334
+ def initialize: (
335
+ ?dark: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark?,
336
+ ?font_size: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_size?,
337
+ ?font_weight: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_weight?,
338
+ ?light: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light?,
339
+ ?pay_button_text: String?,
340
+ ?radius: String?
341
+ ) -> void
342
+
343
+ def to_hash: -> {
344
+ dark: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark?,
345
+ font_size: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_size?,
346
+ font_weight: Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_weight?,
347
+ light: Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light?,
348
+ pay_button_text: String?,
349
+ radius: String?
350
+ }
351
+
352
+ type dark =
353
+ {
354
+ bg_primary: String?,
355
+ bg_secondary: String?,
356
+ border_primary: String?,
357
+ border_secondary: String?,
358
+ button_primary: String?,
359
+ button_primary_hover: String?,
360
+ button_secondary: String?,
361
+ button_secondary_hover: String?,
362
+ button_text_primary: String?,
363
+ button_text_secondary: String?,
364
+ input_focus_border: String?,
365
+ text_error: String?,
366
+ text_placeholder: String?,
367
+ text_primary: String?,
368
+ text_secondary: String?,
369
+ text_success: String?
370
+ }
371
+
372
+ class Dark < Dodopayments::Internal::Type::BaseModel
373
+ attr_accessor bg_primary: String?
374
+
375
+ attr_accessor bg_secondary: String?
376
+
377
+ attr_accessor border_primary: String?
378
+
379
+ attr_accessor border_secondary: String?
380
+
381
+ attr_accessor button_primary: String?
382
+
383
+ attr_accessor button_primary_hover: String?
384
+
385
+ attr_accessor button_secondary: String?
386
+
387
+ attr_accessor button_secondary_hover: String?
388
+
389
+ attr_accessor button_text_primary: String?
390
+
391
+ attr_accessor button_text_secondary: String?
392
+
393
+ attr_accessor input_focus_border: String?
394
+
395
+ attr_accessor text_error: String?
396
+
397
+ attr_accessor text_placeholder: String?
398
+
399
+ attr_accessor text_primary: String?
400
+
401
+ attr_accessor text_secondary: String?
402
+
403
+ attr_accessor text_success: String?
404
+
405
+ def initialize: (
406
+ ?bg_primary: String?,
407
+ ?bg_secondary: String?,
408
+ ?border_primary: String?,
409
+ ?border_secondary: String?,
410
+ ?button_primary: String?,
411
+ ?button_primary_hover: String?,
412
+ ?button_secondary: String?,
413
+ ?button_secondary_hover: String?,
414
+ ?button_text_primary: String?,
415
+ ?button_text_secondary: String?,
416
+ ?input_focus_border: String?,
417
+ ?text_error: String?,
418
+ ?text_placeholder: String?,
419
+ ?text_primary: String?,
420
+ ?text_secondary: String?,
421
+ ?text_success: String?
422
+ ) -> void
423
+
424
+ def to_hash: -> {
425
+ bg_primary: String?,
426
+ bg_secondary: String?,
427
+ border_primary: String?,
428
+ border_secondary: String?,
429
+ button_primary: String?,
430
+ button_primary_hover: String?,
431
+ button_secondary: String?,
432
+ button_secondary_hover: String?,
433
+ button_text_primary: String?,
434
+ button_text_secondary: String?,
435
+ input_focus_border: String?,
436
+ text_error: String?,
437
+ text_placeholder: String?,
438
+ text_primary: String?,
439
+ text_secondary: String?,
440
+ text_success: String?
441
+ }
442
+ end
443
+
444
+ type font_size = :xs | :sm | :md | :lg | :xl | :"2xl"
445
+
446
+ module FontSize
447
+ extend Dodopayments::Internal::Type::Enum
448
+
449
+ XS: :xs
450
+ SM: :sm
451
+ MD: :md
452
+ LG: :lg
453
+ XL: :xl
454
+ FONT_SIZE_2XL: :"2xl"
455
+
456
+ def self?.values: -> ::Array[Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_size]
457
+ end
458
+
459
+ type font_weight = :normal | :medium | :bold | :extraBold
460
+
461
+ module FontWeight
462
+ extend Dodopayments::Internal::Type::Enum
463
+
464
+ NORMAL: :normal
465
+ MEDIUM: :medium
466
+ BOLD: :bold
467
+ EXTRA_BOLD: :extraBold
468
+
469
+ def self?.values: -> ::Array[Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::font_weight]
470
+ end
471
+
472
+ type light =
473
+ {
474
+ bg_primary: String?,
475
+ bg_secondary: String?,
476
+ border_primary: String?,
477
+ border_secondary: String?,
478
+ button_primary: String?,
479
+ button_primary_hover: String?,
480
+ button_secondary: String?,
481
+ button_secondary_hover: String?,
482
+ button_text_primary: String?,
483
+ button_text_secondary: String?,
484
+ input_focus_border: String?,
485
+ text_error: String?,
486
+ text_placeholder: String?,
487
+ text_primary: String?,
488
+ text_secondary: String?,
489
+ text_success: String?
490
+ }
491
+
492
+ class Light < Dodopayments::Internal::Type::BaseModel
493
+ attr_accessor bg_primary: String?
494
+
495
+ attr_accessor bg_secondary: String?
496
+
497
+ attr_accessor border_primary: String?
498
+
499
+ attr_accessor border_secondary: String?
500
+
501
+ attr_accessor button_primary: String?
502
+
503
+ attr_accessor button_primary_hover: String?
504
+
505
+ attr_accessor button_secondary: String?
506
+
507
+ attr_accessor button_secondary_hover: String?
508
+
509
+ attr_accessor button_text_primary: String?
510
+
511
+ attr_accessor button_text_secondary: String?
512
+
513
+ attr_accessor input_focus_border: String?
514
+
515
+ attr_accessor text_error: String?
516
+
517
+ attr_accessor text_placeholder: String?
518
+
519
+ attr_accessor text_primary: String?
520
+
521
+ attr_accessor text_secondary: String?
522
+
523
+ attr_accessor text_success: String?
524
+
525
+ def initialize: (
526
+ ?bg_primary: String?,
527
+ ?bg_secondary: String?,
528
+ ?border_primary: String?,
529
+ ?border_secondary: String?,
530
+ ?button_primary: String?,
531
+ ?button_primary_hover: String?,
532
+ ?button_secondary: String?,
533
+ ?button_secondary_hover: String?,
534
+ ?button_text_primary: String?,
535
+ ?button_text_secondary: String?,
536
+ ?input_focus_border: String?,
537
+ ?text_error: String?,
538
+ ?text_placeholder: String?,
539
+ ?text_primary: String?,
540
+ ?text_secondary: String?,
541
+ ?text_success: String?
542
+ ) -> void
543
+
544
+ def to_hash: -> {
545
+ bg_primary: String?,
546
+ bg_secondary: String?,
547
+ border_primary: String?,
548
+ border_secondary: String?,
549
+ button_primary: String?,
550
+ button_primary_hover: String?,
551
+ button_secondary: String?,
552
+ button_secondary_hover: String?,
553
+ button_text_primary: String?,
554
+ button_text_secondary: String?,
555
+ input_focus_border: String?,
556
+ text_error: String?,
557
+ text_placeholder: String?,
558
+ text_primary: String?,
559
+ text_secondary: String?,
560
+ text_success: String?
561
+ }
562
+ end
563
+ end
315
564
  end
316
565
 
317
566
  type feature_flags =
@@ -23,6 +23,11 @@ module Dodopayments
23
23
  | :"subscription.plan_changed"
24
24
  | :"subscription.updated"
25
25
  | :"license_key.created"
26
+ | :"payout.not_initiated"
27
+ | :"payout.on_hold"
28
+ | :"payout.in_progress"
29
+ | :"payout.failed"
30
+ | :"payout.success"
26
31
 
27
32
  module WebhookEventType
28
33
  extend Dodopayments::Internal::Type::Enum
@@ -49,6 +54,11 @@ module Dodopayments
49
54
  SUBSCRIPTION_PLAN_CHANGED: :"subscription.plan_changed"
50
55
  SUBSCRIPTION_UPDATED: :"subscription.updated"
51
56
  LICENSE_KEY_CREATED: :"license_key.created"
57
+ PAYOUT_NOT_INITIATED: :"payout.not_initiated"
58
+ PAYOUT_ON_HOLD: :"payout.on_hold"
59
+ PAYOUT_IN_PROGRESS: :"payout.in_progress"
60
+ PAYOUT_FAILED: :"payout.failed"
61
+ PAYOUT_SUCCESS: :"payout.success"
52
62
 
53
63
  def self?.values: -> ::Array[Dodopayments::Models::webhook_event_type]
54
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dodopayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.75.1
4
+ version: 1.78.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dodo Payments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-29 00:00:00.000000000 Z
11
+ date: 2026-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi