Skip to content

Commit 78fae8e

Browse files
authored
adds transaction merchants (#56)
1 parent b26d249 commit 78fae8e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

method/resources/Accounts/Transactions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
'voided',
1010
]
1111

12+
class AccountTransactionMerchant(TypedDict):
13+
name: str
14+
logo: Optional[str]
15+
1216
class AccountTransaction(TypedDict):
1317
id: str
1418
account_id: str
@@ -20,6 +24,7 @@ class AccountTransaction(TypedDict):
2024
transaction_auth_amount: int
2125
transaction_currency_code: str
2226
merchant_category_code: str
27+
merchant: Optional[AccountTransactionMerchant]
2328
status: AccountTransactionStatusLiterals
2429
transacted_at: str
2530
posted_at: Optional[str]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='method-python',
5-
version='1.2.0',
5+
version='1.2.1',
66
description='Python library for the Method API',
77
long_description='Python library for the Method API',
88
long_description_content_type='text/x-rst',

test/resources/Account_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,7 @@ def test_list_transactions(setup):
809809
'transaction_auth_amount': simulated_transaction['transaction_auth_amount'],
810810
'transaction_currency_code': simulated_transaction['transaction_currency_code'],
811811
'merchant_category_code': simulated_transaction['merchant_category_code'],
812+
'merchant': simulated_transaction['merchant'],
812813
'transacted_at': simulated_transaction['transacted_at'],
813814
'posted_at': simulated_transaction['posted_at'],
814815
'voided_at': None,

0 commit comments

Comments
 (0)