Interface PriceDataFactory

All Known Implementing Classes:
ConfigPricingImplTest.DummyPriceDataFactory, DefaultPriceDataFactory

public interface PriceDataFactory
Interface for generating PriceData.
  • Method Details

    • create

      PriceData 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.
      Parameters:
      priceType - The price type
      value - The price amount
      currencyIso - The currency ISO code
      Returns:
      the price data
    • create

      PriceData create(PriceDataType priceType, BigDecimal value, CurrencyModel currency)
      Creates a PriceData object with a formatted currency string based on the price type and currency.
      Parameters:
      priceType - The price type
      value - The price amount
      currency - The currency
      Returns:
      the price data