Class: Moov::Models::Components::AccountNameVerification

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

Overview

The results of submitting cardholder name to a card network for verification.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(first_name: nil, last_name: nil, middle_name: nil, full_name: nil) ⇒ AccountNameVerification

Returns a new instance of AccountNameVerification.



26
27
28
29
30
31
# File 'lib/moov/models/components/accountnameverification.rb', line 26

def initialize(first_name: nil, last_name: nil, middle_name: nil, full_name: nil)
  @first_name = first_name
  @last_name = last_name
  @middle_name = middle_name
  @full_name = full_name
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @first_name == other.first_name
  return false unless @last_name == other.last_name
  return false unless @middle_name == other.middle_name
  return false unless @full_name == other.full_name
  true
end