Skip to content

Commit b3bd343

Browse files
committed
add liability sub types
1 parent 55df0ab commit b3bd343

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

method/resources/Accounts/Types.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,29 @@ class AccountLiabilityStudentLoans(AccountLiabilityBase):
193193
original_loan_amount: Optional[int]
194194
term_length: Optional[int]
195195

196+
AccountLiabilitySubTypesLiterals = Literal[
197+
'business',
198+
'unsecured',
199+
'lease',
200+
'loan',
201+
'heloc',
202+
'charge',
203+
'flexible_spending',
204+
'secured',
205+
'purchase',
206+
'note',
207+
'private',
208+
'federal',
209+
'rent'
210+
]
196211

197212
class AccountLiability(TypedDict):
198213
mch_id: str
199214
mask: Optional[str]
200215
ownership: Optional[AccountOwnershipLiterals]
201216
fingerprint: Optional[str]
202217
type: Optional[AccountLiabilityTypesLiterals]
218+
sub_type: Optional[AccountLiabilitySubTypesLiterals]
203219
name: Optional[str]
204220

205221

test/resources/Account_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ def test_create_liability_account(setup):
162162
'ownership': 'unknown',
163163
'type': 'credit_card',
164164
'name': 'Chase Sapphire Reserve',
165+
'sub_type': 'flexible_spending',
165166
},
166167
'latest_verification_session': accounts_create_liability_response['latest_verification_session'],
167168
'balance': None,

0 commit comments

Comments
 (0)