Class: Google::Apis::AndroidpublisherV2::Entitlement
- Inherits:
-
Object
- Object
- Google::Apis::AndroidpublisherV2::Entitlement
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidpublisher_v2/classes.rb,
generated/google/apis/androidpublisher_v2/representations.rb,
generated/google/apis/androidpublisher_v2/representations.rb
Overview
An Entitlement resource indicates a user's current entitlement to an inapp item or subscription.
Instance Attribute Summary collapse
-
#kind ⇒ String
This kind represents an entitlement object in the androidpublisher service.
-
#product_id ⇒ String
The SKU of the product.
-
#product_type ⇒ String
The type of the inapp product.
-
#token ⇒ String
The token which can be verified using the subscriptions or products API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entitlement
constructor
A new instance of Entitlement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Entitlement
Returns a new instance of Entitlement
449 450 451 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 449 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
This kind represents an entitlement object in the androidpublisher service.
Corresponds to the JSON property kind
430 431 432 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 430 def kind @kind end |
#product_id ⇒ String
The SKU of the product.
Corresponds to the JSON property productId
435 436 437 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 435 def product_id @product_id end |
#product_type ⇒ String
The type of the inapp product. Possible values are:
- In-app item: "inapp"
- Subscription: "subs"
Corresponds to the JSON property
productType
442 443 444 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 442 def product_type @product_type end |
#token ⇒ String
The token which can be verified using the subscriptions or products API.
Corresponds to the JSON property token
447 448 449 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 447 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
454 455 456 457 458 459 |
# File 'generated/google/apis/androidpublisher_v2/classes.rb', line 454 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 |