From 1e89bb9bd586d276aa0594af0006c1ecdfbd6eb9 Mon Sep 17 00:00:00 2001 From: Robera16 Date: Wed, 1 Oct 2025 19:35:37 +0300 Subject: [PATCH 1/2] Add CAMT.052 v08 support --- fints/client.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fints/client.py b/fints/client.py index 3fcb3b7..8b0f1ab 100644 --- a/fints/client.py +++ b/fints/client.py @@ -569,7 +569,7 @@ def _response_handler_get_transactions_xml(responses): def get_transactions_xml(self, account: SEPAAccount, start_date: datetime.date = None, end_date: datetime.date = None) -> list: """ - Fetches the list of transactions of a bank account in a certain timeframe as camt.052.001.02 XML files. + Fetches the list of transactions of a bank account in a certain timeframe as camt.052.001.08 or camt.052.001.02 XML files. Returns both booked and pending transactions. :param account: SEPA @@ -591,7 +591,10 @@ def get_transactions_xml(self, account: SEPAAccount, start_date: datetime.date = date_start=start_date, date_end=end_date, touchdown_point=touchdown, - supported_camt_messages=SupportedMessageTypes(['urn:iso:std:iso:20022:tech:xsd:camt.052.001.02']), + supported_camt_messages=SupportedMessageTypes([ + 'urn:iso:std:iso:20022:tech:xsd:camt.052.001.08', + 'urn:iso:std:iso:20022:tech:xsd:camt.052.001.02' + ]), ), FinTS3Client._response_handler_get_transactions_xml, 'HICAZ' From ae65dcfcb722f7d8315fe537e0b277022bb160fb Mon Sep 17 00:00:00 2001 From: Robera16 Date: Tue, 25 Nov 2025 21:10:54 +0300 Subject: [PATCH 2/2] remove camt.052.001.02 support --- fints/client.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fints/client.py b/fints/client.py index 8b0f1ab..219c381 100644 --- a/fints/client.py +++ b/fints/client.py @@ -569,7 +569,7 @@ def _response_handler_get_transactions_xml(responses): def get_transactions_xml(self, account: SEPAAccount, start_date: datetime.date = None, end_date: datetime.date = None) -> list: """ - Fetches the list of transactions of a bank account in a certain timeframe as camt.052.001.08 or camt.052.001.02 XML files. + Fetches the list of transactions of a bank account in a certain timeframe as camt.052.001.08 XML files. Returns both booked and pending transactions. :param account: SEPA @@ -591,10 +591,7 @@ def get_transactions_xml(self, account: SEPAAccount, start_date: datetime.date = date_start=start_date, date_end=end_date, touchdown_point=touchdown, - supported_camt_messages=SupportedMessageTypes([ - 'urn:iso:std:iso:20022:tech:xsd:camt.052.001.08', - 'urn:iso:std:iso:20022:tech:xsd:camt.052.001.02' - ]), + supported_camt_messages=SupportedMessageTypes(['urn:iso:std:iso:20022:tech:xsd:camt.052.001.08']), ), FinTS3Client._response_handler_get_transactions_xml, 'HICAZ'