@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.String |
discount |
protected java.lang.String |
discountPercentage |
protected java.lang.String[] |
discountPercentages |
protected java.lang.String |
finalPrice |
protected java.lang.Double |
price |
protected java.lang.String |
priceFormatted |
protected java.lang.Double |
promoPrice |
protected java.lang.String |
promoPriceFormatted |
protected java.lang.Double |
tierPrice |
protected java.lang.String |
tierPriceFormatted |
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.String |
getDiscount() |
java.lang.String |
getDiscountPercentage() |
java.lang.String[] |
getDiscountPercentages() |
java.lang.String |
getFinalPrice() |
java.lang.Double |
getPrice() |
java.lang.String |
getPriceFormatted() |
java.lang.Double |
getPromoPrice() |
java.lang.String |
getPromoPriceFormatted() |
java.lang.Double |
getTierPrice() |
java.lang.String |
getTierPriceFormatted() |
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.String discount) |
void |
setDiscount(com.liferay.petra.function.UnsafeSupplier<java.lang.String,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 |
setDiscountPercentages(java.lang.String[] discountPercentages) |
void |
setDiscountPercentages(com.liferay.petra.function.UnsafeSupplier<java.lang.String[],java.lang.Exception> discountPercentagesUnsafeSupplier) |
void |
setFinalPrice(java.lang.String finalPrice) |
void |
setFinalPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.String,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 |
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) |
void |
setTierPrice(java.lang.Double tierPrice) |
void |
setTierPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> tierPriceUnsafeSupplier) |
void |
setTierPriceFormatted(java.lang.String tierPriceFormatted) |
void |
setTierPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> tierPriceFormattedUnsafeSupplier) |
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.String discount
protected java.lang.String discountPercentage
protected java.lang.String[] discountPercentages
protected java.lang.String finalPrice
protected java.lang.Double price
protected java.lang.String priceFormatted
protected java.lang.Double promoPrice
protected java.lang.String promoPriceFormatted
protected java.lang.Double tierPrice
protected java.lang.String tierPriceFormatted
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.String getDiscount()
public void setDiscount(java.lang.String discount)
public void setDiscount(com.liferay.petra.function.UnsafeSupplier<java.lang.String,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.String[] getDiscountPercentages()
public void setDiscountPercentages(java.lang.String[] discountPercentages)
public void setDiscountPercentages(com.liferay.petra.function.UnsafeSupplier<java.lang.String[],java.lang.Exception> discountPercentagesUnsafeSupplier)
public java.lang.String getFinalPrice()
public void setFinalPrice(java.lang.String finalPrice)
public void setFinalPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.String,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.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 java.lang.Double getTierPrice()
public void setTierPrice(java.lang.Double tierPrice)
public void setTierPrice(com.liferay.petra.function.UnsafeSupplier<java.lang.Double,java.lang.Exception> tierPriceUnsafeSupplier)
public java.lang.String getTierPriceFormatted()
public void setTierPriceFormatted(java.lang.String tierPriceFormatted)
public void setTierPriceFormatted(com.liferay.petra.function.UnsafeSupplier<java.lang.String,java.lang.Exception> tierPriceFormattedUnsafeSupplier)
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