Package io.voucherify.client.model
Class LoyaltyCampaignVoucher
java.lang.Object
io.voucherify.client.model.LoyaltyCampaignVoucher
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltyCampaignVoucher
extends Object
Schema model for a campaign voucher.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumType of voucher.static enumGets or Sets validityDayOfWeek -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidityDayOfWeekItem(LoyaltyCampaignVoucher.ValidityDayOfWeekEnum validityDayOfWeekItem) codeConfig(CodeConfig codeConfig) booleanexpirationDate(OffsetDateTime expirationDate) static LoyaltyCampaignVoucherCreate an instance of LoyaltyCampaignVoucher given an JSON stringGet codeConfigExpiration timestamp defines when the campaign expires in ISO 8601 format.Always `false` for a loyalty card voucherGet loyaltyCardGet redemptionActivation timestamp defines when the campaign starts to be active in ISO 8601 format.getType()Type of voucher.Integer array corresponding to the particular days of the week in which the voucher is valid.Get validityHoursGet validityTimeframeinthashCode()isReferralCode(Boolean isReferralCode) loyaltyCard(CampaignLoyaltyCard loyaltyCard) redemption(LoyaltyCampaignVoucherRedemption redemption) voidsetCodeConfig(CodeConfig codeConfig) voidsetExpirationDate(OffsetDateTime expirationDate) voidsetIsReferralCode(Boolean isReferralCode) voidsetLoyaltyCard(CampaignLoyaltyCard loyaltyCard) voidsetRedemption(LoyaltyCampaignVoucherRedemption redemption) voidsetStartDate(OffsetDateTime startDate) voidvoidsetValidityDayOfWeek(List<LoyaltyCampaignVoucher.ValidityDayOfWeekEnum> validityDayOfWeek) voidsetValidityHours(ValidityHours validityHours) voidsetValidityTimeframe(ValidityTimeframe validityTimeframe) startDate(OffsetDateTime startDate) toJson()Convert an instance of LoyaltyCampaignVoucher to an JSON stringtoString()validityDayOfWeek(List<LoyaltyCampaignVoucher.ValidityDayOfWeekEnum> validityDayOfWeek) validityHours(ValidityHours validityHours) validityTimeframe(ValidityTimeframe validityTimeframe)
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_LOYALTY_CARD
- See Also:
-
SERIALIZED_NAME_REDEMPTION
- See Also:
-
SERIALIZED_NAME_CODE_CONFIG
- See Also:
-
SERIALIZED_NAME_IS_REFERRAL_CODE
- See Also:
-
SERIALIZED_NAME_START_DATE
- See Also:
-
SERIALIZED_NAME_EXPIRATION_DATE
- See Also:
-
SERIALIZED_NAME_VALIDITY_TIMEFRAME
- See Also:
-
SERIALIZED_NAME_VALIDITY_DAY_OF_WEEK
- See Also:
-
SERIALIZED_NAME_VALIDITY_HOURS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltyCampaignVoucher
public LoyaltyCampaignVoucher()
-
-
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
-
isReferralCode
-
getIsReferralCode
Always `false` for a loyalty card voucher- Returns:
- isReferralCode
-
setIsReferralCode
-
startDate
-
getStartDate
Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date.- Returns:
- startDate
-
setStartDate
-
expirationDate
-
getExpirationDate
Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is *inactive after* this date.- Returns:
- expirationDate
-
setExpirationDate
-
validityTimeframe
-
getValidityTimeframe
Get validityTimeframe- Returns:
- validityTimeframe
-
setValidityTimeframe
-
validityDayOfWeek
public LoyaltyCampaignVoucher validityDayOfWeek(List<LoyaltyCampaignVoucher.ValidityDayOfWeekEnum> validityDayOfWeek) -
addValidityDayOfWeekItem
public LoyaltyCampaignVoucher addValidityDayOfWeekItem(LoyaltyCampaignVoucher.ValidityDayOfWeekEnum validityDayOfWeekItem) -
getValidityDayOfWeek
Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday- Returns:
- validityDayOfWeek
-
setValidityDayOfWeek
public void setValidityDayOfWeek(List<LoyaltyCampaignVoucher.ValidityDayOfWeekEnum> validityDayOfWeek) -
validityHours
-
getValidityHours
Get validityHours- Returns:
- validityHours
-
setValidityHours
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltyCampaignVoucher given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyCampaignVoucher
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltyCampaignVoucher
-
toJson
Convert an instance of LoyaltyCampaignVoucher to an JSON string- Returns:
- JSON string
-