Class RedemptionLoyaltyCard

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedemptionLoyaltyCard extends Object
Contains the number of points subtracted from the loyalty card for the redemption.
  • Field Details

  • Constructor Details

    • RedemptionLoyaltyCard

      public RedemptionLoyaltyCard()
  • Method Details

    • points

      public RedemptionLoyaltyCard points(Integer points)
    • getPoints

      @Nullable public Integer getPoints()
      Number of points subtracted from the loyalty card as a result of the redemption.
      Returns:
      points
    • setPoints

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

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