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