Skip to content

Commit 57b5b27

Browse files
fix(types): change number from Long to Double in ConditionalValue and conditional actions
1 parent 522b70b commit 57b5b27

9 files changed

Lines changed: 209 additions & 125 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

lithic-java-core/src/main/kotlin/com/lithic/api/models/AuthRuleCondition.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,11 @@ private constructor(
258258
/** Alias for calling [value] with `ConditionalValue.ofRegex(regex)`. */
259259
fun value(regex: String) = value(ConditionalValue.ofRegex(regex))
260260

261+
/** Alias for calling [value] with `ConditionalValue.ofInteger(integer)`. */
262+
fun value(integer: Long) = value(ConditionalValue.ofInteger(integer))
263+
261264
/** Alias for calling [value] with `ConditionalValue.ofNumber(number)`. */
262-
fun value(number: Long) = value(ConditionalValue.ofNumber(number))
265+
fun value(number: Double) = value(ConditionalValue.ofNumber(number))
263266

264267
/** Alias for calling [value] with `ConditionalValue.ofListOfStrings(listOfStrings)`. */
265268
fun valueOfListOfStrings(listOfStrings: List<String>) =

lithic-java-core/src/main/kotlin/com/lithic/api/models/Conditional3dsActionParameters.kt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -406,9 +406,9 @@ private constructor(
406406
* * `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer fee
407407
* field in the settlement/cardholder billing currency. This is the amount the issuer
408408
* should authorize against unless the issuer is paying the acquirer fee on behalf of the
409-
* cardholder.
409+
* cardholder. Use an integer value.
410410
* * `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication risk
411-
* level, with a higher value indicating a higher amount of risk.
411+
* level, with a higher value indicating a higher amount of risk. Use an integer value.
412412
* * `MESSAGE_CATEGORY`: The category of the authentication being processed.
413413
* * `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address data with
414414
* the cardholder KYC data if it exists. Valid values are `MATCH`, `MATCH_ADDRESS_ONLY`,
@@ -520,9 +520,10 @@ private constructor(
520520
* * `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer fee
521521
* field in the settlement/cardholder billing currency. This is the amount the issuer
522522
* should authorize against unless the issuer is paying the acquirer fee on behalf of
523-
* the cardholder.
523+
* the cardholder. Use an integer value.
524524
* * `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication risk
525-
* level, with a higher value indicating a higher amount of risk.
525+
* level, with a higher value indicating a higher amount of risk. Use an integer
526+
* value.
526527
* * `MESSAGE_CATEGORY`: The category of the authentication being processed.
527528
* * `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address data
528529
* with the cardholder KYC data if it exists. Valid values are `MATCH`,
@@ -568,8 +569,11 @@ private constructor(
568569
/** Alias for calling [value] with `ConditionalValue.ofRegex(regex)`. */
569570
fun value(regex: String) = value(ConditionalValue.ofRegex(regex))
570571

572+
/** Alias for calling [value] with `ConditionalValue.ofInteger(integer)`. */
573+
fun value(integer: Long) = value(ConditionalValue.ofInteger(integer))
574+
571575
/** Alias for calling [value] with `ConditionalValue.ofNumber(number)`. */
572-
fun value(number: Long) = value(ConditionalValue.ofNumber(number))
576+
fun value(number: Double) = value(ConditionalValue.ofNumber(number))
573577

574578
/** Alias for calling [value] with `ConditionalValue.ofListOfStrings(listOfStrings)`. */
575579
fun valueOfListOfStrings(listOfStrings: List<String>) =
@@ -677,9 +681,9 @@ private constructor(
677681
* * `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer fee
678682
* field in the settlement/cardholder billing currency. This is the amount the issuer
679683
* should authorize against unless the issuer is paying the acquirer fee on behalf of the
680-
* cardholder.
684+
* cardholder. Use an integer value.
681685
* * `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication risk
682-
* level, with a higher value indicating a higher amount of risk.
686+
* level, with a higher value indicating a higher amount of risk. Use an integer value.
683687
* * `MESSAGE_CATEGORY`: The category of the authentication being processed.
684688
* * `ADDRESS_MATCH`: Lithic's evaluation result comparing transaction's address data with
685689
* the cardholder KYC data if it exists. Valid values are `MATCH`, `MATCH_ADDRESS_ONLY`,

lithic-java-core/src/main/kotlin/com/lithic/api/models/ConditionalAchActionParameters.kt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,8 @@ private constructor(
17011701
* * `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company ID) of
17021702
* the entity initiating the ACH transaction.
17031703
* * `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
1704-
* * `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units (cents).
1704+
* * `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units (cents). Use an
1705+
* integer value.
17051706
* * `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction. Valid
17061707
* values include PPD (Prearranged Payment and Deposit Entry), CCD (Corporate Credit or
17071708
* Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL (Telephone-Initiated Entry),
@@ -1805,7 +1806,8 @@ private constructor(
18051806
* * `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company ID)
18061807
* of the entity initiating the ACH transaction.
18071808
* * `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
1808-
* * `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units (cents).
1809+
* * `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units (cents). Use
1810+
* an integer value.
18091811
* * `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction. Valid
18101812
* values include PPD (Prearranged Payment and Deposit Entry), CCD (Corporate Credit
18111813
* or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL (Telephone-Initiated
@@ -1852,8 +1854,11 @@ private constructor(
18521854
/** Alias for calling [value] with `ConditionalValue.ofRegex(regex)`. */
18531855
fun value(regex: String) = value(ConditionalValue.ofRegex(regex))
18541856

1857+
/** Alias for calling [value] with `ConditionalValue.ofInteger(integer)`. */
1858+
fun value(integer: Long) = value(ConditionalValue.ofInteger(integer))
1859+
18551860
/** Alias for calling [value] with `ConditionalValue.ofNumber(number)`. */
1856-
fun value(number: Long) = value(ConditionalValue.ofNumber(number))
1861+
fun value(number: Double) = value(ConditionalValue.ofNumber(number))
18571862

18581863
/** Alias for calling [value] with `ConditionalValue.ofListOfStrings(listOfStrings)`. */
18591864
fun valueOfListOfStrings(listOfStrings: List<String>) =
@@ -1954,7 +1959,8 @@ private constructor(
19541959
* * `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company ID) of
19551960
* the entity initiating the ACH transaction.
19561961
* * `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
1957-
* * `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units (cents).
1962+
* * `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units (cents). Use an
1963+
* integer value.
19581964
* * `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction. Valid
19591965
* values include PPD (Prearranged Payment and Deposit Entry), CCD (Corporate Credit or
19601966
* Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL (Telephone-Initiated Entry),

0 commit comments

Comments
 (0)