Class: Moov::Models::Components::PaymentMethodsCard
- Inherits:
-
Object
- Object
- Moov::Models::Components::PaymentMethodsCard
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/paymentmethodscard.rb
Overview
A card as contained within a payment method.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(card_id:, fingerprint:, brand:, card_type:, last_four_card_number:, bin:, expiration:, billing_address:, card_verification:, holder_name: nil, issuer: nil, issuer_country: nil, card_on_file: nil, merchant_account_id: nil, card_account_updater: nil, domestic_push_to_card: nil, domestic_pull_from_card: nil) ⇒ PaymentMethodsCard
constructor
A new instance of PaymentMethodsCard.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(card_id:, fingerprint:, brand:, card_type:, last_four_card_number:, bin:, expiration:, billing_address:, card_verification:, holder_name: nil, issuer: nil, issuer_country: nil, card_on_file: nil, merchant_account_id: nil, card_account_updater: nil, domestic_push_to_card: nil, domestic_pull_from_card: nil) ⇒ PaymentMethodsCard
Returns a new instance of PaymentMethodsCard.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/moov/models/components/paymentmethodscard.rb', line 54 def initialize(card_id:, fingerprint:, brand:, card_type:, last_four_card_number:, bin:, expiration:, billing_address:, card_verification:, holder_name: nil, issuer: nil, issuer_country: nil, card_on_file: nil, merchant_account_id: nil, card_account_updater: nil, domestic_push_to_card: nil, domestic_pull_from_card: nil) @card_id = card_id @fingerprint = fingerprint @brand = brand @card_type = card_type @last_four_card_number = last_four_card_number @bin = bin @expiration = expiration @billing_address = billing_address @card_verification = card_verification @holder_name = holder_name @issuer = issuer @issuer_country = issuer_country @card_on_file = card_on_file @merchant_account_id = merchant_account_id @card_account_updater = card_account_updater @domestic_push_to_card = domestic_push_to_card @domestic_pull_from_card = domestic_pull_from_card end |
Instance Method Details
#==(other) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/moov/models/components/paymentmethodscard.rb', line 75 def ==(other) return false unless other.is_a? self.class return false unless @card_id == other.card_id return false unless @fingerprint == other.fingerprint return false unless @brand == other.brand return false unless @card_type == other.card_type return false unless @last_four_card_number == other.last_four_card_number return false unless @bin == other.bin return false unless @expiration == other.expiration return false unless @billing_address == other.billing_address return false unless @card_verification == other.card_verification 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 @card_on_file == other.card_on_file return false unless @merchant_account_id == other.merchant_account_id return false unless @card_account_updater == other.card_account_updater return false unless @domestic_push_to_card == other.domestic_push_to_card return false unless @domestic_pull_from_card == other.domestic_pull_from_card true end |