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

Class DefaultCouponFilter

Default implementation of ICouponFilter.

Inheritance
System.Object
DefaultCouponFilter
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class DefaultCouponFilter : ICouponFilter

Constructors

DefaultCouponFilter()

Declaration
public DefaultCouponFilter()

Methods

Filter(PromotionFilterContext, IEnumerable<String>)

Filters promotions by supplied coupon codes.

Declaration
public virtual 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).

GetCodeEqualityComparer()

Gets the comparer used when comparing the supplied coupon codes with the ones defined on the promotions.

Declaration
protected virtual IEqualityComparer<string> GetCodeEqualityComparer()
Returns
Type Description
System.Collections.Generic.IEqualityComparer<System.String>

System.StringComparer.OrdinalIgnoreCase

Implements