Class CreateUpdateProduct

java.lang.Object
software.xdev.brevo.model.CreateUpdateProduct

public class CreateUpdateProduct extends Object
CreateUpdateProduct
  • Field Details

  • Constructor Details

    • CreateUpdateProduct

      public CreateUpdateProduct()
  • Method Details

    • id

      public CreateUpdateProduct id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Product ID for which you requested the details
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • name

      public CreateUpdateProduct name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Mandatory in case of creation**. Name of the product for which you requested the details
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • url

      public CreateUpdateProduct url(@Nullable String url)
    • getUrl

      @Nullable public String getUrl()
      URL to the product
      Returns:
      url
    • setUrl

      public void setUrl(@Nullable String url)
    • imageUrl

      public CreateUpdateProduct imageUrl(@Nullable String imageUrl)
    • getImageUrl

      @Nullable public String getImageUrl()
      Absolute URL to the cover image of the product
      Returns:
      imageUrl
    • setImageUrl

      public void setImageUrl(@Nullable String imageUrl)
    • sku

      public CreateUpdateProduct sku(@Nullable String sku)
    • getSku

      @Nullable public String getSku()
      Product identifier from the shop
      Returns:
      sku
    • setSku

      public void setSku(@Nullable String sku)
    • price

      public CreateUpdateProduct price(@Nullable Float price)
    • getPrice

      @Nullable public Float getPrice()
      Price of the product
      Returns:
      price
    • setPrice

      public void setPrice(@Nullable Float price)
    • categories

      public CreateUpdateProduct categories(@Nullable List<String> categories)
    • addCategoriesItem

      public CreateUpdateProduct addCategoriesItem(String categoriesItem)
    • getCategories

      @Nullable public List<String> getCategories()
      Category ID-s of the product
      Returns:
      categories
    • setCategories

      public void setCategories(@Nullable List<String> categories)
    • parentId

      public CreateUpdateProduct parentId(@Nullable String parentId)
    • getParentId

      @Nullable public String getParentId()
      Parent product id of the product
      Returns:
      parentId
    • setParentId

      public void setParentId(@Nullable String parentId)
    • metaInfo

      public CreateUpdateProduct metaInfo(@Nullable Map<String,Object> metaInfo)
    • putMetaInfoItem

      public CreateUpdateProduct putMetaInfoItem(String key, Object metaInfoItem)
    • getMetaInfo

      @Nullable public Map<String,Object> getMetaInfo()
      Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 20.
      Returns:
      metaInfo
    • setMetaInfo

      public void setMetaInfo(@Nullable Map<String,Object> metaInfo)
    • updateEnabled

      public CreateUpdateProduct updateEnabled(@Nullable Boolean updateEnabled)
    • getUpdateEnabled

      @Nullable public Boolean getUpdateEnabled()
      Facilitate to update the existing category in the same request (updateEnabled = true)
      Returns:
      updateEnabled
    • setUpdateEnabled

      public void setUpdateEnabled(@Nullable Boolean updateEnabled)
    • deletedAt

      public CreateUpdateProduct deletedAt(@Nullable String deletedAt)
    • getDeletedAt

      @Nullable public String getDeletedAt()
      UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database
      Returns:
      deletedAt
    • setDeletedAt

      public void setDeletedAt(@Nullable String deletedAt)
    • isDeleted

      public CreateUpdateProduct isDeleted(@Nullable Boolean isDeleted)
    • getIsDeleted

      @Nullable public Boolean getIsDeleted()
      product deleted from the shop's database
      Returns:
      isDeleted
    • setIsDeleted

      public void setIsDeleted(@Nullable Boolean isDeleted)
    • stock

      public CreateUpdateProduct stock(@Nullable BigDecimal stock)
    • getStock

      @Nullable public BigDecimal getStock()
      Current stock value of the product from the shop's database
      Returns:
      stock
    • setStock

      public void setStock(@Nullable BigDecimal stock)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string