Package io.voucherify.client.model
Class TemplatesCampaignsTierSetupCreateRequestBody
java.lang.Object
io.voucherify.client.model.TemplatesCampaignsTierSetupCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TemplatesCampaignsTierSetupCreateRequestBody
extends Object
Request body schema for **POST** `/v1/templates/campaigns/{campaignTemplateId}/tier-setup`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets validityDayOfWeek -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidityDayOfWeekItem(TemplatesCampaignsTierSetupCreateRequestBody.ValidityDayOfWeekEnum validityDayOfWeekItem) campaignId(String campaignId) categoryId(String categoryId) booleanexpirationDate(OffsetDateTime expirationDate) Create an instance of TemplatesCampaignsTierSetupCreateRequestBody given an JSON stringA flag to toggle the promotion tier on or off.Text to be displayed to your customers on your website.Unique campaign identifier, assigned by Voucherify.Assign a new or update the promotion tier's category using name.Assign a new or update the promotion tier's category using idActivation timestamp defines when the promotion tier expires in ISO 8601 format.The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order.The metadata object stores all custom attributes assigned to the promotion tier.getName()Name of the promotion tier.Activation timestamp defines when the promotion tier 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()voidvoidvoidsetCampaignId(String campaignId) voidsetCategory(String category) voidsetCategoryId(String categoryId) voidsetExpirationDate(OffsetDateTime expirationDate) voidsetHierarchy(Integer hierarchy) voidsetMetadata(Object metadata) voidvoidsetStartDate(OffsetDateTime startDate) voidsetValidityDayOfWeek(List<TemplatesCampaignsTierSetupCreateRequestBody.ValidityDayOfWeekEnum> validityDayOfWeek) voidsetValidityHours(ValidityHours validityHours) voidsetValidityTimeframe(ValidityTimeframe validityTimeframe) startDate(OffsetDateTime startDate) toJson()Convert an instance of TemplatesCampaignsTierSetupCreateRequestBody to an JSON stringtoString()validityDayOfWeek(List<TemplatesCampaignsTierSetupCreateRequestBody.ValidityDayOfWeekEnum> validityDayOfWeek) validityHours(ValidityHours validityHours) validityTimeframe(ValidityTimeframe validityTimeframe)
-
Field Details
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_BANNER
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_HIERARCHY
- See Also:
-
SERIALIZED_NAME_ACTIVE
- 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_CATEGORY
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TemplatesCampaignsTierSetupCreateRequestBody
public TemplatesCampaignsTierSetupCreateRequestBody()
-
-
Method Details
-
campaignId
-
getCampaignId
Unique campaign identifier, assigned by Voucherify. Defines the promotion campaign to which the promotion tier will be added.- Returns:
- campaignId
-
setCampaignId
-
name
-
getName
Name of the promotion tier.- Returns:
- name
-
setName
-
banner
-
getBanner
Text to be displayed to your customers on your website.- Returns:
- banner
-
setBanner
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the promotion tier. A set of key/value pairs that you can attach to a promotion tier object. It can be useful for storing additional information about the promotion tier in a structured format.- Returns:
- metadata
-
setMetadata
-
hierarchy
-
getHierarchy
The promotions hierarchy defines the order in which the discounts from different tiers will be applied to a customer's order. If a customer qualifies for discounts from more than one tier, discounts will be applied in the order defined in the hierarchy.- Returns:
- hierarchy
-
setHierarchy
-
active
-
getActive
A flag to toggle the promotion tier on or off. You can disable a promotion tier even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* promotion tier - `false` indicates an *inactive* promotion tier- Returns:
- active
-
setActive
-
startDate
-
getStartDate
Activation timestamp defines when the promotion tier starts to be active in ISO 8601 format. Promotion tier is *inactive before* this date.- Returns:
- startDate
-
setStartDate
-
expirationDate
-
getExpirationDate
Activation timestamp defines when the promotion tier expires in ISO 8601 format. Promotion tier is *inactive after* this date.- Returns:
- expirationDate
-
setExpirationDate
-
validityTimeframe
public TemplatesCampaignsTierSetupCreateRequestBody validityTimeframe(ValidityTimeframe validityTimeframe) -
getValidityTimeframe
Get validityTimeframe- Returns:
- validityTimeframe
-
setValidityTimeframe
-
validityDayOfWeek
public TemplatesCampaignsTierSetupCreateRequestBody validityDayOfWeek(List<TemplatesCampaignsTierSetupCreateRequestBody.ValidityDayOfWeekEnum> validityDayOfWeek) -
addValidityDayOfWeekItem
public TemplatesCampaignsTierSetupCreateRequestBody addValidityDayOfWeekItem(TemplatesCampaignsTierSetupCreateRequestBody.ValidityDayOfWeekEnum validityDayOfWeekItem) -
getValidityDayOfWeek
@Nullable public List<TemplatesCampaignsTierSetupCreateRequestBody.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<TemplatesCampaignsTierSetupCreateRequestBody.ValidityDayOfWeekEnum> validityDayOfWeek) -
validityHours
-
getValidityHours
Get validityHours- Returns:
- validityHours
-
setValidityHours
-
category
-
getCategory
Assign a new or update the promotion tier's category using name.- Returns:
- category
-
setCategory
-
categoryId
-
getCategoryId
Assign a new or update the promotion tier's category using id- Returns:
- categoryId
-
setCategoryId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static TemplatesCampaignsTierSetupCreateRequestBody fromJson(String jsonString) throws IOException Create an instance of TemplatesCampaignsTierSetupCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TemplatesCampaignsTierSetupCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to TemplatesCampaignsTierSetupCreateRequestBody
-
toJson
Convert an instance of TemplatesCampaignsTierSetupCreateRequestBody to an JSON string- Returns:
- JSON string
-