Skip to content

Commit 2f9b36d

Browse files
feat(client): update currency data type (#709)
docs: update some descriptions chore(client): deprecate some fields
1 parent 7c0d123 commit 2f9b36d

33 files changed

+58
-259
lines changed

src/lithic/resources/external_bank_accounts/external_bank_accounts.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def create(
111111
country: The country that the bank account is located in using ISO 3166-1. We will only
112112
accept USA bank accounts e.g., USA
113113
114-
currency: currency of the external account 3-digit alphabetic ISO 4217 code
114+
currency: currency of the external account 3-character alphabetic ISO 4217 code
115115
116116
financial_account_token: The financial account token of the operating account to fund the micro deposits
117117
@@ -240,7 +240,7 @@ def create(
240240
country: The country that the bank account is located in using ISO 3166-1. We will only
241241
accept USA bank accounts e.g., USA
242242
243-
currency: currency of the external account 3-digit alphabetic ISO 4217 code
243+
currency: currency of the external account 3-character alphabetic ISO 4217 code
244244
245245
owner: Legal Name of the business or individual who owns the external account. This
246246
will appear in statements
@@ -680,7 +680,7 @@ async def create(
680680
country: The country that the bank account is located in using ISO 3166-1. We will only
681681
accept USA bank accounts e.g., USA
682682
683-
currency: currency of the external account 3-digit alphabetic ISO 4217 code
683+
currency: currency of the external account 3-character alphabetic ISO 4217 code
684684
685685
financial_account_token: The financial account token of the operating account to fund the micro deposits
686686
@@ -809,7 +809,7 @@ async def create(
809809
country: The country that the bank account is located in using ISO 3166-1. We will only
810810
accept USA bank accounts e.g., USA
811811
812-
currency: currency of the external account 3-digit alphabetic ISO 4217 code
812+
currency: currency of the external account 3-character alphabetic ISO 4217 code
813813
814814
owner: Legal Name of the business or individual who owns the external account. This
815815
will appear in statements

src/lithic/resources/transactions/transactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def simulate_authorization(
259259
merchant_amount: Amount of the transaction to be simulated in currency specified in
260260
merchant_currency, including any acquirer fees.
261261
262-
merchant_currency: 3-digit alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
262+
merchant_currency: 3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
263263
GBP, EUR and defaults to GBP if another ISO 4217 code is provided
264264
265265
partial_approval_capable: Set to true if the terminal is capable of partial approval otherwise false.
@@ -828,7 +828,7 @@ async def simulate_authorization(
828828
merchant_amount: Amount of the transaction to be simulated in currency specified in
829829
merchant_currency, including any acquirer fees.
830830
831-
merchant_currency: 3-digit alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
831+
merchant_currency: 3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD,
832832
GBP, EUR and defaults to GBP if another ISO 4217 code is provided
833833
834834
partial_approval_capable: Set to true if the terminal is capable of partial approval otherwise false.

src/lithic/types/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ class Account(BaseModel):
115115
"""
116116

117117
cardholder_currency: Optional[str] = None
118-
"""3-digit alphabetic ISO 4217 code for the currency of the cardholder."""
118+
"""3-character alphabetic ISO 4217 code for the currency of the cardholder."""
119119

120120
verification_address: Optional[VerificationAddress] = None

src/lithic/types/aggregate_balance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AggregateBalance(BaseModel):
1616
"""Date and time for when the balance was first created."""
1717

1818
currency: str
19-
"""3-digit alphabetic ISO 4217 code for the local currency of the balance."""
19+
"""3-character alphabetic ISO 4217 code for the local currency of the balance."""
2020

2121
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE"]
2222
"""Type of financial account"""

src/lithic/types/auth_rules/auth_rule_condition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class AuthRuleCondition(BaseModel):
2020
- `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
2121
ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
2222
Netherlands Antilles.
23-
- `CURRENCY`: 3-digit alphabetic ISO 4217 code for the merchant currency of the
24-
transaction.
23+
- `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
24+
the transaction.
2525
- `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
2626
(merchant).
2727
- `DESCRIPTOR`: Short description of card acceptor.

src/lithic/types/auth_rules/auth_rule_condition_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class AuthRuleConditionParam(TypedDict, total=False):
2121
- `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
2222
ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
2323
Netherlands Antilles.
24-
- `CURRENCY`: 3-digit alphabetic ISO 4217 code for the merchant currency of the
25-
transaction.
24+
- `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
25+
the transaction.
2626
- `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
2727
(merchant).
2828
- `DESCRIPTOR`: Short description of card acceptor.

src/lithic/types/balance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Balance(BaseModel):
1616
"""Date and time for when the balance was first created."""
1717

1818
currency: str
19-
"""3-digit alphabetic ISO 4217 code for the local currency of the balance."""
19+
"""3-character alphabetic ISO 4217 code for the local currency of the balance."""
2020

2121
financial_account_token: str
2222
"""Globally unique identifier for the financial account that holds this balance."""

src/lithic/types/book_transfer_response.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ class BookTransferResponse(BaseModel):
5555
"""Date and time when the transfer occurred. UTC time zone."""
5656

5757
currency: str
58-
"""3-digit alphabetic ISO 4217 code for the settling currency of the transaction."""
58+
"""
59+
3-character alphabetic ISO 4217 code for the settling currency of the
60+
transaction.
61+
"""
5962

6063
events: List[Event]
6164
"""A list of all financial events that have modified this transfer."""

src/lithic/types/card.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class Card(BaseModel):
151151
"""
152152

153153
cardholder_currency: Optional[str] = None
154-
"""3-digit alphabetic ISO 4217 code for the currency of the cardholder."""
154+
"""3-character alphabetic ISO 4217 code for the currency of the cardholder."""
155155

156156
cvv: Optional[str] = None
157157
"""Three digit cvv printed on the back of the card."""

src/lithic/types/card_program.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class CardProgram(BaseModel):
2525
"""The first digits of the card number that this card program starts with."""
2626

2727
cardholder_currency: Optional[str] = None
28-
"""3-digit alphabetic ISO 4217 code for the currency of the cardholder."""
28+
"""3-character alphabetic ISO 4217 code for the currency of the cardholder."""
2929

3030
settlement_currencies: Optional[List[str]] = None
3131
"""
32-
List of 3-digit alphabetic ISO 4217 codes for the currencies that the card
32+
List of 3-character alphabetic ISO 4217 codes for the currencies that the card
3333
program supports for settlement.
3434
"""

0 commit comments

Comments
 (0)