Class: Moov::Models::Components::LinkApplePay

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

Overview

The JSON structure returned from Apple Pay when authorizing a payment session.

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(token:, billing_contact: nil) ⇒ LinkApplePay

Returns a new instance of LinkApplePay.



31
32
33
34
# File 'lib/moov/models/components/linkapplepay.rb', line 31

def initialize(token:, billing_contact: nil)
  @token = token
  @billing_contact = billing_contact
end

Instance Method Details

#==(other) ⇒ Object



37
38
39
40
41
42
# File 'lib/moov/models/components/linkapplepay.rb', line 37

def ==(other)
  return false unless other.is_a? self.class
  return false unless @token == other.token
  return false unless @billing_contact == other.billing_contact
  true
end