Class LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty extends Object
Defines the equivalent points value of the reward.
  • Field Details

  • Constructor Details

    • LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty

      public LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty()
  • Method Details

    • points

    • getPoints

      @Nullable public Integer getPoints()
      Number of points that will be subtracted from the loyalty card points balance if the reward is redeemed.
      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

      Create an instance of LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty
      Throws:
      IOException - if the JSON string is invalid with respect to LoyaltiesRewardsCreateAssignmentItemRequestBodyParametersLoyalty
    • toJson

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