Add a new command for ICapBill

Useful for pre-paid subscription
This commit is contained in:
Florent 2012-08-29 16:24:42 +02:00
commit f6c212ca72

View file

@ -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()