@Generated(value="")
public class Price
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
currency |
protected java.lang.Double |
discount |
protected java.lang.String |
discountFormatted |
protected java.lang.String |
discountPercentage |
protected java.lang.Double |
discountPercentageLevel1 |
protected java.lang.Double |
discountPercentageLevel2 |
protected java.lang.Double |
discountPercentageLevel3 |
protected java.lang.Double |
discountPercentageLevel4 |
protected java.lang.Double |
finalPrice |
protected java.lang.String |
finalPriceFormatted |
protected java.lang.Double |
price |
protected java.lang.String |
priceFormatted |
protected java.lang.Double |
promoPrice |
protected java.lang.String |
promoPriceFormatted |
java.lang.String |
xClassName |
Constructor and Description |
---|
Price() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
java.lang.String |
getCurrency() |
java.lang.Double |
getDiscount() |
java.lang.String |
getDiscountFormatted() |
java.lang.String |
getDiscountPercentage() |
java.lang.Double |
getDiscountPercentageLevel1() |
java.lang.Double |
getDiscountPercentageLevel2() |
java.lang.Double |
getDiscountPercentageLevel3() |
java.lang.Double |
getDiscountPercentageLevel4() |
java.lang.Double |
getFinalPrice() |
java.lang.String |
getFinalPriceFormatted() |
java.lang.Double |
getPrice() |
java.lang.String |
getPriceFormatted() |
java.lang.Double |
getPromoPrice() |
java.lang.String |
getPromoPriceFormatted() |
int |
hashCode() |
void |
setCurrency(java.lang.String currency) |
void |
setCurrency(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> currencyUnsafeSupplier) |
void |
setDiscount(java.lang.Double discount) |
void |
setDiscount(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountUnsafeSupplier) |
void |
setDiscountFormatted(java.lang.String discountFormatted) |
void |
setDiscountFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> discountFormattedUnsafeSupplier) |
void |
setDiscountPercentage(java.lang.String discountPercentage) |
void |
setDiscountPercentage(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> discountPercentageUnsafeSupplier) |
void |
setDiscountPercentageLevel1(java.lang.Double discountPercentageLevel1) |
void |
setDiscountPercentageLevel1(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel1UnsafeSupplier) |
void |
setDiscountPercentageLevel2(java.lang.Double discountPercentageLevel2) |
void |
setDiscountPercentageLevel2(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel2UnsafeSupplier) |
void |
setDiscountPercentageLevel3(java.lang.Double discountPercentageLevel3) |
void |
setDiscountPercentageLevel3(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel3UnsafeSupplier) |
void |
setDiscountPercentageLevel4(java.lang.Double discountPercentageLevel4) |
void |
setDiscountPercentageLevel4(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel4UnsafeSupplier) |
void |
setFinalPrice(java.lang.Double finalPrice) |
void |
setFinalPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> finalPriceUnsafeSupplier) |
void |
setFinalPriceFormatted(java.lang.String finalPriceFormatted) |
void |
setFinalPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> finalPriceFormattedUnsafeSupplier) |
void |
setPrice(java.lang.Double price) |
void |
setPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> priceUnsafeSupplier) |
void |
setPriceFormatted(java.lang.String priceFormatted) |
void |
setPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> priceFormattedUnsafeSupplier) |
void |
setPromoPrice(java.lang.Double promoPrice) |
void |
setPromoPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> promoPriceUnsafeSupplier) |
void |
setPromoPriceFormatted(java.lang.String promoPriceFormatted) |
void |
setPromoPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> promoPriceFormattedUnsafeSupplier) |
static Price |
toDTO(java.lang.String json) |
java.lang.String |
toString() |
static Price |
unsafeToDTO(java.lang.String json) |
protected java.lang.String currency
protected java.lang.Double discount
protected java.lang.String discountFormatted
protected java.lang.String discountPercentage
protected java.lang.Double discountPercentageLevel1
protected java.lang.Double discountPercentageLevel2
protected java.lang.Double discountPercentageLevel3
protected java.lang.Double discountPercentageLevel4
protected java.lang.Double finalPrice
protected java.lang.String finalPriceFormatted
protected java.lang.Double price
protected java.lang.String priceFormatted
protected java.lang.Double promoPrice
protected java.lang.String promoPriceFormatted
public java.lang.String xClassName
public static Price toDTO(java.lang.String json)
public static Price unsafeToDTO(java.lang.String json)
public java.lang.String getCurrency()
public void setCurrency(java.lang.String currency)
public void setCurrency(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> currencyUnsafeSupplier)
public java.lang.Double getDiscount()
public void setDiscount(java.lang.Double discount)
public void setDiscount(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountUnsafeSupplier)
public java.lang.String getDiscountFormatted()
public void setDiscountFormatted(java.lang.String discountFormatted)
public void setDiscountFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> discountFormattedUnsafeSupplier)
public java.lang.String getDiscountPercentage()
public void setDiscountPercentage(java.lang.String discountPercentage)
public void setDiscountPercentage(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> discountPercentageUnsafeSupplier)
public java.lang.Double getDiscountPercentageLevel1()
public void setDiscountPercentageLevel1(java.lang.Double discountPercentageLevel1)
public void setDiscountPercentageLevel1(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel1UnsafeSupplier)
public java.lang.Double getDiscountPercentageLevel2()
public void setDiscountPercentageLevel2(java.lang.Double discountPercentageLevel2)
public void setDiscountPercentageLevel2(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel2UnsafeSupplier)
public java.lang.Double getDiscountPercentageLevel3()
public void setDiscountPercentageLevel3(java.lang.Double discountPercentageLevel3)
public void setDiscountPercentageLevel3(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel3UnsafeSupplier)
public java.lang.Double getDiscountPercentageLevel4()
public void setDiscountPercentageLevel4(java.lang.Double discountPercentageLevel4)
public void setDiscountPercentageLevel4(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> discountPercentageLevel4UnsafeSupplier)
public java.lang.Double getFinalPrice()
public void setFinalPrice(java.lang.Double finalPrice)
public void setFinalPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> finalPriceUnsafeSupplier)
public java.lang.String getFinalPriceFormatted()
public void setFinalPriceFormatted(java.lang.String finalPriceFormatted)
public void setFinalPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> finalPriceFormattedUnsafeSupplier)
public java.lang.Double getPrice()
public void setPrice(java.lang.Double price)
public void setPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> priceUnsafeSupplier)
public java.lang.String getPriceFormatted()
public void setPriceFormatted(java.lang.String priceFormatted)
public void setPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> priceFormattedUnsafeSupplier)
public java.lang.Double getPromoPrice()
public void setPromoPrice(java.lang.Double promoPrice)
public void setPromoPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> promoPriceUnsafeSupplier)
public java.lang.String getPromoPriceFormatted()
public void setPromoPriceFormatted(java.lang.String promoPriceFormatted)
public void setPromoPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> promoPriceFormattedUnsafeSupplier)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object