Package io.voucherify.client.model
Class PromotionTiersList
java.lang.Object
io.voucherify.client.model.PromotionTiersList
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionTiersList
extends Object
Promotion Tiers
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTiersItem(PromotionTier tiersItem) booleanstatic PromotionTiersListCreate an instance of PromotionTiersList 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 PromotionTiersList 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
-
PromotionTiersList
public PromotionTiersList()
-
-
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 PromotionTiersList given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionTiersList
- Throws:
IOException- if the JSON string is invalid with respect to PromotionTiersList
-
toJson
Convert an instance of PromotionTiersList to an JSON string- Returns:
- JSON string
-