Class: Google::Apis::WalletobjectsV1::SmartTap

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SmartTap

Returns a new instance of SmartTap.



6972
6973
6974
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6972

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idString

The unique identifier for a smart tap. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is the Smart Tap id. The Smart Tap id is a Base64 encoded string which represents the id which was generated by the Google Pay app. Corresponds to the JSON property id

Returns:

  • (String)


6954
6955
6956
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6954

def id
  @id
end

#infosArray<Google::Apis::WalletobjectsV1::IssuerToUserInfo>

Communication from merchant to user. Corresponds to the JSON property infos



6959
6960
6961
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6959

def infos
  @infos
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#smartTap". Corresponds to the JSON property kind

Returns:

  • (String)


6965
6966
6967
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6965

def kind
  @kind
end

#merchant_idFixnum

Smart Tap merchant ID of who engaged in the Smart Tap interaction. Corresponds to the JSON property merchantId

Returns:

  • (Fixnum)


6970
6971
6972
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6970

def merchant_id
  @merchant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6977
6978
6979
6980
6981
6982
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 6977

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @infos = args[:infos] if args.key?(:infos)
  @kind = args[:kind] if args.key?(:kind)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
end