November Happy Hour will be moved to Thursday December 5th.

Class BuyQuantityPayFixedAmountProcessor

This promotion will be valid when RequiredQuantity number of skus, that are part of the entries or nodes belonging to the Items, are in the cart.

Inheritance
System.Object
BuyQuantityPayFixedAmountProcessor
Implements
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class BuyQuantityPayFixedAmountProcessor : EntryPromotionProcessorBase<BuyQuantityPayFixedAmount>, IPromotionProcessor

Constructors

BuyQuantityPayFixedAmountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService)

Initializes a new instance of a BuyQuantityPayFixedAmountProcessor.

Declaration
[Obsolete("This constructor is obsolete. Use the constructor with RedemptionDescriptionFactory instead. This will remain until at least October 2018.")]
public BuyQuantityPayFixedAmountProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService)
Parameters
Type Name Description
CollectionTargetEvaluator targetEvaluator

The service that is used to evaluate the target properties.

FulfillmentEvaluator fulfillmentEvaluator

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

EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

BuyQuantityPayFixedAmountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService, RedemptionDescriptionFactory)

Initializes a new instance of a BuyQuantityPayFixedAmountProcessor.

Declaration
public BuyQuantityPayFixedAmountProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService, RedemptionDescriptionFactory redemptionDescriptionFactory)
Parameters
Type Name Description
CollectionTargetEvaluator targetEvaluator

The service that is used to evaluate the target properties.

FulfillmentEvaluator fulfillmentEvaluator

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

EPiServer.Framework.Localization.LocalizationService localizationService

The localization service.

RedemptionDescriptionFactory redemptionDescriptionFactory

Factory for creating RedemptionDescriptions.

Methods

CanBeFulfilled(BuyQuantityPayFixedAmount, PromotionProcessorContext)

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

Evaluate(BuyQuantityPayFixedAmount, PromotionProcessorContext)

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

GetPromotionItems(BuyQuantityPayFixedAmount)

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

GetRedemptions(BuyQuantityPayFixedAmount, PromotionProcessorContext, IEnumerable<String>)

Declaration
protected override IEnumerable<RedemptionDescription> GetRedemptions(BuyQuantityPayFixedAmount promotionData, PromotionProcessorContext context, IEnumerable<string> applicableCodes)
Parameters
Type Name Description
BuyQuantityPayFixedAmount promotionData
PromotionProcessorContext context
System.Collections.Generic.IEnumerable<System.String> applicableCodes
Returns
Type Description
System.Collections.Generic.IEnumerable<RedemptionDescription>
Overrides
EPiServer.Commerce.Marketing.EntryPromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyQuantityPayFixedAmount>.GetRedemptions(EPiServer.Commerce.Marketing.Promotions.BuyQuantityPayFixedAmount, EPiServer.Commerce.Marketing.PromotionProcessorContext, System.Collections.Generic.IEnumerable<System.String>)

NotFulfilledRewardDescription(BuyQuantityPayFixedAmount, PromotionProcessorContext, FulfillmentStatus)

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

Implements