support loan pages
This commit is contained in:
parent
0a18949c32
commit
af15086818
2 changed files with 9 additions and 3 deletions
|
|
@ -20,7 +20,8 @@
|
|||
|
||||
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
|
||||
|
||||
from .pages import LoginPage, Login2Page, IndexPage, AccountsPage, TransactionsPage, CardPage, ValuationPage
|
||||
from .pages import LoginPage, Login2Page, IndexPage, AccountsPage, TransactionsPage, \
|
||||
CardPage, ValuationPage, LoanPage
|
||||
|
||||
|
||||
__all__ = ['Barclays']
|
||||
|
|
@ -36,6 +37,7 @@ class Barclays(BaseBrowser):
|
|||
'https://.*.barclays.fr/barclaysnetV2/releve.do.*': TransactionsPage,
|
||||
'https://.*.barclays.fr/barclaysnetV2/cartes.do.*': CardPage,
|
||||
'https://.*.barclays.fr/barclaysnetV2/valuationViewBank.do.*': ValuationPage,
|
||||
'https://.*.barclays.fr/barclaysnetV2/pret.do.*': LoanPage,
|
||||
}
|
||||
|
||||
def __init__(self, secret, *args, **kwargs):
|
||||
|
|
@ -99,7 +101,7 @@ class Barclays(BaseBrowser):
|
|||
|
||||
self.location(account._link)
|
||||
|
||||
assert self.is_on_page((TransactionsPage, ValuationPage))
|
||||
assert self.is_on_page((TransactionsPage, ValuationPage, LoanPage))
|
||||
|
||||
return self.page.get_history()
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
|||
|
||||
|
||||
__all__ = ['LoginPage', 'Login2Page', 'IndexPage', 'AccountsPage', 'TransactionsPage',
|
||||
'CardPage', 'ValuationPage']
|
||||
'CardPage', 'ValuationPage', 'LoanPage']
|
||||
|
||||
|
||||
class LoginPage(BasePage):
|
||||
|
|
@ -178,3 +178,7 @@ class CardPage(BasePage):
|
|||
class ValuationPage(BasePage):
|
||||
def get_history(self):
|
||||
return iter([])
|
||||
|
||||
class LoanPage(BasePage):
|
||||
def get_history(self):
|
||||
return iter([])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue