Class: Moov::Models::Components::TerminalCard
- Inherits:
-
Object
- Object
- Moov::Models::Components::TerminalCard
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/terminalcard.rb
Overview
Describes payment card details captured with tap or in-person payment.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(entry_mode: nil, brand: nil, bin: nil, card_type: nil, expiration: nil, fingerprint: nil, holder_name: nil, issuer: nil, issuer_country: nil, last_four_card_number: nil, application_id: nil, application_name: nil) ⇒ TerminalCard
constructor
A new instance of TerminalCard.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(entry_mode: nil, brand: nil, bin: nil, card_type: nil, expiration: nil, fingerprint: nil, holder_name: nil, issuer: nil, issuer_country: nil, last_four_card_number: nil, application_id: nil, application_name: nil) ⇒ TerminalCard
Returns a new instance of TerminalCard.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/moov/models/components/terminalcard.rb', line 44 def initialize(entry_mode: nil, brand: nil, bin: nil, card_type: nil, expiration: nil, fingerprint: nil, holder_name: nil, issuer: nil, issuer_country: nil, last_four_card_number: nil, application_id: nil, application_name: nil) @entry_mode = entry_mode @brand = brand @bin = bin @card_type = card_type @expiration = expiration @fingerprint = fingerprint @holder_name = holder_name @issuer = issuer @issuer_country = issuer_country @last_four_card_number = last_four_card_number @application_id = application_id @application_name = application_name end |
Instance Method Details
#==(other) ⇒ Object
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/moov/models/components/terminalcard.rb', line 60 def ==(other) return false unless other.is_a? self.class return false unless @entry_mode == other.entry_mode return false unless @brand == other.brand return false unless @bin == other.bin return false unless @card_type == other.card_type return false unless @expiration == other.expiration return false unless @fingerprint == other.fingerprint return false unless @holder_name == other.holder_name return false unless @issuer == other.issuer return false unless @issuer_country == other.issuer_country return false unless @last_four_card_number == other.last_four_card_number return false unless @application_id == other.application_id return false unless @application_name == other.application_name true end |