Package io.voucherify.client.model
Class LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty
java.lang.Object
io.voucherify.client.model.LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty
extends Object
Defines the equivalent points value of the reward.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoRedeem(Boolean autoRedeem) booleanCreate an instance of LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty given an JSON stringDetermines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it.The number of points required to redeem the reward.inthashCode()voidsetAutoRedeem(Boolean autoRedeem) voidtoJson()Convert an instance of LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_AUTO_REDEEM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty
public LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty()
-
-
Method Details
-
points
-
getPoints
The number of points required to redeem the reward.- Returns:
- points
-
setPoints
-
autoRedeem
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty fromJson(String jsonString) throws IOException Create an instance of LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty
-
toJson
Convert an instance of LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty to an JSON string- Returns:
- JSON string
-