From 82b7ad67dc945385c2699423be9b6324d9ac6429 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Thu, 31 Jan 2019 15:48:29 +0100 Subject: [PATCH] [cragr] Added "entreprise" to all concerned URL() In addiiton to particulier, professionnel and association, some connections also have "entreprise" URLs. Closes: 35404@Sibi --- modules/cragr/api/browser.py | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/modules/cragr/api/browser.py b/modules/cragr/api/browser.py index 38271af529..0e0d44a7be 100644 --- a/modules/cragr/api/browser.py +++ b/modules/cragr/api/browser.py @@ -57,53 +57,65 @@ class CragrAPI(LoginBrowser): contracts_page = URL(r'particulier/operations/.rechargement.contexte.html\?idBamIndex=(?P)', r'association/operations/.rechargement.contexte.html\?idBamIndex=(?P)', - r'professionnel/operations/.rechargement.contexte.html\?idBamIndex=(?P)', ContractsPage) + r'professionnel/operations/.rechargement.contexte.html\?idBamIndex=(?P)', + r'entreprise/operations/.rechargement.contexte.html\?idBamIndex=(?P)', ContractsPage) accounts_page = URL(r'particulier/operations/synthese.html', r'association/operations/synthese.html', - r'professionnel/operations/synthese.html', AccountsPage) + r'professionnel/operations/synthese.html', + r'entreprise/operations/synthese.html', AccountsPage) account_details = URL(r'particulier/operations/synthese/jcr:content.produits-valorisation.json/(?P)', r'association/operations/synthese/jcr:content.produits-valorisation.json/(?P)', - r'professionnel/operations/synthese/jcr:content.produits-valorisation.json/(?P)', AccountDetailsPage) + r'professionnel/operations/synthese/jcr:content.produits-valorisation.json/(?P)', + r'entreprise/operations/synthese/jcr:content.produits-valorisation.json/(?P)', AccountDetailsPage) account_iban = URL(r'particulier/operations/operations-courantes/editer-rib/jcr:content.ibaninformation.json', r'association/operations/operations-courantes/editer-rib/jcr:content.ibaninformation.json', - r'professionnel/operations/operations-courantes/editer-rib/jcr:content.ibaninformation.json', IbanPage) + r'professionnel/operations/operations-courantes/editer-rib/jcr:content.ibaninformation.json', + r'entreprise/operations/operations-courantes/editer-rib/jcr:content.ibaninformation.json', IbanPage) cards = URL(r'particulier/operations/moyens-paiement/mes-cartes/jcr:content.listeCartesParCompte.json', r'association/operations/moyens-paiement/mes-cartes/jcr:content.listeCartesParCompte.json', - r'professionnel/operations/moyens-paiement/mes-cartes/jcr:content.listeCartesParCompte.json', CardsPage) + r'professionnel/operations/moyens-paiement/mes-cartes/jcr:content.listeCartesParCompte.json', + r'entreprise/operations/moyens-paiement/mes-cartes/jcr:content.listeCartesParCompte.json', CardsPage) history = URL(r'particulier/operations/synthese/detail-comptes/jcr:content.n3.operations.json', r'association/operations/synthese/detail-comptes/jcr:content.n3.operations.json', - r'professionnel/operations/synthese/detail-comptes/jcr:content.n3.operations.json', HistoryPage) + r'professionnel/operations/synthese/detail-comptes/jcr:content.n3.operations.json', + r'entreprise/operations/synthese/detail-comptes/jcr:content.n3.operations.json', HistoryPage) card_history = URL(r'particulier/operations/synthese/detail-comptes/jcr:content.n3.operations.encours.carte.debit.differe.json', r'association/operations/synthese/detail-comptes/jcr:content.n3.operations.encours.carte.debit.differe.json', - r'professionnel/operations/synthese/detail-comptes/jcr:content.n3.operations.encours.carte.debit.differe.json', CardHistoryPage) + r'professionnel/operations/synthese/detail-comptes/jcr:content.n3.operations.encours.carte.debit.differe.json', + r'entreprise/operations/synthese/detail-comptes/jcr:content.n3.operations.encours.carte.debit.differe.json', CardHistoryPage) netfinca_redirection = URL(r'particulier/operations/moco/catitres/jcr:content.init.html', r'association/operations/moco/catitres/jcr:content.init.html', r'professionnel/operations/moco/catitres/jcr:content.init.html', + r'entreprise/operations/moco/catitres/jcr:content.init.html', r'particulier/operations/moco/catitres/_jcr_content.init.html', r'association/operations/moco/catitres/_jcr_content.init.html', - r'professionnel/operations/moco/catitres/_jcr_content.init.html', NetfincaRedirectionPage) + r'professionnel/operations/moco/catitres/_jcr_content.init.html', + r'entreprise/operations/moco/catitres/_jcr_content.init.html', NetfincaRedirectionPage) predica_redirection = URL(r'particulier/operations/moco/predica/jcr:content.init.html', r'association/operations/moco/predica/jcr:content.init.html', - r'professionnel/operations/moco/predica/jcr:content.init.html', PredicaRedirectionPage) + r'professionnel/operations/moco/predica/jcr:content.init.html', + r'entreprise/operations/moco/predica/jcr:content.init.html', PredicaRedirectionPage) predica_investments = URL(r'https://npcprediweb.predica.credit-agricole.fr/rest/detailEpargne/contrat/', PredicaInvestmentsPage) profile_page = URL(r'particulier/operations/synthese/jcr:content.npc.store.client.json', r'association/operations/synthese/jcr:content.npc.store.client.json', - r'professionnel/operations/synthese/jcr:content.npc.store.client.json', ProfilePage) + r'professionnel/operations/synthese/jcr:content.npc.store.client.json', + r'entreprise/operations/synthese/jcr:content.npc.store.client.json', ProfilePage) profile_details = URL(r'particulier/operations/profil/infos-personnelles/gerer-coordonnees.html', ProfileDetailsPage) pro_profile_details = URL(r'association/operations/profil/infos-personnelles/controler-coordonnees.html', - r'professionnel/operations/profil/infos-personnelles/controler-coordonnees.html', ProProfileDetailsPage) + r'professionnel/operations/profil/infos-personnelles/controler-coordonnees.html', + r'entreprise/operations/profil/infos-personnelles/controler-coordonnees.html', ProProfileDetailsPage) def __init__(self, website, *args, **kwargs): super(CragrAPI, self).__init__(*args, **kwargs) -- GitLab