|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Price
Interface implemented by classes representing product or service prices.
| Method Summary | |
|---|---|
void |
addOrUpdatePriceTier(PriceTier priceTier)
add the price Tiers. |
void |
clearComputedPrice()
Removes the computed price. |
Money |
getComputedPrice()
Get the product's computed price (e.g. |
Money |
getComputedPrice(int qty)
Get the product's computed price (e.g. |
java.util.Currency |
getCurrency()
Get the currency for this product price. |
Money |
getDollarSavings()
Calculates the MoneyImpl savings if the price has a discount. |
Money |
getDollarSavings(int qty)
Calculates the MoneyImpl savings if the price has a discount. |
Money |
getListPrice()
Get the product's list price. |
Money |
getListPrice(int qty)
Get the product's list price. |
Money |
getLowestPrice()
Returns the lowest of the price values specified in this Price. |
Money |
getLowestPrice(int qty)
Get the lowest of the price values specified in this Price. |
Money |
getPrePromotionPrice()
Get the pre-promotion price of the first price tier to which promotions are to be applied. |
Money |
getPrePromotionPrice(int qty)
Get the pre-promotion price of the corresponding price tier, which promotions are to be applied. |
PriceTier |
getPriceTierByExactMinQty(int minQty)
Get the Price tier with the same minimum quantity with the inputed min Qty. |
java.util.Map |
getPriceTiers()
Get the price Tiers. |
Money |
getSalePrice()
Get the product's sale price. |
Money |
getSalePrice(int qty)
Get the product's sale price. |
boolean |
hasPriceTiers()
Check if the product has price tiers. |
boolean |
isLowestLessThanList()
Check if the lowest price is less than the list price, i.e. |
boolean |
isLowestLessThanList(int qty)
Check if the lowest price is less than the list price, i.e. |
void |
setComputedPrice(Money computedPrice)
Set the product's computed price (e.g. |
void |
setComputedPrice(Money computedPrice,
int minQty)
Set the product's computed price (e.g. |
void |
setCurrency(java.util.Currency currency)
Set the currency for the price. |
void |
setListPrice(Money listPrice)
Set the product's list price. |
void |
setListPrice(Money listPrice,
int minQty)
Set the product's list price. |
void |
setPriceTiers(java.util.Map priceTiers)
set the price Tiers. |
void |
setSalePrice(Money salePrice)
Set the product's sale price. |
void |
setSalePrice(Money salePrice,
int minQty)
Set the product's sale price. |
| 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 addOrUpdatePriceTier(PriceTier priceTier)
priceTier - the price tier to be addedvoid clearComputedPrice()
Money getComputedPrice()
MoneyImpl Returns null if no computed price has been setMoney getComputedPrice(int qty)
qty - the quantity of the product
MoneyImpl Returns null if no computed price has been setjava.util.Currency getCurrency()
CurrencyMoney getDollarSavings()
MoneyImpl savings if the price has a discount.
MoneyImplMoney getDollarSavings(int qty)
MoneyImpl savings if the price has a discount.
qty - the quantity of the product
MoneyImplMoney getListPrice()
MoneyImplMoney getListPrice(int qty)
qty - of the product
MoneyImplMoney getLowestPrice()
Price.
MoneyImplMoney getLowestPrice(int qty)
Price.
qty - the quantity of the product
MoneyImplMoney getPrePromotionPrice()
Money object representing the pre-promotion priceMoney getPrePromotionPrice(int qty)
qty - the quantity of the product
Money object representing the pre-promotion pricePriceTier getPriceTierByExactMinQty(int minQty)
minQty - the minumum quantity to be matched
PriceTierjava.util.Map getPriceTiers()
PriceTierImplMoney getSalePrice()
MoneyImpl Returns null if there is no sale price specifiedMoney getSalePrice(int qty)
qty - the quantity of the product
MoneyImplboolean hasPriceTiers()
boolean isLowestLessThanList()
boolean isLowestLessThanList(int qty)
qty - the quantity of the product
void setComputedPrice(Money computedPrice)
computedPrice - the product's computed price as a MoneyImpl
void setComputedPrice(Money computedPrice,
int minQty)
computedPrice - the product's computed price as a MoneyImplminQty - the minimum quantity of the PriceTiervoid setCurrency(java.util.Currency currency)
currency - of the price as a Currencyvoid setListPrice(Money listPrice)
listPrice - the product's list price as a MoneyImpl
void setListPrice(Money listPrice,
int minQty)
listPrice - the product's list price as a MoneyImplminQty - the minimum quantity of the PriceTiervoid setPriceTiers(java.util.Map priceTiers)
priceTiers - the price tiers as a map of PriceTiervoid setSalePrice(Money salePrice)
salePrice - the product's sale price as a MoneyImpl
void setSalePrice(Money salePrice,
int minQty)
salePrice - the product's sale price as a MoneyImplminQty - the minimum quantity of the PriceTier
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||