Exception: Moov::Models::Errors::CreateInvoiceError
- Inherits:
-
StandardError
- Object
- StandardError
- Moov::Models::Errors::CreateInvoiceError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/errors/createinvoiceerror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(customer_account_id: nil, description: nil, line_items: nil, invoice_date: nil, due_date: nil, tax_amount: nil, raw_response: nil) ⇒ CreateInvoiceError
constructor
A new instance of CreateInvoiceError.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(customer_account_id: nil, description: nil, line_items: nil, invoice_date: nil, due_date: nil, tax_amount: nil, raw_response: nil) ⇒ CreateInvoiceError
Returns a new instance of CreateInvoiceError.
31 32 33 34 35 36 37 38 39 |
# File 'lib/moov/models/errors/createinvoiceerror.rb', line 31 def initialize(customer_account_id: nil, description: nil, line_items: nil, invoice_date: nil, due_date: nil, tax_amount: nil, raw_response: nil) @customer_account_id = customer_account_id @description = description @line_items = line_items @invoice_date = invoice_date @due_date = due_date @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/createinvoiceerror.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @customer_account_id == other.customer_account_id 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 @tax_amount == other.tax_amount return false unless @raw_response == other.raw_response true end |