Class: Moov::Models::Components::UpdatePaymentLink

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(amount: nil, display: nil, customer: nil, payment: nil, payout: nil, expires_on: nil) ⇒ UpdatePaymentLink

Returns a new instance of UpdatePaymentLink.



30
31
32
33
34
35
36
37
# File 'lib/moov/models/components/updatepaymentlink.rb', line 30

def initialize(amount: nil, display: nil, customer: nil, payment: nil, payout: nil, expires_on: nil)
  @amount = amount
  @display = display
  @customer = customer
  @payment = payment
  @payout = payout
  @expires_on = expires_on
end

Instance Method Details

#==(other) ⇒ Object



40
41
42
43
44
45
46
47
48
49
# File 'lib/moov/models/components/updatepaymentlink.rb', line 40

def ==(other)
  return false unless other.is_a? self.class
  return false unless @amount == other.amount
  return false unless @display == other.display
  return false unless @customer == other.customer
  return false unless @payment == other.payment
  return false unless @payout == other.payout
  return false unless @expires_on == other.expires_on
  true
end