Class: Chartmogul::Import::Invoice

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#delete

Methods inherited from Base

method_missing

Instance Attribute Details

#customer_uuidObject

Returns the value of attribute customer_uuid


4
5
6
# File 'lib/chartmogul/import/invoice.rb', line 4

def customer_uuid
  @customer_uuid
end

Instance Method Details

#create(customer_uuid:, invoice:) ⇒ Object


11
12
13
14
# File 'lib/chartmogul/import/invoice.rb', line 11

def create(customer_uuid:, invoice:)
  @customer_uuid = customer_uuid
  super(invoices: build_array(invoice))
end

#list(customer_uuid:, **listing_options) ⇒ Object


6
7
8
9
# File 'lib/chartmogul/import/invoice.rb', line 6

def list(customer_uuid:, **listing_options)
  @customer_uuid = customer_uuid
  super(listing_options)
end