Class SkusListForProduct

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SkusListForProduct extends Object
Contains information about child SKUs.
  • Field Details

  • Constructor Details

    • SkusListForProduct

      public SkusListForProduct()
  • Method Details

    • _object

      public SkusListForProduct _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 SkusListForProduct 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)
    • data

      public SkusListForProduct data(List<Sku> data)
    • addDataItem

      public SkusListForProduct addDataItem(Sku dataItem)
    • getData

      @Nullable public List<Sku> getData()
      A dictionary that contains an array of SKUs.
      Returns:
      data
    • setData

      public void setData(List<Sku> data)
    • total

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

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