Class RealMoneyPurchaseResourceResponse
RealMoneyPurchaseResourceResponse
Inherited Members
Namespace: Unity.Services.Apis.Admin.Economy
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "real-money-purchase-resource-response")]
[Preserve]
public class RealMoneyPurchaseResourceResponse
Constructors
RealMoneyPurchaseResourceResponse(string, string, TypeEnum, RealMoneyPurchaseItemResponseStoreIdentifiers, List<VirtualPurchaseResourceResponseRewardsInner>, object, ModifiedMetadata, ModifiedMetadata)
Initializes a new instance of the RealMoneyPurchaseResourceResponse class.
Declaration
[Preserve]
public RealMoneyPurchaseResourceResponse(string id = null, string name = null, RealMoneyPurchaseResourceResponse.TypeEnum type = (RealMoneyPurchaseResourceResponse.TypeEnum)0, RealMoneyPurchaseItemResponseStoreIdentifiers storeIdentifiers = null, List<VirtualPurchaseResourceResponseRewardsInner> rewards = null, object customData = null, ModifiedMetadata created = null, ModifiedMetadata modified = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | ID of the resource. (required). |
string | name | A descriptive name for the resource. (required). |
RealMoneyPurchaseResourceResponse.TypeEnum | type | type (required). |
RealMoneyPurchaseItemResponseStoreIdentifiers | storeIdentifiers | storeIdentifiers (required). |
List<VirtualPurchaseResourceResponseRewardsInner> | rewards | The rewards credited when making the purchase. A reward is an ID of a currency or inventory item, an amount and default instance data for inventory items. An item can be used in more than one reward line. (required). |
object | customData | Max size when serialised 5 kilobits. (required). |
ModifiedMetadata | created | created (required). |
ModifiedMetadata | modified | modified (required). |
Properties
Created
Gets or Sets Created
Declaration
[DataMember(Name = "created", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Created { get; set; }
Property Value
Type | Description |
---|---|
ModifiedMetadata |
CustomData
Max size when serialised 5 kilobits.
Declaration
[DataMember(Name = "customData", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public object CustomData { get; set; }
Property Value
Type | Description |
---|---|
object | Max size when serialised 5 kilobits. |
Id
ID of the resource.
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | ID of the resource. |
Modified
Gets or Sets Modified
Declaration
[DataMember(Name = "modified", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public ModifiedMetadata Modified { get; set; }
Property Value
Type | Description |
---|---|
ModifiedMetadata |
Name
A descriptive name for the resource.
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | A descriptive name for the resource. |
Rewards
The rewards credited when making the purchase. A reward is an ID of a currency or inventory item, an amount and default instance data for inventory items. An item can be used in more than one reward line.
Declaration
[DataMember(Name = "rewards", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<VirtualPurchaseResourceResponseRewardsInner> Rewards { get; set; }
Property Value
Type | Description |
---|---|
List<VirtualPurchaseResourceResponseRewardsInner> | The rewards credited when making the purchase. A reward is an ID of a currency or inventory item, an amount and default instance data for inventory items. An item can be used in more than one reward line. |
StoreIdentifiers
Gets or Sets StoreIdentifiers
Declaration
[DataMember(Name = "storeIdentifiers", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public RealMoneyPurchaseItemResponseStoreIdentifiers StoreIdentifiers { get; set; }
Property Value
Type | Description |
---|---|
RealMoneyPurchaseItemResponseStoreIdentifiers |
Type
Gets or Sets Type
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public RealMoneyPurchaseResourceResponse.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
RealMoneyPurchaseResourceResponse.TypeEnum |