Class: Moneybird::Resource::RecurringSalesInvoice

Inherits:
Object
  • Object
show all
Extended by:
ClassMethods
Includes:
Moneybird::Resource
Defined in:
lib/moneybird/resource/recurring_sales_invoice.rb

Instance Attribute Summary

Attributes included from ClassMethods

#attributes, #logger, #nillable_attributes

Attributes included from Moneybird::Resource

#client, #errors

Instance Method Summary collapse

Methods included from ClassMethods

build, has_attributes, has_boolean_attributes, has_datetime_attributes, has_integer_attributes, has_nillable_attributes, resource

Methods included from Moneybird::Resource

#attributes, #attributes=, #custom_fields=, #initialize, #link_booking, #path, #persisted?, #to_json

Instance Method Details

#contact=(attributes) ⇒ Object



46
47
48
# File 'lib/moneybird/resource/recurring_sales_invoice.rb', line 46

def contact=(attributes)
  @contact = Moneybird::Resource::Contact.build(attributes)
end

#details=(line_items) ⇒ Object



50
51
52
# File 'lib/moneybird/resource/recurring_sales_invoice.rb', line 50

def details=(line_items)
  @details = line_items.map{ |line_item| Moneybird::Resource::Invoice::Details.build(line_item) }
end

#events=(events) ⇒ Object



54
55
56
# File 'lib/moneybird/resource/recurring_sales_invoice.rb', line 54

def events=(events)
  @events = events.map{ |event| Moneybird::Resource::Generic::Event.build(event) }
end

#notes=(notes) ⇒ Object



42
43
44
# File 'lib/moneybird/resource/recurring_sales_invoice.rb', line 42

def notes=(notes)
  @notes = notes.map{ |note| Moneybird::Resource::Generic::Note.build(note) }
end