Class BuyQuantityGetItemDiscountProcessor
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
BuyQuantityGetItemDiscountProcessor
Implements
Inherited Members
EntryPromotionProcessorBase<BuyQuantityGetItemDiscount>.CreateRedemptionDescription(AffectedEntries)
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 BuyQuantityGetItemDiscountProcessor : GetItemDiscountProcessorBase<BuyQuantityGetItemDiscount>, IPromotionProcessor
Constructors
BuyQuantityGetItemDiscountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService)
Creates an instance of a BuyQuantityGetItemDiscountProcessor.
Declaration
public BuyQuantityGetItemDiscountProcessor(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. |
Methods
CanBeFulfilled(BuyQuantityGetItemDiscount, PromotionProcessorContext)
Declaration
protected override bool CanBeFulfilled(BuyQuantityGetItemDiscount promotionData, PromotionProcessorContext context)
Parameters
Type | Name | Description |
---|---|---|
BuyQuantityGetItemDiscount | promotionData | |
PromotionProcessorContext | context |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
EPiServer.Commerce.Marketing.Promotions.GetItemDiscountProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount>.CanBeFulfilled(EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)
GetFulfillmentStatus(BuyQuantityGetItemDiscount, PromotionProcessorContext)
Declaration
protected override FulfillmentStatus GetFulfillmentStatus(BuyQuantityGetItemDiscount promotionData, PromotionProcessorContext context)
Parameters
Type | Name | Description |
---|---|---|
BuyQuantityGetItemDiscount | promotionData | |
PromotionProcessorContext | context |
Returns
Type | Description |
---|---|
FulfillmentStatus |
Overrides
EPiServer.Commerce.Marketing.Promotions.GetItemDiscountProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount>.GetFulfillmentStatus(EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext)
GetPromotionItems(BuyQuantityGetItemDiscount)
Declaration
protected override PromotionItems GetPromotionItems(BuyQuantityGetItemDiscount promotionData)
Parameters
Type | Name | Description |
---|---|---|
BuyQuantityGetItemDiscount | promotionData |
Returns
Type | Description |
---|---|
PromotionItems |
Overrides
EPiServer.Commerce.Marketing.PromotionProcessorBase<EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount>.GetPromotionItems(EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount)