Class LoyaltyPointsBucketBucket

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltyPointsBucketBucket extends Object
Defines the number of points stored in this loyalty point bucket.
  • Field Details

  • Constructor Details

    • LoyaltyPointsBucketBucket

      public LoyaltyPointsBucketBucket()
  • Method Details

    • totalPoints

      public LoyaltyPointsBucketBucket totalPoints(Integer totalPoints)
    • getTotalPoints

      @Nullable public Integer getTotalPoints()
      Total number of points in the loyalty point bucket.
      Returns:
      totalPoints
    • setTotalPoints

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

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