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

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

    • actions

      protected Map<String,Map<String,String>> actions
    • discountId

      protected Long discountId
    • id

      protected Long id
    • name

      protected String name
    • 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)
    • getActions

      @Valid public @Valid Map<String,Map<String,String>> getActions()
    • setActions

      public void setActions(Map<String,Map<String,String>> actions)
    • setActions

      public void setActions(com.liferay.petra.function.UnsafeSupplier<Map<String,Map<String,String>>,Exception> actionsUnsafeSupplier)
    • 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)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • setName

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