Skip to content

Commit f6f5b35

Browse files
committed
new: transaction description for CC payment (from savings to CC)
1 parent 1e51bb1 commit f6f5b35

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
setuptools.setup(
44
name = 'WS-API',
55
packages = ['ws_api'],
6-
version = '0.22.0',
6+
version = '0.24.0',
77
license = 'GPL-3.0',
88
description = 'Access your Wealthsimple account using their (GraphQL) API.',
99
author = 'Guillaume Boudreau',

ws_api/wealthsimple_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def _activity_add_description(self, act):
688688
merchant = act['spendMerchant']
689689
act['description'] = f"Credit card refund: {merchant}"
690690

691-
elif act['type'] == 'CREDIT_CARD' and act['subType'] == 'PAYMENT':
691+
elif (act['type'] == 'CREDIT_CARD' and act['subType'] == 'PAYMENT') or act['type'] == 'CREDIT_CARD_PAYMENT':
692692
act['description'] = "Credit card payment"
693693

694694
elif act['type'] == 'REIMBURSEMENT' and act['subType'] == 'CASHBACK':

0 commit comments

Comments
 (0)