IsPromoPeriodValid Method

Computes the validity of a promotion period. If it's an advanced period, looks up the validation period by Id and tests it.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Services.PricingEngine
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Services.PricingEngine (in Microsoft.Dynamics.Commerce.Runtime.Services.PricingEngine.dll)

public static bool IsPromoPeriodValid(
	IPricingDataManager pricingDataManager,
	DateValidationType validationType,
	string validationPeriodId,
	DateTime startDate,
	DateTime endDate,
	DateTime dateToCheck
)

Return Value

Type: System.Boolean
True if given period info is active on date being checked.

Community Additions

Show: