Class: Moov::Models::Components::LinkGooglePay
- Inherits:
-
Object
- Object
- Moov::Models::Components::LinkGooglePay
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/linkgooglepay.rb
Overview
Links a Google Pay token to a Moov account.
The `paymentMethodData` field should contain the `paymentMethodData` property from the
[PaymentData](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) response
returned by Google Pay's client SDK. Pass it through unmodified.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(merchant_account_id:, payment_method_data:) ⇒ LinkGooglePay
constructor
A new instance of LinkGooglePay.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(merchant_account_id:, payment_method_data:) ⇒ LinkGooglePay
Returns a new instance of LinkGooglePay.
28 29 30 31 |
# File 'lib/moov/models/components/linkgooglepay.rb', line 28 def initialize(merchant_account_id:, payment_method_data:) @merchant_account_id = merchant_account_id @payment_method_data = payment_method_data end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/moov/models/components/linkgooglepay.rb', line 34 def ==(other) return false unless other.is_a? self.class return false unless @merchant_account_id == other.merchant_account_id return false unless @payment_method_data == other.payment_method_data true end |