Commit Graph

3 Commits

Author SHA1 Message Date
Luis J. Salvatierra
2f4c2f6451 [FIX] account_statement_import_online_gocardless: IBAN comparison
It is possible that, when making the request to the requisitions endpoint,
the IBAN bank account comes with a lower alphanumeric string.
When comparing with the sanitized bank account (stored with upper) fails.

self.journal_id.bank_account_id.sanitized_acc_number == account_data["iban"]

to

self.journal_id.bank_account_id.sanitized_acc_number == account_data["iban"].upper()

Refactor method _gocardless_finish_requisition to be able to mock the requests made inside and create a unit test.
Refactor requests methods.
2025-01-19 22:08:01 +01:00
AlexPForgeFlow
ad239c1bd4 [MIG] account_statement_import_online_gocardless: Migration to 16.0 2025-01-19 22:08:01 +01:00
Pedro M. Baeza
29f1ace32e [ADD] account_statement_import_online_gocardless
This module provides online bank statements from GoCardless Bank Account
Data, which provides a free API for connecting and getting transactions
for bank accounts.

TT45760

Co-Authored-By: Christopher Ormaza <chris.ormaza@forgeflow.com>
Co-Authored-By: Jordi Ballester <jordi.ballester@forgeflow.com>
2025-01-19 22:08:01 +01:00