Package io.voucherify.client.model
Class ClientRedemptionsRedeemRequestBodyRedeemablesItemReward
java.lang.Object
io.voucherify.client.model.ClientRedemptionsRedeemRequestBodyRedeemablesItemReward
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientRedemptionsRedeemRequestBodyRedeemablesItemReward
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemReward given an JSON stringgetId()Unique reward ID assigned by Voucherify.The number of loyalty points that the user wants to spend in order to fulfill the order using a **pay with points** reward.inthashCode()voidvoidtoJson()Convert an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemReward to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_POINTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClientRedemptionsRedeemRequestBodyRedeemablesItemReward
public ClientRedemptionsRedeemRequestBodyRedeemablesItemReward()
-
-
Method Details
-
id
-
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
-
points
-
getPoints
The number of loyalty points that the user wants to spend in order to fulfill the order using a **pay with points** reward. The number of points cannot be higher than the current balance on the loyalty card.- Returns:
- points
-
setPoints
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ClientRedemptionsRedeemRequestBodyRedeemablesItemReward fromJson(String jsonString) throws IOException Create an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemReward given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemReward
- Throws:
IOException- if the JSON string is invalid with respect to ClientRedemptionsRedeemRequestBodyRedeemablesItemReward
-
toJson
Convert an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemReward to an JSON string- Returns:
- JSON string
-