Class: Moov::Models::Components::GooglePayPaymentMethodData

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

Overview

The ‘paymentMethodData` object from Google Pay’s

[PaymentData](https://developers.google.com/pay/api/web/reference/response-objects#PaymentData) response.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(info:, tokenization_data:, type: nil, description: nil) ⇒ GooglePayPaymentMethodData

Returns a new instance of GooglePayPaymentMethodData.



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

def initialize(info:, tokenization_data:, type: nil, description: nil)
  @info = info
  @tokenization_data = tokenization_data
  @type = type
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @info == other.info
  return false unless @tokenization_data == other.tokenization_data
  return false unless @type == other.type
  return false unless @description == other.description
  true
end