docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CurrencyItemRequest

    CurrencyItemRequest

    Inheritance
    object
    CurrencyItemRequest
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Apis.Admin.Economy
    Assembly: Unity.Services.Apis.dll
    Syntax
    [DataContract(Name = "currency-item-request")]
    [Preserve]
    public class CurrencyItemRequest

    Constructors

    CurrencyItemRequest(string, string, TypeEnum, decimal, decimal, object)

    Initializes a new instance of the CurrencyItemRequest class.

    Declaration
    [Preserve]
    public CurrencyItemRequest(string id = null, string name = null, CurrencyItemRequest.TypeEnum type = (CurrencyItemRequest.TypeEnum)0, decimal initial = 0, decimal max = 0, object customData = null)
    Parameters
    Type Name Description
    string id

    ID of the item. (required).

    string name

    A descriptive name for the item. (required).

    CurrencyItemRequest.TypeEnum type

    type (required).

    decimal initial

    The initial amount of currency that a player is credited upon first interaction. When max is used, initial must be less than max. (default to 0M).

    decimal max

    The maximum currency balance that a player can have. Calls that would result in the maximum being exceeded return an error..

    object customData

    Max size when serialized 5 kilobits..

    Properties

    CustomData

    Max size when serialized 5 kilobits.

    Declaration
    [DataMember(Name = "customData", EmitDefaultValue = true)]
    [Preserve]
    public object CustomData { get; set; }
    Property Value
    Type Description
    object

    Max size when serialized 5 kilobits.

    Id

    ID of the item.

    Declaration
    [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string Id { get; set; }
    Property Value
    Type Description
    string

    ID of the item.

    Initial

    The initial amount of currency that a player is credited upon first interaction. When max is used, initial must be less than max.

    Declaration
    [DataMember(Name = "initial", EmitDefaultValue = false)]
    [Preserve]
    public decimal Initial { get; set; }
    Property Value
    Type Description
    decimal

    The initial amount of currency that a player is credited upon first interaction. When max is used, initial must be less than max.

    Max

    The maximum currency balance that a player can have. Calls that would result in the maximum being exceeded return an error.

    Declaration
    [DataMember(Name = "max", EmitDefaultValue = false)]
    [Preserve]
    public decimal Max { get; set; }
    Property Value
    Type Description
    decimal

    The maximum currency balance that a player can have. Calls that would result in the maximum being exceeded return an error.

    Name

    A descriptive name for the item.

    Declaration
    [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    A descriptive name for the item.

    Type

    Gets or Sets Type

    Declaration
    [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public CurrencyItemRequest.TypeEnum Type { get; set; }
    Property Value
    Type Description
    CurrencyItemRequest.TypeEnum
    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)