Exception: Moov::Models::Errors::UpdateInvoiceError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/errors/updateinvoiceerror.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, invoice_date: nil, due_date: nil, status: nil, tax_amount: nil, raw_response: nil) ⇒ UpdateInvoiceError

Returns a new instance of UpdateInvoiceError.



31
32
33
34
35
36
37
38
39
# File 'lib/moov/models/errors/updateinvoiceerror.rb', line 31

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

Instance Method Details

#==(other) ⇒ Object



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/moov/models/errors/updateinvoiceerror.rb', line 42

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 @invoice_date == other.invoice_date
  return false unless @due_date == other.due_date
  return false unless @status == other.status
  return false unless @tax_amount == other.tax_amount
  return false unless @raw_response == other.raw_response
  true
end