Class ProductsUpdateRequestBody

java.lang.Object
io.voucherify.client.model.ProductsUpdateRequestBody

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ProductsUpdateRequestBody extends Object
Request schema for **PUT** `v1/products`.
  • Field Details

  • Constructor Details

    • ProductsUpdateRequestBody

      public ProductsUpdateRequestBody()
  • Method Details

    • name

      public ProductsUpdateRequestBody name(String name)
    • getName

      @Nullable public String getName()
      Unique user-defined product name.
      Returns:
      name
    • setName

      public void setName(String name)
    • price

      public ProductsUpdateRequestBody price(Integer price)
    • getPrice

      @Nullable public Integer getPrice()
      Unit price. It is represented by a value multiplied by 100 to accurately reflect 2 decimal places, such as `$100.00` being expressed as `10000`.
      Returns:
      price
    • setPrice

      public void setPrice(Integer price)
    • attributes

      public ProductsUpdateRequestBody attributes(List<String> attributes)
    • addAttributesItem

      public ProductsUpdateRequestBody addAttributesItem(String attributesItem)
    • getAttributes

      @Nullable public List<String> getAttributes()
      A list of product attributes whose values you can customize for given SKUs: `[\"color\",\"size\",\"ranking\"]`. Each child SKU can have a unique value for a given attribute.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(List<String> attributes)
    • metadata

      public ProductsUpdateRequestBody metadata(Object metadata)
    • getMetadata

      @Nullable public Object getMetadata()
      The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format.
      Returns:
      metadata
    • setMetadata

      public void setMetadata(Object metadata)
    • imageUrl

      public ProductsUpdateRequestBody imageUrl(String imageUrl)
    • getImageUrl

      @Nullable public String getImageUrl()
      The HTTPS URL pointing to the .png or .jpg file that will be used to render the product image.
      Returns:
      imageUrl
    • setImageUrl

      public void setImageUrl(String imageUrl)
    • 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
    • fromJson

      public static ProductsUpdateRequestBody fromJson(String jsonString) throws IOException
      Create an instance of ProductsUpdateRequestBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ProductsUpdateRequestBody
      Throws:
      IOException - if the JSON string is invalid with respect to ProductsUpdateRequestBody
    • toJson

      public String toJson()
      Convert an instance of ProductsUpdateRequestBody to an JSON string
      Returns:
      JSON string