Class SpendAmountGetGiftItemsProcessor
The processor responsible for evaluating if a promotion of type SpendAmountGetGiftItems should apply a reward to an order group.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
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
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
GetPromotionItems(SpendAmountGetGiftItems)
Declaration
protected override PromotionItems GetPromotionItems(SpendAmountGetGiftItems promotionData)
Parameters
| Type | Name | Description |
|---|---|---|
| SpendAmountGetGiftItems | promotionData |
Returns
| Type | Description |
|---|---|
| PromotionItems |
Overrides
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 |