Package io.voucherify.client.model
Class CampaignLoyaltyVoucher
java.lang.Object
io.voucherify.client.model.CampaignLoyaltyVoucher
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignLoyaltyVoucher
extends Object
Schema model for a discount voucher.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumType of voucher. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodeConfig(CodeConfig codeConfig) booleanstatic CampaignLoyaltyVoucherCreate an instance of CampaignLoyaltyVoucher given an JSON stringGet codeConfigGet loyaltyCardGet redemptiongetType()Type of voucher.inthashCode()loyaltyCard(CampaignLoyaltyCard loyaltyCard) redemption(CampaignLoyaltyVoucherRedemption redemption) voidsetCodeConfig(CodeConfig codeConfig) voidsetLoyaltyCard(CampaignLoyaltyCard loyaltyCard) voidsetRedemption(CampaignLoyaltyVoucherRedemption redemption) voidtoJson()Convert an instance of CampaignLoyaltyVoucher to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_LOYALTY_CARD
- See Also:
-
SERIALIZED_NAME_REDEMPTION
- See Also:
-
SERIALIZED_NAME_CODE_CONFIG
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CampaignLoyaltyVoucher
public CampaignLoyaltyVoucher()
-
-
Method Details
-
type
-
getType
Type of voucher.- Returns:
- type
-
setType
-
loyaltyCard
-
getLoyaltyCard
Get loyaltyCard- Returns:
- loyaltyCard
-
setLoyaltyCard
-
redemption
-
getRedemption
Get redemption- Returns:
- redemption
-
setRedemption
-
codeConfig
-
getCodeConfig
Get codeConfig- Returns:
- codeConfig
-
setCodeConfig
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CampaignLoyaltyVoucher given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CampaignLoyaltyVoucher
- Throws:
IOException- if the JSON string is invalid with respect to CampaignLoyaltyVoucher
-
toJson
Convert an instance of CampaignLoyaltyVoucher to an JSON string- Returns:
- JSON string
-