Class ProductsSkusCreateRequestBody

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

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

  • Constructor Details

    • ProductsSkusCreateRequestBody

      public ProductsSkusCreateRequestBody()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      Unique SKU ID.
      Returns:
      id
    • setId

      public void setId(String id)
    • sourceId

      public ProductsSkusCreateRequestBody sourceId(String sourceId)
    • getSourceId

      @Nullable public String getSourceId()
      A unique SKU identifier from your inventory system.
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(String sourceId)
    • sku

    • getSku

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

      public void setSku(String sku)
    • price

      public ProductsSkusCreateRequestBody 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 ProductsSkusCreateRequestBody currency(String currency)
    • getCurrency

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

      public void setCurrency(String currency)
    • attributes

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

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