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

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

    • catalogId

      protected Long catalogId
    • description

      protected String description
    • fieldType

      protected String fieldType
    • id

      protected Long id
    • key

      protected String key
    • name

      protected String name
    • optionExternalReferenceCode

      protected String optionExternalReferenceCode
    • optionId

      protected Long optionId
    • priority

      protected Double priority
    • productOptionValues

      protected ProductOptionValue[] productOptionValues
    • required

      protected Boolean required
    • skuContributor

      protected Boolean skuContributor
    • xClassName

      public String xClassName
  • Constructor Details

    • ProductOption

      public ProductOption()
  • Method Details

    • toDTO

      public static ProductOption toDTO(String json)
    • unsafeToDTO

      public static ProductOption unsafeToDTO(String json)
    • getCatalogId

      public Long getCatalogId()
    • setCatalogId

      public void setCatalogId(Long catalogId)
    • setCatalogId

      public void setCatalogId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> catalogIdUnsafeSupplier)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • setDescription

      public void setDescription(com.liferay.petra.function.UnsafeSupplier<String,Exception> descriptionUnsafeSupplier)
    • getFieldType

      public String getFieldType()
    • setFieldType

      public void setFieldType(String fieldType)
    • setFieldType

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

      public String getKey()
    • setKey

      public void setKey(String key)
    • setKey

      public void setKey(com.liferay.petra.function.UnsafeSupplier<String,Exception> keyUnsafeSupplier)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • setName

      public void setName(com.liferay.petra.function.UnsafeSupplier<String,Exception> nameUnsafeSupplier)
    • getOptionExternalReferenceCode

      public String getOptionExternalReferenceCode()
    • setOptionExternalReferenceCode

      public void setOptionExternalReferenceCode(String optionExternalReferenceCode)
    • setOptionExternalReferenceCode

      public void setOptionExternalReferenceCode(com.liferay.petra.function.UnsafeSupplier<String,Exception> optionExternalReferenceCodeUnsafeSupplier)
    • getOptionId

      @DecimalMin("0") public @DecimalMin("0") Long getOptionId()
    • setOptionId

      public void setOptionId(Long optionId)
    • setOptionId

      public void setOptionId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> optionIdUnsafeSupplier)
    • getPriority

      public Double getPriority()
    • setPriority

      public void setPriority(Double priority)
    • setPriority

      public void setPriority(com.liferay.petra.function.UnsafeSupplier<Double,Exception> priorityUnsafeSupplier)
    • getProductOptionValues

      @Valid public @Valid ProductOptionValue[] getProductOptionValues()
    • setProductOptionValues

      public void setProductOptionValues(ProductOptionValue[] productOptionValues)
    • setProductOptionValues

      public void setProductOptionValues(com.liferay.petra.function.UnsafeSupplier<ProductOptionValue[],Exception> productOptionValuesUnsafeSupplier)
    • getRequired

      public Boolean getRequired()
    • setRequired

      public void setRequired(Boolean required)
    • setRequired

      public void setRequired(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> requiredUnsafeSupplier)
    • getSkuContributor

      public Boolean getSkuContributor()
    • setSkuContributor

      public void setSkuContributor(Boolean skuContributor)
    • setSkuContributor

      public void setSkuContributor(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> skuContributorUnsafeSupplier)
    • 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