Class VirtualPurchaseItemRequestCostsInner
VirtualPurchaseItemRequestCostsInner
Inherited Members
Namespace: Unity.Services.Apis.Admin.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "virtual_purchase_item_request_costs_inner")]
[Preserve]
public class VirtualPurchaseItemRequestCostsInner
Constructors
VirtualPurchaseItemRequestCostsInner(string, decimal)
Initializes a new instance of the Virtual
Declaration
[Preserve]
public VirtualPurchaseItemRequestCostsInner(string itemId = null, decimal amount = 0)
Parameters
Type | Name | Description |
---|---|---|
string | itemId | The ID of the currency or inventory item used as a cost. (required). |
decimal | amount | The amount of the item that is deducted as part of the purchase. (required). |
Properties
Amount
The amount of the item that is 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 that is deducted as part of the purchase. |
ItemId
The ID of the currency or inventory item used as a cost.
Declaration
[DataMember(Name = "itemId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string ItemId { get; set; }
Property Value
Type | Description |
---|---|
string | The ID of the currency or inventory item used as a cost. |