Class DiscountInfoCollection
- Namespace
- Dynamicweb.Ecommerce.Orders.Discounts
- Assembly
- Dynamicweb.Ecommerce.dll
Represents information about a discount information collection.
public class DiscountInfoCollection : Collection<DiscountInfo>, IList<DiscountInfo>, ICollection<DiscountInfo>, IReadOnlyList<DiscountInfo>, IReadOnlyCollection<DiscountInfo>, IEnumerable<DiscountInfo>, IList, ICollection, IEnumerable
- Inheritance
-
DiscountInfoCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
DiscountInfoCollection(PriceContext, Product, string, long)
public DiscountInfoCollection(PriceContext context, Product product, string unitId, long stockLocationId)
Parameters
contextPriceContextproductProductunitIdstringstockLocationIdlong
DiscountInfoCollection(Product)
[Obsolete("Use constructor overload with PriceContext.")]
public DiscountInfoCollection(Product product)
Parameters
productProduct
DiscountInfoCollection(Product, Currency, string)
Initializes a new instance of the DiscountInfoCollection class.
[Obsolete("Use constructor overload with PriceContext.")]
public DiscountInfoCollection(Product product, Currency currency, string countryCode)
Parameters
DiscountInfoCollection(Product, Currency, string, int)
Initializes a new instance of the DiscountInfoCollection class.
[Obsolete("Use constructor overload with PriceContext.")]
public DiscountInfoCollection(Product product, Currency currency, string countryCode, int userId)
Parameters
productProduct- The product.
currencyCurrency- The currency
countryCodestring- The country code
userIdint- The user id.
DiscountInfoCollection(Product, Currency, string, string, int)
Initializes a new instance of the DiscountInfoCollection class.
[Obsolete("Use constructor overload with PriceContext.")]
public DiscountInfoCollection(Product product, Currency currency, string countryCode, string unitId, int userId)
Parameters
productProduct- The product.
currencyCurrency- The currency
countryCodestring- The country code
unitIdstringuserIdint- The user id.
DiscountInfoCollection(Product, Currency, string, string, int, string)
Initializes a new instance of the DiscountInfoCollection class.
[Obsolete("Use constructor overload with PriceContext.")]
public DiscountInfoCollection(Product product, Currency currency, string countryCode, string unitId, int userId, string shopId)
Parameters
productProduct- The product.
currencyCurrency- The currency
countryCodestring- The country code
unitIdstring- The unit id used for product base price calculation.
userIdint- The user id used for product base price calculation.
shopIdstring- The shop id used for product base price calculation.
Properties
Price
Gets the price of the product with the discount subtracted.
public IPriceInfo Price { get; }
Property Value
- IPriceInfo
- The price.
TotalPrice
Gets the total price of the discounts.
public IPriceInfo TotalPrice { get; }
Property Value
- IPriceInfo
- The total price.