public class PriceConversionAlgorithm
extends java.lang.Object
Constructor and Description |
---|
PriceConversionAlgorithm(MonetaryAmount[] theExistingPrices,
java.lang.String aRequestedCurrency,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAB)
PriceConversionAlgorithm constructor comment.
|
Modifier and Type | Method and Description |
---|---|
boolean |
calculateLowestPrice()
Calculate the lowest price
|
MonetaryAmount |
getBasePrice()
Get the base price used to convert to the lowest price.
|
MonetaryAmount |
getBestPrice()
Get the best price.
|
public PriceConversionAlgorithm(MonetaryAmount[] theExistingPrices, java.lang.String aRequestedCurrency, com.ibm.commerce.common.objects.StoreAccessBean aStoreAB)
theExistingPrices
- an array of the existing prices.aReqestedCurrency
- the currency for the converted price.aStoreAB
- the store under which the conversions are done..public boolean calculateLowestPrice() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public MonetaryAmount getBasePrice()
public MonetaryAmount getBestPrice()