Class: Moov::Models::Components::CardVerification

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

Overview

The results of submitting cardholder data 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(cvv:, address_line1:, postal_code:, account_name: nil) ⇒ CardVerification

Returns a new instance of CardVerification.



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

def initialize(cvv:, address_line1:, postal_code:, account_name: nil)
  @cvv = cvv
  @address_line1 = address_line1
  @postal_code = postal_code
  @account_name = 
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @cvv == other.cvv
  return false unless @address_line1 == other.address_line1
  return false unless @postal_code == other.postal_code
  return false unless @account_name == other.
  true
end