Package io.voucherify.client.model
Class LoyaltiesRewardsListAssignmentsResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesRewardsListAssignmentsResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesRewardsListAssignmentsResponseBody
extends Object
Response body schema for **GET** `v1/loyalties/{campaignId}/rewards`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(RewardAssignment dataItem) data(List<RewardAssignment> data) booleanCreate an instance of LoyaltiesRewardsListAssignmentsResponseBody given an JSON stringgetData()Contains array of reward assignment objects.Identifies the name of the attribute that contains the array of reward assignment objects.The type of the object represented by JSON.getTotal()Total number of reward assignment objects.inthashCode()voidsetData(List<RewardAssignment> data) voidsetDataRef(String dataRef) voidvoidtoJson()Convert an instance of LoyaltiesRewardsListAssignmentsResponseBody 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
-
LoyaltiesRewardsListAssignmentsResponseBody
public LoyaltiesRewardsListAssignmentsResponseBody()
-
-
Method Details
-
_object
public LoyaltiesRewardsListAssignmentsResponseBody _object(LoyaltiesRewardsListAssignmentsResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by JSON. This object stores information about loyalty reward assignments in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of reward assignment objects.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
Contains array of reward assignment objects.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of reward assignment objects.- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesRewardsListAssignmentsResponseBody fromJson(String jsonString) throws IOException Create an instance of LoyaltiesRewardsListAssignmentsResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesRewardsListAssignmentsResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesRewardsListAssignmentsResponseBody
-
toJson
Convert an instance of LoyaltiesRewardsListAssignmentsResponseBody to an JSON string- Returns:
- JSON string
-