[weboob] [PATCH 1/1] creditmutuel: parse contactless payments ("PSC")

Benjamin benj at benj.me
Fri Sep 4 12:42:51 CEST 2015


Signed-off-by: Benjamin Bouvier <public at benj.me>
---
 modules/creditmutuel/pages.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/creditmutuel/pages.py
b/modules/creditmutuel/pages.py
index 4877bd5..c277033 100644
--- a/modules/creditmutuel/pages.py
+++ b/modules/creditmutuel/pages.py
@@ -194,6 +194,8 @@ class Transaction(FrenchTransaction):
                 (re.compile('^PRLV (?P<text>.*)'),       
                 FrenchTransaction.TYPE_ORDER),
                 (re.compile('^(?P<text>.*) CARTE \d+ PAIEMENT
                 CB\s+(?P<dd>\d{2})(?P<mm>\d{2}) ?(.*)$'),
                                                           FrenchTransaction.TYPE_CARD),
+                (re.compile('^PAIEMENT PSC\s+(?P<dd>\d{2})(?P<mm>\d{2})
(?P<text>.*) CARTE \d+ ?(.*)$'),
+                                                         
FrenchTransaction.TYPE_CARD),
                 (re.compile('^RETRAIT DAB (?P<dd>\d{2})(?P<mm>\d{2})
                 (?P<text>.*) CARTE [\*\d]+'),
                                                           FrenchTransaction.TYPE_WITHDRAWAL),
                 (re.compile('^CHEQUE( (?P<text>.*))?$'), 
                 FrenchTransaction.TYPE_CHECK),
-- 
1.9.1







Example:
Before the patch:
2015-09-03                PAIEMENT PSC 0209 LYON CAFE MOKXA CARTE
23456789       -11.00
After the patch:
2015-09-03   Card      LYON CAFE MOKXA                                  
     -11.00

-- 
Benjamin (2667C10E[1])

[1] http://pgp.mit.edu/pks/lookup?search=0x486498982667c10e



More information about the weboob mailing list