Package io.voucherify.client.model
Class RedemptionRewardResultParametersCampaign
java.lang.Object
io.voucherify.client.model.RedemptionRewardResultParametersCampaign
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionRewardResultParametersCampaign
extends Object
Defines the product redeemed as a reward.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of RedemptionRewardResultParametersCampaign given an JSON stringPoints available for reward redemption.getId()Campaign unique ID.getType()Defines the type of the campaign.inthashCode()voidsetBalance(Integer balance) voidvoidtoJson()Convert an instance of RedemptionRewardResultParametersCampaign to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionRewardResultParametersCampaign
public RedemptionRewardResultParametersCampaign()
-
-
Method Details
-
id
-
getId
Campaign unique ID.- Returns:
- id
-
setId
-
balance
-
getBalance
Points available for reward redemption.- Returns:
- balance
-
setBalance
-
type
-
getType
Defines the type of the campaign.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static RedemptionRewardResultParametersCampaign fromJson(String jsonString) throws IOException Create an instance of RedemptionRewardResultParametersCampaign given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionRewardResultParametersCampaign
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionRewardResultParametersCampaign
-
toJson
Convert an instance of RedemptionRewardResultParametersCampaign to an JSON string- Returns:
- JSON string
-