November Happy Hour will be moved to Thursday December 5th.

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: 13.30.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).