Class: Chartmogul::V1::Import::Invoices
- Defined in:
- lib/chartmogul/v1/import/invoices.rb
Constant Summary collapse
- BASE_URI =
"#{BASE_URI}/import/customers"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#create(customer_id, **options) ⇒ Object
Public: Import Invoices.
Instance Method Details
#create(customer_id, **options) ⇒ Object
Public: Import Invoices.
See: dev.chartmogul.com/docs/invoices
customer_id - The String/Integer ChartMogul ID of the customer.
Specified as part of the URL.
options - The Hash options used to create a Invoices (default: {}).
Returns the instance of Chartmogul::V1::Request.
15 16 17 |
# File 'lib/chartmogul/v1/import/invoices.rb', line 15 def create(customer_id, **) Chartmogul::V1::Request.new "#{BASE_URI}/#{customer_id}/invoices", .merge(method: :post, userpwd: client.userpwd) end |