Package io.voucherify.client.model
Class PromotionsTiersDisableResponseBodyCampaign
java.lang.Object
io.voucherify.client.model.PromotionsTiersDisableResponseBodyCampaign
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsTiersDisableResponseBodyCampaign
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(PromotionsTiersDisableResponseBodyCampaign.ValidityDayOfWeekEnum validityDayOfWeekItem) categoryId(String categoryId) booleanexpirationDate(OffsetDateTime expirationDate) Create an instance of PromotionsTiersDisableResponseBodyCampaign 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<PromotionsTiersDisableResponseBodyCampaign.ValidityDayOfWeekEnum> validityDayOfWeek) voidsetValidityHours(ValidityHours validityHours) voidsetValidityTimeframe(ValidityTimeframe validityTimeframe) startDate(OffsetDateTime startDate) toJson()Convert an instance of PromotionsTiersDisableResponseBodyCampaign to an JSON stringtoString()validityDayOfWeek(List<PromotionsTiersDisableResponseBodyCampaign.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
-
PromotionsTiersDisableResponseBodyCampaign
public PromotionsTiersDisableResponseBodyCampaign()
-
-
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
public PromotionsTiersDisableResponseBodyCampaign validityTimeframe(ValidityTimeframe validityTimeframe) -
getValidityTimeframe
Get validityTimeframe- Returns:
- validityTimeframe
-
setValidityTimeframe
-
validityDayOfWeek
public PromotionsTiersDisableResponseBodyCampaign validityDayOfWeek(List<PromotionsTiersDisableResponseBodyCampaign.ValidityDayOfWeekEnum> validityDayOfWeek) -
addValidityDayOfWeekItem
public PromotionsTiersDisableResponseBodyCampaign addValidityDayOfWeekItem(PromotionsTiersDisableResponseBodyCampaign.ValidityDayOfWeekEnum validityDayOfWeekItem) -
getValidityDayOfWeek
@Nullable public List<PromotionsTiersDisableResponseBodyCampaign.ValidityDayOfWeekEnum> 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<PromotionsTiersDisableResponseBodyCampaign.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
public static PromotionsTiersDisableResponseBodyCampaign fromJson(String jsonString) throws IOException Create an instance of PromotionsTiersDisableResponseBodyCampaign given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsTiersDisableResponseBodyCampaign
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsTiersDisableResponseBodyCampaign
-
toJson
Convert an instance of PromotionsTiersDisableResponseBodyCampaign to an JSON string- Returns:
- JSON string
-