Interface PriceDataFactory

    • 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 type
        value - The price amount
        currencyIso - 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 type
        value - The price amount
        currency - The currency
        Returns:
        the price data