Class CustomerSummaryRedemptionsLoyaltyCard

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CustomerSummaryRedemptionsLoyaltyCard extends Object
Summary of loyalty points.
  • Field Details

  • Constructor Details

    • CustomerSummaryRedemptionsLoyaltyCard

      public CustomerSummaryRedemptionsLoyaltyCard()
  • Method Details

    • redeemedPoints

      public CustomerSummaryRedemptionsLoyaltyCard redeemedPoints(Integer redeemedPoints)
    • getRedeemedPoints

      @Nullable public Integer getRedeemedPoints()
      Total number of loyalty points redeemed by the customer.
      Returns:
      redeemedPoints
    • setRedeemedPoints

      public void setRedeemedPoints(Integer redeemedPoints)
    • pointsToGo

      public CustomerSummaryRedemptionsLoyaltyCard pointsToGo(Integer pointsToGo)
    • getPointsToGo

      @Nullable public Integer getPointsToGo()
      Sum of remaining available point balance across all loyalty cards.
      Returns:
      pointsToGo
    • setPointsToGo

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

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