Skip to content

Commit 17c0aa5

Browse files
chore(api): adds new Internal Category for FinancialTransactions (#701)
1 parent e7db283 commit 17c0aa5

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/lithic/resources/financial_accounts/financial_transactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def list(
8787
financial_account_token: str,
8888
*,
8989
begin: Union[str, datetime] | NotGiven = NOT_GIVEN,
90-
category: Literal["ACH", "CARD", "TRANSFER"] | NotGiven = NOT_GIVEN,
90+
category: Literal["ACH", "CARD", "INTERNAL", "TRANSFER"] | NotGiven = NOT_GIVEN,
9191
end: Union[str, datetime] | NotGiven = NOT_GIVEN,
9292
ending_before: str | NotGiven = NOT_GIVEN,
9393
result: Literal["APPROVED", "DECLINED"] | NotGiven = NOT_GIVEN,
@@ -224,7 +224,7 @@ def list(
224224
financial_account_token: str,
225225
*,
226226
begin: Union[str, datetime] | NotGiven = NOT_GIVEN,
227-
category: Literal["ACH", "CARD", "TRANSFER"] | NotGiven = NOT_GIVEN,
227+
category: Literal["ACH", "CARD", "INTERNAL", "TRANSFER"] | NotGiven = NOT_GIVEN,
228228
end: Union[str, datetime] | NotGiven = NOT_GIVEN,
229229
ending_before: str | NotGiven = NOT_GIVEN,
230230
result: Literal["APPROVED", "DECLINED"] | NotGiven = NOT_GIVEN,

src/lithic/types/financial_accounts/financial_transaction_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class FinancialTransactionListParams(TypedDict, total=False):
1818
Only entries created after the specified time will be included. UTC time zone.
1919
"""
2020

21-
category: Literal["ACH", "CARD", "TRANSFER"]
21+
category: Literal["ACH", "CARD", "INTERNAL", "TRANSFER"]
2222
"""Financial Transaction category to be returned."""
2323

2424
end: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]

src/lithic/types/financial_accounts/statements/statement_line_items.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class Data(BaseModel):
9393
"FINANCIAL_CREDIT_AUTHORIZATION",
9494
"INTEREST",
9595
"INTEREST_REVERSAL",
96+
"INTERNAL_ADJUSTMENT",
9697
"LATE_PAYMENT",
9798
"LATE_PAYMENT_REVERSAL",
9899
"PROVISIONAL_CREDIT",

src/lithic/types/financial_transaction.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class Event(BaseModel):
8383
"FINANCIAL_CREDIT_AUTHORIZATION",
8484
"INTEREST",
8585
"INTEREST_REVERSAL",
86+
"INTERNAL_ADJUSTMENT",
8687
"LATE_PAYMENT",
8788
"LATE_PAYMENT_REVERSAL",
8889
"PROVISIONAL_CREDIT",
@@ -101,11 +102,12 @@ class FinancialTransaction(BaseModel):
101102
token: str
102103
"""Globally unique identifier."""
103104

104-
category: Literal["ACH", "CARD", "TRANSFER"]
105+
category: Literal["ACH", "CARD", "INTERNAL", "TRANSFER"]
105106
"""Status types:
106107
107108
- `CARD` - Issuing card transaction.
108109
- `ACH` - Transaction over ACH.
110+
- `INTERNAL` - Transaction for internal adjustment.
109111
- `TRANSFER` - Internal transfer of funds between financial accounts in your
110112
program.
111113
"""

0 commit comments

Comments
 (0)