Class: Moov::Models::Components::GooglePayTokenizationData

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

Overview

Contains the encrypted payment token from Google Pay.

The `token` field is a JSON-encoded string containing the ECv2 encrypted payment token.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type:, token:) ⇒ GooglePayTokenizationData

Returns a new instance of GooglePayTokenizationData.



23
24
25
26
# File 'lib/moov/models/components/googlepaytokenizationdata.rb', line 23

def initialize(type:, token:)
  @type = type
  @token = token
end

Instance Method Details

#==(other) ⇒ Object



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

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