Class LoyaltiesMembersRedemptionRedeemRequestBodyReward

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltiesMembersRedemptionRedeemRequestBodyReward extends Object
Contains information about the reward that the customer wants to redeem and the number of points the customer is choosing to use for the reward if the reward is a pay with points reward.
  • Field Details

  • Constructor Details

    • LoyaltiesMembersRedemptionRedeemRequestBodyReward

      public LoyaltiesMembersRedemptionRedeemRequestBodyReward()
  • Method Details

    • id

    • getId

      @Nullable public String getId()
      Unique reward ID assigned by Voucherify. The reward must be assigned to the campaign in order for the user to be able to use the reward.
      Returns:
      id
    • setId

      public void setId(String id)
    • points

    • getPoints

      @Nullable public Integer getPoints()
      The number of loyalty points that the user wants to spend in order to fulfill the order. The number of points cannot be higher than the current balance on the loyalty card.
      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 LoyaltiesMembersRedemptionRedeemRequestBodyReward fromJson(String jsonString) throws IOException
      Create an instance of LoyaltiesMembersRedemptionRedeemRequestBodyReward given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LoyaltiesMembersRedemptionRedeemRequestBodyReward
      Throws:
      IOException - if the JSON string is invalid with respect to LoyaltiesMembersRedemptionRedeemRequestBodyReward
    • toJson

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