Class: Moov::Models::Components::LinkApplePayToken
- Inherits:
-
Object
- Object
- Moov::Models::Components::LinkApplePayToken
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/linkapplepaytoken.rb
Overview
Contains the user’s payment information as returned from Apple Pay.
Refer to [Apple's documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymenttoken)
for more information.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(payment_data:, payment_method:, transaction_identifier:) ⇒ LinkApplePayToken
constructor
A new instance of LinkApplePayToken.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(payment_data:, payment_method:, transaction_identifier:) ⇒ LinkApplePayToken
Returns a new instance of LinkApplePayToken.
33 34 35 36 37 |
# File 'lib/moov/models/components/linkapplepaytoken.rb', line 33 def initialize(payment_data:, payment_method:, transaction_identifier:) @payment_data = payment_data @payment_method = payment_method @transaction_identifier = transaction_identifier end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/moov/models/components/linkapplepaytoken.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @payment_data == other.payment_data return false unless @payment_method == other.payment_method return false unless @transaction_identifier == other.transaction_identifier true end |