docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class VirtualPurchaseResourceRequestCostsInner

    VirtualPurchaseResourceRequestCostsInner

    Inheritance
    object
    VirtualPurchaseResourceRequestCostsInner
    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 = "virtual_purchase_resource_request_costs_inner")]
    [Preserve]
    public class VirtualPurchaseResourceRequestCostsInner

    Constructors

    VirtualPurchaseResourceRequestCostsInner(string, decimal)

    Initializes a new instance of the VirtualPurchaseResourceRequestCostsInner class.

    Declaration
    [Preserve]
    public VirtualPurchaseResourceRequestCostsInner(string resourceId = null, decimal amount = 0)
    Parameters
    Type Name Description
    string resourceId

    The ID of the currency or inventory item used as a cost. (required).

    decimal amount

    The amount of the item deducted as part of the purchase. (required).

    Properties

    Amount

    The amount of the item deducted as part of the purchase.

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

    The amount of the item deducted as part of the purchase.

    ResourceId

    The ID of the currency or inventory item used as a cost.

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

    The ID of the currency or inventory item used as a cost.

    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)