November Happy Hour will be moved to Thursday December 5th.

Class SpendAmountGetGiftItemsProcessor

The processor responsible for evaluating if a promotion of type SpendAmountGetGiftItems should apply a reward to an order group.

Inheritance
System.Object
SpendAmountGetGiftItemsProcessor
Implements
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class SpendAmountGetGiftItemsProcessor : EntryPromotionProcessorBase<SpendAmountGetGiftItems>, IPromotionProcessor

Constructors

SpendAmountGetGiftItemsProcessor(FulfillmentEvaluator, GiftItemFactory, LocalizationService)

Creates an instance of a SpendAmountGetGiftItemsProcessor.

Declaration
[Obsolete("This constructor is obsolete. Use the constructor with RedemptionDescriptionFactory instead. This will remain until at least October 2018.")]
public SpendAmountGetGiftItemsProcessor(FulfillmentEvaluator fulfillmentEvaluator, GiftItemFactory giftItemFactory, LocalizationService localizationService)
Parameters
Type Name Description
FulfillmentEvaluator fulfillmentEvaluator

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

GiftItemFactory giftItemFactory

The service that is used to get applicable gift items.

EPiServer.Framework.Localization.LocalizationService localizationService

Service to handle localization of text strings.

SpendAmountGetGiftItemsProcessor(FulfillmentEvaluator, GiftItemFactory, LocalizationService, RedemptionDescriptionFactory)

Creates an instance of a SpendAmountGetGiftItemsProcessor.

Declaration
public SpendAmountGetGiftItemsProcessor(FulfillmentEvaluator fulfillmentEvaluator, GiftItemFactory giftItemFactory, LocalizationService localizationService, RedemptionDescriptionFactory redemptionDescriptionFactory)
Parameters
Type Name Description
FulfillmentEvaluator fulfillmentEvaluator

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

GiftItemFactory giftItemFactory

The service that is used to get applicable gift items.

EPiServer.Framework.Localization.LocalizationService localizationService

Service to handle localization of text strings.

RedemptionDescriptionFactory redemptionDescriptionFactory

Factory for creating RedemptionDescriptions.

Methods

CanBeFulfilled(SpendAmountGetGiftItems, PromotionProcessorContext)

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

Evaluate(SpendAmountGetGiftItems, PromotionProcessorContext)

Declaration
protected override RewardDescription Evaluate(SpendAmountGetGiftItems promotionData, PromotionProcessorContext context)
Parameters
Type Name Description
SpendAmountGetGiftItems promotionData
PromotionProcessorContext context
Returns
Type Description
RewardDescription
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetGiftItems>.Evaluate(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetGiftItems, EPiServer.Commerce.Marketing.PromotionProcessorContext)

GetPromotionItems(SpendAmountGetGiftItems)

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

NotFulfilledRewardDescription(SpendAmountGetGiftItems, PromotionProcessorContext, FulfillmentStatus)

Declaration
protected override RewardDescription NotFulfilledRewardDescription(SpendAmountGetGiftItems promotionData, PromotionProcessorContext context, FulfillmentStatus fulfillmentStatus)
Parameters
Type Name Description
SpendAmountGetGiftItems promotionData
PromotionProcessorContext context
FulfillmentStatus fulfillmentStatus
Returns
Type Description
RewardDescription
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetGiftItems>.NotFulfilledRewardDescription(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetGiftItems, EPiServer.Commerce.Marketing.PromotionProcessorContext, EPiServer.Commerce.Marketing.FulfillmentStatus)

Implements