Class: Moov::Models::Components::CreateInvoice
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateInvoice
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createinvoice.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(customer_account_id:, line_items:, description: nil, invoice_date: nil, due_date: nil, tax_amount: nil) ⇒ CreateInvoice
constructor
A new instance of CreateInvoice.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(customer_account_id:, line_items:, description: nil, invoice_date: nil, due_date: nil, tax_amount: nil) ⇒ CreateInvoice
Returns a new instance of CreateInvoice.
29 30 31 32 33 34 35 36 |
# File 'lib/moov/models/components/createinvoice.rb', line 29 def initialize(customer_account_id:, line_items:, description: nil, invoice_date: nil, due_date: nil, tax_amount: nil) @customer_account_id = customer_account_id @line_items = line_items @description = description @invoice_date = invoice_date @due_date = due_date @tax_amount = tax_amount end |
Instance Method Details
#==(other) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/createinvoice.rb', line 39 def ==(other) return false unless other.is_a? self.class return false unless @customer_account_id == other.customer_account_id return false unless @line_items == other.line_items return false unless @description == other.description return false unless @invoice_date == other.invoice_date return false unless @due_date == other.due_date return false unless @tax_amount == other.tax_amount true end |