Interface IPriceFormatter
Interface for price formatting.
public interface IPriceFormatter
- Extension Methods
Remarks
Formatter should use same number of decimal places as used in IPriceCalculationRoundingService.
Methods
Format(decimal, PriceFormatContext)
Formats the price.
string Format(decimal price, PriceFormatContext context)
Parameters
pricedecimalPrice to format.
contextPriceFormatContextObject containing context data for formatting the price.
Returns
- string