From b1b348badb5d1ea9c01ef9ecab1003252165468c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elisi=C3=A1rio=20Couto?= Date: Sat, 22 Nov 2025 21:00:45 +0000 Subject: [PATCH] fix: Fallback to internal_transaction_id when bank transactions do not have transaction_id. --- leggen/services/transaction_processor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/leggen/services/transaction_processor.py b/leggen/services/transaction_processor.py index 7e238bf..1d5b88d 100644 --- a/leggen/services/transaction_processor.py +++ b/leggen/services/transaction_processor.py @@ -70,7 +70,10 @@ class TransactionProcessor: internal_transaction_id = transaction.get("internalTransactionId") if not transaction_id: - raise ValueError("Transaction missing required transactionId field") + if internal_transaction_id: + transaction_id = internal_transaction_id + else: + raise ValueError("Transaction missing required transactionId field") return { "accountId": account_id,