Class: Moov::Models::Components::UpdateCard

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(e2ee: nil, billing_address: nil, expiration: nil, card_cvv: nil, card_on_file: nil, merchant_account_id: nil, verify_name: nil, holder_name: nil) ⇒ UpdateCard

Returns a new instance of UpdateCard.



36
37
38
39
40
41
42
43
44
45
# File 'lib/moov/models/components/updatecard.rb', line 36

def initialize(e2ee: nil, billing_address: nil, expiration: nil, card_cvv: nil, card_on_file: nil, merchant_account_id: nil, verify_name: nil, holder_name: nil)
  @e2ee = e2ee
  @billing_address = billing_address
  @expiration = expiration
  @card_cvv = card_cvv
  @card_on_file = card_on_file
   = 
  @verify_name = verify_name
  @holder_name = holder_name
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/moov/models/components/updatecard.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @e2ee == other.e2ee
  return false unless @billing_address == other.billing_address
  return false unless @expiration == other.expiration
  return false unless @card_cvv == other.card_cvv
  return false unless @card_on_file == other.card_on_file
  return false unless  == other.
  return false unless @verify_name == other.verify_name
  return false unless @holder_name == other.holder_name
  true
end