|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractValueObjectImpl
com.elasticpath.domain.catalog.impl.PriceTierImpl
public class PriceTierImpl
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.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
PriceTierImpl()
|
|
| 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. |
ElasticPath |
getElasticPath()
This is a work around for the Elastic Path not being set by Spring (because this is a component class?). |
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 |
setDefaultValues()
set default values for 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 class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public PriceTierImpl()
| Method Detail |
|---|
public void clearComputedPrice()
clearComputedPrice in interface PriceTierpublic java.math.BigDecimal getComputedPrice()
getComputedPrice in interface PriceTierpublic ElasticPath getElasticPath()
getElasticPath in interface EpDomaingetElasticPath in class AbstractEpDomainImplpublic java.math.BigDecimal getListPrice()
getListPrice in interface PriceTierpublic int getMinQty()
getMinQty in interface PriceTierpublic java.math.BigDecimal getPrePromotionPrice()
getPrePromotionPrice in interface PriceTierpublic java.math.BigDecimal getSalePrice()
getSalePrice in interface PriceTierpublic void setComputedPrice(java.math.BigDecimal computedPrice)
setComputedPrice in interface PriceTiercomputedPrice - the computed price of the price tierpublic void setDefaultValues()
setDefaultValues in interface PersistencesetDefaultValues in class AbstractPersistenceImplpublic void setListPrice(java.math.BigDecimal listPrice)
setListPrice in interface PriceTierlistPrice - the list price of the price tierpublic void setMinQty(int minQty)
setMinQty in interface PriceTierminQty - the minimum quantity of the price tierpublic void setSalePrice(java.math.BigDecimal salePrice)
setSalePrice in interface PriceTiersalePrice - the sale price of the price tier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||