Class SpendAmountGetItemDiscountProcessor

The processor responsible for evaluating if a promotion of type SpendAmountGetItemDiscount will be applied to items from multiple content references.

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

Constructors

SpendAmountGetItemDiscountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService)

Creates an instance of a SpendAmountGetItemDiscountProcessor.

Declaration
public SpendAmountGetItemDiscountProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService)
Parameters
Type Name Description
CollectionTargetEvaluator targetEvaluator

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

FulfillmentEvaluator fulfillmentEvaluator

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

EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

Methods

CanBeFulfilled(SpendAmountGetItemDiscount, PromotionProcessorContext)

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

GetFulfillmentStatus(SpendAmountGetItemDiscount, PromotionProcessorContext)

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

GetPromotionItems(SpendAmountGetItemDiscount)

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

Implements