All Superinterfaces:
BaseModel, Cloneable, Serializable
All Known Implementing Classes:
PriceModelImpl, ZeroPriceModelImpl

public interface PriceModel extends BaseModel
Represents the price model including currency.
  • Field Details

    • NO_PRICE

      static final PriceModel NO_PRICE
      Value-Object to model the case, when no price information is available
    • PRICE_NA

      static final PriceModel PRICE_NA
      Value-Object to model the case, when no price information was not fetched, yet.
  • Method Details

    • setCurrency

      void setCurrency(String currency)
      Parameters:
      currency - price currency
    • getCurrency

      String getCurrency()
      Returns:
      price currency
    • getPriceValue

      BigDecimal getPriceValue()
      Returns:
      price value
    • setPriceValue

      void setPriceValue(BigDecimal priceValue)
      Parameters:
      priceValue - price value
    • hasValidPrice

      boolean hasValidPrice()
      Checks whether this is a valid price
      Returns:
      true only if a NON-Zero price value and a currency are assigned
    • getObsoletePriceValue

      BigDecimal getObsoletePriceValue()
      Returns:
      old price without discount
    • setObsoletePriceValue

      void setObsoletePriceValue(BigDecimal obsoletePriceValue)
      Parameters:
      obsoletePriceValue - old price without discount