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
Inherited Members
PromotionProcessorBase<BuyQuantityPayFixedAmount>.Evaluate(PromotionData, PromotionProcessorContext)
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.0Syntax
public class BuyQuantityPayFixedAmountProcessor : EntryPromotionProcessorBase<BuyQuantityPayFixedAmount>, IPromotionProcessor
Constructors
BuyQuantityPayFixedAmountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService)
Declaration
public BuyQuantityPayFixedAmountProcessor(CollectionTargetEvaluator targetEvaluator, FulfillmentEvaluator fulfillmentEvaluator, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
CollectionTargetEvaluator | targetEvaluator | |
FulfillmentEvaluator | fulfillmentEvaluator | |
EPiServer.Framework.Localization.LocalizationService | localizationService |
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)
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)