Upgrading from python-fints 1.x to 2.x¶
This library has seen a major rewrite in version 2.0 and the API has changed in a lot of places. These are the most important changes to know:
The
get_statementmethod was renamed toget_transactions. → Reading account transactionsThe
start_simple_sepa_transfermethod was renamed tosimple_sepa_transferand no longer takes a TAN method and TAN medium description as an argument. → Sending SEPA transfersThe
start_sepa_transfermethod was renamed tosepa_transferand no longer takes a TAN method and TAN medium description as an argument. The new parameterpain_descriptorshould be passed with the version of the PAIN format, e.g.urn:iso:std:iso:20022:tech:xsd:pain.001.001.03. → Sending SEPA transfersThe
start_sepa_debitmethod was renamed tosepa_debitand no longer takes a TAN method and TAN medium description as an argument. The new parameterpain_descriptorshould be passed with the version of the PAIN format, e.g.urn:iso:std:iso:20022:tech:xsd:pain.008.003.01. Also, a new parametercor1is optionally available. → Creating SEPA debitsWorking with TANs has changed a lot.
get_tan_methoshas been renamed toget_tan_mechanismsand has a new return data type. The chosen TAN method is now set on a client level withset_tan_mechanismandset_tan_medium. You can find more information in the chapter Working with TANs and a full example in the chapter Sending SEPA transfers.Debug logging output now contains parsed syntax structures instead of data blobs and is much easier to read.
A new parser for FinTS has been added that is more robust and performs more validation.
In exchange, you get a couple of great new features:
A new method
fints.client.FinTS3Client.get_information()was added. → Fetching bank informationIt is now possible to serialize and store the state of the client to enable multi-step operations in a stateless environment. → Storing and restoring client state