Class LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty

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

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

  • Constructor Details

    • LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty

      public LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty()
  • Method Details

    • points

    • getPoints

      @Nullable public Integer getPoints()
      The number of points required to redeem the reward.
      Returns:
      points
    • setPoints

      public void setPoints(Integer points)
    • autoRedeem

    • getAutoRedeem

      @Nullable public Boolean getAutoRedeem()
      Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.
      Returns:
      autoRedeem
    • setAutoRedeem

      public void setAutoRedeem(Boolean autoRedeem)
    • 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 LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty
      Throws:
      IOException - if the JSON string is invalid with respect to LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty
    • toJson

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