A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn 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).