The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 23960f50 authored by Martin Lavoie's avatar Martin Lavoie Committed by Vincent A

[bforbank] New url to get checking accounts comming transactions

Closes: 10278@sibi
parent 0b490959
......@@ -67,7 +67,7 @@ class BforbankBrowser(TwoFactorBrowser):
)
loan_history = URL('/espace-client/livret/consultation.*', LoanHistoryPage)
history = URL('/espace-client/consultation/operations/.*', HistoryPage)
coming = URL(r'/espace-client/consultation/operationsAVenir/(?P<account>\d+)$', HistoryPage)
coming = URL(r'/espace-client/consultation/operationsAVenir/(?P<account>[^/]+)$', HistoryPage)
card_history = URL('espace-client/consultation/encoursCarte/.*', CardHistoryPage)
card_page = URL(r'/espace-client/carte/(?P<account>\d+)$', CardPage)
......@@ -371,7 +371,7 @@ def get_history(self, account):
@need_login
def get_coming(self, account):
if account.type == Account.TYPE_CHECKING:
self.coming.go(account=account.id)
self.coming.go(account=account._url_code)
return self.page.get_operations()
elif account.type == Account.TYPE_CARD:
self.location(account.url.replace('operations', 'encoursCarte') + '/%s' % account._index)
......
......@@ -175,6 +175,8 @@ def obj_url(self):
path = Attr('.', 'data-urlcatitre')(self)
return urljoin(self.page.url, path)
# Looks like a variant of base64: ASKHJLHWF272jhk22kjhHJQ1_ufad892hjjj122j348=
obj__url_code = Regexp(Field('url'), r'/espace-client/consultation/operations/(.*)', default=None)
obj__card_balance = CleanDecimal('./td//div[@class="synthese-encours"][last()]/div[2]', default=None)
def obj_balance(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment