Class RewardsListResponseBody

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

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

  • Constructor Details

    • RewardsListResponseBody

      public RewardsListResponseBody()
  • Method Details

    • _object

      public RewardsListResponseBody _object(String _object)
    • getObject

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

      public void setObject(String _object)
    • dataRef

      public RewardsListResponseBody dataRef(String dataRef)
    • getDataRef

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

      public void setDataRef(String dataRef)
    • data

      public RewardsListResponseBody data(List<Reward> data)
    • addDataItem

      public RewardsListResponseBody addDataItem(Reward dataItem)
    • getData

      @Nullable public List<Reward> getData()
      A dictionary that contains an array of rewards. Each entry in the array is a separate transaction object.
      Returns:
      data
    • setData

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

      public RewardsListResponseBody total(Integer total)
    • getTotal

      @Nullable public Integer getTotal()
      Returns how many rewards in the project meet the limits defined by the query parameter definitions.
      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 RewardsListResponseBody fromJson(String jsonString) throws IOException
      Create an instance of RewardsListResponseBody given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of RewardsListResponseBody
      Throws:
      IOException - if the JSON string is invalid with respect to RewardsListResponseBody
    • toJson

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