Class: Moov::Models::Components::InvoiceExternalPayment
- Inherits:
-
Object
- Object
- Moov::Models::Components::InvoiceExternalPayment
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/invoiceexternalpayment.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(payment_type:, description:, amount:, foreign_id: nil, payment_date: nil) ⇒ InvoiceExternalPayment
constructor
A new instance of InvoiceExternalPayment.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(payment_type:, description:, amount:, foreign_id: nil, payment_date: nil) ⇒ InvoiceExternalPayment
Returns a new instance of InvoiceExternalPayment.
28 29 30 31 32 33 34 |
# File 'lib/moov/models/components/invoiceexternalpayment.rb', line 28 def initialize(payment_type:, description:, amount:, foreign_id: nil, payment_date: nil) @payment_type = payment_type @description = description @amount = amount @foreign_id = foreign_id @payment_date = payment_date end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/moov/models/components/invoiceexternalpayment.rb', line 37 def ==(other) return false unless other.is_a? self.class return false unless @payment_type == other.payment_type return false unless @description == other.description return false unless @amount == other.amount return false unless @foreign_id == other.foreign_id return false unless @payment_date == other.payment_date true end |