Search bills on freemobile
This commit is contained in:
parent
749162188d
commit
c890fe26d7
3 changed files with 26 additions and 6 deletions
|
|
@ -68,11 +68,15 @@ class FreeMobileBackend(BaseBackend, ICapBill):
|
|||
for history in self.browser.get_history():
|
||||
yield history
|
||||
|
||||
def get_get_bill(self, subscription, id):
|
||||
def get_bill(self, subscription, id):
|
||||
raise NotImplementedError()
|
||||
|
||||
def iter_bill(self, subscription):
|
||||
raise NotImplementedError()
|
||||
def iter_bills(self, subscription):
|
||||
with self.browser:
|
||||
sub = self.get_subscription(subscription)
|
||||
for bill in self.browser.iter_bills():
|
||||
bill.idparent = sub.id
|
||||
yield bill
|
||||
|
||||
# The subscription is actually useless, but maybe for the futur...
|
||||
def get_details(self, subscription):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue