Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class SpendAmountGetShippingDiscountProcessor

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

Implements
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public class SpendAmountGetShippingDiscountProcessor : ShippingPromotionProcessorBase<SpendAmountGetShippingDiscount>, IPromotionProcessor

Constructors

SpendAmountGetShippingDiscountProcessor(FulfillmentEvaluator, LocalizationService)

Creates an instance of a SpendAmountGetShippingDiscountProcessor.

Declaration
public SpendAmountGetShippingDiscountProcessor(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(SpendAmountGetShippingDiscount, PromotionProcessorContext)

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

CreateRewardDescription(SpendAmountGetShippingDiscount, FulfillmentStatus, IEnumerable<RedemptionDescription>, PromotionProcessorContext)

Declaration
protected override RewardDescription CreateRewardDescription(SpendAmountGetShippingDiscount promotionData, FulfillmentStatus fulfillmentStatus, IEnumerable<RedemptionDescription> redemptions, PromotionProcessorContext context)
Parameters
Type Name Description
SpendAmountGetShippingDiscount promotionData
FulfillmentStatus fulfillmentStatus
System.Collections.Generic.IEnumerable<RedemptionDescription> redemptions
PromotionProcessorContext context
Returns
Type Description
RewardDescription
Overrides
EPiServer.Commerce.Marketing.ShippingPromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetShippingDiscount>.CreateRewardDescription(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetShippingDiscount, EPiServer.Commerce.Marketing.FulfillmentStatus, System.Collections.Generic.IEnumerable<EPiServer.Commerce.Marketing.RedemptionDescription>, EPiServer.Commerce.Marketing.PromotionProcessorContext)

GetFulfillmentStatus(SpendAmountGetShippingDiscount, PromotionProcessorContext)

Declaration
protected override FulfillmentStatus GetFulfillmentStatus(SpendAmountGetShippingDiscount promotionData, PromotionProcessorContext context)
Parameters
Type Name Description
SpendAmountGetShippingDiscount promotionData
PromotionProcessorContext context
Returns
Type Description
FulfillmentStatus
Overrides
EPiServer.Commerce.Marketing.ShippingPromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.SpendAmountGetShippingDiscount>.GetFulfillmentStatus(EPiServer.Commerce.Marketing.Promotions.SpendAmountGetShippingDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)

GetPromotionItems(SpendAmountGetShippingDiscount)

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

NotFulfilledRewardDescription(SpendAmountGetShippingDiscount, PromotionProcessorContext, FulfillmentStatus)

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

Implements