Package io.voucherify.client.model
Class CampaignsCreateRequestBodyVoucher
java.lang.Object
io.voucherify.client.model.CampaignsCreateRequestBodyVoucher
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CampaignsCreateRequestBodyVoucher
extends Object
CampaignsCreateRequestBodyVoucher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncodeConfig(CodeConfig codeConfig) booleanCreate an instance of CampaignsCreateRequestBodyVoucher given an JSON stringGet codeConfigGet discountgetGift()Get giftFlag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`.Get loyaltyCardGet redemptiongetType()Get typeinthashCode()isReferralCode(Boolean isReferralCode) loyaltyCard(CampaignLoyaltyCard loyaltyCard) voidsetCodeConfig(CodeConfig codeConfig) voidsetDiscount(Discount discount) voidvoidsetIsReferralCode(Boolean isReferralCode) voidsetLoyaltyCard(CampaignLoyaltyCard loyaltyCard) voidvoidtoJson()Convert an instance of CampaignsCreateRequestBodyVoucher to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_DISCOUNT
- See Also:
-
SERIALIZED_NAME_CODE_CONFIG
- See Also:
-
SERIALIZED_NAME_REDEMPTION
- See Also:
-
SERIALIZED_NAME_IS_REFERRAL_CODE
- See Also:
-
SERIALIZED_NAME_GIFT
- See Also:
-
SERIALIZED_NAME_LOYALTY_CARD
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CampaignsCreateRequestBodyVoucher
public CampaignsCreateRequestBodyVoucher()
-
-
Method Details
-
type
-
getType
Get type- Returns:
- type
-
setType
-
discount
-
getDiscount
Get discount- Returns:
- discount
-
setDiscount
-
codeConfig
-
getCodeConfig
Get codeConfig- Returns:
- codeConfig
-
setCodeConfig
-
redemption
public CampaignsCreateRequestBodyVoucher redemption(CampaignsCreateRequestBodyVoucherRedemption redemption) -
getRedemption
Get redemption- Returns:
- redemption
-
setRedemption
-
isReferralCode
-
getIsReferralCode
Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`.- Returns:
- isReferralCode
-
setIsReferralCode
-
gift
-
getGift
Get gift- Returns:
- gift
-
setGift
-
loyaltyCard
-
getLoyaltyCard
Get loyaltyCard- Returns:
- loyaltyCard
-
setLoyaltyCard
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CampaignsCreateRequestBodyVoucher given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CampaignsCreateRequestBodyVoucher
- Throws:
IOException- if the JSON string is invalid with respect to CampaignsCreateRequestBodyVoucher
-
toJson
Convert an instance of CampaignsCreateRequestBodyVoucher to an JSON string- Returns:
- JSON string
-