|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geebis.books.model.partner.pricelevel.PriceLevel
org.geebis.books.model.partner.pricelevel.FixedPercentPriceLevel
@Name(value="fixedPercentPriceLevel") public class FixedPercentPriceLevel
The FixedPercentPriceLevel class represents a customer price level for which the user specifies
a global increase or decrease of price by percent for all products.
| Constructor Summary | |
|---|---|
FixedPercentPriceLevel()
|
|
FixedPercentPriceLevel(java.lang.String name)
|
|
| Method Summary | |
|---|---|
double |
calculateRetailItemPrice(RetailItem retailItem)
Calculates the price of a retail item at this price level |
PriceLevelDirection |
getDirection()
Sets the direction to adjust prices for customers of this price level |
java.lang.Double |
getPercent()
Gets the percent to adjust prices by |
void |
setDirection(PriceLevelDirection direction)
Sets the direction to adjust prices for customers of this price level |
void |
setPercent(java.lang.Double percent)
Sets the percent to adjust prices by |
| Methods inherited from class org.geebis.books.model.partner.pricelevel.PriceLevel |
|---|
getId, getName, getVersion, setId, setName, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedPercentPriceLevel()
public FixedPercentPriceLevel(java.lang.String name)
| Method Detail |
|---|
public PriceLevelDirection getDirection()
PriceLevelDirectionpublic void setDirection(PriceLevelDirection direction)
direction - the new direction to adjust prices for customers of this levelpublic java.lang.Double getPercent()
public void setPercent(java.lang.Double percent)
percent - the new percent to adjust prices bypublic double calculateRetailItemPrice(RetailItem retailItem)
PriceLevel
calculateRetailItemPrice in class PriceLevelretailItem - the retail item to calculate the price of
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||