Package io.voucherify.client.model
Class ClientPromotionsTiersListResponseBody
java.lang.Object
io.voucherify.client.model.ClientPromotionsTiersListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientPromotionsTiersListResponseBody
extends Object
Response body schema for **GET** `v1/client/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 ClientPromotionsTiersListResponseBody 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 ClientPromotionsTiersListResponseBody 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
-
ClientPromotionsTiersListResponseBody
public ClientPromotionsTiersListResponseBody()
-
-
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 ClientPromotionsTiersListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientPromotionsTiersListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ClientPromotionsTiersListResponseBody
-
toJson
Convert an instance of ClientPromotionsTiersListResponseBody to an JSON string- Returns:
- JSON string
-