softlayer/softlayer-python — pull request #458 by Neetuj (2014-11-24 21:44:38+00:00)
Title: Adding billing

(buzzenv)~/office/softlayer-python (billing) > sl billing
Usage: sl billing [OPTIONS] COMMAND [ARGS]...

Billing.

Options:
--help Show this message and exit.

Commands:
info List billing details of Account.
list List billing information for orders.

(buzzenv)~/office/softlayer-python (billing) > sl billing info
keyName USD
id 840
name United States dollar
:...........................:....................................:
: Name : Value :
:...........................:....................................:
: id : 153465 :
: paymentTerms : :
: modifyDate : 2014-03-12T09:40:50-07:00 :
: anniversaryDayOfMonth : 9 :
: lastFourPaymentCardDigits : :
: cardExpirationMonth : :
: cardExpirationYear : :
: percentDiscountOnetime : 100 :
: sparePoolAmount : 0 :
: lastPaymentDate : :
: createDate : 2010-09-09T11:53:45-07:00 :
: percentDiscountRecurring : 100 :
: currency : :.........:......................: :
: : : Name : Value : :
: : :.........:......................: :
: : : keyName : USD : :
: : : id : 556 : :
: : : name : United States dollar : :
: : :.........:......................: :
:...........................:....................................:

(buzzenv)~/office/softlayer-python (billing) > sl billing list --help
Usage: sl billing list [OPTIONS]

List billing information for orders.

Options:
-f, --start_date TEXT cost incurred from from_date
-e, --end_date TEXT end date to consider, default is latest time stamp
--help Show this message and exit.

(buzzenv)~/office/softlayer-python (billing) > sl billing list -f 2014-02-06 -e 2014-04-01
:..........:...............:...................:......:...........................:
: Order ID : Resource Name : Resource Type : cost : create_date :
:..........:...............:...................:......:...........................:
: 1863254 : njain2 : 2 x 2.0 GHz Cores : 0.0 : 2014-03-24T14:13:28-07:00 :
:..........:...............:...................:......:...........................: