Class DiscountInfo
- Namespace
- Dynamicweb.Ecommerce.Orders.Discounts
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about a discount.
public class DiscountInfo
- Inheritance
-
DiscountInfo
- Inherited Members
Properties
Discount
Gets the discount.
public Discount Discount { get; }
Property Value
- Discount
- The discount.
Price
Gets the price.
[Obsolete("Use GetPrice overload with PriceContext.")]
public IPriceInfo Price { get; }
Property Value
- IPriceInfo
- The price.
Product
Gets the product.
public Product Product { get; }
Property Value
- Product
- The product.
Methods
GetPrice(Currency, Country)
Gets the price.
[Obsolete("Use GetPrice overload with PriceContext.")]
public IPriceInfo GetPrice(Currency currency, Country country)
Parameters
Returns
GetPrice(Currency, Country, string, int, string)
Gets the price.
[Obsolete("Use GetPrice overload with PriceContext.")]
public IPriceInfo GetPrice(Currency currency, Country country, string unitId, int userId, string shopId)
Parameters
currency
Currency- Currency
country
Country- Country
unitId
string- Product unit id.
userId
int- User id.
shopId
string- Shop id.
Returns
- IPriceInfo
- price
GetPrice(PriceContext, string, long)
public IPriceInfo GetPrice(PriceContext context, string unitId, long stockLocationId)
Parameters
context
PriceContextunitId
stringstockLocationId
long