Skip to content

Commit 900a6b2

Browse files
docs(types): clarify cash_amount description in CardAuthorization models
1 parent 3eda391 commit 900a6b2

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 214
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-47e9f78d22682623e313f1689f5fa7e3420575ff285a14a2f4704c49ffb6b72e.yml
3-
openapi_spec_hash: 4797fe46d942cb32e648a79015783d01
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-d83e3ddb148bc0c81ff97bd31b82027d5b37efc110f5981103e7b9a2ae281c86.yml
3+
openapi_spec_hash: f607b0571c4ed82a93a3df7bc9e9351b
44
config_hash: 5bb913c05ebeb301ec925b16e75bb251

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ private constructor(
243243
fun cardholderCurrency(): String = cardholderCurrency.getRequired("cardholder_currency")
244244

245245
/**
246-
* The portion of the transaction requested as cash back by the cardholder, and does not include
247-
* any acquirer fees. The amount field includes the purchase amount, the requested cash back
248-
* amount, and any acquirer fees.
246+
* The amount of cash requested by the cardholder, in the cardholder billing currency's smallest
247+
* unit. For purchase-with-cashback transactions this is the cashback portion only; for ATM
248+
* transactions this is the full amount. This amount includes all acquirer fees.
249249
*
250-
* If no cash back was requested, the value of this field will be 0, and the field will always
251-
* be present.
250+
* If no cash was requested, the value of this field will be 0, and the field will always be
251+
* present.
252252
*
253253
* @throws LithicInvalidDataException if the JSON field has an unexpected type or is
254254
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -957,12 +957,12 @@ private constructor(
957957
}
958958

959959
/**
960-
* The portion of the transaction requested as cash back by the cardholder, and does not
961-
* include any acquirer fees. The amount field includes the purchase amount, the requested
962-
* cash back amount, and any acquirer fees.
960+
* The amount of cash requested by the cardholder, in the cardholder billing currency's
961+
* smallest unit. For purchase-with-cashback transactions this is the cashback portion only;
962+
* for ATM transactions this is the full amount. This amount includes all acquirer fees.
963963
*
964-
* If no cash back was requested, the value of this field will be 0, and the field will
965-
* always be present.
964+
* If no cash was requested, the value of this field will be 0, and the field will always be
965+
* present.
966966
*/
967967
fun cashAmount(cashAmount: Long) = cashAmount(JsonField.of(cashAmount))
968968

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ private constructor(
291291
fun cardholderCurrency(): String = cardholderCurrency.getRequired("cardholder_currency")
292292

293293
/**
294-
* The portion of the transaction requested as cash back by the cardholder, and does not include
295-
* any acquirer fees. The amount field includes the purchase amount, the requested cash back
296-
* amount, and any acquirer fees.
294+
* The amount of cash requested by the cardholder, in the cardholder billing currency's smallest
295+
* unit. For purchase-with-cashback transactions this is the cashback portion only; for ATM
296+
* transactions this is the full amount. This amount includes all acquirer fees.
297297
*
298-
* If no cash back was requested, the value of this field will be 0, and the field will always
299-
* be present.
298+
* If no cash was requested, the value of this field will be 0, and the field will always be
299+
* present.
300300
*
301301
* @throws LithicInvalidDataException if the JSON field has an unexpected type or is
302302
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
@@ -1045,12 +1045,12 @@ private constructor(
10451045
}
10461046

10471047
/**
1048-
* The portion of the transaction requested as cash back by the cardholder, and does not
1049-
* include any acquirer fees. The amount field includes the purchase amount, the requested
1050-
* cash back amount, and any acquirer fees.
1048+
* The amount of cash requested by the cardholder, in the cardholder billing currency's
1049+
* smallest unit. For purchase-with-cashback transactions this is the cashback portion only;
1050+
* for ATM transactions this is the full amount. This amount includes all acquirer fees.
10511051
*
1052-
* If no cash back was requested, the value of this field will be 0, and the field will
1053-
* always be present.
1052+
* If no cash was requested, the value of this field will be 0, and the field will always be
1053+
* present.
10541054
*/
10551055
fun cashAmount(cashAmount: Long) = cashAmount(JsonField.of(cashAmount))
10561056

0 commit comments

Comments
 (0)