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