Package io.voucherify.client.model
Class CustomersRedeemablesListResponseBody
java.lang.Object
io.voucherify.client.model.CustomersRedeemablesListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomersRedeemablesListResponseBody
extends Object
Response body schema for **GET** `v1/customers/{customerId}/redeemables`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(CustomerRedeemable dataItem) data(List<CustomerRedeemable> data) booleanCreate an instance of CustomersRedeemablesListResponseBody given an JSON stringgetData()A dictionary that contains an array of redeemables.Identifies the name of the JSON property that contains the array of redeemables.As query results are always limited (by the limit parameter), the `has_more` flag indicates if there are more records for given filter parameters.Returns an ID that can be used to return another page of results.The type of the object represented by JSON.getTotal()Total number of results returned.inthashCode()moreStartingAfter(String moreStartingAfter) voidsetData(List<CustomerRedeemable> data) voidsetDataRef(String dataRef) voidsetHasMore(Boolean hasMore) voidsetMoreStartingAfter(String moreStartingAfter) voidvoidtoJson()Convert an instance of CustomersRedeemablesListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
SERIALIZED_NAME_HAS_MORE
- See Also:
-
SERIALIZED_NAME_MORE_STARTING_AFTER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CustomersRedeemablesListResponseBody
public CustomersRedeemablesListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about customer redeemables.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the JSON property that contains the array of redeemables.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
A dictionary that contains an array of redeemables.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of results returned.- Returns:
- total
-
setTotal
-
hasMore
-
getHasMore
As query results are always limited (by the limit parameter), the `has_more` flag indicates if there are more records for given filter parameters. This lets you know if you can run another request with a `starting_after_id` query or a different limit to get more records returned in the results.- Returns:
- hasMore
-
setHasMore
-
moreStartingAfter
-
getMoreStartingAfter
Returns an ID that can be used to return another page of results. Use the ID in the `starting_after_id` query parameter to display another page of the results occuring after the field with that ID.- Returns:
- moreStartingAfter
-
setMoreStartingAfter
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CustomersRedeemablesListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomersRedeemablesListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to CustomersRedeemablesListResponseBody
-
toJson
Convert an instance of CustomersRedeemablesListResponseBody to an JSON string- Returns:
- JSON string
-