Package io.voucherify.client.model
Class RewardTypeCampaign
java.lang.Object
io.voucherify.client.model.RewardTypeCampaign
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RewardTypeCampaign
extends Object
Objects stores information about the campaign related to the reward.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCampaign type. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RewardTypeCampaignCreate an instance of RewardTypeCampaign given an JSON stringThe number of points to be added to a loyalty card or the amount to be added to the current balance on the gift card.getId()Unique campaign ID, assigned by Voucherify.getType()Campaign type.inthashCode()voidsetBalance(Integer balance) voidvoidtoJson()Convert an instance of RewardTypeCampaign 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
-
RewardTypeCampaign
public RewardTypeCampaign()
-
-
Method Details
-
id
-
getId
Unique campaign ID, assigned by Voucherify.- Returns:
- id
-
setId
-
balance
-
getBalance
The number of points to be added to a loyalty card or the amount to be added to the current balance on the gift card. For gift cards, the value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.- Returns:
- balance
-
setBalance
-
type
-
getType
Campaign type.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RewardTypeCampaign given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RewardTypeCampaign
- Throws:
IOException- if the JSON string is invalid with respect to RewardTypeCampaign
-
toJson
Convert an instance of RewardTypeCampaign to an JSON string- Returns:
- JSON string
-