Interface PriceDataFactory
- All Known Implementing Classes:
ConfigPricingImplTest.DummyPriceDataFactory,DefaultPriceDataFactory
public interface PriceDataFactory
Interface for generating PriceData.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(PriceDataType priceType, BigDecimal value, CurrencyModel currency) Creates a PriceData object with a formatted currency string based on the price type and currency.create(PriceDataType priceType, BigDecimal value, String currencyIso) Creates a PriceData object with a formatted currency string based on the price type and currency ISO code.
-
Method Details
-
create
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
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
-