Class IapItem
IapItem is the representation of a purchasable product from the UDP store
Inherited Members
Namespace: UnityEditor .Purchasing
Assembly: solution.dll
Syntax
[Serializable]
public class IapItem
Fields
consumable
Is product a consumable type. If set to false it is a subscriptions. Consumables may be purchased more than once. Subscriptions have a finite window of validity.
Declaration
public bool consumable
Field Value
Type | Description |
---|---|
bool |
id
A unique identifier to identify the product.
Declaration
public string id
Field Value
Type | Description |
---|---|
string |
masterItemSlug
The organization url stripped of all unsafe characters.
Declaration
public string masterItemSlug
Field Value
Type | Description |
---|---|
string |
name
The product name.
Declaration
public string name
Field Value
Type | Description |
---|---|
string |
ownerId
The organization id.
Declaration
public string ownerId
Field Value
Type | Description |
---|---|
string |
ownerType
The organization type.
Declaration
public string ownerType
Field Value
Type | Description |
---|---|
string |
priceSets
The product's prices with currencies.
Declaration
public PriceSets priceSets
Field Value
Type | Description |
---|---|
Price |
properties
The properties of the product.
Declaration
public Properties properties
Field Value
Type | Description |
---|---|
Properties |
slug
The product url stripped of all unsafe characters.
Declaration
public string slug
Field Value
Type | Description |
---|---|
string |
status
The product status.
Declaration
public string status
Field Value
Type | Description |
---|---|
string |
type
The product type.
Declaration
public string type
Field Value
Type | Description |
---|---|
string |
Methods
ValidationCheck()
Validates that the IapItem has at least the minimum amount of information set.
Declaration
public string ValidationCheck()
Returns
Type | Description |
---|---|
string | A string error of missing information to the IapItem. |