Class: Moov::Models::Components::BankAccount

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

Overview

Describes a bank account linked to a Moov account.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(bank_account_id:, fingerprint:, status:, holder_name:, holder_type:, bank_name:, bank_account_type:, routing_number:, last_four_account_number:, updated_on:, status_reason: nil, exception_details: nil, payment_methods: nil) ⇒ BankAccount

Returns a new instance of BankAccount.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/moov/models/components/bankaccount.rb', line 49

def initialize(bank_account_id:, fingerprint:, status:, holder_name:, holder_type:, bank_name:, bank_account_type:, routing_number:, last_four_account_number:, updated_on:, status_reason: nil, exception_details: nil, payment_methods: nil)
   = 
  @fingerprint = fingerprint
  @status = status
  @holder_name = holder_name
  @holder_type = holder_type
  @bank_name = bank_name
   = 
  @routing_number = routing_number
   = 
  @updated_on = updated_on
  @status_reason = status_reason
  @exception_details = exception_details
  @payment_methods = payment_methods
end

Instance Method Details

#==(other) ⇒ Object



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/moov/models/components/bankaccount.rb', line 66

def ==(other)
  return false unless other.is_a? self.class
  return false unless  == other.
  return false unless @fingerprint == other.fingerprint
  return false unless @status == other.status
  return false unless @holder_name == other.holder_name
  return false unless @holder_type == other.holder_type
  return false unless @bank_name == other.bank_name
  return false unless  == other.
  return false unless @routing_number == other.routing_number
  return false unless  == other.
  return false unless @updated_on == other.updated_on
  return false unless @status_reason == other.status_reason
  return false unless @exception_details == other.exception_details
  return false unless @payment_methods == other.payment_methods
  true
end