From 1e89bb9bd586d276aa0594af0006c1ecdfbd6eb9 Mon Sep 17 00:00:00 2001 From: Robera16 Date: Wed, 1 Oct 2025 19:35:37 +0300 Subject: [PATCH] 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'