ProductDiscountSource Class |
Namespace: CMS.Ecommerce
public class ProductDiscountSource : IProductDiscountSource
The ProductDiscountSource type exposes the following members.
Name | Description | |
---|---|---|
![]() | ProductDiscountSource |
Initializes a new instance of the ProductDiscountSource class using the specified discount sources, main currency source, currency converter factory and rounding service factory.
|
Name | Description | |
---|---|---|
![]() | AddCatalogDiscounts |
Adds grouped catalog discounts applicable to the specified sku to the groups collection.
|
![]() | AddVolumeDiscounts |
Adds a new discount group containing the volume discount for the specified sku in the given Quantity quantity.
|
![]() | CreateFixedProductDiscount |
Creates a new fixed product discount of the specified displayName and value.
|
![]() | CreatePercentageProductDiscount |
Creates a new percentage product discount of the specified displayName.
The amount of the discount is specified by rate parameter.
|
![]() | GetDiscounts |
Returns groups of discounts for the specified sku and price.
|