Class LoyaltyTierConfigPoints

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltyTierConfigPoints extends Object
Defines range of loyalty tier in points.
  • Field Details

  • Constructor Details

    • LoyaltyTierConfigPoints

      public LoyaltyTierConfigPoints()
  • Method Details

    • from

      public LoyaltyTierConfigPoints from(Integer from)
    • getFrom

      @Nullable public Integer getFrom()
      Bottom points threshold value.
      Returns:
      from
    • setFrom

      public void setFrom(Integer from)
    • to

    • getTo

      @Nullable public Integer getTo()
      Top points threshold value.
      Returns:
      to
    • setTo

      public void setTo(Integer to)
    • 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 LoyaltyTierConfigPoints fromJson(String jsonString) throws IOException
      Create an instance of LoyaltyTierConfigPoints given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LoyaltyTierConfigPoints
      Throws:
      IOException - if the JSON string is invalid with respect to LoyaltyTierConfigPoints
    • toJson

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