Class BuyQuantityGetCheapestFreeProcessor
The processor responsible for evaluating if a promotion of type BuyQuantityGetCheapestFree should apply a reward to an order group.
Inheritance
System.Object
BuyQuantityGetCheapestFreeProcessor
Implements
Inherited Members
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class BuyQuantityGetCheapestFreeProcessor : GetFreeItemsProcessorBase<BuyQuantityGetCheapestFree>, IPromotionProcessor
Constructors
BuyQuantityGetCheapestFreeProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService, RedemptionDescriptionFactory)
Creates an instance of BuyQuantityGetCheapestFreeProcessor.
Declaration
public BuyQuantityGetCheapestFreeProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService, RedemptionDescriptionFactory redemptionDescriptionFactory)
Parameters
Type | Name | Description |
---|---|---|
CollectionTargetEvaluator | targetEvaluator | The service that is used to evaluate an order against a promotion's target properties. |
FulfillmentEvaluator | fulfillmentEvaluator | The service that is used to evaluate the fulfillment status of the promotion. |
EPiServer.Framework.Localization.LocalizationService | localizationService | The localization service. |
RedemptionDescriptionFactory | redemptionDescriptionFactory | Factory for creating RedemptionDescriptions. |
Methods
GetAffectedEntries(BuyQuantityGetCheapestFree, PromotionProcessorContext, IEnumerable<String>)
Declaration
protected override AffectedEntries GetAffectedEntries(BuyQuantityGetCheapestFree promotionData, PromotionProcessorContext context, IEnumerable<string> applicableCodes)
Parameters
Type | Name | Description |
---|---|---|
BuyQuantityGetCheapestFree | promotionData | |
PromotionProcessorContext | context | |
System.Collections.Generic.IEnumerable<System.String> | applicableCodes |
Returns
Type | Description |
---|---|
AffectedEntries |
Overrides
EPiServer.Commerce.Marketing.Promotions.GetFreeItemsProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetCheapestFree>.GetAffectedEntries(EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetCheapestFree, EPiServer.Commerce.Marketing.PromotionProcessorContext, System.Collections.Generic.IEnumerable<System.String>)