Class RedemptionLimits

Tracks redemption limits for promotions.

Inheritance
System.Object
RedemptionLimits
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: 10.8.0
Syntax
public class RedemptionLimits

Constructors

RedemptionLimits(IRedemptionLimitService)

Initializes a new instance of the RedemptionLimits class.

Declaration
public RedemptionLimits(IRedemptionLimitService redemptionLimitService)
Parameters
Type Name Description
IRedemptionLimitService redemptionLimitService

The redemption limit service.

Methods

CanBeRedeemed(PromotionData)

Determines whether the specified promotion can be redeemed or not

Declaration
public bool CanBeRedeemed(PromotionData promotion)
Parameters
Type Name Description
PromotionData promotion

The promotion.

Returns
Type Description
System.Boolean

true if it can be redeemed, false otherwise

GetRemainingRedemptions(PromotionData)

Gets the remaining redemptions of the specified promotion.

Declaration
public int GetRemainingRedemptions(PromotionData promotion)
Parameters
Type Name Description
PromotionData promotion

The promotion.

Returns
Type Description
System.Int32

the remaining redemptions for the promotion

Load(IEnumerable<PromotionData>, Guid, Int32)

Loads the redemption limits of the specified promotions.

Declaration
public void Load(IEnumerable<PromotionData> promotions, Guid customerId, int orderformId)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PromotionData> promotions

The promotions.

System.Guid customerId

The customer identifier.

System.Int32 orderformId

The orderform identifier.