Package io.voucherify.client.model
Class PromotionsTiersListResponseBody
java.lang.Object
io.voucherify.client.model.PromotionsTiersListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsTiersListResponseBody
extends Object
Response body schema for **GET** `v1/promotions/{campaignId}/tiers` and **GET** `v1/promotions/tiers`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTiersItem(PromotionTier tiersItem) booleanCreate an instance of PromotionsTiersListResponseBody given an JSON stringIdentifies the name of the attribute that contains the array of promotion tier 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.getTiers()Contains array of promotion tier objects.getTotal()Total number of promotion tiers.inthashCode()voidsetDataRef(String dataRef) voidsetHasMore(Boolean hasMore) voidvoidsetTiers(List<PromotionTier> tiers) voidtiers(List<PromotionTier> tiers) toJson()Convert an instance of PromotionsTiersListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_TIERS
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
SERIALIZED_NAME_HAS_MORE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PromotionsTiersListResponseBody
public PromotionsTiersListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about promotion tiers in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of promotion tier objects.- Returns:
- dataRef
-
setDataRef
-
tiers
-
addTiersItem
-
getTiers
Contains array of promotion tier objects.- Returns:
- tiers
-
setTiers
-
total
-
getTotal
Total number of promotion tiers.- 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 to get more records returned in the results.- Returns:
- hasMore
-
setHasMore
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of PromotionsTiersListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsTiersListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsTiersListResponseBody
-
toJson
Convert an instance of PromotionsTiersListResponseBody to an JSON string- Returns:
- JSON string
-