Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class PromotionDataExtensions

Extensions for PromotionData

Inheritance
System.Object
PromotionDataExtensions
Namespace: EPiServer.Commerce.Marketing
Assembly: EPiServer.Business.Commerce.dll
Version: 14.26.0
Syntax
public static class PromotionDataExtensions : Object

Methods

GetFixedRedemptionsPerOrderSetting(PromotionData)

Gets the fixed redemptions per order setting for the promotion type.

Declaration
public static Nullable<int> GetFixedRedemptionsPerOrderSetting(this PromotionData promotion)
Parameters
Type Name Description
PromotionData promotion

The promotion.

Returns
Type Description
System.Nullable<System.Int32>

The first nonzero value of FixedRedemptionsPerOrder defined in any attribute for the type, or null if no matching attribute is found.