Class Price
java.lang.Object
com.liferay.headless.commerce.delivery.cart.dto.v1_0.Price
- All Implemented Interfaces:
Serializable
- See Also:
- Generated:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getPrice()
int
hashCode()
void
setCurrency
(com.liferay.petra.function.UnsafeSupplier<String, Exception> currencyUnsafeSupplier) void
setCurrency
(String currency) void
setDiscount
(com.liferay.petra.function.UnsafeSupplier<Double, Exception> discountUnsafeSupplier) void
setDiscount
(Double discount) void
setDiscountFormatted
(com.liferay.petra.function.UnsafeSupplier<String, Exception> discountFormattedUnsafeSupplier) void
setDiscountFormatted
(String discountFormatted) void
setDiscountPercentage
(com.liferay.petra.function.UnsafeSupplier<String, Exception> discountPercentageUnsafeSupplier) void
setDiscountPercentage
(String discountPercentage) void
setDiscountPercentageLevel1
(com.liferay.petra.function.UnsafeSupplier<Double, Exception> discountPercentageLevel1UnsafeSupplier) void
setDiscountPercentageLevel1
(Double discountPercentageLevel1) void
setDiscountPercentageLevel2
(com.liferay.petra.function.UnsafeSupplier<Double, Exception> discountPercentageLevel2UnsafeSupplier) void
setDiscountPercentageLevel2
(Double discountPercentageLevel2) void
setDiscountPercentageLevel3
(com.liferay.petra.function.UnsafeSupplier<Double, Exception> discountPercentageLevel3UnsafeSupplier) void
setDiscountPercentageLevel3
(Double discountPercentageLevel3) void
setDiscountPercentageLevel4
(com.liferay.petra.function.UnsafeSupplier<Double, Exception> discountPercentageLevel4UnsafeSupplier) void
setDiscountPercentageLevel4
(Double discountPercentageLevel4) void
setFinalPrice
(com.liferay.petra.function.UnsafeSupplier<Double, Exception> finalPriceUnsafeSupplier) void
setFinalPrice
(Double finalPrice) void
setFinalPriceFormatted
(com.liferay.petra.function.UnsafeSupplier<String, Exception> finalPriceFormattedUnsafeSupplier) void
setFinalPriceFormatted
(String finalPriceFormatted) void
void
void
setPriceFormatted
(com.liferay.petra.function.UnsafeSupplier<String, Exception> priceFormattedUnsafeSupplier) void
setPriceFormatted
(String priceFormatted) void
setPriceOnApplication
(com.liferay.petra.function.UnsafeSupplier<Boolean, Exception> priceOnApplicationUnsafeSupplier) void
setPriceOnApplication
(Boolean priceOnApplication) void
setPromoPrice
(com.liferay.petra.function.UnsafeSupplier<Double, Exception> promoPriceUnsafeSupplier) void
setPromoPrice
(Double promoPrice) void
setPromoPriceFormatted
(com.liferay.petra.function.UnsafeSupplier<String, Exception> promoPriceFormattedUnsafeSupplier) void
setPromoPriceFormatted
(String promoPriceFormatted) static Price
toString()
static Price
unsafeToDTO
(String json)
-
Field Details
-
currency
-
discount
-
discountFormatted
-
discountPercentage
-
discountPercentageLevel1
-
discountPercentageLevel2
-
discountPercentageLevel3
-
discountPercentageLevel4
-
finalPrice
-
finalPriceFormatted
-
price
-
priceFormatted
-
priceOnApplication
-
promoPrice
-
promoPriceFormatted
-
xClassName
-
-
Constructor Details
-
Price
public Price()
-
-
Method Details
-
toDTO
-
unsafeToDTO
-
getCurrency
-
setCurrency
-
setCurrency
-
getDiscount
-
setDiscount
-
setDiscount
-
getDiscountFormatted
-
setDiscountFormatted
-
setDiscountFormatted
-
getDiscountPercentage
-
setDiscountPercentage
-
setDiscountPercentage
-
getDiscountPercentageLevel1
-
setDiscountPercentageLevel1
-
setDiscountPercentageLevel1
-
getDiscountPercentageLevel2
-
setDiscountPercentageLevel2
-
setDiscountPercentageLevel2
-
getDiscountPercentageLevel3
-
setDiscountPercentageLevel3
-
setDiscountPercentageLevel3
-
getDiscountPercentageLevel4
-
setDiscountPercentageLevel4
-
setDiscountPercentageLevel4
-
getFinalPrice
-
setFinalPrice
-
setFinalPrice
-
getFinalPriceFormatted
-
setFinalPriceFormatted
-
setFinalPriceFormatted
-
getPrice
-
setPrice
-
setPrice
-
getPriceFormatted
-
setPriceFormatted
-
setPriceFormatted
-
getPriceOnApplication
-
setPriceOnApplication
-
setPriceOnApplication
-
getPromoPrice
-
setPromoPrice
-
setPromoPrice
-
getPromoPriceFormatted
-
setPromoPriceFormatted
-
setPromoPriceFormatted
-
equals
-
hashCode
public int hashCode() -
toString
-