Skip to content

Commit 13c231e

Browse files
fix(types): make fields optional, add enum values in balance/settlement_detail/financial_event
1 parent d05ea21 commit 13c231e

5 files changed

Lines changed: 14 additions & 11 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: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-659808bfd15f4eafd418ec0db871b22be857ca94f771c9539792ecda2d2d0dbe.yml
3-
openapi_spec_hash: e870e6403121ac3bbd1667deec6788de
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-89ce5b3ff634397bdfc05a63d3103b9c767726dfc6b042883d220d08d4156c99.yml
3+
openapi_spec_hash: 867ab9ab196ad28740f46ec4e7bf7aba
44
config_hash: 1c5c139a2aa0d1d45c063f953a9bc803

src/lithic/types/balance.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from datetime import datetime
45
from typing_extensions import Literal
56

@@ -23,16 +24,16 @@ class Balance(BaseModel):
2324
financial_account_token: str
2425
"""Globally unique identifier for the financial account that holds this balance."""
2526

26-
financial_account_type: Literal["ISSUING", "OPERATING", "RESERVE", "SECURITY"]
27+
financial_account_type: Literal["CARD", "ISSUING", "OPERATING", "PROGRAM_RECEIVABLES", "RESERVE", "SECURITY"]
2728
"""Type of financial account."""
2829

29-
last_transaction_event_token: str
30+
last_transaction_event_token: Optional[str] = None
3031
"""
3132
Globally unique identifier for the last financial transaction event that
3233
impacted this balance.
3334
"""
3435

35-
last_transaction_token: str
36+
last_transaction_token: Optional[str] = None
3637
"""
3738
Globally unique identifier for the last financial transaction that impacted this
3839
balance.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class Data(BaseModel):
146146
"QUARTERLY_REVERSAL",
147147
"MONTHLY",
148148
"MONTHLY_REVERSAL",
149+
"ACCOUNT_TO_ACCOUNT",
149150
]
150151

151152
financial_account_token: str

src/lithic/types/settlement_detail.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ class SettlementDetail(BaseModel):
2121
token: str
2222
"""Globally unique identifier denoting the Settlement Detail."""
2323

24-
account_token: str
24+
account_token: Optional[str] = None
2525
"""
2626
Globally unique identifier denoting the account that the associated transaction
2727
occurred on.
2828
"""
2929

30-
card_program_token: str
30+
card_program_token: Optional[str] = None
3131
"""
3232
Globally unique identifier denoting the card program that the associated
3333
transaction occurred on.
3434
"""
3535

36-
card_token: str
36+
card_token: Optional[str] = None
3737
"""
3838
Globally unique identifier denoting the card that the associated transaction
3939
occurred on.
@@ -85,10 +85,10 @@ class SettlementDetail(BaseModel):
8585
settlement advisement date, which is distinct from the date of money movement.
8686
"""
8787

88-
transaction_token: str
88+
transaction_token: Optional[str] = None
8989
"""Globally unique identifier denoting the associated transaction.
9090
91-
For settlement records with type `CLEARING`, `FINANCIAL`, or `NON-FINANCIAL`,
91+
For settlement records with type `CLEARING`, `FINANCIAL`, or `NON_FINANCIAL`,
9292
this references a card transaction token. For settlement records with type
9393
`CHARGEBACK`, `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or
9494
`COLLABORATION`, this references the dispute transaction token. May be null for
@@ -109,7 +109,7 @@ class SettlementDetail(BaseModel):
109109
"COLLABORATION",
110110
"FEE",
111111
"FINANCIAL",
112-
"NON-FINANCIAL",
112+
"NON_FINANCIAL",
113113
"PREARBITRATION",
114114
"REPRESENTMENT",
115115
]

src/lithic/types/shared/financial_event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,6 @@ class FinancialEvent(BaseModel):
119119
"QUARTERLY_REVERSAL",
120120
"MONTHLY",
121121
"MONTHLY_REVERSAL",
122+
"ACCOUNT_TO_ACCOUNT",
122123
]
123124
] = None

0 commit comments

Comments
 (0)