Skip to content
browser.py 1.49 KiB
Newer Older
Romain Bignon's avatar
Romain Bignon committed
# Copyright(C) 2010-2011 Julien Veyssier
#
Roger Philibert's avatar
Roger Philibert committed
# This file is part of a woob module.
Romain Bignon's avatar
Romain Bignon committed
#
Roger Philibert's avatar
Roger Philibert committed
# This woob module is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
Romain Bignon's avatar
Romain Bignon committed
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
Roger Philibert's avatar
Roger Philibert committed
# This woob module is distributed in the hope that it will be useful,
Romain Bignon's avatar
Romain Bignon committed
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
Romain Bignon's avatar
Romain Bignon committed
#
# You should have received a copy of the GNU Lesser General Public License
Roger Philibert's avatar
Roger Philibert committed
# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
Romain Bignon's avatar
Romain Bignon committed

# flake8: compatible

Benoît JACQUET's avatar
Benoît JACQUET committed
from woob_modules.creditmutuel.browser import CreditMutuelBrowser
Romain Bignon's avatar
Romain Bignon committed
__all__ = ['CICBrowser']


Benoît JACQUET's avatar
Benoît JACQUET committed
class CICBrowser(CreditMutuelBrowser):
    BASEURL = 'https://www.cic.fr'

Benoît JACQUET's avatar
Benoît JACQUET committed
    login = CreditMutuelBrowser.login.with_urls(
        r'/fr/authentification.html',
        r'/sb/fr/banques/particuliers/index.html',
        r'/(?P<subbank>.*)/fr/$',
        r'/(?P<subbank>.*)/fr/banques/accueil.html',
        r'/(?P<subbank>.*)/fr/banques/particuliers/index.html',
    )

Benoît JACQUET's avatar
Benoît JACQUET committed
    decoupled_state = CreditMutuelBrowser.decoupled_state.with_urls(
        r'/(?P<subbank>.*)fr/otp/SOSD_OTP_GetTransactionState.htm',
    )
    cancel_decoupled = CreditMutuelBrowser.cancel_decoupled.with_urls(
        r'/(?P<subbank>.*)fr/otp/SOSD_OTP_CancelTransaction.htm',
    )