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)
Syntax
'Declaration
Function GetPeriodicDiscounts ( _
productId As Long, _
variantId As Long, _
priceGroupIds As IEnumerable(Of Long), _
currencyCode As String, _
activeDate As DateTime _
) As ReadOnlyCollection(Of PeriodicDiscount)
'Usage
Dim instance As IPricingDataManager
Dim productId As Long
Dim variantId As Long
Dim priceGroupIds As IEnumerable(Of Long)
Dim currencyCode As String
Dim activeDate As DateTime
Dim returnValue As ReadOnlyCollection(Of PeriodicDiscount)
returnValue = instance.GetPeriodicDiscounts(productId, _
variantId, priceGroupIds, currencyCode, _
activeDate)
ReadOnlyCollection<PeriodicDiscount> GetPeriodicDiscounts(
long productId,
long variantId,
IEnumerable<long> priceGroupIds,
string currencyCode,
DateTime activeDate
)
ReadOnlyCollection<PeriodicDiscount^>^ GetPeriodicDiscounts(
long long productId,
long long variantId,
IEnumerable<long 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.