docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PayoutDefinition

    Definition of a purchase payout

    Inheritance
    object
    PayoutDefinition
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Purchasing
    Assembly: Unity.Purchasing.dll
    Syntax
    [Serializable]
    public class PayoutDefinition

    Constructors

    PayoutDefinition()

    Default constructor

    Declaration
    public PayoutDefinition()

    PayoutDefinition(string, double)

    Parametrized constructor

    Declaration
    public PayoutDefinition(string subtype, double quantity)
    Parameters
    Type Name Description
    string subtype

    The payout subtype.

    double quantity

    The payout quantity.

    PayoutDefinition(string, double, string)

    Parametrized constructor

    Declaration
    public PayoutDefinition(string subtype, double quantity, string data)
    Parameters
    Type Name Description
    string subtype

    The payout subtype.

    double quantity

    The payout quantity.

    string data

    The payout data.

    PayoutDefinition(string, string, double)

    Parametrized constructor

    Declaration
    public PayoutDefinition(string typeString, string subtype, double quantity)
    Parameters
    Type Name Description
    string typeString

    The payout type, as a string.

    string subtype

    The payout subtype.

    double quantity

    The payout quantity.

    PayoutDefinition(string, string, double, string)

    Parametrized constructor

    Declaration
    public PayoutDefinition(string typeString, string subtype, double quantity, string data)
    Parameters
    Type Name Description
    string typeString

    The payout type, as a string.

    string subtype

    The payout subtype.

    double quantity

    The payout quantity.

    string data

    The payout data.

    PayoutDefinition(PayoutType, string, double)

    Parametrized constructor

    Declaration
    public PayoutDefinition(PayoutType type, string subtype, double quantity)
    Parameters
    Type Name Description
    PayoutType type

    The payout type.

    string subtype

    The payout subtype.

    double quantity

    The payout quantity.

    PayoutDefinition(PayoutType, string, double, string)

    Parametrized constructor

    Declaration
    public PayoutDefinition(PayoutType type, string subtype, double quantity, string data)
    Parameters
    Type Name Description
    PayoutType type

    The payout type.

    string subtype

    The payout subtype.

    double quantity

    The payout quantity.

    string data

    The payout data.

    Fields

    MaxDataLength

    Maximum number of bytes of the payout data

    Declaration
    public const int MaxDataLength = 1024
    Field Value
    Type Description
    int

    MaxSubtypeLength

    Maximum string length of the payout subtype

    Declaration
    public const int MaxSubtypeLength = 64
    Field Value
    Type Description
    int

    Properties

    data

    Payload data of the payout

    Declaration
    public string data { get; }
    Property Value
    Type Description
    string

    quantity

    Quantity or value of the payout

    Declaration
    public double quantity { get; }
    Property Value
    Type Description
    double

    subtype

    Subtype of the payout

    Declaration
    public string subtype { get; }
    Property Value
    Type Description
    string

    type

    Type of the payout

    Declaration
    public PayoutType type { get; }
    Property Value
    Type Description
    PayoutType

    typeString

    Type of the payout as a string

    Declaration
    public string typeString { get; }
    Property Value
    Type Description
    string
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)