java.lang.Object
com.liferay.headless.commerce.delivery.cart.dto.v1_0.Price
All Implemented Interfaces:
Serializable

@Generated("") public class Price extends Object implements Serializable
See Also:
Generated:
  • Field Details

    • currency

      protected String currency
    • discount

      protected Double discount
    • discountFormatted

      protected String discountFormatted
    • discountPercentage

      protected String discountPercentage
    • discountPercentageLevel1

      protected Double discountPercentageLevel1
    • discountPercentageLevel2

      protected Double discountPercentageLevel2
    • discountPercentageLevel3

      protected Double discountPercentageLevel3
    • discountPercentageLevel4

      protected Double discountPercentageLevel4
    • finalPrice

      protected Double finalPrice
    • finalPriceFormatted

      protected String finalPriceFormatted
    • price

      protected Double price
    • priceFormatted

      protected String priceFormatted
    • priceOnApplication

      protected Boolean priceOnApplication
    • promoPrice

      protected Double promoPrice
    • promoPriceFormatted

      protected String promoPriceFormatted
    • xClassName

      public String xClassName
  • Constructor Details

    • Price

      public Price()
  • Method Details

    • toDTO

      public static Price toDTO(String json)
    • unsafeToDTO

      public static Price unsafeToDTO(String json)
    • getCurrency

      public String getCurrency()
    • setCurrency

      public void setCurrency(String currency)
    • setCurrency

      public void setCurrency(com.liferay.petra.function.UnsafeSupplier<String,Exception> currencyUnsafeSupplier)
    • getDiscount

      public Double getDiscount()
    • setDiscount

      public void setDiscount(Double discount)
    • setDiscount

      public void setDiscount(com.liferay.petra.function.UnsafeSupplier<Double,Exception> discountUnsafeSupplier)
    • getDiscountFormatted

      public String getDiscountFormatted()
    • setDiscountFormatted

      public void setDiscountFormatted(String discountFormatted)
    • setDiscountFormatted

      public void setDiscountFormatted(com.liferay.petra.function.UnsafeSupplier<String,Exception> discountFormattedUnsafeSupplier)
    • getDiscountPercentage

      public String getDiscountPercentage()
    • setDiscountPercentage

      public void setDiscountPercentage(String discountPercentage)
    • setDiscountPercentage

      public void setDiscountPercentage(com.liferay.petra.function.UnsafeSupplier<String,Exception> discountPercentageUnsafeSupplier)
    • getDiscountPercentageLevel1

      public Double getDiscountPercentageLevel1()
    • setDiscountPercentageLevel1

      public void setDiscountPercentageLevel1(Double discountPercentageLevel1)
    • setDiscountPercentageLevel1

      public void setDiscountPercentageLevel1(com.liferay.petra.function.UnsafeSupplier<Double,Exception> discountPercentageLevel1UnsafeSupplier)
    • getDiscountPercentageLevel2

      public Double getDiscountPercentageLevel2()
    • setDiscountPercentageLevel2

      public void setDiscountPercentageLevel2(Double discountPercentageLevel2)
    • setDiscountPercentageLevel2

      public void setDiscountPercentageLevel2(com.liferay.petra.function.UnsafeSupplier<Double,Exception> discountPercentageLevel2UnsafeSupplier)
    • getDiscountPercentageLevel3

      public Double getDiscountPercentageLevel3()
    • setDiscountPercentageLevel3

      public void setDiscountPercentageLevel3(Double discountPercentageLevel3)
    • setDiscountPercentageLevel3

      public void setDiscountPercentageLevel3(com.liferay.petra.function.UnsafeSupplier<Double,Exception> discountPercentageLevel3UnsafeSupplier)
    • getDiscountPercentageLevel4

      public Double getDiscountPercentageLevel4()
    • setDiscountPercentageLevel4

      public void setDiscountPercentageLevel4(Double discountPercentageLevel4)
    • setDiscountPercentageLevel4

      public void setDiscountPercentageLevel4(com.liferay.petra.function.UnsafeSupplier<Double,Exception> discountPercentageLevel4UnsafeSupplier)
    • getFinalPrice

      public Double getFinalPrice()
    • setFinalPrice

      public void setFinalPrice(Double finalPrice)
    • setFinalPrice

      public void setFinalPrice(com.liferay.petra.function.UnsafeSupplier<Double,Exception> finalPriceUnsafeSupplier)
    • getFinalPriceFormatted

      public String getFinalPriceFormatted()
    • setFinalPriceFormatted

      public void setFinalPriceFormatted(String finalPriceFormatted)
    • setFinalPriceFormatted

      public void setFinalPriceFormatted(com.liferay.petra.function.UnsafeSupplier<String,Exception> finalPriceFormattedUnsafeSupplier)
    • getPrice

      public Double getPrice()
    • setPrice

      public void setPrice(Double price)
    • setPrice

      public void setPrice(com.liferay.petra.function.UnsafeSupplier<Double,Exception> priceUnsafeSupplier)
    • getPriceFormatted

      public String getPriceFormatted()
    • setPriceFormatted

      public void setPriceFormatted(String priceFormatted)
    • setPriceFormatted

      public void setPriceFormatted(com.liferay.petra.function.UnsafeSupplier<String,Exception> priceFormattedUnsafeSupplier)
    • getPriceOnApplication

      public Boolean getPriceOnApplication()
    • setPriceOnApplication

      public void setPriceOnApplication(Boolean priceOnApplication)
    • setPriceOnApplication

      public void setPriceOnApplication(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> priceOnApplicationUnsafeSupplier)
    • getPromoPrice

      public Double getPromoPrice()
    • setPromoPrice

      public void setPromoPrice(Double promoPrice)
    • setPromoPrice

      public void setPromoPrice(com.liferay.petra.function.UnsafeSupplier<Double,Exception> promoPriceUnsafeSupplier)
    • getPromoPriceFormatted

      public String getPromoPriceFormatted()
    • setPromoPriceFormatted

      public void setPromoPriceFormatted(String promoPriceFormatted)
    • setPromoPriceFormatted

      public void setPromoPriceFormatted(com.liferay.petra.function.UnsafeSupplier<String,Exception> promoPriceFormattedUnsafeSupplier)
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object