Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ws_api/wealthsimple_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,10 @@ def _activity_add_description(self, act):
program = "- Visa Infinite" if act['rewardProgram'] == 'CREDIT_CARD_VISA_INFINITE_REWARDS' else ''
act['description'] = f"Cash back {program}".rstrip()

elif act['type'] == 'SPEND' and act['subType'] == 'PREPAID':
merchant = act['spendMerchant']
act['description'] = f"Purchase: {merchant}"

# TODO: Add other types as needed

def security_id_to_symbol(self, security_id: str) -> str:
Expand Down