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

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

    • actions

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

      protected Channel channel
    • channelExternalReferenceCode

      protected String channelExternalReferenceCode
    • channelId

      @NotNull protected @NotNull Long channelId
    • discountChannelId

      protected Long discountChannelId
    • discountExternalReferenceCode

      protected String discountExternalReferenceCode
    • discountId

      protected Long discountId
    • xClassName

      public String xClassName
  • Constructor Details

    • DiscountChannel

      public DiscountChannel()
  • Method Details

    • toDTO

      public static DiscountChannel toDTO(String json)
    • unsafeToDTO

      public static DiscountChannel 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)
    • getChannel

      @Valid public @Valid Channel getChannel()
    • setChannel

      public void setChannel(Channel channel)
    • setChannel

      public void setChannel(com.liferay.petra.function.UnsafeSupplier<Channel,Exception> channelUnsafeSupplier)
    • getChannelExternalReferenceCode

      public String getChannelExternalReferenceCode()
    • setChannelExternalReferenceCode

      public void setChannelExternalReferenceCode(String channelExternalReferenceCode)
    • setChannelExternalReferenceCode

      public void setChannelExternalReferenceCode(com.liferay.petra.function.UnsafeSupplier<String,Exception> channelExternalReferenceCodeUnsafeSupplier)
    • getChannelId

      @DecimalMin("0") public @DecimalMin("0") Long getChannelId()
    • setChannelId

      public void setChannelId(Long channelId)
    • setChannelId

      public void setChannelId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> channelIdUnsafeSupplier)
    • getDiscountChannelId

      @DecimalMin("0") public @DecimalMin("0") Long getDiscountChannelId()
    • setDiscountChannelId

      public void setDiscountChannelId(Long discountChannelId)
    • setDiscountChannelId

      public void setDiscountChannelId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> discountChannelIdUnsafeSupplier)
    • getDiscountExternalReferenceCode

      public String getDiscountExternalReferenceCode()
    • setDiscountExternalReferenceCode

      public void setDiscountExternalReferenceCode(String discountExternalReferenceCode)
    • setDiscountExternalReferenceCode

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