Interface ICouponFilter
Responsible handling promotions that are only applicable when a coupon code is supplied.
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2Syntax
public interface ICouponFilter
Methods
Filter(PromotionFilterContext, IEnumerable<String>)
Filters promotions by supplied coupon codes.
Declaration
PromotionFilterContext Filter(PromotionFilterContext filterContext, IEnumerable<string> couponCodes)
Parameters
Type | Name | Description |
---|---|---|
PromotionFilterContext | filterContext | The filter context. |
System.Collections.Generic.IEnumerable<System.String> | couponCodes | The coupon codes added to the current order form. |
Returns
Type | Description |
---|---|
PromotionFilterContext | The same PromotionFilterContext after filtering IncludedPromotions and adding applied coupon codes using AddCouponCode(Guid, String). |