Package io.voucherify.client.model
Class PromotionTierCampaign
java.lang.Object
io.voucherify.client.model.PromotionTierCampaign
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionTierCampaign
extends Object
Contains details about promotion tier's parent campaign.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets validityDayOfWeek -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidityDayOfWeekItem(PromotionTierCampaign.ValidityDayOfWeekEnum validityDayOfWeekItem) categoryId(String categoryId) booleanexpirationDate(OffsetDateTime expirationDate) static PromotionTierCampaignCreate an instance of PromotionTierCampaign given an JSON stringA flag indicating whether the campaign is active or not active.Unique category ID that this campaign belongs to.Expiration timestamp defines when the campaign expires in ISO 8601 format.getId()Unique campaign ID.The type of the object represented by the campaign object.Activation timestamp defines when the campaign starts to be active in ISO 8601 format.Integer array corresponding to the particular days of the week in which the voucher is valid.Get validityHoursGet validityTimeframeinthashCode()voidvoidsetCategoryId(String categoryId) voidsetExpirationDate(OffsetDateTime expirationDate) voidvoidvoidsetStartDate(OffsetDateTime startDate) voidsetValidityDayOfWeek(List<PromotionTierCampaign.ValidityDayOfWeekEnum> validityDayOfWeek) voidsetValidityHours(ValidityHours validityHours) voidsetValidityTimeframe(ValidityTimeframe validityTimeframe) startDate(OffsetDateTime startDate) toJson()Convert an instance of PromotionTierCampaign to an JSON stringtoString()validityDayOfWeek(List<PromotionTierCampaign.ValidityDayOfWeekEnum> validityDayOfWeek) validityHours(ValidityHours validityHours) validityTimeframe(ValidityTimeframe validityTimeframe)
-
Field Details
-
SERIALIZED_NAME_ID
- 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:
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PromotionTierCampaign
public PromotionTierCampaign()
-
-
Method Details
-
id
-
getId
Unique campaign ID.- Returns:
- id
-
setId
-
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 PromotionTierCampaign validityDayOfWeek(List<PromotionTierCampaign.ValidityDayOfWeekEnum> validityDayOfWeek) -
addValidityDayOfWeekItem
public PromotionTierCampaign addValidityDayOfWeekItem(PromotionTierCampaign.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<PromotionTierCampaign.ValidityDayOfWeekEnum> validityDayOfWeek) -
validityHours
-
getValidityHours
Get validityHours- Returns:
- validityHours
-
setValidityHours
-
active
-
getActive
A flag indicating whether the campaign is active or not active. A campaign can be disabled even though it's within the active period defined by the `start_date` and `expiration_date` using the <!-- [Disable Campaign](OpenAPI.json/paths/~1campaigns~1{campaignId}~1disable) -->[Disable Campaign](ref:disable-campaign) endpoint. - `true` indicates an *active* campaign - `false` indicates an *inactive* campaign- Returns:
- active
-
setActive
-
categoryId
-
getCategoryId
Unique category ID that this campaign belongs to.- Returns:
- categoryId
-
setCategoryId
-
_object
-
getObject
The type of the object represented by the campaign object. This object stores information about the campaign.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of PromotionTierCampaign given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionTierCampaign
- Throws:
IOException- if the JSON string is invalid with respect to PromotionTierCampaign
-
toJson
Convert an instance of PromotionTierCampaign to an JSON string- Returns:
- JSON string
-