Skip to content

Commit 1385cde

Browse files
docs(types): update cash_amount field description in CardAuthorization
1 parent 746a1e0 commit 1385cde

3 files changed

Lines changed: 21 additions & 18 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

lib/lithic/models/card_authorization.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ class CardAuthorization < Lithic::Internal::Type::BaseModel
6868
required :cardholder_currency, String
6969

7070
# @!attribute cash_amount
71-
# The portion of the transaction requested as cash back by the cardholder, and
72-
# does not include any acquirer fees. The amount field includes the purchase
73-
# amount, the requested cash back amount, and any acquirer fees.
71+
# The amount of cash requested by the cardholder, in the cardholder billing
72+
# currency's smallest unit. For purchase-with-cashback transactions this is the
73+
# cashback portion only; for ATM transactions this is the full amount. This amount
74+
# includes all acquirer fees.
7475
#
75-
# If no cash back was requested, the value of this field will be 0, and the field
76-
# will always be present.
76+
# If no cash was requested, the value of this field will be 0, and the field will
77+
# always be present.
7778
#
7879
# @return [Integer]
7980
required :cash_amount, Integer
@@ -263,7 +264,7 @@ class CardAuthorization < Lithic::Internal::Type::BaseModel
263264
#
264265
# @param cardholder_currency [String] Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's
265266
#
266-
# @param cash_amount [Integer] The portion of the transaction requested as cash back by the cardholder, and doe
267+
# @param cash_amount [Integer] The amount of cash requested by the cardholder, in the cardholder billing curren
267268
#
268269
# @param created [Time] Date and time when the transaction first occurred in UTC.
269270
#

rbi/lithic/models/card_authorization.rbi

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@ module Lithic
5959
sig { returns(String) }
6060
attr_accessor :cardholder_currency
6161

62-
# The portion of the transaction requested as cash back by the cardholder, and
63-
# does not include any acquirer fees. The amount field includes the purchase
64-
# amount, the requested cash back amount, and any acquirer fees.
62+
# The amount of cash requested by the cardholder, in the cardholder billing
63+
# currency's smallest unit. For purchase-with-cashback transactions this is the
64+
# cashback portion only; for ATM transactions this is the full amount. This amount
65+
# includes all acquirer fees.
6566
#
66-
# If no cash back was requested, the value of this field will be 0, and the field
67-
# will always be present.
67+
# If no cash was requested, the value of this field will be 0, and the field will
68+
# always be present.
6869
sig { returns(Integer) }
6970
attr_accessor :cash_amount
7071

@@ -328,12 +329,13 @@ module Lithic
328329
# Deprecated, use `amounts`. 3-character alphabetic ISO 4217 code for cardholder's
329330
# billing currency.
330331
cardholder_currency:,
331-
# The portion of the transaction requested as cash back by the cardholder, and
332-
# does not include any acquirer fees. The amount field includes the purchase
333-
# amount, the requested cash back amount, and any acquirer fees.
332+
# The amount of cash requested by the cardholder, in the cardholder billing
333+
# currency's smallest unit. For purchase-with-cashback transactions this is the
334+
# cashback portion only; for ATM transactions this is the full amount. This amount
335+
# includes all acquirer fees.
334336
#
335-
# If no cash back was requested, the value of this field will be 0, and the field
336-
# will always be present.
337+
# If no cash was requested, the value of this field will be 0, and the field will
338+
# always be present.
337339
cash_amount:,
338340
# Date and time when the transaction first occurred in UTC.
339341
created:,

0 commit comments

Comments
 (0)