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
Namespace: EPiServer.Commerce.Marketing.Promotions
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0Syntax
public class BuyQuantityPayFixedAmountProcessor : EntryPromotionProcessorBase<BuyQuantityPayFixedAmount>, IPromotionProcessorConstructors
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)
  