From 36db32bda23fbe28e4f1e81e1455d7983a9f4d58 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sun, 11 Aug 2024 13:44:59 +0200 Subject: [PATCH] [FIX] account_statement_import_online_gocardless: Slash at the end Some of the API endpoints need it, like token renew. You get if not 405 HTTP code. It includes also a typo fix in a method name. --- .../models/online_bank_statement_provider.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/account_statement_import_online_gocardless/models/online_bank_statement_provider.py b/account_statement_import_online_gocardless/models/online_bank_statement_provider.py index 21b5c3d68..11875253b 100644 --- a/account_statement_import_online_gocardless/models/online_bank_statement_provider.py +++ b/account_statement_import_online_gocardless/models/online_bank_statement_provider.py @@ -61,7 +61,7 @@ def _gocardless_request( self, endpoint, request_type="get", params=None, data=None, basic_auth=False ): content = {} - url = url_join(GOCARDLESS_API, endpoint) + url = url_join(GOCARDLESS_API, endpoint) + "/" response = getattr(requests, request_type)( url, data=data, @@ -143,9 +143,9 @@ def action_select_gocardless_bank(self): "view_mode": "form", "target": "new", } - return self._gocardless_select_bank_instituion() + return self._gocardless_select_bank_institution() - def _gocardless_select_bank_instituion(self): + def _gocardless_select_bank_institution(self): """Ask for the GoCardless bank instituion and continue full linkage.""" country = ( self.journal_id.bank_account_id.company_id or self.journal_id.company_id