Class: Fog::Billing::StormOnDemand::Real
- Inherits:
-
Object
- Object
- Fog::Billing::StormOnDemand::Real
show all
- Includes:
- StormOnDemand::Shared
- Defined in:
- lib/fog/billing/storm_on_demand.rb,
lib/fog/billing/storm_on_demand/requests/get_invoice.rb,
lib/fog/billing/storm_on_demand/requests/make_payment.rb,
lib/fog/billing/storm_on_demand/requests/next_invoice.rb,
lib/fog/billing/storm_on_demand/requests/list_invoices.rb
Constant Summary
StormOnDemand::Shared::API_URL, StormOnDemand::Shared::API_VERSION
Instance Method Summary
collapse
#initialize, #reload, #request
Instance Method Details
#get_invoice(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/billing/storm_on_demand/requests/get_invoice.rb', line 5
def get_invoice(options = {})
request(
:path => "/Billing/Invoice/details",
:body => Fog::JSON.encode(:params => options)
)
end
|
#list_invoices(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/billing/storm_on_demand/requests/list_invoices.rb', line 5
def list_invoices(options = {})
request(
:path => "/Billing/Invoice/list",
:body => Fog::JSON.encode(:params => options)
)
end
|
#make_payment(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/billing/storm_on_demand/requests/make_payment.rb', line 5
def make_payment(options = {})
request(
:path => "/Billing/Payment/make",
:body => Fog::JSON.encode(:params => options)
)
end
|
#next_invoice(options = {}) ⇒ Object
5
6
7
8
9
10
|
# File 'lib/fog/billing/storm_on_demand/requests/next_invoice.rb', line 5
def next_invoice(options = {})
request(
:path => "/Billing/Invoice/next",
:body => Fog::JSON.encode(:params => options)
)
end
|