Skip to main content

ShopPrice

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

A price in the shop: an amount and its currency. Defaults to 1 shard.

Constructors​

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

Properties​

MemberWhat it is
decimal Amount { get; set; }The price amount, 1 by default.
PriceType PriceType { get; set; }Currency of the price, shards by default.

Methods​

MemberWhat it is
ShopPrice Multiply(int quantity)Returns a new price in the same currency for the given quantity.

Used in​

Members of other types that take, return or hold a ShopPrice: