Skip to content

Adding billing#458

Merged
underscorephil merged 18 commits into
softlayer:masterfrom
Neetuj:billing
Jan 13, 2015
Merged

Adding billing#458
underscorephil merged 18 commits into
softlayer:masterfrom
Neetuj:billing

Conversation

@Neetuj
Copy link
Copy Markdown
Member

@Neetuj Neetuj commented Nov 24, 2014

~/office/softlayer-python (billing) > sl billing --help
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.
summary List billing summary.

(buzzenv)~/office/softlayer-python (billing) > sl billing info

:...........................:....................................:
: 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 :
:..........:...............:...................:......:...........................:

~/office/softlayer-python (billing) > sl billing summary
:........................:...........................:
: Name : Value :
:........................:...........................:
: Current Balance : 1615 :
: Estimated Next Balance : 3.04 :
: Last Billing Date : 2014-11-09T00:00:00-06:00 :
:........................:...........................:

@underscorephil
Copy link
Copy Markdown
Contributor

@Neetuj are you planning to add tests to this PR?

@Neetuj
Copy link
Copy Markdown
Member Author

Neetuj commented Dec 11, 2014

will do

underscorephil added a commit that referenced this pull request Jan 13, 2015
@underscorephil underscorephil merged commit f764db2 into softlayer:master Jan 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants