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

Benjamin benj at benj.me
Tue Sep 8 10:41:02 CEST 2015


En bon gros noob, voici le même patch mais dans une pièce jointe, étant
donné que mon client email a décidé de reformater le texte original.

Cheers,
-- 
Benjamin (2667C10E[1])

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

On Fri, Sep 4, 2015, at 12:42, Benjamin wrote:
> 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


-- 
Benjamin (2667C10E[1])

[1] http://pgp.mit.edu/pks/lookup?search=0x486498982667c10e
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-creditmutuel-parse-contactless-payments-PSC-transact.patch
Type: text/x-patch
Size: 1368 bytes
Desc: not available
URL: <https://lists.symlink.me/pipermail/weboob/attachments/20150908/5cd0a41e/attachment.bin>


More information about the weboob mailing list