Skip to content

Commit f87072c

Browse files
committed
fixes: account descriptions should not include currency anymore (there is only one account that contains both currencies now)
1 parent 448503a commit f87072c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

ws_api/wealthsimple_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,15 @@ def _account_add_description(account):
388388
elif account['unifiedAccountType'] == 'CASH':
389389
account['description'] = "Cash: joint" if account['accountOwnerConfiguration'] == 'MULTI_OWNER' else "Cash"
390390
elif account['unifiedAccountType'] == 'SELF_DIRECTED_RRSP':
391-
account['description'] = f"RRSP: self-directed - {account['currency']}"
391+
account['description'] = f"RRSP: self-directed"
392392
elif account['unifiedAccountType'] == 'MANAGED_RRSP':
393-
account['description'] = f"RRSP: managed - {account['currency']}"
393+
account['description'] = f"RRSP: managed"
394394
elif account['unifiedAccountType'] == 'SELF_DIRECTED_SPOUSAL_RRSP':
395-
account['description'] = f"RRSP: self-directed spousal - {account['currency']}"
395+
account['description'] = f"RRSP: self-directed spousal"
396396
elif account['unifiedAccountType'] == 'SELF_DIRECTED_TFSA':
397-
account['description'] = f"TFSA: self-directed - {account['currency']}"
397+
account['description'] = f"TFSA: self-directed"
398398
elif account['unifiedAccountType'] == 'MANAGED_TFSA':
399-
account['description'] = f"TFSA: managed - {account['currency']}"
399+
account['description'] = f"TFSA: managed"
400400
elif account['unifiedAccountType'] == 'SELF_DIRECTED_NON_REGISTERED':
401401
account['description'] = "Non-registered: self-directed"
402402
elif account['unifiedAccountType'] == 'SELF_DIRECTED_JOINT_NON_REGISTERED':
@@ -408,7 +408,7 @@ def _account_add_description(account):
408408
elif account['unifiedAccountType'] == 'SELF_DIRECTED_CRYPTO':
409409
account['description'] = "Crypto"
410410
elif account['unifiedAccountType'] == 'SELF_DIRECTED_RRIF':
411-
account['description'] = f"RRIF: self-directed - {account['currency']}"
411+
account['description'] = f"RRIF: self-directed"
412412
elif account['unifiedAccountType'] == 'CREDIT_CARD':
413413
account['description'] = "Credit card"
414414
# TODO: Add other types as needed

0 commit comments

Comments
 (0)