A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Interface IPriceOptimizer

Optimizes prices on certain criterias.

Namespace: Mediachase.Commerce.Pricing
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public interface IPriceOptimizer

Methods

OptimizePrices(IEnumerable<IPriceValue>)

Optimizes a collection of prices, remove duplicated and unwanted prices.

Declaration
IEnumerable<IOptimizedPriceValue> OptimizePrices(IEnumerable<IPriceValue> prices)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IPriceValue> prices

The prices to optimized

Returns
Type Description
System.Collections.Generic.IEnumerable<IOptimizedPriceValue>

A list of optimized prices.