| Modifier and Type | Field and Description |
|---|---|
static Price |
EMPTY_PRICE |
| Constructor and Description |
|---|
PriceImpl() |
PriceImpl(ServiceLocator serviceLocator,
PriceInformation info,
CurrencyModel currencyModel,
java.util.List<DiscountInformation> discounts,
java.util.List<TaxInformation> taxInfos) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAmount()
The amount/quantity which is bound to this price.
|
CurrencyModel |
getCurrency() |
java.util.List<PriceLeverage> |
getDiscounts()
List of all discounts (voucher etc.) which have an impact on this price.
|
Price |
getOldPricing()
An old pricing; for marketing issues or similar.
|
double |
getPriceValue()
The price itself.
|
java.util.List<PriceLeverage> |
getTaxes()
List of all taxes which have an impact on this price.
|
UnitModel |
getUnit()
The unit which is bound to this price.
|
java.util.Date |
getValidFromDate()
The date when this price becomes valid.
|
java.util.Date |
getValidToDate()
The date when this price is no longer valid.
|
boolean |
isAvailable()
Checks if a valid price value is available.
|
boolean |
isEmptyPrice() |
boolean |
isGross()
Checks if this price is gross based.
|
boolean |
isNet()
Checks if this price is net based.
|
void |
setAmount(int amount) |
void |
setGross(boolean isGross) |
void |
setNet(boolean isNet) |
void |
setOldPricing(Price oldPrice) |
void |
setPriceValue(double value) |
void |
setUnit(UnitModel unit) |
void |
setValidFromDate(java.util.Date startDate) |
void |
setValidToDate(java.util.Date validTo) |
java.lang.String |
toString() |
public static Price EMPTY_PRICE
public PriceImpl()
public PriceImpl(ServiceLocator serviceLocator, PriceInformation info, CurrencyModel currencyModel, java.util.List<DiscountInformation> discounts, java.util.List<TaxInformation> taxInfos)
public boolean isGross()
Pricepublic void setGross(boolean isGross)
public boolean isNet()
Pricepublic void setNet(boolean isNet)
public int getAmount()
Pricepublic void setAmount(int amount)
public Price getOldPricing()
PricegetOldPricing in interface PricePricepublic void setOldPricing(Price oldPrice)
public double getPriceValue()
PricegetPriceValue in interface Pricepublic void setPriceValue(double value)
public UnitModel getUnit()
Pricepublic void setUnit(UnitModel unit)
public java.util.Date getValidFromDate()
PricegetValidFromDate in interface Pricepublic void setValidFromDate(java.util.Date startDate)
public java.util.Date getValidToDate()
PricegetValidToDate in interface Pricepublic void setValidToDate(java.util.Date validTo)
public java.util.List<PriceLeverage> getTaxes()
PricegetTaxes in interface PricePriceLeveragepublic java.util.List<PriceLeverage> getDiscounts()
PricegetDiscounts in interface PricePriceLeveragepublic boolean isAvailable()
PriceisAvailable in interface Pricepublic CurrencyModel getCurrency()
getCurrency in interface Pricepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEmptyPrice()
isEmptyPrice in interface PriceCopyright © 2018 SAP SE. All Rights Reserved.