Class: Moov::Models::Components::CreateInvoicePayment

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(amount:, foreign_id: nil, description: nil, payment_date: nil) ⇒ CreateInvoicePayment

Returns a new instance of CreateInvoicePayment.



25
26
27
28
29
30
# File 'lib/moov/models/components/createinvoicepayment.rb', line 25

def initialize(amount:, foreign_id: nil, description: nil, payment_date: nil)
  @amount = amount
  @foreign_id = foreign_id
  @description = description
  @payment_date = payment_date
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/createinvoicepayment.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @amount == other.amount
  return false unless @foreign_id == other.foreign_id
  return false unless @description == other.description
  return false unless @payment_date == other.payment_date
  true
end