Class BuyFromCategoryGetItemDiscountProcessor

The processor responsible for evaluating if a promotion of type BuyFromCategoryGetItemDiscount.

Implements
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0
Syntax
public class BuyFromCategoryGetItemDiscountProcessor : GetItemDiscountProcessorBase<BuyFromCategoryGetItemDiscount>, IPromotionProcessor

Constructors

BuyFromCategoryGetItemDiscountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService)

Creates an instance of a BuyFromCategoryGetItemDiscountProcessor.

Declaration
public BuyFromCategoryGetItemDiscountProcessor(CollectionTargetEvaluator collectionTargetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService)
Parameters
Type Name Description
CollectionTargetEvaluator collectionTargetEvaluator

The service that is used to evaluate the target properties.

FulfillmentEvaluator fulfillmentEvaluator

The service that is used to evaluate the fulfillment status of the promotion.

EPiServer.Framework.Localization.LocalizationService localizationService

The service that is used to handle localization.

Methods

CanBeFulfilled(BuyFromCategoryGetItemDiscount, PromotionProcessorContext)

Declaration
protected override bool CanBeFulfilled(BuyFromCategoryGetItemDiscount promotionData, PromotionProcessorContext context)
Parameters
Type Name Description
BuyFromCategoryGetItemDiscount promotionData
PromotionProcessorContext context
Returns
Type Description
System.Boolean
Overrides
EPiServer.Commerce.Marketing.Promotions.GetItemDiscountProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount>.CanBeFulfilled(EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)

GetFulfillmentStatus(BuyFromCategoryGetItemDiscount, PromotionProcessorContext)

Declaration
protected override FulfillmentStatus GetFulfillmentStatus(BuyFromCategoryGetItemDiscount promotionData, PromotionProcessorContext context)
Parameters
Type Name Description
BuyFromCategoryGetItemDiscount promotionData
PromotionProcessorContext context
Returns
Type Description
FulfillmentStatus
Overrides
EPiServer.Commerce.Marketing.Promotions.GetItemDiscountProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount>.GetFulfillmentStatus(EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)

GetPromotionItems(BuyFromCategoryGetItemDiscount)

Declaration
protected override PromotionItems GetPromotionItems(BuyFromCategoryGetItemDiscount promotionData)
Parameters
Type Name Description
BuyFromCategoryGetItemDiscount promotionData
Returns
Type Description
PromotionItems
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount>.GetPromotionItems(EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount)

GetRedemptions(BuyFromCategoryGetItemDiscount, PromotionProcessorContext, IEnumerable<String>)

Declaration
protected override IEnumerable<RedemptionDescription> GetRedemptions(BuyFromCategoryGetItemDiscount promotionData, PromotionProcessorContext context, IEnumerable<string> applicableCodes)
Parameters
Type Name Description
BuyFromCategoryGetItemDiscount promotionData
PromotionProcessorContext context
System.Collections.Generic.IEnumerable<System.String> applicableCodes
Returns
Type Description
System.Collections.Generic.IEnumerable<RedemptionDescription>
Overrides
EPiServer.Commerce.Marketing.Promotions.GetItemDiscountProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount>.GetRedemptions(EPiServer.Commerce.Marketing.Promotions.BuyFromCategoryGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext, System.Collections.Generic.IEnumerable<System.String>)

Implements