Class VoucherLoyaltyCard

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VoucherLoyaltyCard extends Object
Object representing loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
  • Field Details

  • Constructor Details

    • VoucherLoyaltyCard

      public VoucherLoyaltyCard()
  • Method Details

    • points

      public VoucherLoyaltyCard points(Integer points)
    • getPoints

      @Nullable public Integer getPoints()
      Total points incurred over the lifespan of the loyalty card.
      Returns:
      points
    • setPoints

      public void setPoints(Integer points)
    • balance

      public VoucherLoyaltyCard balance(Integer balance)
    • getBalance

      @Nullable public Integer getBalance()
      Points available for reward redemption.
      Returns:
      balance
    • setBalance

      public void setBalance(Integer balance)
    • nextExpirationDate

      public VoucherLoyaltyCard nextExpirationDate(LocalDate nextExpirationDate)
    • getNextExpirationDate

      @Nullable public LocalDate getNextExpirationDate()
      The next closest date when the next set of points are due to expire.
      Returns:
      nextExpirationDate
    • setNextExpirationDate

      public void setNextExpirationDate(LocalDate nextExpirationDate)
    • nextExpirationPoints

      public VoucherLoyaltyCard nextExpirationPoints(Integer nextExpirationPoints)
    • getNextExpirationPoints

      @Nullable public Integer getNextExpirationPoints()
      The amount of points that are set to expire next.
      Returns:
      nextExpirationPoints
    • setNextExpirationPoints

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

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