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
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: 10.8.0Syntax
public class SpendAmountGetGiftItemsProcessor : EntryPromotionProcessorBase<SpendAmountGetGiftItems>, IPromotionProcessor
Constructors
SpendAmountGetGiftItemsProcessor(FulfillmentEvaluator, GiftItemFactory, LocalizationService)
Creates an instance of a SpendAmountGetGiftItemsProcessor.
Declaration
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. |
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)