Interface PriceDataFactory
-
- All Known Implementing Classes:
ConfigPricingImplTest.DummyPriceDataFactory
,DefaultPriceDataFactory
,DefaultPriceDataFactoryForTest
public interface PriceDataFactory
Interface for generating PriceData.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PriceData
create(PriceDataType priceType, java.math.BigDecimal value, CurrencyModel currency)
Creates a PriceData object with a formatted currency string based on the price type and currency.PriceData
create(PriceDataType priceType, java.math.BigDecimal value, java.lang.String currencyIso)
Creates a PriceData object with a formatted currency string based on the price type and currency ISO code.
-
-
-
Method Detail
-
create
PriceData create(PriceDataType priceType, java.math.BigDecimal value, java.lang.String currencyIso)
Creates a PriceData object with a formatted currency string based on the price type and currency ISO code.- Parameters:
priceType
- The price typevalue
- The price amountcurrencyIso
- The currency ISO code- Returns:
- the price data
-
create
PriceData create(PriceDataType priceType, java.math.BigDecimal value, CurrencyModel currency)
Creates a PriceData object with a formatted currency string based on the price type and currency.- Parameters:
priceType
- The price typevalue
- The price amountcurrency
- The currency- Returns:
- the price data
-
-