From 11a5f2eb5b1bd4c43a9a209f90fa6f850cd1c2f1 Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 30 Jul 2013 10:42:27 +0200 Subject: [PATCH] Add attributes to Bill Closes #1202 --- weboob/capabilities/bill.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/weboob/capabilities/bill.py b/weboob/capabilities/bill.py index 216649d9..a1bc450a 100644 --- a/weboob/capabilities/bill.py +++ b/weboob/capabilities/bill.py @@ -62,10 +62,15 @@ class Bill(CapBaseObject): """ Bill. """ - date = DateField('date of the bill') - format = StringField('format of the bill') - label = StringField('label of bill') - idparent = StringField('id of the parent subscription') + date = DateField('The day the bill has been sent to the subscriber') + format = StringField('file format of the bill') + label = StringField('label of bill') + idparent = StringField('id of the parent subscription') + price = DecimalField('Price to pay') + currency = IntField('Currency', default=Currency.CUR_UNKNOWN) + deadline = DateField('The latest day to pay') + startdate = DateField('The first day the bill applies to') + finishdate = DateField('The last day the bill applies to') def __init__(self): CapBaseObject.__init__(self, 0)