Class SpendAmountGetOrderDiscountProcessor
The processor responsible for evaluating if a promotion of type SpendAmountGetOrderDiscount should apply a reward to an order group.
Inheritance
System.Object
SpendAmountGetOrderDiscountProcessor
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: 12.17.2Syntax
public class SpendAmountGetOrderDiscountProcessor : OrderPromotionProcessorBase<SpendAmountGetOrderDiscount>, IPromotionProcessor
Constructors
SpendAmountGetOrderDiscountProcessor(FulfillmentEvaluator, LocalizationService)
Creates an instance of a SpendAmountGetOrderDiscountProcessor.
Declaration
public SpendAmountGetOrderDiscountProcessor(FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
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(SpendAmountGetOrderDiscount, PromotionProcessorContext)
Declaration
protected override bool CanBeFulfilled(SpendAmountGetOrderDiscount promotionData, PromotionProcessorContext context)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetOrderDiscount | promotionData | |
PromotionProcessorContext | context |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount>.CanBeFulfilled(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)
Evaluate(SpendAmountGetOrderDiscount, PromotionProcessorContext)
Declaration
protected override RewardDescription Evaluate(SpendAmountGetOrderDiscount promotionData, PromotionProcessorContext context)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetOrderDiscount | promotionData | |
PromotionProcessorContext | context |
Returns
Type | Description |
---|---|
RewardDescription |
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount>.Evaluate(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)
GetPromotionItems(SpendAmountGetOrderDiscount)
Declaration
protected override PromotionItems GetPromotionItems(SpendAmountGetOrderDiscount promotionData)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetOrderDiscount | promotionData |
Returns
Type | Description |
---|---|
PromotionItems |
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount>.GetPromotionItems(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount)
NotFulfilledRewardDescription(SpendAmountGetOrderDiscount, PromotionProcessorContext, FulfillmentStatus)
Declaration
protected override RewardDescription NotFulfilledRewardDescription(SpendAmountGetOrderDiscount promotionData, PromotionProcessorContext context, FulfillmentStatus fulfillmentStatus)
Parameters
Type | Name | Description |
---|---|---|
SpendAmountGetOrderDiscount | promotionData | |
PromotionProcessorContext | context | |
FulfillmentStatus | fulfillmentStatus |
Returns
Type | Description |
---|---|
RewardDescription |
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount>.NotFulfilledRewardDescription(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetOrderDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext, EPiServer.Commerce.Marketing.FulfillmentStatus)