Class RedemptionVoucherLoyaltyCard

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

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

  • Constructor Details

    • RedemptionVoucherLoyaltyCard

      public RedemptionVoucherLoyaltyCard()
  • Method Details

    • points

      public RedemptionVoucherLoyaltyCard 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 RedemptionVoucherLoyaltyCard balance(Integer balance)
    • getBalance

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

      public void setBalance(Integer balance)
    • nextExpirationDate

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

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