Class BuyQuantityGetFreeItemsProcessor
The processor responsible for evaluating if a promotion of type Buy
Inheritance
System.Object
BuyQuantityGetFreeItemsProcessor
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 13.30.0Syntax
public class BuyQuantityGetFreeItemsProcessor : GetFreeItemsProcessorBase<BuyQuantityGetFreeItems>, IPromotionProcessor
Constructors
BuyQuantityGetFreeItemsProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService, RedemptionDescriptionFactory)
Creates an instance of Buy
Declaration
public BuyQuantityGetFreeItemsProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService, RedemptionDescriptionFactory redemptionDescriptionFactory)
Parameters
Type | Name | Description |
---|---|---|
Collection |
targetEvaluator | The service that is used to evaluate an order against a promotion's target properties. |
Fulfillment |
fulfillmentEvaluator | The service that is used to evaluate the fulfillment status of the promotion. |
EPi |
localizationService | The localization service. |
Redemption |
redemptionDescriptionFactory | Factory for creating Redemption |
Methods
GetAffectedEntries(BuyQuantityGetFreeItems, PromotionProcessorContext, IEnumerable<String>)
Declaration
protected override AffectedEntries GetAffectedEntries(BuyQuantityGetFreeItems promotionData, PromotionProcessorContext context, IEnumerable<string> applicableCodes)
Parameters
Type | Name | Description |
---|---|---|
Buy |
promotionData | |
Promotion |
context | |
System. |
applicableCodes |
Returns
Type | Description |
---|---|
Affected |
Overrides
EPiServer.Commerce.Marketing.Promotions.GetFreeItemsProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetFreeItems>.GetAffectedEntries(EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetFreeItems, EPiServer.Commerce.Marketing.PromotionProcessorContext, System.Collections.Generic.IEnumerable<System.String>)