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: 12.17.2Syntax
public class BuyQuantityGetItemDiscountProcessor : ConditionAwareItemDiscountProcessor<BuyQuantityGetItemDiscount>, IPromotionProcessor
Constructors
BuyQuantityGetItemDiscountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService)
Creates an instance of a BuyQuantityGetItemDiscountProcessor.
Declaration
[Obsolete("This constructor is obsolete. Use the constructor with RedemptionDescriptionFactory instead. This will remain until at least October 2018.")]
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. |
BuyQuantityGetItemDiscountProcessor(CollectionTargetEvaluator, FulfillmentEvaluator, LocalizationService, RedemptionDescriptionFactory)
Creates an instance of a BuyQuantityGetItemDiscountProcessor.
Declaration
public BuyQuantityGetItemDiscountProcessor(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
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)
GetRedemptions(BuyQuantityGetItemDiscount, PromotionProcessorContext, IEnumerable<String>)
Declaration
protected override IEnumerable<RedemptionDescription> GetRedemptions(BuyQuantityGetItemDiscount promotionData, PromotionProcessorContext context, IEnumerable<string> applicableCodes)
Parameters
Type | Name | Description |
---|---|---|
BuyQuantityGetItemDiscount | promotionData | |
PromotionProcessorContext | context | |
System.Collections.Generic.IEnumerable<System.String> | applicableCodes |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<RedemptionDescription> |
Overrides
EPiServer.Commerce.Marketing.Promotions.ConditionAwareItemDiscountProcessor<EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount>.GetRedemptions(EPiServer.Commerce.Marketing.Promotions.BuyQuantityGetItemDiscount, EPiServer.Commerce.Marketing.PromotionProcessorContext, System.Collections.Generic.IEnumerable<System.String>)