java.lang.Object
com.liferay.headless.commerce.admin.pricing.dto.v1_0.DiscountRule
All Implemented Interfaces:
Serializable

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

    • discountId

      protected Long discountId
    • id

      protected Long id
    • type

      @NotEmpty protected @NotEmpty String type
    • typeSettings

      protected String typeSettings
    • xClassName

      public String xClassName
  • Constructor Details

    • DiscountRule

      public DiscountRule()
  • Method Details

    • toDTO

      public static DiscountRule toDTO(String json)
    • unsafeToDTO

      public static DiscountRule unsafeToDTO(String json)
    • getDiscountId

      @DecimalMin("0") public @DecimalMin("0") Long getDiscountId()
    • setDiscountId

      public void setDiscountId(Long discountId)
    • setDiscountId

      public void setDiscountId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> discountIdUnsafeSupplier)
    • getId

      @DecimalMin("0") public @DecimalMin("0") Long getId()
    • setId

      public void setId(Long id)
    • setId

      public void setId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> idUnsafeSupplier)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • setType

      public void setType(com.liferay.petra.function.UnsafeSupplier<String,Exception> typeUnsafeSupplier)
    • getTypeSettings

      public String getTypeSettings()
    • setTypeSettings

      public void setTypeSettings(String typeSettings)
    • setTypeSettings

      public void setTypeSettings(com.liferay.petra.function.UnsafeSupplier<String,Exception> typeSettingsUnsafeSupplier)
    • 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