Class: Chartmogul::V1::Import::Invoices

Inherits:
Base
  • Object
show all
Defined in:
lib/chartmogul/v1/import/invoices.rb

Constant Summary collapse

BASE_URI =
"#{BASE_URI}/import/customers"

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

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, **options)
  Chartmogul::V1::Request.new "#{BASE_URI}/#{customer_id}/invoices", options.merge(method: :post, userpwd: client.userpwd)
end