Click or drag to resize
ProductDiscountSource Constructor
Initializes a new instance of the ProductDiscountSource class using the specified discount sources, main currency source, currency converter factory and rounding service factory.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public ProductDiscountSource(
	ICatalogDiscountSource catalogDiscountSource,
	IVolumeDiscountSource volumeDiscountSource,
	ISiteMainCurrencySource mainCurrencySource,
	ICurrencyConverterFactory converterFactory,
	IRoundingServiceFactory roundingServiceFactory
)

Parameters

catalogDiscountSource
Type: CMS.EcommerceICatalogDiscountSource
The source of catalog discounts.
volumeDiscountSource
Type: CMS.EcommerceIVolumeDiscountSource
The source of volume discounts.
mainCurrencySource
Type: CMS.EcommerceISiteMainCurrencySource
The source of main currencies.
converterFactory
Type: CMS.EcommerceICurrencyConverterFactory
The factory supplying currency converters.
roundingServiceFactory
Type: CMS.EcommerceIRoundingServiceFactory
The factory supplying service for price rounding.
See Also