@Generated(value="")
public class Price
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
currency |
protected java.lang.Double |
discount |
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.Double |
price |
protected java.lang.Double |
promoPrice |
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 |
getDiscountPercentage() |
java.lang.Double |
getDiscountPercentageLevel1() |
java.lang.Double |
getDiscountPercentageLevel2() |
java.lang.Double |
getDiscountPercentageLevel3() |
java.lang.Double |
getDiscountPercentageLevel4() |
java.lang.Double |
getFinalPrice() |
java.lang.Double |
getPrice() |
java.lang.Double |
getPromoPrice() |
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 |
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 |
setPrice(java.lang.Double price) |
void |
setPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> priceUnsafeSupplier) |
void |
setPromoPrice(java.lang.Double promoPrice) |
void |
setPromoPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> promoPriceUnsafeSupplier) |
static Price |
toDTO(java.lang.String json) |
java.lang.String |
toString() |
protected java.lang.String currency
protected java.lang.Double discount
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.Double price
protected java.lang.Double promoPrice
public java.lang.String xClassName
public static Price toDTO(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 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.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.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 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