Skip to content

Commit c8a51d0

Browse files
fix(types): correct value type from Integer to Float in auth rules
1 parent d3a58d5 commit c8a51d0

15 files changed

Lines changed: 204 additions & 153 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-00f07b0edcc0c3c5ef79920ced7f58dac2434df5e4c27ff6041783e8228315f9.yml
3-
openapi_spec_hash: 963688b09480159a06865075c94a2577
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-edd62262c633378b046a4c774cb9a824e2f6bf8f6c0cec613d3fb56e96ba1a29.yml
3+
openapi_spec_hash: e90bfadcd60afbaf9e0c9ebaea4e374e
44
config_hash: 265a2b679964f4ad5706de101ad2a942

lib/lithic/models/auth_rules/auth_rule_condition.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class AuthRuleCondition < Lithic::Internal::Type::BaseModel
6868
# @!attribute value
6969
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
7070
#
71-
# @return [String, Integer, Array<String>, Time]
71+
# @return [String, Integer, Float, Array<String>, Time]
7272
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
7373

7474
# @!method initialize(attribute:, operation:, value:)
@@ -79,7 +79,7 @@ class AuthRuleCondition < Lithic::Internal::Type::BaseModel
7979
#
8080
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
8181
#
82-
# @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
82+
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
8383
end
8484
end
8585

lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ class Condition < Lithic::Internal::Type::BaseModel
5353
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
5454
# fee field in the settlement/cardholder billing currency. This is the amount
5555
# the issuer should authorize against unless the issuer is paying the acquirer
56-
# fee on behalf of the cardholder.
56+
# fee on behalf of the cardholder. Use an integer value.
5757
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
58-
# risk level, with a higher value indicating a higher amount of risk.
58+
# risk level, with a higher value indicating a higher amount of risk. Use an
59+
# integer value.
5960
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
6061
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
6162
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,
@@ -73,7 +74,7 @@ class Condition < Lithic::Internal::Type::BaseModel
7374
# @!attribute value
7475
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
7576
#
76-
# @return [String, Integer, Array<String>, Time]
77+
# @return [String, Integer, Float, Array<String>, Time]
7778
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
7879

7980
# @!method initialize(attribute:, operation:, value:)
@@ -85,7 +86,7 @@ class Condition < Lithic::Internal::Type::BaseModel
8586
#
8687
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
8788
#
88-
# @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
89+
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
8990

9091
# The attribute to target.
9192
#
@@ -104,9 +105,10 @@ class Condition < Lithic::Internal::Type::BaseModel
104105
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
105106
# fee field in the settlement/cardholder billing currency. This is the amount
106107
# the issuer should authorize against unless the issuer is paying the acquirer
107-
# fee on behalf of the cardholder.
108+
# fee on behalf of the cardholder. Use an integer value.
108109
# - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
109-
# risk level, with a higher value indicating a higher amount of risk.
110+
# risk level, with a higher value indicating a higher amount of risk. Use an
111+
# integer value.
110112
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
111113
# - `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address
112114
# data with the cardholder KYC data if it exists. Valid values are `MATCH`,

lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Condition < Lithic::Internal::Type::BaseModel
190190
# ID) of the entity initiating the ACH transaction.
191191
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
192192
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
193-
# (cents).
193+
# (cents). Use an integer value.
194194
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
195195
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
196196
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
@@ -209,7 +209,7 @@ class Condition < Lithic::Internal::Type::BaseModel
209209
# @!attribute value
210210
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
211211
#
212-
# @return [String, Integer, Array<String>, Time]
212+
# @return [String, Integer, Float, Array<String>, Time]
213213
required :value, union: -> { Lithic::AuthRules::ConditionalValue }
214214

215215
# @!method initialize(attribute:, operation:, value:)
@@ -221,7 +221,7 @@ class Condition < Lithic::Internal::Type::BaseModel
221221
#
222222
# @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
223223
#
224-
# @param value [String, Integer, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
224+
# @param value [String, Integer, Float, Array<String>, Time] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
225225

226226
# The attribute to target.
227227
#
@@ -232,7 +232,7 @@ class Condition < Lithic::Internal::Type::BaseModel
232232
# ID) of the entity initiating the ACH transaction.
233233
# - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
234234
# - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
235-
# (cents).
235+
# (cents). Use an integer value.
236236
# - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
237237
# Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
238238
# (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL

0 commit comments

Comments
 (0)