docs.unity3d.com
    Show / Hide Table of Contents

    Class IapItem

    IapItem is the representation of a purchasable product from the UDP store

    Inheritance
    Object
    IapItem
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Purchasing
    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
    Boolean

    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
    PriceSets

    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.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023