Class ProductsSkusListResponseBody

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

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

  • Constructor Details

    • ProductsSkusListResponseBody

      public ProductsSkusListResponseBody()
  • Method Details

    • _object

      public ProductsSkusListResponseBody _object(String _object)
    • getObject

      @Nullable public String getObject()
      The type of the object represented by JSON. This object stores information about SKUs.
      Returns:
      _object
    • setObject

      public void setObject(String _object)
    • dataRef

      public ProductsSkusListResponseBody dataRef(String dataRef)
    • getDataRef

      @Nullable public String getDataRef()
      Identifies the name of the JSON property that contains the array of SKUs.
      Returns:
      dataRef
    • setDataRef

      public void setDataRef(String dataRef)
    • skus

      public ProductsSkusListResponseBody skus(List<Sku> skus)
    • addSkusItem

      public ProductsSkusListResponseBody addSkusItem(Sku skusItem)
    • getSkus

      @Nullable public List<Sku> getSkus()
      A dictionary that contains an array of SKUs.
      Returns:
      skus
    • setSkus

      public void setSkus(List<Sku> skus)
    • total

      public ProductsSkusListResponseBody total(Integer total)
    • getTotal

      @Nullable public Integer getTotal()
      Total number of SKUs in the product.
      Returns:
      total
    • setTotal

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

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