|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PriceTier
PriceTier
represents different price for different minimum quantity A Price
should at least have a
PriceTier
When shopping a product, if quantity is provided, Price
should get the nearest PriceTier
with the minimum quantity equal or less than the given quantity. If no quantity is provided, the Price
will retrieve the first
price tier, i.e. the one with smallest minimum quantity.
Method Summary | |
---|---|
void |
clearComputedPrice()
Clear the computed price of the price tier, will set the computed price to null. |
java.math.BigDecimal |
getComputedPrice()
Get the computed price of the price tier. |
java.math.BigDecimal |
getListPrice()
Get the list price of the price tier. |
int |
getMinQty()
Get the minimum quantity of the price tier. |
java.math.BigDecimal |
getPrePromotionPrice()
Get the pre-promotion price to which promotions are to be applied. |
java.math.BigDecimal |
getSalePrice()
Get the sale price of the price tier. |
void |
setComputedPrice(java.math.BigDecimal computedPrice)
Set the computed price of the price tier. |
void |
setListPrice(java.math.BigDecimal listPrice)
Set the list price for the price tier. |
void |
setMinQty(int minQty)
Set the minimum quantity for the price tier. |
void |
setSalePrice(java.math.BigDecimal salePrice)
Set the sale price for the price tier. |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
void clearComputedPrice()
java.math.BigDecimal getComputedPrice()
java.math.BigDecimal getListPrice()
int getMinQty()
java.math.BigDecimal getPrePromotionPrice()
java.math.BigDecimal getSalePrice()
void setComputedPrice(java.math.BigDecimal computedPrice)
computedPrice
- the computed price of the price tiervoid setListPrice(java.math.BigDecimal listPrice)
listPrice
- the list price of the price tiervoid setMinQty(int minQty)
minQty
- the minimum quantity of the price tiervoid setSalePrice(java.math.BigDecimal salePrice)
salePrice
- the sale price of the price tier
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |