Class BuyQuantityGetShippingDiscountProcessor

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

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.0
Syntax
public class BuyQuantityGetShippingDiscountProcessor : ShippingPromotionProcessorBase<BuyQuantityGetShippingDiscount>, IPromotionProcessor

Constructors

BuyQuantityGetShippingDiscountProcessor(FulfillmentEvaluator, CollectionTargetEvaluator, LocalizationService)

Creates an instance of a BuyQuantityGetShippingDiscountProcessor.

Declaration
public BuyQuantityGetShippingDiscountProcessor(FulfillmentEvaluator fulfillmentEvaluator, CollectionTargetEvaluator targetEvaluator, LocalizationService localizationService)
Parameters
Type Name Description
FulfillmentEvaluator fulfillmentEvaluator

The service that is used to evaluate the fulfillment status of the promotion.

CollectionTargetEvaluator targetEvaluator

The service that is used to evaluate the fulfillment status of the promotion.

EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

Methods

CanBeFulfilled(BuyQuantityGetShippingDiscount, PromotionProcessorContext)

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

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

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

GetFulfillmentStatus(BuyQuantityGetShippingDiscount, PromotionProcessorContext)

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

GetPromotionItems(BuyQuantityGetShippingDiscount)

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

NotFulfilledRewardDescription(BuyQuantityGetShippingDiscount, PromotionProcessorContext, FulfillmentStatus)

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

Implements