Skip to content

Commit c01bbde

Browse files
committed
update redemption transaction match rules
1 parent af87f77 commit c01bbde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

casparser/process/cas_detailed.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ def get_transaction_type(
9898
else:
9999
txn_type = TransactionType.PURCHASE
100100
elif units < 0:
101-
if re.search("reversal|rejection|dishonoured|mismatch", description, re.I):
101+
if re.search(
102+
"reversal|rejection|dishonoured|mismatch|insufficient\s+balance", description, re.I
103+
):
102104
txn_type = TransactionType.REVERSAL
103105
elif "switch" in description:
104106
if "merger" in description:

0 commit comments

Comments
 (0)