increase 1.237.0 → 1.239.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 +16 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +4 -0
- data/lib/increase/models/beneficial_owner_list_params.rb +54 -0
- data/lib/increase/models/beneficial_owner_retrieve_params.rb +22 -0
- data/lib/increase/models/card_payment.rb +139 -90
- data/lib/increase/models/entity.rb +3 -207
- data/lib/increase/models/entity_beneficial_owner.rb +238 -0
- data/lib/increase/models/real_time_decision.rb +138 -86
- data/lib/increase/models.rb +6 -0
- data/lib/increase/resources/beneficial_owners.rb +67 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +4 -0
- data/rbi/increase/client.rbi +3 -0
- data/rbi/increase/models/beneficial_owner_list_params.rbi +89 -0
- data/rbi/increase/models/beneficial_owner_retrieve_params.rbi +46 -0
- data/rbi/increase/models/card_payment.rbi +316 -165
- data/rbi/increase/models/entity.rbi +3 -403
- data/rbi/increase/models/entity_beneficial_owner.rbi +412 -0
- data/rbi/increase/models/real_time_decision.rbi +316 -165
- data/rbi/increase/models.rbi +7 -0
- data/rbi/increase/resources/beneficial_owners.rbi +54 -0
- data/sig/increase/client.rbs +2 -0
- data/sig/increase/models/beneficial_owner_list_params.rbs +47 -0
- data/sig/increase/models/beneficial_owner_retrieve_params.rbs +24 -0
- data/sig/increase/models/card_payment.rbs +115 -67
- data/sig/increase/models/entity.rbs +4 -174
- data/sig/increase/models/entity_beneficial_owner.rbs +193 -0
- data/sig/increase/models/real_time_decision.rbs +114 -67
- data/sig/increase/models.rbs +6 -0
- data/sig/increase/resources/beneficial_owners.rbs +20 -0
- metadata +14 -2
|
@@ -682,16 +682,6 @@ module Increase
|
|
|
682
682
|
sig { returns(T.nilable(String)) }
|
|
683
683
|
attr_accessor :cardholder_name
|
|
684
684
|
|
|
685
|
-
# The category of the card authentication attempt.
|
|
686
|
-
sig do
|
|
687
|
-
returns(
|
|
688
|
-
T.nilable(
|
|
689
|
-
Increase::CardPayment::Element::CardAuthentication::Category::TaggedSymbol
|
|
690
|
-
)
|
|
691
|
-
)
|
|
692
|
-
end
|
|
693
|
-
attr_accessor :category
|
|
694
|
-
|
|
695
685
|
# Details about the challenge, if one was requested.
|
|
696
686
|
sig do
|
|
697
687
|
returns(
|
|
@@ -766,25 +756,27 @@ module Increase
|
|
|
766
756
|
sig { returns(T.nilable(String)) }
|
|
767
757
|
attr_accessor :merchant_name
|
|
768
758
|
|
|
759
|
+
# The message category of the card authentication attempt.
|
|
760
|
+
sig do
|
|
761
|
+
returns(
|
|
762
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory
|
|
763
|
+
)
|
|
764
|
+
end
|
|
765
|
+
attr_reader :message_category
|
|
766
|
+
|
|
767
|
+
sig do
|
|
768
|
+
params(
|
|
769
|
+
message_category:
|
|
770
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::OrHash
|
|
771
|
+
).void
|
|
772
|
+
end
|
|
773
|
+
attr_writer :message_category
|
|
774
|
+
|
|
769
775
|
# The ID of a prior Card Authentication that the requestor used to authenticate
|
|
770
776
|
# this cardholder for a previous transaction.
|
|
771
777
|
sig { returns(T.nilable(String)) }
|
|
772
778
|
attr_accessor :prior_authenticated_card_payment_id
|
|
773
779
|
|
|
774
|
-
# The purchase amount in minor units.
|
|
775
|
-
sig { returns(T.nilable(Integer)) }
|
|
776
|
-
attr_accessor :purchase_amount
|
|
777
|
-
|
|
778
|
-
# The purchase amount in the cardholder's currency (i.e., USD) estimated using
|
|
779
|
-
# daily conversion rates from the card network.
|
|
780
|
-
sig { returns(T.nilable(Integer)) }
|
|
781
|
-
attr_accessor :purchase_amount_cardholder_estimated
|
|
782
|
-
|
|
783
|
-
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
784
|
-
# authentication attempt's purchase currency.
|
|
785
|
-
sig { returns(T.nilable(String)) }
|
|
786
|
-
attr_accessor :purchase_currency
|
|
787
|
-
|
|
788
780
|
# The identifier of the Real-Time Decision sent to approve or decline this
|
|
789
781
|
# authentication attempt.
|
|
790
782
|
sig { returns(T.nilable(String)) }
|
|
@@ -860,16 +852,6 @@ module Increase
|
|
|
860
852
|
sig { returns(String) }
|
|
861
853
|
attr_accessor :three_d_secure_server_transaction_id
|
|
862
854
|
|
|
863
|
-
# The type of transaction being authenticated.
|
|
864
|
-
sig do
|
|
865
|
-
returns(
|
|
866
|
-
T.nilable(
|
|
867
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
868
|
-
)
|
|
869
|
-
)
|
|
870
|
-
end
|
|
871
|
-
attr_accessor :transaction_type
|
|
872
|
-
|
|
873
855
|
# A constant representing the object's type. For this resource it will always be
|
|
874
856
|
# `card_authentication`.
|
|
875
857
|
sig do
|
|
@@ -897,10 +879,6 @@ module Increase
|
|
|
897
879
|
card_payment_id: String,
|
|
898
880
|
cardholder_email: T.nilable(String),
|
|
899
881
|
cardholder_name: T.nilable(String),
|
|
900
|
-
category:
|
|
901
|
-
T.nilable(
|
|
902
|
-
Increase::CardPayment::Element::CardAuthentication::Category::OrSymbol
|
|
903
|
-
),
|
|
904
882
|
challenge:
|
|
905
883
|
T.nilable(
|
|
906
884
|
Increase::CardPayment::Element::CardAuthentication::Challenge::OrHash
|
|
@@ -917,10 +895,9 @@ module Increase
|
|
|
917
895
|
merchant_category_code: T.nilable(String),
|
|
918
896
|
merchant_country: T.nilable(String),
|
|
919
897
|
merchant_name: T.nilable(String),
|
|
898
|
+
message_category:
|
|
899
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::OrHash,
|
|
920
900
|
prior_authenticated_card_payment_id: T.nilable(String),
|
|
921
|
-
purchase_amount: T.nilable(Integer),
|
|
922
|
-
purchase_amount_cardholder_estimated: T.nilable(Integer),
|
|
923
|
-
purchase_currency: T.nilable(String),
|
|
924
901
|
real_time_decision_id: T.nilable(String),
|
|
925
902
|
requestor_authentication_indicator:
|
|
926
903
|
T.nilable(
|
|
@@ -942,10 +919,6 @@ module Increase
|
|
|
942
919
|
status:
|
|
943
920
|
Increase::CardPayment::Element::CardAuthentication::Status::OrSymbol,
|
|
944
921
|
three_d_secure_server_transaction_id: String,
|
|
945
|
-
transaction_type:
|
|
946
|
-
T.nilable(
|
|
947
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::OrSymbol
|
|
948
|
-
),
|
|
949
922
|
type:
|
|
950
923
|
Increase::CardPayment::Element::CardAuthentication::Type::OrSymbol
|
|
951
924
|
).returns(T.attached_class)
|
|
@@ -985,8 +958,6 @@ module Increase
|
|
|
985
958
|
cardholder_email:,
|
|
986
959
|
# The name of the cardholder.
|
|
987
960
|
cardholder_name:,
|
|
988
|
-
# The category of the card authentication attempt.
|
|
989
|
-
category:,
|
|
990
961
|
# Details about the challenge, if one was requested.
|
|
991
962
|
challenge:,
|
|
992
963
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Card
|
|
@@ -1009,17 +980,11 @@ module Increase
|
|
|
1009
980
|
merchant_country:,
|
|
1010
981
|
# The name of the merchant.
|
|
1011
982
|
merchant_name:,
|
|
983
|
+
# The message category of the card authentication attempt.
|
|
984
|
+
message_category:,
|
|
1012
985
|
# The ID of a prior Card Authentication that the requestor used to authenticate
|
|
1013
986
|
# this cardholder for a previous transaction.
|
|
1014
987
|
prior_authenticated_card_payment_id:,
|
|
1015
|
-
# The purchase amount in minor units.
|
|
1016
|
-
purchase_amount:,
|
|
1017
|
-
# The purchase amount in the cardholder's currency (i.e., USD) estimated using
|
|
1018
|
-
# daily conversion rates from the card network.
|
|
1019
|
-
purchase_amount_cardholder_estimated:,
|
|
1020
|
-
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
1021
|
-
# authentication attempt's purchase currency.
|
|
1022
|
-
purchase_currency:,
|
|
1023
988
|
# The identifier of the Real-Time Decision sent to approve or decline this
|
|
1024
989
|
# authentication attempt.
|
|
1025
990
|
real_time_decision_id:,
|
|
@@ -1051,8 +1016,6 @@ module Increase
|
|
|
1051
1016
|
# A unique identifier assigned by the 3DS Server initiating the authentication
|
|
1052
1017
|
# attempt for this transaction.
|
|
1053
1018
|
three_d_secure_server_transaction_id:,
|
|
1054
|
-
# The type of transaction being authenticated.
|
|
1055
|
-
transaction_type:,
|
|
1056
1019
|
# A constant representing the object's type. For this resource it will always be
|
|
1057
1020
|
# `card_authentication`.
|
|
1058
1021
|
type:
|
|
@@ -1075,10 +1038,6 @@ module Increase
|
|
|
1075
1038
|
card_payment_id: String,
|
|
1076
1039
|
cardholder_email: T.nilable(String),
|
|
1077
1040
|
cardholder_name: T.nilable(String),
|
|
1078
|
-
category:
|
|
1079
|
-
T.nilable(
|
|
1080
|
-
Increase::CardPayment::Element::CardAuthentication::Category::TaggedSymbol
|
|
1081
|
-
),
|
|
1082
1041
|
challenge:
|
|
1083
1042
|
T.nilable(
|
|
1084
1043
|
Increase::CardPayment::Element::CardAuthentication::Challenge
|
|
@@ -1095,10 +1054,9 @@ module Increase
|
|
|
1095
1054
|
merchant_category_code: T.nilable(String),
|
|
1096
1055
|
merchant_country: T.nilable(String),
|
|
1097
1056
|
merchant_name: T.nilable(String),
|
|
1057
|
+
message_category:
|
|
1058
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory,
|
|
1098
1059
|
prior_authenticated_card_payment_id: T.nilable(String),
|
|
1099
|
-
purchase_amount: T.nilable(Integer),
|
|
1100
|
-
purchase_amount_cardholder_estimated: T.nilable(Integer),
|
|
1101
|
-
purchase_currency: T.nilable(String),
|
|
1102
1060
|
real_time_decision_id: T.nilable(String),
|
|
1103
1061
|
requestor_authentication_indicator:
|
|
1104
1062
|
T.nilable(
|
|
@@ -1120,10 +1078,6 @@ module Increase
|
|
|
1120
1078
|
status:
|
|
1121
1079
|
Increase::CardPayment::Element::CardAuthentication::Status::TaggedSymbol,
|
|
1122
1080
|
three_d_secure_server_transaction_id: String,
|
|
1123
|
-
transaction_type:
|
|
1124
|
-
T.nilable(
|
|
1125
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
1126
|
-
),
|
|
1127
1081
|
type:
|
|
1128
1082
|
Increase::CardPayment::Element::CardAuthentication::Type::TaggedSymbol
|
|
1129
1083
|
}
|
|
@@ -1132,44 +1086,6 @@ module Increase
|
|
|
1132
1086
|
def to_hash
|
|
1133
1087
|
end
|
|
1134
1088
|
|
|
1135
|
-
# The category of the card authentication attempt.
|
|
1136
|
-
module Category
|
|
1137
|
-
extend Increase::Internal::Type::Enum
|
|
1138
|
-
|
|
1139
|
-
TaggedSymbol =
|
|
1140
|
-
T.type_alias do
|
|
1141
|
-
T.all(
|
|
1142
|
-
Symbol,
|
|
1143
|
-
Increase::CardPayment::Element::CardAuthentication::Category
|
|
1144
|
-
)
|
|
1145
|
-
end
|
|
1146
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1147
|
-
|
|
1148
|
-
# The authentication attempt is for a payment.
|
|
1149
|
-
PAYMENT_AUTHENTICATION =
|
|
1150
|
-
T.let(
|
|
1151
|
-
:payment_authentication,
|
|
1152
|
-
Increase::CardPayment::Element::CardAuthentication::Category::TaggedSymbol
|
|
1153
|
-
)
|
|
1154
|
-
|
|
1155
|
-
# The authentication attempt is not for a payment.
|
|
1156
|
-
NON_PAYMENT_AUTHENTICATION =
|
|
1157
|
-
T.let(
|
|
1158
|
-
:non_payment_authentication,
|
|
1159
|
-
Increase::CardPayment::Element::CardAuthentication::Category::TaggedSymbol
|
|
1160
|
-
)
|
|
1161
|
-
|
|
1162
|
-
sig do
|
|
1163
|
-
override.returns(
|
|
1164
|
-
T::Array[
|
|
1165
|
-
Increase::CardPayment::Element::CardAuthentication::Category::TaggedSymbol
|
|
1166
|
-
]
|
|
1167
|
-
)
|
|
1168
|
-
end
|
|
1169
|
-
def self.values
|
|
1170
|
-
end
|
|
1171
|
-
end
|
|
1172
|
-
|
|
1173
1089
|
class Challenge < Increase::Internal::Type::BaseModel
|
|
1174
1090
|
OrHash =
|
|
1175
1091
|
T.type_alias do
|
|
@@ -1924,6 +1840,300 @@ module Increase
|
|
|
1924
1840
|
end
|
|
1925
1841
|
end
|
|
1926
1842
|
|
|
1843
|
+
class MessageCategory < Increase::Internal::Type::BaseModel
|
|
1844
|
+
OrHash =
|
|
1845
|
+
T.type_alias do
|
|
1846
|
+
T.any(
|
|
1847
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory,
|
|
1848
|
+
Increase::Internal::AnyHash
|
|
1849
|
+
)
|
|
1850
|
+
end
|
|
1851
|
+
|
|
1852
|
+
# The category of the card authentication attempt.
|
|
1853
|
+
sig do
|
|
1854
|
+
returns(
|
|
1855
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Category::TaggedSymbol
|
|
1856
|
+
)
|
|
1857
|
+
end
|
|
1858
|
+
attr_accessor :category
|
|
1859
|
+
|
|
1860
|
+
# Fields specific to non-payment authentication attempts.
|
|
1861
|
+
sig do
|
|
1862
|
+
returns(
|
|
1863
|
+
T.nilable(
|
|
1864
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::NonPayment
|
|
1865
|
+
)
|
|
1866
|
+
)
|
|
1867
|
+
end
|
|
1868
|
+
attr_reader :non_payment
|
|
1869
|
+
|
|
1870
|
+
sig do
|
|
1871
|
+
params(
|
|
1872
|
+
non_payment:
|
|
1873
|
+
T.nilable(
|
|
1874
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::NonPayment::OrHash
|
|
1875
|
+
)
|
|
1876
|
+
).void
|
|
1877
|
+
end
|
|
1878
|
+
attr_writer :non_payment
|
|
1879
|
+
|
|
1880
|
+
# Fields specific to payment authentication attempts.
|
|
1881
|
+
sig do
|
|
1882
|
+
returns(
|
|
1883
|
+
T.nilable(
|
|
1884
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment
|
|
1885
|
+
)
|
|
1886
|
+
)
|
|
1887
|
+
end
|
|
1888
|
+
attr_reader :payment
|
|
1889
|
+
|
|
1890
|
+
sig do
|
|
1891
|
+
params(
|
|
1892
|
+
payment:
|
|
1893
|
+
T.nilable(
|
|
1894
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::OrHash
|
|
1895
|
+
)
|
|
1896
|
+
).void
|
|
1897
|
+
end
|
|
1898
|
+
attr_writer :payment
|
|
1899
|
+
|
|
1900
|
+
# The message category of the card authentication attempt.
|
|
1901
|
+
sig do
|
|
1902
|
+
params(
|
|
1903
|
+
category:
|
|
1904
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Category::OrSymbol,
|
|
1905
|
+
non_payment:
|
|
1906
|
+
T.nilable(
|
|
1907
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::NonPayment::OrHash
|
|
1908
|
+
),
|
|
1909
|
+
payment:
|
|
1910
|
+
T.nilable(
|
|
1911
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::OrHash
|
|
1912
|
+
)
|
|
1913
|
+
).returns(T.attached_class)
|
|
1914
|
+
end
|
|
1915
|
+
def self.new(
|
|
1916
|
+
# The category of the card authentication attempt.
|
|
1917
|
+
category:,
|
|
1918
|
+
# Fields specific to non-payment authentication attempts.
|
|
1919
|
+
non_payment:,
|
|
1920
|
+
# Fields specific to payment authentication attempts.
|
|
1921
|
+
payment:
|
|
1922
|
+
)
|
|
1923
|
+
end
|
|
1924
|
+
|
|
1925
|
+
sig do
|
|
1926
|
+
override.returns(
|
|
1927
|
+
{
|
|
1928
|
+
category:
|
|
1929
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Category::TaggedSymbol,
|
|
1930
|
+
non_payment:
|
|
1931
|
+
T.nilable(
|
|
1932
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::NonPayment
|
|
1933
|
+
),
|
|
1934
|
+
payment:
|
|
1935
|
+
T.nilable(
|
|
1936
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment
|
|
1937
|
+
)
|
|
1938
|
+
}
|
|
1939
|
+
)
|
|
1940
|
+
end
|
|
1941
|
+
def to_hash
|
|
1942
|
+
end
|
|
1943
|
+
|
|
1944
|
+
# The category of the card authentication attempt.
|
|
1945
|
+
module Category
|
|
1946
|
+
extend Increase::Internal::Type::Enum
|
|
1947
|
+
|
|
1948
|
+
TaggedSymbol =
|
|
1949
|
+
T.type_alias do
|
|
1950
|
+
T.all(
|
|
1951
|
+
Symbol,
|
|
1952
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Category
|
|
1953
|
+
)
|
|
1954
|
+
end
|
|
1955
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1956
|
+
|
|
1957
|
+
# The authentication attempt is for a payment.
|
|
1958
|
+
PAYMENT_AUTHENTICATION =
|
|
1959
|
+
T.let(
|
|
1960
|
+
:payment_authentication,
|
|
1961
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Category::TaggedSymbol
|
|
1962
|
+
)
|
|
1963
|
+
|
|
1964
|
+
# The authentication attempt is not for a payment.
|
|
1965
|
+
NON_PAYMENT_AUTHENTICATION =
|
|
1966
|
+
T.let(
|
|
1967
|
+
:non_payment_authentication,
|
|
1968
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Category::TaggedSymbol
|
|
1969
|
+
)
|
|
1970
|
+
|
|
1971
|
+
sig do
|
|
1972
|
+
override.returns(
|
|
1973
|
+
T::Array[
|
|
1974
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Category::TaggedSymbol
|
|
1975
|
+
]
|
|
1976
|
+
)
|
|
1977
|
+
end
|
|
1978
|
+
def self.values
|
|
1979
|
+
end
|
|
1980
|
+
end
|
|
1981
|
+
|
|
1982
|
+
class NonPayment < Increase::Internal::Type::BaseModel
|
|
1983
|
+
OrHash =
|
|
1984
|
+
T.type_alias do
|
|
1985
|
+
T.any(
|
|
1986
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::NonPayment,
|
|
1987
|
+
Increase::Internal::AnyHash
|
|
1988
|
+
)
|
|
1989
|
+
end
|
|
1990
|
+
|
|
1991
|
+
# Fields specific to non-payment authentication attempts.
|
|
1992
|
+
sig { returns(T.attached_class) }
|
|
1993
|
+
def self.new
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1996
|
+
sig { override.returns({}) }
|
|
1997
|
+
def to_hash
|
|
1998
|
+
end
|
|
1999
|
+
end
|
|
2000
|
+
|
|
2001
|
+
class Payment < Increase::Internal::Type::BaseModel
|
|
2002
|
+
OrHash =
|
|
2003
|
+
T.type_alias do
|
|
2004
|
+
T.any(
|
|
2005
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment,
|
|
2006
|
+
Increase::Internal::AnyHash
|
|
2007
|
+
)
|
|
2008
|
+
end
|
|
2009
|
+
|
|
2010
|
+
# The purchase amount in minor units.
|
|
2011
|
+
sig { returns(Integer) }
|
|
2012
|
+
attr_accessor :purchase_amount
|
|
2013
|
+
|
|
2014
|
+
# The purchase amount in the cardholder's currency (i.e., USD) estimated using
|
|
2015
|
+
# daily conversion rates from the card network.
|
|
2016
|
+
sig { returns(T.nilable(Integer)) }
|
|
2017
|
+
attr_accessor :purchase_amount_cardholder_estimated
|
|
2018
|
+
|
|
2019
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
2020
|
+
# authentication attempt's purchase currency.
|
|
2021
|
+
sig { returns(String) }
|
|
2022
|
+
attr_accessor :purchase_currency
|
|
2023
|
+
|
|
2024
|
+
# The type of transaction being authenticated.
|
|
2025
|
+
sig do
|
|
2026
|
+
returns(
|
|
2027
|
+
T.nilable(
|
|
2028
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2029
|
+
)
|
|
2030
|
+
)
|
|
2031
|
+
end
|
|
2032
|
+
attr_accessor :transaction_type
|
|
2033
|
+
|
|
2034
|
+
# Fields specific to payment authentication attempts.
|
|
2035
|
+
sig do
|
|
2036
|
+
params(
|
|
2037
|
+
purchase_amount: Integer,
|
|
2038
|
+
purchase_amount_cardholder_estimated: T.nilable(Integer),
|
|
2039
|
+
purchase_currency: String,
|
|
2040
|
+
transaction_type:
|
|
2041
|
+
T.nilable(
|
|
2042
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::OrSymbol
|
|
2043
|
+
)
|
|
2044
|
+
).returns(T.attached_class)
|
|
2045
|
+
end
|
|
2046
|
+
def self.new(
|
|
2047
|
+
# The purchase amount in minor units.
|
|
2048
|
+
purchase_amount:,
|
|
2049
|
+
# The purchase amount in the cardholder's currency (i.e., USD) estimated using
|
|
2050
|
+
# daily conversion rates from the card network.
|
|
2051
|
+
purchase_amount_cardholder_estimated:,
|
|
2052
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
2053
|
+
# authentication attempt's purchase currency.
|
|
2054
|
+
purchase_currency:,
|
|
2055
|
+
# The type of transaction being authenticated.
|
|
2056
|
+
transaction_type:
|
|
2057
|
+
)
|
|
2058
|
+
end
|
|
2059
|
+
|
|
2060
|
+
sig do
|
|
2061
|
+
override.returns(
|
|
2062
|
+
{
|
|
2063
|
+
purchase_amount: Integer,
|
|
2064
|
+
purchase_amount_cardholder_estimated: T.nilable(Integer),
|
|
2065
|
+
purchase_currency: String,
|
|
2066
|
+
transaction_type:
|
|
2067
|
+
T.nilable(
|
|
2068
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2069
|
+
)
|
|
2070
|
+
}
|
|
2071
|
+
)
|
|
2072
|
+
end
|
|
2073
|
+
def to_hash
|
|
2074
|
+
end
|
|
2075
|
+
|
|
2076
|
+
# The type of transaction being authenticated.
|
|
2077
|
+
module TransactionType
|
|
2078
|
+
extend Increase::Internal::Type::Enum
|
|
2079
|
+
|
|
2080
|
+
TaggedSymbol =
|
|
2081
|
+
T.type_alias do
|
|
2082
|
+
T.all(
|
|
2083
|
+
Symbol,
|
|
2084
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType
|
|
2085
|
+
)
|
|
2086
|
+
end
|
|
2087
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2088
|
+
|
|
2089
|
+
# Purchase of goods or services.
|
|
2090
|
+
GOODS_SERVICE_PURCHASE =
|
|
2091
|
+
T.let(
|
|
2092
|
+
:goods_service_purchase,
|
|
2093
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2094
|
+
)
|
|
2095
|
+
|
|
2096
|
+
# Check acceptance.
|
|
2097
|
+
CHECK_ACCEPTANCE =
|
|
2098
|
+
T.let(
|
|
2099
|
+
:check_acceptance,
|
|
2100
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2101
|
+
)
|
|
2102
|
+
|
|
2103
|
+
# Account funding.
|
|
2104
|
+
ACCOUNT_FUNDING =
|
|
2105
|
+
T.let(
|
|
2106
|
+
:account_funding,
|
|
2107
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2108
|
+
)
|
|
2109
|
+
|
|
2110
|
+
# Quasi-cash transaction.
|
|
2111
|
+
QUASI_CASH_TRANSACTION =
|
|
2112
|
+
T.let(
|
|
2113
|
+
:quasi_cash_transaction,
|
|
2114
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2115
|
+
)
|
|
2116
|
+
|
|
2117
|
+
# Prepaid activation and load.
|
|
2118
|
+
PREPAID_ACTIVATION_AND_LOAD =
|
|
2119
|
+
T.let(
|
|
2120
|
+
:prepaid_activation_and_load,
|
|
2121
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2122
|
+
)
|
|
2123
|
+
|
|
2124
|
+
sig do
|
|
2125
|
+
override.returns(
|
|
2126
|
+
T::Array[
|
|
2127
|
+
Increase::CardPayment::Element::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
|
|
2128
|
+
]
|
|
2129
|
+
)
|
|
2130
|
+
end
|
|
2131
|
+
def self.values
|
|
2132
|
+
end
|
|
2133
|
+
end
|
|
2134
|
+
end
|
|
2135
|
+
end
|
|
2136
|
+
|
|
1927
2137
|
# The 3DS requestor authentication indicator describes why the authentication
|
|
1928
2138
|
# attempt is performed, such as for a recurring transaction.
|
|
1929
2139
|
module RequestorAuthenticationIndicator
|
|
@@ -2172,65 +2382,6 @@ module Increase
|
|
|
2172
2382
|
end
|
|
2173
2383
|
end
|
|
2174
2384
|
|
|
2175
|
-
# The type of transaction being authenticated.
|
|
2176
|
-
module TransactionType
|
|
2177
|
-
extend Increase::Internal::Type::Enum
|
|
2178
|
-
|
|
2179
|
-
TaggedSymbol =
|
|
2180
|
-
T.type_alias do
|
|
2181
|
-
T.all(
|
|
2182
|
-
Symbol,
|
|
2183
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType
|
|
2184
|
-
)
|
|
2185
|
-
end
|
|
2186
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2187
|
-
|
|
2188
|
-
# Purchase of goods or services.
|
|
2189
|
-
GOODS_SERVICE_PURCHASE =
|
|
2190
|
-
T.let(
|
|
2191
|
-
:goods_service_purchase,
|
|
2192
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
2193
|
-
)
|
|
2194
|
-
|
|
2195
|
-
# Check acceptance.
|
|
2196
|
-
CHECK_ACCEPTANCE =
|
|
2197
|
-
T.let(
|
|
2198
|
-
:check_acceptance,
|
|
2199
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
2200
|
-
)
|
|
2201
|
-
|
|
2202
|
-
# Account funding.
|
|
2203
|
-
ACCOUNT_FUNDING =
|
|
2204
|
-
T.let(
|
|
2205
|
-
:account_funding,
|
|
2206
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
2207
|
-
)
|
|
2208
|
-
|
|
2209
|
-
# Quasi-cash transaction.
|
|
2210
|
-
QUASI_CASH_TRANSACTION =
|
|
2211
|
-
T.let(
|
|
2212
|
-
:quasi_cash_transaction,
|
|
2213
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
2214
|
-
)
|
|
2215
|
-
|
|
2216
|
-
# Prepaid activation and load.
|
|
2217
|
-
PREPAID_ACTIVATION_AND_LOAD =
|
|
2218
|
-
T.let(
|
|
2219
|
-
:prepaid_activation_and_load,
|
|
2220
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
2221
|
-
)
|
|
2222
|
-
|
|
2223
|
-
sig do
|
|
2224
|
-
override.returns(
|
|
2225
|
-
T::Array[
|
|
2226
|
-
Increase::CardPayment::Element::CardAuthentication::TransactionType::TaggedSymbol
|
|
2227
|
-
]
|
|
2228
|
-
)
|
|
2229
|
-
end
|
|
2230
|
-
def self.values
|
|
2231
|
-
end
|
|
2232
|
-
end
|
|
2233
|
-
|
|
2234
2385
|
# A constant representing the object's type. For this resource it will always be
|
|
2235
2386
|
# `card_authentication`.
|
|
2236
2387
|
module Type
|