Skip to main content

ShopItemModificationRequest

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Shared.

A shop item as staff create or edit it through the API.

Constructors​

MemberWhat it is
ShopItemModificationRequest()Creates a ShopItemModificationRequest with default values.

Properties​

MemberWhat it is
bool CanOnlyBeBoughtOnce { get; set; }Whether each user can buy it only once; true by default.
int Category { get; set; }Id of the item's shop category.
string Currency { get; set; }Currency the price is in.
string Description { get; set; }Item description.
int Id { get; set; }The item's id. Left out of the JSON when 0, so a new item gets one from the API.
bool IsEnabled { get; set; }Whether the item is on sale.
bool IsItemSet { get; }True when the SKU has the set_ prefix. Read only.
string Name { get; set; }Item name.
decimal Price { get; set; }Item price.
int PurchaseCount { get; set; }How many times it has been bought.
int ShopItemSet { get; set; }Id of the set this item belongs to, left out when 0.
string Sku { get; set; }The item's SKU; a set_ prefix makes it an item set.
int XsollaItemId { get; set; }The item's id in Xsolla, the payment provider.

Methods​

MemberWhat it is
override string ToString()Returns the id and SKU.