Class: Moov::Models::Components::UpdateInvoice

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/updateinvoice.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(description: nil, line_items: nil, status: nil, tax_amount: nil, invoice_date: nil, due_date: nil) ⇒ UpdateInvoice

Returns a new instance of UpdateInvoice.



31
32
33
34
35
36
37
38
# File 'lib/moov/models/components/updateinvoice.rb', line 31

def initialize(description: nil, line_items: nil, status: nil, tax_amount: nil, invoice_date: nil, due_date: nil)
  @description = description
  @line_items = line_items
  @status = status
  @tax_amount = tax_amount
  @invoice_date = invoice_date
  @due_date = due_date
end

Instance Method Details

#==(other) ⇒ Object



41
42
43
44
45
46
47
48
49
50
# File 'lib/moov/models/components/updateinvoice.rb', line 41

def ==(other)
  return false unless other.is_a? self.class
  return false unless @description == other.description
  return false unless @line_items == other.line_items
  return false unless @status == other.status
  return false unless @tax_amount == other.tax_amount
  return false unless @invoice_date == other.invoice_date
  return false unless @due_date == other.due_date
  true
end