From 91abe8ebdde501940ae6672a600f8418a719e3ae Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Wed, 18 Dec 2019 21:23:15 +0100 Subject: [PATCH] c52 parser method --- account_ebics/models/ebics_file.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/account_ebics/models/ebics_file.py b/account_ebics/models/ebics_file.py index a2db783..8a86a20 100644 --- a/account_ebics/models/ebics_file.py +++ b/account_ebics/models/ebics_file.py @@ -128,6 +128,9 @@ class EbicsFile(models.Model): 'camt.xxx.cfonb120.stm': {'process': self._process_cfonb120, 'unlink': self._unlink_cfonb120}, + 'camt.052.001.02.stm': + {'process': self._process_camt052, + 'unlink': self._unlink_camt052}, 'camt.053.001.02.stm': {'process': self._process_camt053, 'unlink': self._unlink_camt053}, @@ -205,6 +208,20 @@ class EbicsFile(models.Model): """ pass + @staticmethod + def _process_camt052(self): + import_module = 'account_bank_statement_import_camt_oca' + self._check_import_module(import_module) + return self._process_camt053(self) + + @staticmethod + def _unlink_camt052(self): + """ + Placeholder for camt052 specific actions before removing the + EBICS data file and its related bank statements. + """ + pass + @staticmethod def _process_camt053(self): import_module = 'account_bank_statement_import_camt%'