From 4dbe1d8df63f044c71da58ed71e4144bc9e41460 Mon Sep 17 00:00:00 2001 From: Alessio Cappa Date: Mon, 1 Dec 2025 19:37:52 +0100 Subject: [PATCH] fix: retrieve only accounted transactions to avoid duplicates --- app/models/provider/enable_banking.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/provider/enable_banking.rb b/app/models/provider/enable_banking.rb index f7d214dce..09770a47a 100644 --- a/app/models/provider/enable_banking.rb +++ b/app/models/provider/enable_banking.rb @@ -147,6 +147,7 @@ class Provider::EnableBanking def get_account_transactions(account_id:, date_from: nil, date_to: nil, continuation_key: nil) encoded_id = CGI.escape(account_id.to_s) query_params = {} + query_params[:transaction_status] = "BOOK" # Only accounted transactions query_params[:date_from] = date_from.to_date.iso8601 if date_from query_params[:date_to] = date_to.to_date.iso8601 if date_to query_params[:continuation_key] = continuation_key if continuation_key