Package io.voucherify.client.model
Class LoyaltiesTiersListResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesTiersListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesTiersListResponseBody
extends Object
Response body schema for **GET** `v1/loyalties/{campaignId}/tiers`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumIdentifies the name of the attribute that contains the array of loyalty tier objects.static enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(LoyaltyTier dataItem) data(List<LoyaltyTier> data) booleanCreate an instance of LoyaltiesTiersListResponseBody given an JSON stringgetData()This is an object representing a loyalty tier.Identifies the name of the attribute that contains the array of loyalty tier objects.The type of the object represented by JSON.getTotal()Total number of loyalty tier objects.inthashCode()voidsetData(List<LoyaltyTier> data) voidvoidvoidtoJson()Convert an instance of LoyaltiesTiersListResponseBody 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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesTiersListResponseBody
public LoyaltiesTiersListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about loyalty tiers in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of loyalty tier objects.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
This is an object representing a loyalty tier. Loyalty tiers are used to create a loyalty program with different levels of membership and varied earning rules and rewards based on customer's tiers.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of loyalty tier objects.- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltiesTiersListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesTiersListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesTiersListResponseBody
-
toJson
Convert an instance of LoyaltiesTiersListResponseBody to an JSON string- Returns:
- JSON string
-