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
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class SpendAmountGetGiftItemsProcessor : EntryPromotionProcessorBase<SpendAmountGetGiftItems>, IPromotionProcessorConstructors
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)
  