Skip to content

Commit

Permalink
update redemption transaction match rules
Browse files Browse the repository at this point in the history
  • Loading branch information
codereverser committed Dec 21, 2024
1 parent af87f77 commit c01bbde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion casparser/process/cas_detailed.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def get_transaction_type(
else:
txn_type = TransactionType.PURCHASE
elif units < 0:
if re.search("reversal|rejection|dishonoured|mismatch", description, re.I):
if re.search(
"reversal|rejection|dishonoured|mismatch|insufficient\s+balance", description, re.I
):
txn_type = TransactionType.REVERSAL
elif "switch" in description:
if "merger" in description:
Expand Down

0 comments on commit c01bbde

Please sign in to comment.