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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e4f9dd91f77c4f6cd0b5a59f582dfb1d93d8e3aabdd9b076f57e17cb5290d7e
4
- data.tar.gz: 3ef007eac414625200cedbc08929b7e1025a411148cf0df40cf50a72f4ea4dce
3
+ metadata.gz: aab37ce0cdeed2f51e5d0af7558f093524aa7e661aca1bdc8e60f25922b3d254
4
+ data.tar.gz: a38f25ecea5c3a100a67eb5ef7ee2d286ff00012ddee5585b7a7902a9d654dd7
5
5
  SHA512:
6
- metadata.gz: 217a32002c46acfddc1855931c0973bc72e9505967ad1233f792427d4df80ff503724751a65248f6cb7368e910cb9ece4b90ad40579933ea2ec4c0c0b22d78fe
7
- data.tar.gz: 4897d54ec9737205d3f3f894a495834a0836b49b7f5c1aa51825c8dd6e4c51bca12730c1cec61cdb5bd2dd6419c726e1c6d0b2b3fa36fb9821d46a132b9d334e
6
+ metadata.gz: 3aad06f72f4adfb83bfc02443b1e5732d2149ac0a9db230c5e587464f6fc2e01f13d459b88f5b9e939f92aed839bbb81bce510390e4f75715e07ec70d0cf0ca8
7
+ data.tar.gz: b5298885e3fe108c35e2f3a9c47ea66115bfd75435c3f878d6322924f838ffed6f2922e0ca0ecb195ea4decf47ee71de866eef65e4f9f8bc426b3c723c8d96d1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.78.0 (2026-02-02)
4
+
5
+ Full Changelog: [v1.75.1...v1.78.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.75.1...v1.78.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** updated openapi spec for v1.78.1 ([471758d](https://github.com/dodopayments/dodopayments-ruby/commit/471758df73569a5435e0a8ef612a65071cc6cd67))
10
+
3
11
  ## 1.75.1 (2026-01-29)
4
12
 
5
13
  Full Changelog: [v1.75.0...v1.75.1](https://github.com/dodopayments/dodopayments-ruby/compare/v1.75.0...v1.75.1)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "dodopayments", "~> 1.75.1"
29
+ gem "dodopayments", "~> 1.78.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -322,9 +322,7 @@ module Dodopayments
322
322
  NUMBER = :number
323
323
  EMAIL = :email
324
324
  URL = :url
325
- PHONE = :phone
326
325
  DATE = :date
327
- DATETIME = :datetime
328
326
  DROPDOWN = :dropdown
329
327
  BOOLEAN = :boolean
330
328
 
@@ -358,14 +356,22 @@ module Dodopayments
358
356
  optional :show_order_details, Dodopayments::Internal::Type::Boolean
359
357
 
360
358
  # @!attribute theme
361
- # Theme of the page
359
+ # Theme of the page (determines which mode - light/dark/system - to use)
362
360
  #
363
361
  # Default is `System`.
364
362
  #
365
363
  # @return [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::Theme, nil]
366
364
  optional :theme, enum: -> { Dodopayments::CheckoutSessionRequest::Customization::Theme }
367
365
 
368
- # @!method initialize(force_language: nil, show_on_demand_tag: nil, show_order_details: nil, theme: nil)
366
+ # @!attribute theme_config
367
+ # Optional custom theme configuration with colors for light and dark modes
368
+ #
369
+ # @return [Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig, nil]
370
+ optional :theme_config,
371
+ -> { Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig },
372
+ nil?: true
373
+
374
+ # @!method initialize(force_language: nil, show_on_demand_tag: nil, show_order_details: nil, theme: nil, theme_config: nil)
369
375
  # Some parameter documentations has been truncated, see
370
376
  # {Dodopayments::Models::CheckoutSessionRequest::Customization} for more details.
371
377
  #
@@ -377,9 +383,11 @@ module Dodopayments
377
383
  #
378
384
  # @param show_order_details [Boolean] Show order details by default
379
385
  #
380
- # @param theme [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::Theme] Theme of the page
386
+ # @param theme [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::Theme] Theme of the page (determines which mode - light/dark/system - to use)
387
+ #
388
+ # @param theme_config [Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig, nil] Optional custom theme configuration with colors for light and dark modes
381
389
 
382
- # Theme of the page
390
+ # Theme of the page (determines which mode - light/dark/system - to use)
383
391
  #
384
392
  # Default is `System`.
385
393
  #
@@ -394,6 +402,382 @@ module Dodopayments
394
402
  # @!method self.values
395
403
  # @return [Array<Symbol>]
396
404
  end
405
+
406
+ # @see Dodopayments::Models::CheckoutSessionRequest::Customization#theme_config
407
+ class ThemeConfig < Dodopayments::Internal::Type::BaseModel
408
+ # @!attribute dark
409
+ # Dark mode color configuration
410
+ #
411
+ # @return [Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::Dark, nil]
412
+ optional :dark,
413
+ -> {
414
+ Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark
415
+ },
416
+ nil?: true
417
+
418
+ # @!attribute font_size
419
+ # Font size for the checkout UI
420
+ #
421
+ # @return [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::FontSize, nil]
422
+ optional :font_size,
423
+ enum: -> { Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize },
424
+ nil?: true
425
+
426
+ # @!attribute font_weight
427
+ # Font weight for the checkout UI
428
+ #
429
+ # @return [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight, nil]
430
+ optional :font_weight,
431
+ enum: -> { Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight },
432
+ nil?: true
433
+
434
+ # @!attribute light
435
+ # Light mode color configuration
436
+ #
437
+ # @return [Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::Light, nil]
438
+ optional :light,
439
+ -> { Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light },
440
+ nil?: true
441
+
442
+ # @!attribute pay_button_text
443
+ # Custom text for the pay button (e.g., "Complete Purchase", "Subscribe Now")
444
+ #
445
+ # @return [String, nil]
446
+ optional :pay_button_text, String, nil?: true
447
+
448
+ # @!attribute radius
449
+ # Border radius for UI elements (e.g., "4px", "0.5rem", "8px")
450
+ #
451
+ # @return [String, nil]
452
+ optional :radius, String, nil?: true
453
+
454
+ # @!method initialize(dark: nil, font_size: nil, font_weight: nil, light: nil, pay_button_text: nil, radius: nil)
455
+ # Optional custom theme configuration with colors for light and dark modes
456
+ #
457
+ # @param dark [Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::Dark, nil] Dark mode color configuration
458
+ #
459
+ # @param font_size [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::FontSize, nil] Font size for the checkout UI
460
+ #
461
+ # @param font_weight [Symbol, Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight, nil] Font weight for the checkout UI
462
+ #
463
+ # @param light [Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::Light, nil] Light mode color configuration
464
+ #
465
+ # @param pay_button_text [String, nil] Custom text for the pay button (e.g., "Complete Purchase", "Subscribe Now")
466
+ #
467
+ # @param radius [String, nil] Border radius for UI elements (e.g., "4px", "0.5rem", "8px")
468
+
469
+ # @see Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig#dark
470
+ class Dark < Dodopayments::Internal::Type::BaseModel
471
+ # @!attribute bg_primary
472
+ # Background primary color
473
+ #
474
+ # Examples: `"#ffffff"`, `"rgb(255, 255, 255)"`, `"white"`
475
+ #
476
+ # @return [String, nil]
477
+ optional :bg_primary, String, nil?: true
478
+
479
+ # @!attribute bg_secondary
480
+ # Background secondary color
481
+ #
482
+ # @return [String, nil]
483
+ optional :bg_secondary, String, nil?: true
484
+
485
+ # @!attribute border_primary
486
+ # Border primary color
487
+ #
488
+ # @return [String, nil]
489
+ optional :border_primary, String, nil?: true
490
+
491
+ # @!attribute border_secondary
492
+ # Border secondary color
493
+ #
494
+ # @return [String, nil]
495
+ optional :border_secondary, String, nil?: true
496
+
497
+ # @!attribute button_primary
498
+ # Primary button background color
499
+ #
500
+ # @return [String, nil]
501
+ optional :button_primary, String, nil?: true
502
+
503
+ # @!attribute button_primary_hover
504
+ # Primary button hover color
505
+ #
506
+ # @return [String, nil]
507
+ optional :button_primary_hover, String, nil?: true
508
+
509
+ # @!attribute button_secondary
510
+ # Secondary button background color
511
+ #
512
+ # @return [String, nil]
513
+ optional :button_secondary, String, nil?: true
514
+
515
+ # @!attribute button_secondary_hover
516
+ # Secondary button hover color
517
+ #
518
+ # @return [String, nil]
519
+ optional :button_secondary_hover, String, nil?: true
520
+
521
+ # @!attribute button_text_primary
522
+ # Primary button text color
523
+ #
524
+ # @return [String, nil]
525
+ optional :button_text_primary, String, nil?: true
526
+
527
+ # @!attribute button_text_secondary
528
+ # Secondary button text color
529
+ #
530
+ # @return [String, nil]
531
+ optional :button_text_secondary, String, nil?: true
532
+
533
+ # @!attribute input_focus_border
534
+ # Input focus border color
535
+ #
536
+ # @return [String, nil]
537
+ optional :input_focus_border, String, nil?: true
538
+
539
+ # @!attribute text_error
540
+ # Text error color
541
+ #
542
+ # @return [String, nil]
543
+ optional :text_error, String, nil?: true
544
+
545
+ # @!attribute text_placeholder
546
+ # Text placeholder color
547
+ #
548
+ # @return [String, nil]
549
+ optional :text_placeholder, String, nil?: true
550
+
551
+ # @!attribute text_primary
552
+ # Text primary color
553
+ #
554
+ # @return [String, nil]
555
+ optional :text_primary, String, nil?: true
556
+
557
+ # @!attribute text_secondary
558
+ # Text secondary color
559
+ #
560
+ # @return [String, nil]
561
+ optional :text_secondary, String, nil?: true
562
+
563
+ # @!attribute text_success
564
+ # Text success color
565
+ #
566
+ # @return [String, nil]
567
+ optional :text_success, String, nil?: true
568
+
569
+ # @!method initialize(bg_primary: nil, bg_secondary: nil, border_primary: nil, border_secondary: nil, button_primary: nil, button_primary_hover: nil, button_secondary: nil, button_secondary_hover: nil, button_text_primary: nil, button_text_secondary: nil, input_focus_border: nil, text_error: nil, text_placeholder: nil, text_primary: nil, text_secondary: nil, text_success: nil)
570
+ # Some parameter documentations has been truncated, see
571
+ # {Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::Dark}
572
+ # for more details.
573
+ #
574
+ # Dark mode color configuration
575
+ #
576
+ # @param bg_primary [String, nil] Background primary color
577
+ #
578
+ # @param bg_secondary [String, nil] Background secondary color
579
+ #
580
+ # @param border_primary [String, nil] Border primary color
581
+ #
582
+ # @param border_secondary [String, nil] Border secondary color
583
+ #
584
+ # @param button_primary [String, nil] Primary button background color
585
+ #
586
+ # @param button_primary_hover [String, nil] Primary button hover color
587
+ #
588
+ # @param button_secondary [String, nil] Secondary button background color
589
+ #
590
+ # @param button_secondary_hover [String, nil] Secondary button hover color
591
+ #
592
+ # @param button_text_primary [String, nil] Primary button text color
593
+ #
594
+ # @param button_text_secondary [String, nil] Secondary button text color
595
+ #
596
+ # @param input_focus_border [String, nil] Input focus border color
597
+ #
598
+ # @param text_error [String, nil] Text error color
599
+ #
600
+ # @param text_placeholder [String, nil] Text placeholder color
601
+ #
602
+ # @param text_primary [String, nil] Text primary color
603
+ #
604
+ # @param text_secondary [String, nil] Text secondary color
605
+ #
606
+ # @param text_success [String, nil] Text success color
607
+ end
608
+
609
+ # Font size for the checkout UI
610
+ #
611
+ # @see Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig#font_size
612
+ module FontSize
613
+ extend Dodopayments::Internal::Type::Enum
614
+
615
+ XS = :xs
616
+ SM = :sm
617
+ MD = :md
618
+ LG = :lg
619
+ XL = :xl
620
+ FONT_SIZE_2XL = :"2xl"
621
+
622
+ # @!method self.values
623
+ # @return [Array<Symbol>]
624
+ end
625
+
626
+ # Font weight for the checkout UI
627
+ #
628
+ # @see Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig#font_weight
629
+ module FontWeight
630
+ extend Dodopayments::Internal::Type::Enum
631
+
632
+ NORMAL = :normal
633
+ MEDIUM = :medium
634
+ BOLD = :bold
635
+ EXTRA_BOLD = :extraBold
636
+
637
+ # @!method self.values
638
+ # @return [Array<Symbol>]
639
+ end
640
+
641
+ # @see Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig#light
642
+ class Light < Dodopayments::Internal::Type::BaseModel
643
+ # @!attribute bg_primary
644
+ # Background primary color
645
+ #
646
+ # Examples: `"#ffffff"`, `"rgb(255, 255, 255)"`, `"white"`
647
+ #
648
+ # @return [String, nil]
649
+ optional :bg_primary, String, nil?: true
650
+
651
+ # @!attribute bg_secondary
652
+ # Background secondary color
653
+ #
654
+ # @return [String, nil]
655
+ optional :bg_secondary, String, nil?: true
656
+
657
+ # @!attribute border_primary
658
+ # Border primary color
659
+ #
660
+ # @return [String, nil]
661
+ optional :border_primary, String, nil?: true
662
+
663
+ # @!attribute border_secondary
664
+ # Border secondary color
665
+ #
666
+ # @return [String, nil]
667
+ optional :border_secondary, String, nil?: true
668
+
669
+ # @!attribute button_primary
670
+ # Primary button background color
671
+ #
672
+ # @return [String, nil]
673
+ optional :button_primary, String, nil?: true
674
+
675
+ # @!attribute button_primary_hover
676
+ # Primary button hover color
677
+ #
678
+ # @return [String, nil]
679
+ optional :button_primary_hover, String, nil?: true
680
+
681
+ # @!attribute button_secondary
682
+ # Secondary button background color
683
+ #
684
+ # @return [String, nil]
685
+ optional :button_secondary, String, nil?: true
686
+
687
+ # @!attribute button_secondary_hover
688
+ # Secondary button hover color
689
+ #
690
+ # @return [String, nil]
691
+ optional :button_secondary_hover, String, nil?: true
692
+
693
+ # @!attribute button_text_primary
694
+ # Primary button text color
695
+ #
696
+ # @return [String, nil]
697
+ optional :button_text_primary, String, nil?: true
698
+
699
+ # @!attribute button_text_secondary
700
+ # Secondary button text color
701
+ #
702
+ # @return [String, nil]
703
+ optional :button_text_secondary, String, nil?: true
704
+
705
+ # @!attribute input_focus_border
706
+ # Input focus border color
707
+ #
708
+ # @return [String, nil]
709
+ optional :input_focus_border, String, nil?: true
710
+
711
+ # @!attribute text_error
712
+ # Text error color
713
+ #
714
+ # @return [String, nil]
715
+ optional :text_error, String, nil?: true
716
+
717
+ # @!attribute text_placeholder
718
+ # Text placeholder color
719
+ #
720
+ # @return [String, nil]
721
+ optional :text_placeholder, String, nil?: true
722
+
723
+ # @!attribute text_primary
724
+ # Text primary color
725
+ #
726
+ # @return [String, nil]
727
+ optional :text_primary, String, nil?: true
728
+
729
+ # @!attribute text_secondary
730
+ # Text secondary color
731
+ #
732
+ # @return [String, nil]
733
+ optional :text_secondary, String, nil?: true
734
+
735
+ # @!attribute text_success
736
+ # Text success color
737
+ #
738
+ # @return [String, nil]
739
+ optional :text_success, String, nil?: true
740
+
741
+ # @!method initialize(bg_primary: nil, bg_secondary: nil, border_primary: nil, border_secondary: nil, button_primary: nil, button_primary_hover: nil, button_secondary: nil, button_secondary_hover: nil, button_text_primary: nil, button_text_secondary: nil, input_focus_border: nil, text_error: nil, text_placeholder: nil, text_primary: nil, text_secondary: nil, text_success: nil)
742
+ # Some parameter documentations has been truncated, see
743
+ # {Dodopayments::Models::CheckoutSessionRequest::Customization::ThemeConfig::Light}
744
+ # for more details.
745
+ #
746
+ # Light mode color configuration
747
+ #
748
+ # @param bg_primary [String, nil] Background primary color
749
+ #
750
+ # @param bg_secondary [String, nil] Background secondary color
751
+ #
752
+ # @param border_primary [String, nil] Border primary color
753
+ #
754
+ # @param border_secondary [String, nil] Border secondary color
755
+ #
756
+ # @param button_primary [String, nil] Primary button background color
757
+ #
758
+ # @param button_primary_hover [String, nil] Primary button hover color
759
+ #
760
+ # @param button_secondary [String, nil] Secondary button background color
761
+ #
762
+ # @param button_secondary_hover [String, nil] Secondary button hover color
763
+ #
764
+ # @param button_text_primary [String, nil] Primary button text color
765
+ #
766
+ # @param button_text_secondary [String, nil] Secondary button text color
767
+ #
768
+ # @param input_focus_border [String, nil] Input focus border color
769
+ #
770
+ # @param text_error [String, nil] Text error color
771
+ #
772
+ # @param text_placeholder [String, nil] Text placeholder color
773
+ #
774
+ # @param text_primary [String, nil] Text primary color
775
+ #
776
+ # @param text_secondary [String, nil] Text secondary color
777
+ #
778
+ # @param text_success [String, nil] Text success color
779
+ end
780
+ end
397
781
  end
398
782
 
399
783
  # @see Dodopayments::Models::CheckoutSessionRequest#feature_flags
@@ -28,6 +28,11 @@ module Dodopayments
28
28
  SUBSCRIPTION_PLAN_CHANGED = :"subscription.plan_changed"
29
29
  SUBSCRIPTION_UPDATED = :"subscription.updated"
30
30
  LICENSE_KEY_CREATED = :"license_key.created"
31
+ PAYOUT_NOT_INITIATED = :"payout.not_initiated"
32
+ PAYOUT_ON_HOLD = :"payout.on_hold"
33
+ PAYOUT_IN_PROGRESS = :"payout.in_progress"
34
+ PAYOUT_FAILED = :"payout.failed"
35
+ PAYOUT_SUCCESS = :"payout.success"
31
36
 
32
37
  # @!method self.values
33
38
  # @return [Array<Symbol>]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "1.75.1"
4
+ VERSION = "1.78.0"
5
5
  end