Class ProductsSkusUpdateRequestBody

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ProductsSkusUpdateRequestBody extends Object
Request body schema for **PUT** `v1/products/{productId}/skus/{skuId}`.
  • Field Details

  • Constructor Details

    • ProductsSkusUpdateRequestBody

      public ProductsSkusUpdateRequestBody()
  • Method Details

    • sku

    • getSku

      @Nullable public String getSku()
      Unique user-defined SKU name.
      Returns:
      sku
    • setSku

      public void setSku(String sku)
    • price

      public ProductsSkusUpdateRequestBody price(Integer price)
    • getPrice

      @Nullable public Integer getPrice()
      SKU unit price. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.
      Returns:
      price
    • setPrice

      public void setPrice(Integer price)
    • currency

      public ProductsSkusUpdateRequestBody currency(String currency)
    • getCurrency

      @Nullable public String getCurrency()
      SKU price currency.
      Returns:
      currency
    • setCurrency

      public void setCurrency(String currency)
    • attributes

      public ProductsSkusUpdateRequestBody attributes(Object attributes)
    • getAttributes

      @Nullable public Object getAttributes()
      The attributes object stores values for all custom attributes inherited by the SKU from the parent product. A set of key/value pairs that are attached to a SKU object and are unique to each SKU within a product family.
      Returns:
      attributes
    • setAttributes

      public void setAttributes(Object attributes)
    • imageUrl

      public ProductsSkusUpdateRequestBody 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 SKU image.
      Returns:
      imageUrl
    • setImageUrl

      public void setImageUrl(String imageUrl)
    • metadata

      public ProductsSkusUpdateRequestBody metadata(Object metadata)
    • getMetadata

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

      public void setMetadata(Object metadata)
    • 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 ProductsSkusUpdateRequestBody fromJson(String jsonString) throws IOException
      Create an instance of ProductsSkusUpdateRequestBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ProductsSkusUpdateRequestBody
      Throws:
      IOException - if the JSON string is invalid with respect to ProductsSkusUpdateRequestBody
    • toJson

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