Class ProductOptionValue

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

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

    • deltaPrice

      protected BigDecimal deltaPrice
    • id

      protected Long id
    • key

      @NotEmpty protected @NotEmpty String key
    • name

      @NotNull protected @NotNull Map<String,String> name
    • preselected

      protected Boolean preselected
    • priority

      protected Double priority
    • quantity

      protected BigDecimal quantity
    • skuExternalReferenceCode

      protected String skuExternalReferenceCode
    • skuId

      protected Long skuId
    • unitOfMeasureKey

      protected String unitOfMeasureKey
    • xClassName

      public String xClassName
  • Constructor Details

    • ProductOptionValue

      public ProductOptionValue()
  • Method Details

    • toDTO

      public static ProductOptionValue toDTO(String json)
    • unsafeToDTO

      public static ProductOptionValue unsafeToDTO(String json)
    • getDeltaPrice

      @DecimalMin("0") @Valid public @DecimalMin("0") @Valid BigDecimal getDeltaPrice()
    • setDeltaPrice

      public void setDeltaPrice(BigDecimal deltaPrice)
    • setDeltaPrice

      public void setDeltaPrice(com.liferay.petra.function.UnsafeSupplier<BigDecimal,Exception> deltaPriceUnsafeSupplier)
    • 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

      @Valid public @Valid Map<String,String> getName()
    • setName

      public void setName(Map<String,String> name)
    • setName

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

      public Boolean getPreselected()
    • setPreselected

      public void setPreselected(Boolean preselected)
    • setPreselected

      public void setPreselected(com.liferay.petra.function.UnsafeSupplier<Boolean,Exception> preselectedUnsafeSupplier)
    • getPriority

      public Double getPriority()
    • setPriority

      public void setPriority(Double priority)
    • setPriority

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

      @DecimalMin("0") @Valid public @DecimalMin("0") @Valid BigDecimal getQuantity()
    • setQuantity

      public void setQuantity(BigDecimal quantity)
    • setQuantity

      public void setQuantity(com.liferay.petra.function.UnsafeSupplier<BigDecimal,Exception> quantityUnsafeSupplier)
    • getSkuExternalReferenceCode

      public String getSkuExternalReferenceCode()
    • setSkuExternalReferenceCode

      public void setSkuExternalReferenceCode(String skuExternalReferenceCode)
    • setSkuExternalReferenceCode

      public void setSkuExternalReferenceCode(com.liferay.petra.function.UnsafeSupplier<String,Exception> skuExternalReferenceCodeUnsafeSupplier)
    • getSkuId

      @DecimalMin("0") public @DecimalMin("0") Long getSkuId()
    • setSkuId

      public void setSkuId(Long skuId)
    • setSkuId

      public void setSkuId(com.liferay.petra.function.UnsafeSupplier<Long,Exception> skuIdUnsafeSupplier)
    • getUnitOfMeasureKey

      public String getUnitOfMeasureKey()
    • setUnitOfMeasureKey

      public void setUnitOfMeasureKey(String unitOfMeasureKey)
    • setUnitOfMeasureKey

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