Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

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: 14.26.0
Syntax
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).