Class: Moov::Models::Components::TransferSource

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/transfersource.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:, payment_method_type:, account:, transfer_id: nil, bank_account: nil, wallet: nil, card: nil, apple_pay: nil, terminal_card: nil, card_details: nil, ach_details: nil) ⇒ TransferSource

Returns a new instance of TransferSource.



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

def initialize(payment_method_id:, payment_method_type:, account:, transfer_id: nil, bank_account: nil, wallet: nil, card: nil, apple_pay: nil, terminal_card: nil, card_details: nil, ach_details: nil)
  @payment_method_id = payment_method_id
  @payment_method_type = payment_method_type
  @account = 
  @transfer_id = transfer_id
  @bank_account = 
  @wallet = wallet
  @card = card
  @apple_pay = apple_pay
  @terminal_card = terminal_card
  @card_details = card_details
  @ach_details = ach_details
end

Instance Method Details

#==(other) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/moov/models/components/transfersource.rb', line 54

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 @transfer_id == other.transfer_id
  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 @terminal_card == other.terminal_card
  return false unless @card_details == other.card_details
  return false unless @ach_details == other.ach_details
  true
end