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: 13.30.0Syntax
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. |