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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/checkout_session_request.rb +390 -6
- data/lib/dodopayments/models/webhook_event_type.rb +5 -0
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/checkout_session_request.rbi +600 -16
- data/rbi/dodopayments/models/webhook_event_type.rbi +16 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +263 -14
- data/sig/dodopayments/models/webhook_event_type.rbs +10 -0
- metadata +2 -2
|
@@ -553,21 +553,11 @@ module Dodopayments
|
|
|
553
553
|
:url,
|
|
554
554
|
Dodopayments::CheckoutSessionRequest::CustomField::FieldType::TaggedSymbol
|
|
555
555
|
)
|
|
556
|
-
PHONE =
|
|
557
|
-
T.let(
|
|
558
|
-
:phone,
|
|
559
|
-
Dodopayments::CheckoutSessionRequest::CustomField::FieldType::TaggedSymbol
|
|
560
|
-
)
|
|
561
556
|
DATE =
|
|
562
557
|
T.let(
|
|
563
558
|
:date,
|
|
564
559
|
Dodopayments::CheckoutSessionRequest::CustomField::FieldType::TaggedSymbol
|
|
565
560
|
)
|
|
566
|
-
DATETIME =
|
|
567
|
-
T.let(
|
|
568
|
-
:datetime,
|
|
569
|
-
Dodopayments::CheckoutSessionRequest::CustomField::FieldType::TaggedSymbol
|
|
570
|
-
)
|
|
571
561
|
DROPDOWN =
|
|
572
562
|
T.let(
|
|
573
563
|
:dropdown,
|
|
@@ -622,7 +612,7 @@ module Dodopayments
|
|
|
622
612
|
sig { params(show_order_details: T::Boolean).void }
|
|
623
613
|
attr_writer :show_order_details
|
|
624
614
|
|
|
625
|
-
# Theme of the page
|
|
615
|
+
# Theme of the page (determines which mode - light/dark/system - to use)
|
|
626
616
|
#
|
|
627
617
|
# Default is `System`.
|
|
628
618
|
sig do
|
|
@@ -642,6 +632,26 @@ module Dodopayments
|
|
|
642
632
|
end
|
|
643
633
|
attr_writer :theme
|
|
644
634
|
|
|
635
|
+
# Optional custom theme configuration with colors for light and dark modes
|
|
636
|
+
sig do
|
|
637
|
+
returns(
|
|
638
|
+
T.nilable(
|
|
639
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig
|
|
640
|
+
)
|
|
641
|
+
)
|
|
642
|
+
end
|
|
643
|
+
attr_reader :theme_config
|
|
644
|
+
|
|
645
|
+
sig do
|
|
646
|
+
params(
|
|
647
|
+
theme_config:
|
|
648
|
+
T.nilable(
|
|
649
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::OrHash
|
|
650
|
+
)
|
|
651
|
+
).void
|
|
652
|
+
end
|
|
653
|
+
attr_writer :theme_config
|
|
654
|
+
|
|
645
655
|
# Customization for the checkout session page
|
|
646
656
|
sig do
|
|
647
657
|
params(
|
|
@@ -649,7 +659,11 @@ module Dodopayments
|
|
|
649
659
|
show_on_demand_tag: T::Boolean,
|
|
650
660
|
show_order_details: T::Boolean,
|
|
651
661
|
theme:
|
|
652
|
-
Dodopayments::CheckoutSessionRequest::Customization::Theme::OrSymbol
|
|
662
|
+
Dodopayments::CheckoutSessionRequest::Customization::Theme::OrSymbol,
|
|
663
|
+
theme_config:
|
|
664
|
+
T.nilable(
|
|
665
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::OrHash
|
|
666
|
+
)
|
|
653
667
|
).returns(T.attached_class)
|
|
654
668
|
end
|
|
655
669
|
def self.new(
|
|
@@ -663,10 +677,12 @@ module Dodopayments
|
|
|
663
677
|
#
|
|
664
678
|
# Default is true
|
|
665
679
|
show_order_details: nil,
|
|
666
|
-
# Theme of the page
|
|
680
|
+
# Theme of the page (determines which mode - light/dark/system - to use)
|
|
667
681
|
#
|
|
668
682
|
# Default is `System`.
|
|
669
|
-
theme: nil
|
|
683
|
+
theme: nil,
|
|
684
|
+
# Optional custom theme configuration with colors for light and dark modes
|
|
685
|
+
theme_config: nil
|
|
670
686
|
)
|
|
671
687
|
end
|
|
672
688
|
|
|
@@ -677,14 +693,18 @@ module Dodopayments
|
|
|
677
693
|
show_on_demand_tag: T::Boolean,
|
|
678
694
|
show_order_details: T::Boolean,
|
|
679
695
|
theme:
|
|
680
|
-
Dodopayments::CheckoutSessionRequest::Customization::Theme::OrSymbol
|
|
696
|
+
Dodopayments::CheckoutSessionRequest::Customization::Theme::OrSymbol,
|
|
697
|
+
theme_config:
|
|
698
|
+
T.nilable(
|
|
699
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig
|
|
700
|
+
)
|
|
681
701
|
}
|
|
682
702
|
)
|
|
683
703
|
end
|
|
684
704
|
def to_hash
|
|
685
705
|
end
|
|
686
706
|
|
|
687
|
-
# Theme of the page
|
|
707
|
+
# Theme of the page (determines which mode - light/dark/system - to use)
|
|
688
708
|
#
|
|
689
709
|
# Default is `System`.
|
|
690
710
|
module Theme
|
|
@@ -725,6 +745,570 @@ module Dodopayments
|
|
|
725
745
|
def self.values
|
|
726
746
|
end
|
|
727
747
|
end
|
|
748
|
+
|
|
749
|
+
class ThemeConfig < Dodopayments::Internal::Type::BaseModel
|
|
750
|
+
OrHash =
|
|
751
|
+
T.type_alias do
|
|
752
|
+
T.any(
|
|
753
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig,
|
|
754
|
+
Dodopayments::Internal::AnyHash
|
|
755
|
+
)
|
|
756
|
+
end
|
|
757
|
+
|
|
758
|
+
# Dark mode color configuration
|
|
759
|
+
sig do
|
|
760
|
+
returns(
|
|
761
|
+
T.nilable(
|
|
762
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark
|
|
763
|
+
)
|
|
764
|
+
)
|
|
765
|
+
end
|
|
766
|
+
attr_reader :dark
|
|
767
|
+
|
|
768
|
+
sig do
|
|
769
|
+
params(
|
|
770
|
+
dark:
|
|
771
|
+
T.nilable(
|
|
772
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark::OrHash
|
|
773
|
+
)
|
|
774
|
+
).void
|
|
775
|
+
end
|
|
776
|
+
attr_writer :dark
|
|
777
|
+
|
|
778
|
+
# Font size for the checkout UI
|
|
779
|
+
sig do
|
|
780
|
+
returns(
|
|
781
|
+
T.nilable(
|
|
782
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::OrSymbol
|
|
783
|
+
)
|
|
784
|
+
)
|
|
785
|
+
end
|
|
786
|
+
attr_accessor :font_size
|
|
787
|
+
|
|
788
|
+
# Font weight for the checkout UI
|
|
789
|
+
sig do
|
|
790
|
+
returns(
|
|
791
|
+
T.nilable(
|
|
792
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::OrSymbol
|
|
793
|
+
)
|
|
794
|
+
)
|
|
795
|
+
end
|
|
796
|
+
attr_accessor :font_weight
|
|
797
|
+
|
|
798
|
+
# Light mode color configuration
|
|
799
|
+
sig do
|
|
800
|
+
returns(
|
|
801
|
+
T.nilable(
|
|
802
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light
|
|
803
|
+
)
|
|
804
|
+
)
|
|
805
|
+
end
|
|
806
|
+
attr_reader :light
|
|
807
|
+
|
|
808
|
+
sig do
|
|
809
|
+
params(
|
|
810
|
+
light:
|
|
811
|
+
T.nilable(
|
|
812
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light::OrHash
|
|
813
|
+
)
|
|
814
|
+
).void
|
|
815
|
+
end
|
|
816
|
+
attr_writer :light
|
|
817
|
+
|
|
818
|
+
# Custom text for the pay button (e.g., "Complete Purchase", "Subscribe Now")
|
|
819
|
+
sig { returns(T.nilable(String)) }
|
|
820
|
+
attr_accessor :pay_button_text
|
|
821
|
+
|
|
822
|
+
# Border radius for UI elements (e.g., "4px", "0.5rem", "8px")
|
|
823
|
+
sig { returns(T.nilable(String)) }
|
|
824
|
+
attr_accessor :radius
|
|
825
|
+
|
|
826
|
+
# Optional custom theme configuration with colors for light and dark modes
|
|
827
|
+
sig do
|
|
828
|
+
params(
|
|
829
|
+
dark:
|
|
830
|
+
T.nilable(
|
|
831
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark::OrHash
|
|
832
|
+
),
|
|
833
|
+
font_size:
|
|
834
|
+
T.nilable(
|
|
835
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::OrSymbol
|
|
836
|
+
),
|
|
837
|
+
font_weight:
|
|
838
|
+
T.nilable(
|
|
839
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::OrSymbol
|
|
840
|
+
),
|
|
841
|
+
light:
|
|
842
|
+
T.nilable(
|
|
843
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light::OrHash
|
|
844
|
+
),
|
|
845
|
+
pay_button_text: T.nilable(String),
|
|
846
|
+
radius: T.nilable(String)
|
|
847
|
+
).returns(T.attached_class)
|
|
848
|
+
end
|
|
849
|
+
def self.new(
|
|
850
|
+
# Dark mode color configuration
|
|
851
|
+
dark: nil,
|
|
852
|
+
# Font size for the checkout UI
|
|
853
|
+
font_size: nil,
|
|
854
|
+
# Font weight for the checkout UI
|
|
855
|
+
font_weight: nil,
|
|
856
|
+
# Light mode color configuration
|
|
857
|
+
light: nil,
|
|
858
|
+
# Custom text for the pay button (e.g., "Complete Purchase", "Subscribe Now")
|
|
859
|
+
pay_button_text: nil,
|
|
860
|
+
# Border radius for UI elements (e.g., "4px", "0.5rem", "8px")
|
|
861
|
+
radius: nil
|
|
862
|
+
)
|
|
863
|
+
end
|
|
864
|
+
|
|
865
|
+
sig do
|
|
866
|
+
override.returns(
|
|
867
|
+
{
|
|
868
|
+
dark:
|
|
869
|
+
T.nilable(
|
|
870
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark
|
|
871
|
+
),
|
|
872
|
+
font_size:
|
|
873
|
+
T.nilable(
|
|
874
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::OrSymbol
|
|
875
|
+
),
|
|
876
|
+
font_weight:
|
|
877
|
+
T.nilable(
|
|
878
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::OrSymbol
|
|
879
|
+
),
|
|
880
|
+
light:
|
|
881
|
+
T.nilable(
|
|
882
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light
|
|
883
|
+
),
|
|
884
|
+
pay_button_text: T.nilable(String),
|
|
885
|
+
radius: T.nilable(String)
|
|
886
|
+
}
|
|
887
|
+
)
|
|
888
|
+
end
|
|
889
|
+
def to_hash
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
class Dark < Dodopayments::Internal::Type::BaseModel
|
|
893
|
+
OrHash =
|
|
894
|
+
T.type_alias do
|
|
895
|
+
T.any(
|
|
896
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Dark,
|
|
897
|
+
Dodopayments::Internal::AnyHash
|
|
898
|
+
)
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
# Background primary color
|
|
902
|
+
#
|
|
903
|
+
# Examples: `"#ffffff"`, `"rgb(255, 255, 255)"`, `"white"`
|
|
904
|
+
sig { returns(T.nilable(String)) }
|
|
905
|
+
attr_accessor :bg_primary
|
|
906
|
+
|
|
907
|
+
# Background secondary color
|
|
908
|
+
sig { returns(T.nilable(String)) }
|
|
909
|
+
attr_accessor :bg_secondary
|
|
910
|
+
|
|
911
|
+
# Border primary color
|
|
912
|
+
sig { returns(T.nilable(String)) }
|
|
913
|
+
attr_accessor :border_primary
|
|
914
|
+
|
|
915
|
+
# Border secondary color
|
|
916
|
+
sig { returns(T.nilable(String)) }
|
|
917
|
+
attr_accessor :border_secondary
|
|
918
|
+
|
|
919
|
+
# Primary button background color
|
|
920
|
+
sig { returns(T.nilable(String)) }
|
|
921
|
+
attr_accessor :button_primary
|
|
922
|
+
|
|
923
|
+
# Primary button hover color
|
|
924
|
+
sig { returns(T.nilable(String)) }
|
|
925
|
+
attr_accessor :button_primary_hover
|
|
926
|
+
|
|
927
|
+
# Secondary button background color
|
|
928
|
+
sig { returns(T.nilable(String)) }
|
|
929
|
+
attr_accessor :button_secondary
|
|
930
|
+
|
|
931
|
+
# Secondary button hover color
|
|
932
|
+
sig { returns(T.nilable(String)) }
|
|
933
|
+
attr_accessor :button_secondary_hover
|
|
934
|
+
|
|
935
|
+
# Primary button text color
|
|
936
|
+
sig { returns(T.nilable(String)) }
|
|
937
|
+
attr_accessor :button_text_primary
|
|
938
|
+
|
|
939
|
+
# Secondary button text color
|
|
940
|
+
sig { returns(T.nilable(String)) }
|
|
941
|
+
attr_accessor :button_text_secondary
|
|
942
|
+
|
|
943
|
+
# Input focus border color
|
|
944
|
+
sig { returns(T.nilable(String)) }
|
|
945
|
+
attr_accessor :input_focus_border
|
|
946
|
+
|
|
947
|
+
# Text error color
|
|
948
|
+
sig { returns(T.nilable(String)) }
|
|
949
|
+
attr_accessor :text_error
|
|
950
|
+
|
|
951
|
+
# Text placeholder color
|
|
952
|
+
sig { returns(T.nilable(String)) }
|
|
953
|
+
attr_accessor :text_placeholder
|
|
954
|
+
|
|
955
|
+
# Text primary color
|
|
956
|
+
sig { returns(T.nilable(String)) }
|
|
957
|
+
attr_accessor :text_primary
|
|
958
|
+
|
|
959
|
+
# Text secondary color
|
|
960
|
+
sig { returns(T.nilable(String)) }
|
|
961
|
+
attr_accessor :text_secondary
|
|
962
|
+
|
|
963
|
+
# Text success color
|
|
964
|
+
sig { returns(T.nilable(String)) }
|
|
965
|
+
attr_accessor :text_success
|
|
966
|
+
|
|
967
|
+
# Dark mode color configuration
|
|
968
|
+
sig do
|
|
969
|
+
params(
|
|
970
|
+
bg_primary: T.nilable(String),
|
|
971
|
+
bg_secondary: T.nilable(String),
|
|
972
|
+
border_primary: T.nilable(String),
|
|
973
|
+
border_secondary: T.nilable(String),
|
|
974
|
+
button_primary: T.nilable(String),
|
|
975
|
+
button_primary_hover: T.nilable(String),
|
|
976
|
+
button_secondary: T.nilable(String),
|
|
977
|
+
button_secondary_hover: T.nilable(String),
|
|
978
|
+
button_text_primary: T.nilable(String),
|
|
979
|
+
button_text_secondary: T.nilable(String),
|
|
980
|
+
input_focus_border: T.nilable(String),
|
|
981
|
+
text_error: T.nilable(String),
|
|
982
|
+
text_placeholder: T.nilable(String),
|
|
983
|
+
text_primary: T.nilable(String),
|
|
984
|
+
text_secondary: T.nilable(String),
|
|
985
|
+
text_success: T.nilable(String)
|
|
986
|
+
).returns(T.attached_class)
|
|
987
|
+
end
|
|
988
|
+
def self.new(
|
|
989
|
+
# Background primary color
|
|
990
|
+
#
|
|
991
|
+
# Examples: `"#ffffff"`, `"rgb(255, 255, 255)"`, `"white"`
|
|
992
|
+
bg_primary: nil,
|
|
993
|
+
# Background secondary color
|
|
994
|
+
bg_secondary: nil,
|
|
995
|
+
# Border primary color
|
|
996
|
+
border_primary: nil,
|
|
997
|
+
# Border secondary color
|
|
998
|
+
border_secondary: nil,
|
|
999
|
+
# Primary button background color
|
|
1000
|
+
button_primary: nil,
|
|
1001
|
+
# Primary button hover color
|
|
1002
|
+
button_primary_hover: nil,
|
|
1003
|
+
# Secondary button background color
|
|
1004
|
+
button_secondary: nil,
|
|
1005
|
+
# Secondary button hover color
|
|
1006
|
+
button_secondary_hover: nil,
|
|
1007
|
+
# Primary button text color
|
|
1008
|
+
button_text_primary: nil,
|
|
1009
|
+
# Secondary button text color
|
|
1010
|
+
button_text_secondary: nil,
|
|
1011
|
+
# Input focus border color
|
|
1012
|
+
input_focus_border: nil,
|
|
1013
|
+
# Text error color
|
|
1014
|
+
text_error: nil,
|
|
1015
|
+
# Text placeholder color
|
|
1016
|
+
text_placeholder: nil,
|
|
1017
|
+
# Text primary color
|
|
1018
|
+
text_primary: nil,
|
|
1019
|
+
# Text secondary color
|
|
1020
|
+
text_secondary: nil,
|
|
1021
|
+
# Text success color
|
|
1022
|
+
text_success: nil
|
|
1023
|
+
)
|
|
1024
|
+
end
|
|
1025
|
+
|
|
1026
|
+
sig do
|
|
1027
|
+
override.returns(
|
|
1028
|
+
{
|
|
1029
|
+
bg_primary: T.nilable(String),
|
|
1030
|
+
bg_secondary: T.nilable(String),
|
|
1031
|
+
border_primary: T.nilable(String),
|
|
1032
|
+
border_secondary: T.nilable(String),
|
|
1033
|
+
button_primary: T.nilable(String),
|
|
1034
|
+
button_primary_hover: T.nilable(String),
|
|
1035
|
+
button_secondary: T.nilable(String),
|
|
1036
|
+
button_secondary_hover: T.nilable(String),
|
|
1037
|
+
button_text_primary: T.nilable(String),
|
|
1038
|
+
button_text_secondary: T.nilable(String),
|
|
1039
|
+
input_focus_border: T.nilable(String),
|
|
1040
|
+
text_error: T.nilable(String),
|
|
1041
|
+
text_placeholder: T.nilable(String),
|
|
1042
|
+
text_primary: T.nilable(String),
|
|
1043
|
+
text_secondary: T.nilable(String),
|
|
1044
|
+
text_success: T.nilable(String)
|
|
1045
|
+
}
|
|
1046
|
+
)
|
|
1047
|
+
end
|
|
1048
|
+
def to_hash
|
|
1049
|
+
end
|
|
1050
|
+
end
|
|
1051
|
+
|
|
1052
|
+
# Font size for the checkout UI
|
|
1053
|
+
module FontSize
|
|
1054
|
+
extend Dodopayments::Internal::Type::Enum
|
|
1055
|
+
|
|
1056
|
+
TaggedSymbol =
|
|
1057
|
+
T.type_alias do
|
|
1058
|
+
T.all(
|
|
1059
|
+
Symbol,
|
|
1060
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize
|
|
1061
|
+
)
|
|
1062
|
+
end
|
|
1063
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1064
|
+
|
|
1065
|
+
XS =
|
|
1066
|
+
T.let(
|
|
1067
|
+
:xs,
|
|
1068
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::TaggedSymbol
|
|
1069
|
+
)
|
|
1070
|
+
SM =
|
|
1071
|
+
T.let(
|
|
1072
|
+
:sm,
|
|
1073
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::TaggedSymbol
|
|
1074
|
+
)
|
|
1075
|
+
MD =
|
|
1076
|
+
T.let(
|
|
1077
|
+
:md,
|
|
1078
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::TaggedSymbol
|
|
1079
|
+
)
|
|
1080
|
+
LG =
|
|
1081
|
+
T.let(
|
|
1082
|
+
:lg,
|
|
1083
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::TaggedSymbol
|
|
1084
|
+
)
|
|
1085
|
+
XL =
|
|
1086
|
+
T.let(
|
|
1087
|
+
:xl,
|
|
1088
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::TaggedSymbol
|
|
1089
|
+
)
|
|
1090
|
+
FONT_SIZE_2XL =
|
|
1091
|
+
T.let(
|
|
1092
|
+
:"2xl",
|
|
1093
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::TaggedSymbol
|
|
1094
|
+
)
|
|
1095
|
+
|
|
1096
|
+
sig do
|
|
1097
|
+
override.returns(
|
|
1098
|
+
T::Array[
|
|
1099
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontSize::TaggedSymbol
|
|
1100
|
+
]
|
|
1101
|
+
)
|
|
1102
|
+
end
|
|
1103
|
+
def self.values
|
|
1104
|
+
end
|
|
1105
|
+
end
|
|
1106
|
+
|
|
1107
|
+
# Font weight for the checkout UI
|
|
1108
|
+
module FontWeight
|
|
1109
|
+
extend Dodopayments::Internal::Type::Enum
|
|
1110
|
+
|
|
1111
|
+
TaggedSymbol =
|
|
1112
|
+
T.type_alias do
|
|
1113
|
+
T.all(
|
|
1114
|
+
Symbol,
|
|
1115
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight
|
|
1116
|
+
)
|
|
1117
|
+
end
|
|
1118
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1119
|
+
|
|
1120
|
+
NORMAL =
|
|
1121
|
+
T.let(
|
|
1122
|
+
:normal,
|
|
1123
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::TaggedSymbol
|
|
1124
|
+
)
|
|
1125
|
+
MEDIUM =
|
|
1126
|
+
T.let(
|
|
1127
|
+
:medium,
|
|
1128
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::TaggedSymbol
|
|
1129
|
+
)
|
|
1130
|
+
BOLD =
|
|
1131
|
+
T.let(
|
|
1132
|
+
:bold,
|
|
1133
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::TaggedSymbol
|
|
1134
|
+
)
|
|
1135
|
+
EXTRA_BOLD =
|
|
1136
|
+
T.let(
|
|
1137
|
+
:extraBold,
|
|
1138
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::TaggedSymbol
|
|
1139
|
+
)
|
|
1140
|
+
|
|
1141
|
+
sig do
|
|
1142
|
+
override.returns(
|
|
1143
|
+
T::Array[
|
|
1144
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::FontWeight::TaggedSymbol
|
|
1145
|
+
]
|
|
1146
|
+
)
|
|
1147
|
+
end
|
|
1148
|
+
def self.values
|
|
1149
|
+
end
|
|
1150
|
+
end
|
|
1151
|
+
|
|
1152
|
+
class Light < Dodopayments::Internal::Type::BaseModel
|
|
1153
|
+
OrHash =
|
|
1154
|
+
T.type_alias do
|
|
1155
|
+
T.any(
|
|
1156
|
+
Dodopayments::CheckoutSessionRequest::Customization::ThemeConfig::Light,
|
|
1157
|
+
Dodopayments::Internal::AnyHash
|
|
1158
|
+
)
|
|
1159
|
+
end
|
|
1160
|
+
|
|
1161
|
+
# Background primary color
|
|
1162
|
+
#
|
|
1163
|
+
# Examples: `"#ffffff"`, `"rgb(255, 255, 255)"`, `"white"`
|
|
1164
|
+
sig { returns(T.nilable(String)) }
|
|
1165
|
+
attr_accessor :bg_primary
|
|
1166
|
+
|
|
1167
|
+
# Background secondary color
|
|
1168
|
+
sig { returns(T.nilable(String)) }
|
|
1169
|
+
attr_accessor :bg_secondary
|
|
1170
|
+
|
|
1171
|
+
# Border primary color
|
|
1172
|
+
sig { returns(T.nilable(String)) }
|
|
1173
|
+
attr_accessor :border_primary
|
|
1174
|
+
|
|
1175
|
+
# Border secondary color
|
|
1176
|
+
sig { returns(T.nilable(String)) }
|
|
1177
|
+
attr_accessor :border_secondary
|
|
1178
|
+
|
|
1179
|
+
# Primary button background color
|
|
1180
|
+
sig { returns(T.nilable(String)) }
|
|
1181
|
+
attr_accessor :button_primary
|
|
1182
|
+
|
|
1183
|
+
# Primary button hover color
|
|
1184
|
+
sig { returns(T.nilable(String)) }
|
|
1185
|
+
attr_accessor :button_primary_hover
|
|
1186
|
+
|
|
1187
|
+
# Secondary button background color
|
|
1188
|
+
sig { returns(T.nilable(String)) }
|
|
1189
|
+
attr_accessor :button_secondary
|
|
1190
|
+
|
|
1191
|
+
# Secondary button hover color
|
|
1192
|
+
sig { returns(T.nilable(String)) }
|
|
1193
|
+
attr_accessor :button_secondary_hover
|
|
1194
|
+
|
|
1195
|
+
# Primary button text color
|
|
1196
|
+
sig { returns(T.nilable(String)) }
|
|
1197
|
+
attr_accessor :button_text_primary
|
|
1198
|
+
|
|
1199
|
+
# Secondary button text color
|
|
1200
|
+
sig { returns(T.nilable(String)) }
|
|
1201
|
+
attr_accessor :button_text_secondary
|
|
1202
|
+
|
|
1203
|
+
# Input focus border color
|
|
1204
|
+
sig { returns(T.nilable(String)) }
|
|
1205
|
+
attr_accessor :input_focus_border
|
|
1206
|
+
|
|
1207
|
+
# Text error color
|
|
1208
|
+
sig { returns(T.nilable(String)) }
|
|
1209
|
+
attr_accessor :text_error
|
|
1210
|
+
|
|
1211
|
+
# Text placeholder color
|
|
1212
|
+
sig { returns(T.nilable(String)) }
|
|
1213
|
+
attr_accessor :text_placeholder
|
|
1214
|
+
|
|
1215
|
+
# Text primary color
|
|
1216
|
+
sig { returns(T.nilable(String)) }
|
|
1217
|
+
attr_accessor :text_primary
|
|
1218
|
+
|
|
1219
|
+
# Text secondary color
|
|
1220
|
+
sig { returns(T.nilable(String)) }
|
|
1221
|
+
attr_accessor :text_secondary
|
|
1222
|
+
|
|
1223
|
+
# Text success color
|
|
1224
|
+
sig { returns(T.nilable(String)) }
|
|
1225
|
+
attr_accessor :text_success
|
|
1226
|
+
|
|
1227
|
+
# Light mode color configuration
|
|
1228
|
+
sig do
|
|
1229
|
+
params(
|
|
1230
|
+
bg_primary: T.nilable(String),
|
|
1231
|
+
bg_secondary: T.nilable(String),
|
|
1232
|
+
border_primary: T.nilable(String),
|
|
1233
|
+
border_secondary: T.nilable(String),
|
|
1234
|
+
button_primary: T.nilable(String),
|
|
1235
|
+
button_primary_hover: T.nilable(String),
|
|
1236
|
+
button_secondary: T.nilable(String),
|
|
1237
|
+
button_secondary_hover: T.nilable(String),
|
|
1238
|
+
button_text_primary: T.nilable(String),
|
|
1239
|
+
button_text_secondary: T.nilable(String),
|
|
1240
|
+
input_focus_border: T.nilable(String),
|
|
1241
|
+
text_error: T.nilable(String),
|
|
1242
|
+
text_placeholder: T.nilable(String),
|
|
1243
|
+
text_primary: T.nilable(String),
|
|
1244
|
+
text_secondary: T.nilable(String),
|
|
1245
|
+
text_success: T.nilable(String)
|
|
1246
|
+
).returns(T.attached_class)
|
|
1247
|
+
end
|
|
1248
|
+
def self.new(
|
|
1249
|
+
# Background primary color
|
|
1250
|
+
#
|
|
1251
|
+
# Examples: `"#ffffff"`, `"rgb(255, 255, 255)"`, `"white"`
|
|
1252
|
+
bg_primary: nil,
|
|
1253
|
+
# Background secondary color
|
|
1254
|
+
bg_secondary: nil,
|
|
1255
|
+
# Border primary color
|
|
1256
|
+
border_primary: nil,
|
|
1257
|
+
# Border secondary color
|
|
1258
|
+
border_secondary: nil,
|
|
1259
|
+
# Primary button background color
|
|
1260
|
+
button_primary: nil,
|
|
1261
|
+
# Primary button hover color
|
|
1262
|
+
button_primary_hover: nil,
|
|
1263
|
+
# Secondary button background color
|
|
1264
|
+
button_secondary: nil,
|
|
1265
|
+
# Secondary button hover color
|
|
1266
|
+
button_secondary_hover: nil,
|
|
1267
|
+
# Primary button text color
|
|
1268
|
+
button_text_primary: nil,
|
|
1269
|
+
# Secondary button text color
|
|
1270
|
+
button_text_secondary: nil,
|
|
1271
|
+
# Input focus border color
|
|
1272
|
+
input_focus_border: nil,
|
|
1273
|
+
# Text error color
|
|
1274
|
+
text_error: nil,
|
|
1275
|
+
# Text placeholder color
|
|
1276
|
+
text_placeholder: nil,
|
|
1277
|
+
# Text primary color
|
|
1278
|
+
text_primary: nil,
|
|
1279
|
+
# Text secondary color
|
|
1280
|
+
text_secondary: nil,
|
|
1281
|
+
# Text success color
|
|
1282
|
+
text_success: nil
|
|
1283
|
+
)
|
|
1284
|
+
end
|
|
1285
|
+
|
|
1286
|
+
sig do
|
|
1287
|
+
override.returns(
|
|
1288
|
+
{
|
|
1289
|
+
bg_primary: T.nilable(String),
|
|
1290
|
+
bg_secondary: T.nilable(String),
|
|
1291
|
+
border_primary: T.nilable(String),
|
|
1292
|
+
border_secondary: T.nilable(String),
|
|
1293
|
+
button_primary: T.nilable(String),
|
|
1294
|
+
button_primary_hover: T.nilable(String),
|
|
1295
|
+
button_secondary: T.nilable(String),
|
|
1296
|
+
button_secondary_hover: T.nilable(String),
|
|
1297
|
+
button_text_primary: T.nilable(String),
|
|
1298
|
+
button_text_secondary: T.nilable(String),
|
|
1299
|
+
input_focus_border: T.nilable(String),
|
|
1300
|
+
text_error: T.nilable(String),
|
|
1301
|
+
text_placeholder: T.nilable(String),
|
|
1302
|
+
text_primary: T.nilable(String),
|
|
1303
|
+
text_secondary: T.nilable(String),
|
|
1304
|
+
text_success: T.nilable(String)
|
|
1305
|
+
}
|
|
1306
|
+
)
|
|
1307
|
+
end
|
|
1308
|
+
def to_hash
|
|
1309
|
+
end
|
|
1310
|
+
end
|
|
1311
|
+
end
|
|
728
1312
|
end
|
|
729
1313
|
|
|
730
1314
|
class FeatureFlags < Dodopayments::Internal::Type::BaseModel
|
|
@@ -96,6 +96,22 @@ module Dodopayments
|
|
|
96
96
|
:"license_key.created",
|
|
97
97
|
Dodopayments::WebhookEventType::TaggedSymbol
|
|
98
98
|
)
|
|
99
|
+
PAYOUT_NOT_INITIATED =
|
|
100
|
+
T.let(
|
|
101
|
+
:"payout.not_initiated",
|
|
102
|
+
Dodopayments::WebhookEventType::TaggedSymbol
|
|
103
|
+
)
|
|
104
|
+
PAYOUT_ON_HOLD =
|
|
105
|
+
T.let(:"payout.on_hold", Dodopayments::WebhookEventType::TaggedSymbol)
|
|
106
|
+
PAYOUT_IN_PROGRESS =
|
|
107
|
+
T.let(
|
|
108
|
+
:"payout.in_progress",
|
|
109
|
+
Dodopayments::WebhookEventType::TaggedSymbol
|
|
110
|
+
)
|
|
111
|
+
PAYOUT_FAILED =
|
|
112
|
+
T.let(:"payout.failed", Dodopayments::WebhookEventType::TaggedSymbol)
|
|
113
|
+
PAYOUT_SUCCESS =
|
|
114
|
+
T.let(:"payout.success", Dodopayments::WebhookEventType::TaggedSymbol)
|
|
99
115
|
|
|
100
116
|
sig do
|
|
101
117
|
override.returns(T::Array[Dodopayments::WebhookEventType::TaggedSymbol])
|