GetPeriodicDiscounts Method

Get all retail periodic discounts (offer, quantity discounts, and mix and match discount) configurations which match the given product and context.

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

public ReadOnlyCollection<PeriodicDiscount> GetPeriodicDiscounts(
	long productId,
	long variantId,
	IEnumerable<long> priceGroupIds,
	string currencyCode,
	DateTime activeDate
)

Parameters

productId
Type: System.Int64
variantId
Type: System.Int64
priceGroupIds
Type: System.Collections.Generic.IEnumerable<Int64>
currencyCode
Type: System.String
activeDate
Type: System.DateTime

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<PeriodicDiscount>
All periodic discount rules which may apply to the item and context given.

Implements

IPricingDataManager.GetPeriodicDiscounts(Int64, Int64, IEnumerable<Int64>, String, DateTime)

Community Additions

Show: