Class: Moov::Models::Components::TransferDestination

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(payment_method_id: nil, payment_method_type: nil, account: nil, bank_account: nil, wallet: nil, card: nil, apple_pay: nil, google_pay: nil) ⇒ TransferDestination

Returns a new instance of TransferDestination.



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

def initialize(payment_method_id: nil, payment_method_type: nil, account: nil, bank_account: nil, wallet: nil, card: nil, apple_pay: nil, google_pay: nil)
  @payment_method_id = payment_method_id
  @payment_method_type = payment_method_type
  @account = 
  @bank_account = 
  @wallet = wallet
  @card = card
  @apple_pay = apple_pay
  @google_pay = google_pay
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/moov/models/components/transferdestination.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @payment_method_id == other.payment_method_id
  return false unless @payment_method_type == other.payment_method_type
  return false unless @account == other.
  return false unless @bank_account == other.
  return false unless @wallet == other.wallet
  return false unless @card == other.card
  return false unless @apple_pay == other.apple_pay
  return false unless @google_pay == other.google_pay
  true
end