class Google::Apis::AndroidpublisherV2::Entitlement

An Entitlement resource indicates a user's current entitlement to an inapp item or subscription.

Attributes

kind[RW]

This kind represents an entitlement object in the androidpublisher service. Corresponds to the JSON property `kind` @return [String]

product_id[RW]

The SKU of the product. Corresponds to the JSON property `productId` @return [String]

product_type[RW]

The type of the inapp product. Possible values are:

  • In-app item: “inapp”

  • Subscription: “subs”

Corresponds to the JSON property `productType` @return [String]

token[RW]

The token which can be verified using the subscriptions or products API. Corresponds to the JSON property `token` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/androidpublisher_v2/classes.rb, line 282
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/androidpublisher_v2/classes.rb, line 287
def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @product_id = args[:product_id] if args.key?(:product_id)
  @product_type = args[:product_type] if args.key?(:product_type)
  @token = args[:token] if args.key?(:token)
end