Class: Moov::Models::Components::LinkCard
- Inherits:
-
Object
- Object
- Moov::Models::Components::LinkCard
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/linkcard.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(card_number:, card_cvv:, expiration:, billing_address:, e2ee: nil, holder_name: nil, card_on_file: nil, merchant_account_id: nil, verify_name: nil) ⇒ LinkCard
constructor
A new instance of LinkCard.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(card_number:, card_cvv:, expiration:, billing_address:, e2ee: nil, holder_name: nil, card_on_file: nil, merchant_account_id: nil, verify_name: nil) ⇒ LinkCard
Returns a new instance of LinkCard.
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/linkcard.rb', line 38 def initialize(card_number:, card_cvv:, expiration:, billing_address:, e2ee: nil, holder_name: nil, card_on_file: nil, merchant_account_id: nil, verify_name: nil) @card_number = card_number @card_cvv = card_cvv @expiration = expiration @billing_address = billing_address @e2ee = e2ee @holder_name = holder_name @card_on_file = card_on_file @merchant_account_id = merchant_account_id @verify_name = verify_name end |
Instance Method Details
#==(other) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/moov/models/components/linkcard.rb', line 51 def ==(other) return false unless other.is_a? self.class return false unless @card_number == other.card_number return false unless @card_cvv == other.card_cvv return false unless @expiration == other.expiration return false unless @billing_address == other.billing_address return false unless @e2ee == other.e2ee return false unless @holder_name == other.holder_name return false unless @card_on_file == other.card_on_file return false unless @merchant_account_id == other.merchant_account_id return false unless @verify_name == other.verify_name true end |