Class RedemptionEntryVoucherLoyaltyCard

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

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

  • Constructor Details

    • RedemptionEntryVoucherLoyaltyCard

      public RedemptionEntryVoucherLoyaltyCard()
  • Method Details

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

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

      public void setBalance(Integer balance)
    • nextExpirationDate

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

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