Class: Moov::Models::Components::FullIssuedCard

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

Overview

The full details of an issued card, including PAN and CVV.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, pan:, cvv:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil) ⇒ FullIssuedCard

Returns a new instance of FullIssuedCard.



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

def initialize(issued_card_id:, brand:, last_four_card_number:, expiration:, funding_wallet_id:, state:, form_factor:, created_on:, updated_on:, pan:, cvv:, authorized_user_account_id: nil, nickname: nil, metadata: nil, billing_address: nil, controls: nil)
  @issued_card_id = issued_card_id
  @brand = brand
  @last_four_card_number = last_four_card_number
  @expiration = expiration
  @funding_wallet_id = funding_wallet_id
  @state = state
  @form_factor = form_factor
  @created_on = created_on
  @updated_on = updated_on
  @pan = pan
  @cvv = cvv
  @authorized_user_account_id = 
  @nickname = nickname
  @metadata = 
  @billing_address = billing_address
  @controls = controls
end

Instance Method Details

#==(other) ⇒ Object



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/moov/models/components/fullissuedcard.rb', line 74

def ==(other)
  return false unless other.is_a? self.class
  return false unless @issued_card_id == other.issued_card_id
  return false unless @brand == other.brand
  return false unless @last_four_card_number == other.last_four_card_number
  return false unless @expiration == other.expiration
  return false unless @funding_wallet_id == other.funding_wallet_id
  return false unless @state == other.state
  return false unless @form_factor == other.form_factor
  return false unless @created_on == other.created_on
  return false unless @updated_on == other.updated_on
  return false unless @pan == other.pan
  return false unless @cvv == other.cvv
  return false unless @authorized_user_account_id == other.
  return false unless @nickname == other.nickname
  return false unless @metadata == other.
  return false unless @billing_address == other.billing_address
  return false unless @controls == other.controls
  true
end