London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

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