Table of Contents

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

context PriceContext
product Product
unitId string
stockLocationId long

DiscountInfoCollection(Product)

[Obsolete("Use constructor overload with PriceContext.")]
public DiscountInfoCollection(Product product)

Parameters

product Product

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

product Product
The product.
currency Currency
The currency
countryCode string
The country code

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

product Product
The product.
currency Currency
The currency
countryCode string
The country code
userId int
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

product Product
The product.
currency Currency
The currency
countryCode string
The country code
unitId string
userId int
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

product Product
The product.
currency Currency
The currency
countryCode string
The country code
unitId string
The unit id used for product base price calculation.
userId int
The user id used for product base price calculation.
shopId string
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.
To top