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 IRedemptionLimitService

Interface to get the remaining redemption of given promotions for a given customer.

Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public interface IRedemptionLimitService

Methods

GetRemainingRedemptions(IEnumerable<PromotionData>, Guid, Int32)

Get the remaining redemptions for the given promotions and customer and order form.

Declaration
IDictionary<Guid, int> GetRemainingRedemptions(IEnumerable<PromotionData> promotions, Guid customerId, int orderFormId)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PromotionData> promotions

The promotions to retrieve redemptions for.

System.Guid customerId

The customer Id.

System.Int32 orderFormId

The current order form Id.

Returns
Type Description
System.Collections.Generic.IDictionary<System.Guid, System.Int32>

A dictionary containing the number of remaining redemptions for each promotion.