Class ProductsListResponseBody

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

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

  • Constructor Details

    • ProductsListResponseBody

      public ProductsListResponseBody()
  • Method Details

    • _object

      public ProductsListResponseBody _object(String _object)
    • getObject

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

      public void setObject(String _object)
    • dataRef

      public ProductsListResponseBody dataRef(String dataRef)
    • getDataRef

      @Nullable public String getDataRef()
      Identifies the name of the attribute that contains the array of product objects.
      Returns:
      dataRef
    • setDataRef

      public void setDataRef(String dataRef)
    • products

      public ProductsListResponseBody products(List<Product> products)
    • addProductsItem

      public ProductsListResponseBody addProductsItem(Product productsItem)
    • getProducts

      @Nullable public List<Product> getProducts()
      Contains array of product objects.
      Returns:
      products
    • setProducts

      public void setProducts(List<Product> products)
    • total

      public ProductsListResponseBody total(Integer total)
    • getTotal

      @Nullable public Integer getTotal()
      Total number of product objects.
      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 ProductsListResponseBody fromJson(String jsonString) throws IOException
      Create an instance of ProductsListResponseBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ProductsListResponseBody
      Throws:
      IOException - if the JSON string is invalid with respect to ProductsListResponseBody
    • toJson

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