Class: Moov::Models::Components::PaymentMethodsBankAccount

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

Overview

A bank account as contained within a payment method.

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:) ⇒ PaymentMethodsBankAccount

Returns a new instance of PaymentMethodsBankAccount.



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

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

Instance Method Details

#==(other) ⇒ Object



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

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
  true
end