Package io.voucherify.client.model
Class CustomersListResponseBody
java.lang.Object
io.voucherify.client.model.CustomersListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomersListResponseBody
extends Object
Response body schema for **GET** `v1/customers`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomersItem(CustomerWithSummaryLoyaltyReferrals customersItem) customers(List<CustomerWithSummaryLoyaltyReferrals> customers) booleanstatic CustomersListResponseBodyCreate an instance of CustomersListResponseBody given an JSON stringContains array of customer objects.Identifies the name of the attribute that contains the array of customer objects.As query results are always limited (by the limit parameter), the `has_more` flag indicates if there are more records for given filter parameters.The type of the object represented by JSON.getTotal()Total number of customers.inthashCode()voidsetCustomers(List<CustomerWithSummaryLoyaltyReferrals> customers) voidsetDataRef(String dataRef) voidsetHasMore(Boolean hasMore) voidvoidtoJson()Convert an instance of CustomersListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_CUSTOMERS
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
SERIALIZED_NAME_HAS_MORE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CustomersListResponseBody
public CustomersListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about customers in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of customer objects.- Returns:
- dataRef
-
setDataRef
-
customers
-
addCustomersItem
public CustomersListResponseBody addCustomersItem(CustomerWithSummaryLoyaltyReferrals customersItem) -
getCustomers
Contains array of customer objects.- Returns:
- customers
-
setCustomers
-
total
-
getTotal
Total number of customers.- 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 different end date filter) to get more records returned in the results.- Returns:
- hasMore
-
setHasMore
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CustomersListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomersListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to CustomersListResponseBody
-
toJson
Convert an instance of CustomersListResponseBody to an JSON string- Returns:
- JSON string
-