From f6c212ca72c7d88faba451cf65b1a191e021d361 Mon Sep 17 00:00:00 2001 From: Florent Date: Wed, 29 Aug 2012 16:24:42 +0200 Subject: [PATCH] Add a new command for ICapBill Useful for pre-paid subscription --- weboob/capabilities/bill.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/weboob/capabilities/bill.py b/weboob/capabilities/bill.py index 272bac3e..2bd89e1d 100644 --- a/weboob/capabilities/bill.py +++ b/weboob/capabilities/bill.py @@ -143,8 +143,18 @@ class ICapBill(ICapCollection): """ Get details of a subscription. - :param subscription: subscription to get bills + :param subscription: subscription to get details :type subscription: :class:`Subscription` :rtype: iter[:class:`Detail`] """ raise NotImplementedError() + + def get_balance(self, subscription): + """ + Get the balance of a subscription. + + :param subscription: subscription to get balance + :type subscription: :class:`Subscription` + :rtype :class:`Decimal` + """ + raise NotImplementedError()