Class: Moov::Models::Components::LinkApplePaymentMethod

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

Overview

Provides information about the underlying card.

Refer to [Apple's documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymenttoken/1916113-paymentmethod) 
for more information.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(display_name:, network:, type:) ⇒ LinkApplePaymentMethod

Returns a new instance of LinkApplePaymentMethod.



27
28
29
30
31
# File 'lib/moov/models/components/linkapplepaymentmethod.rb', line 27

def initialize(display_name:, network:, type:)
  @display_name = display_name
  @network = network
  @type = type
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/moov/models/components/linkapplepaymentmethod.rb', line 34

def ==(other)
  return false unless other.is_a? self.class
  return false unless @display_name == other.display_name
  return false unless @network == other.network
  return false unless @type == other.type
  true
end