Class PromotionTiersList

java.lang.Object
io.voucherify.client.model.PromotionTiersList

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PromotionTiersList extends Object
Promotion Tiers
  • Field Details

  • Constructor Details

    • PromotionTiersList

      public PromotionTiersList()
  • Method Details

    • _object

      public PromotionTiersList _object(String _object)
    • getObject

      @Nullable public String getObject()
      The type of the object represented by JSON. This object stores information about promotion tiers in a dictionary.
      Returns:
      _object
    • setObject

      public void setObject(String _object)
    • dataRef

      public PromotionTiersList dataRef(String dataRef)
    • getDataRef

      @Nullable public String getDataRef()
      Identifies the name of the attribute that contains the array of promotion tier objects.
      Returns:
      dataRef
    • setDataRef

      public void setDataRef(String dataRef)
    • tiers

      public PromotionTiersList tiers(List<PromotionTier> tiers)
    • addTiersItem

      public PromotionTiersList addTiersItem(PromotionTier tiersItem)
    • getTiers

      @Nullable public List<PromotionTier> getTiers()
      Contains array of promotion tier objects.
      Returns:
      tiers
    • setTiers

      public void setTiers(List<PromotionTier> tiers)
    • total

      public PromotionTiersList total(Integer total)
    • getTotal

      @Nullable public Integer getTotal()
      Total number of promotion tiers.
      Returns:
      total
    • setTotal

      public void setTotal(Integer total)
    • hasMore

      public PromotionTiersList hasMore(Boolean hasMore)
    • getHasMore

      @Nullable public Boolean 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

      public void setHasMore(Boolean hasMore)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static PromotionTiersList fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of PromotionTiersList to an JSON string
      Returns:
      JSON string