Package io.voucherify.client.model
Class ListPublicationsItemVoucher
java.lang.Object
io.voucherify.client.model.ListPublicationsItemVoucher
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ListPublicationsItemVoucher
extends Object
ListPublicationsItemVoucher
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ListPublicationsItemVoucherCreate an instance of ListPublicationsItemVoucher given an JSON stringCampaign namegetCode()Voucher code.Get discountgetGift()Get giftFlag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`.Defines the loyalty card details.The type of the object represented by JSON.inthashCode()isReferralCode(Boolean isReferralCode) loyaltyCard(Object loyaltyCard) voidsetCampaign(String campaign) voidvoidsetDiscount(Discount discount) voidvoidsetIsReferralCode(Boolean isReferralCode) voidsetLoyaltyCard(Object loyaltyCard) voidtoJson()Convert an instance of ListPublicationsItemVoucher to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CODE
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CAMPAIGN
- See Also:
-
SERIALIZED_NAME_GIFT
- See Also:
-
SERIALIZED_NAME_LOYALTY_CARD
- See Also:
-
SERIALIZED_NAME_DISCOUNT
- See Also:
-
SERIALIZED_NAME_IS_REFERRAL_CODE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ListPublicationsItemVoucher
public ListPublicationsItemVoucher()
-
-
Method Details
-
code
-
getCode
Voucher code.- Returns:
- code
-
setCode
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
campaign
-
getCampaign
Campaign name- Returns:
- campaign
-
setCampaign
-
gift
-
getGift
Get gift- Returns:
- gift
-
setGift
-
loyaltyCard
-
getLoyaltyCard
Defines the loyalty card details.- Returns:
- loyaltyCard
-
setLoyaltyCard
-
discount
-
getDiscount
Get discount- Returns:
- discount
-
setDiscount
-
isReferralCode
-
getIsReferralCode
Flag indicating whether this voucher is a referral code; `true` for campaign type `REFERRAL_PROGRAM`.- Returns:
- isReferralCode
-
setIsReferralCode
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ListPublicationsItemVoucher given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ListPublicationsItemVoucher
- Throws:
IOException- if the JSON string is invalid with respect to ListPublicationsItemVoucher
-
toJson
Convert an instance of ListPublicationsItemVoucher to an JSON string- Returns:
- JSON string
-