Package io.voucherify.client.model
Class LoyaltiesUpdateCampaignResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesUpdateCampaignResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesUpdateCampaignResponseBody
extends Object
Response body schema for **PUT** `/loyalties/{campaignId}`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of campaign.static enumIndicates the status of the campaign creation.static classstatic enumDefines whether the campaign can be updated with new vouchers after campaign creation.static enumGets or Sets validityDayOfWeekstatic enumIndicates the status of the campaign's voucher generation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_protected(Boolean _protected) accessSettingsAssignments(AccessSettingsCampaignAssignmentsList accessSettingsAssignments) activityDurationAfterPublishing(String activityDurationAfterPublishing) addCategoriesItem(Category categoriesItem) addValidityDayOfWeekItem(LoyaltiesUpdateCampaignResponseBody.ValidityDayOfWeekEnum validityDayOfWeekItem) categories(List<Category> categories) categoryId(String categoryId) createdAt(OffsetDateTime createdAt) creationStatus(LoyaltiesUpdateCampaignResponseBody.CreationStatusEnum creationStatus) description(String description) booleanexpirationDate(OffsetDateTime expirationDate) Create an instance of LoyaltiesUpdateCampaignResponseBody given an JSON stringGet accessSettingsAssignmentsA flag to toggle the campaign on or off.Defines the amount of time the campaign will be active in ISO 8601 format after publishing.Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.Type of campaign.Contains details about the category.Unique category name.Unique category ID that this campaign belongs to.Timestamp representing the date and time when the campaign was created.Indicates the status of the campaign creation.An optional field to keep any extra textual information about the campaign such as a campaign description and details.Expiration timestamp defines when the campaign expires in ISO 8601 format.getId()Unique campaign ID, assigned by Voucherify.If this value is set to `true`, customers will be able to join the campaign only once.Get loyaltyTiersExpirationThe metadata object stores all custom attributes assigned to the campaign.getName()Campaign name.The type of the object represented by JSON.Indicates whether the resource can be deleted.Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature.Activation timestamp defines when the campaign starts to be active in ISO 8601 format.getType()Defines whether the campaign can be updated with new vouchers after campaign creation.Timestamp representing the date and time when the campaign was last updated in ISO 8601 format.Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema.Get validationRulesAssignmentsInteger array corresponding to the particular days of the week in which the voucher is valid.Get validityHoursGet validityTimeframeGet voucherTotal number of unique vouchers in campaign.Indicates the status of the campaign's voucher generation.inthashCode()loyaltyTiersExpiration(LoyaltyTiersExpirationAll loyaltyTiersExpiration) voidsetAccessSettingsAssignments(AccessSettingsCampaignAssignmentsList accessSettingsAssignments) voidvoidsetActivityDurationAfterPublishing(String activityDurationAfterPublishing) voidsetAutoJoin(Boolean autoJoin) voidvoidsetCategories(List<Category> categories) voidsetCategory(String category) voidsetCategoryId(String categoryId) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetDescription(String description) voidsetExpirationDate(OffsetDateTime expirationDate) voidvoidsetJoinOnce(Boolean joinOnce) voidsetLoyaltyTiersExpiration(LoyaltyTiersExpirationAll loyaltyTiersExpiration) voidsetMetadata(Object metadata) voidvoidvoidsetProtected(Boolean _protected) voidsetReadonly(Boolean readonly) voidsetStartDate(OffsetDateTime startDate) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) voidsetUseVoucherMetadataSchema(Boolean useVoucherMetadataSchema) voidsetValidationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments) voidsetValidityDayOfWeek(List<LoyaltiesUpdateCampaignResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) voidsetValidityHours(ValidityHours validityHours) voidsetValidityTimeframe(ValidityTimeframe validityTimeframe) voidsetVoucher(LoyaltyCampaignVoucher voucher) voidsetVouchersCount(Integer vouchersCount) voidsetVouchersGenerationStatus(LoyaltiesUpdateCampaignResponseBody.VouchersGenerationStatusEnum vouchersGenerationStatus) startDate(OffsetDateTime startDate) toJson()Convert an instance of LoyaltiesUpdateCampaignResponseBody to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) useVoucherMetadataSchema(Boolean useVoucherMetadataSchema) validationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments) validityDayOfWeek(List<LoyaltiesUpdateCampaignResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) validityHours(ValidityHours validityHours) validityTimeframe(ValidityTimeframe validityTimeframe) voucher(LoyaltyCampaignVoucher voucher) vouchersCount(Integer vouchersCount) vouchersGenerationStatus(LoyaltiesUpdateCampaignResponseBody.VouchersGenerationStatusEnum vouchersGenerationStatus)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_TYPE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_VOUCHER
- See Also:
-
SERIALIZED_NAME_AUTO_JOIN
- See Also:
-
SERIALIZED_NAME_JOIN_ONCE
- See Also:
-
SERIALIZED_NAME_USE_VOUCHER_METADATA_SCHEMA
- See Also:
-
SERIALIZED_NAME_VALIDITY_TIMEFRAME
- See Also:
-
SERIALIZED_NAME_VALIDITY_DAY_OF_WEEK
- See Also:
-
SERIALIZED_NAME_VALIDITY_HOURS
- See Also:
-
SERIALIZED_NAME_ACTIVITY_DURATION_AFTER_PUBLISHING
- See Also:
-
SERIALIZED_NAME_VOUCHERS_COUNT
- See Also:
-
SERIALIZED_NAME_START_DATE
- See Also:
-
SERIALIZED_NAME_EXPIRATION_DATE
- See Also:
-
SERIALIZED_NAME_ACTIVE
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_CATEGORY
- See Also:
-
SERIALIZED_NAME_CREATION_STATUS
- See Also:
-
SERIALIZED_NAME_VOUCHERS_GENERATION_STATUS
- See Also:
-
SERIALIZED_NAME_READONLY
- See Also:
-
SERIALIZED_NAME_PROTECTED
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_LOYALTY_TIERS_EXPIRATION
- See Also:
-
SERIALIZED_NAME_VALIDATION_RULES_ASSIGNMENTS
- See Also:
-
SERIALIZED_NAME_ACCESS_SETTINGS_ASSIGNMENTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesUpdateCampaignResponseBody
public LoyaltiesUpdateCampaignResponseBody()
-
-
Method Details
-
id
-
getId
Unique campaign ID, assigned by Voucherify.- Returns:
- id
-
setId
-
name
-
getName
Campaign name.- Returns:
- name
-
setName
-
description
-
getDescription
An optional field to keep any extra textual information about the campaign such as a campaign description and details.- Returns:
- description
-
setDescription
-
campaignType
public LoyaltiesUpdateCampaignResponseBody campaignType(LoyaltiesUpdateCampaignResponseBody.CampaignTypeEnum campaignType) -
getCampaignType
Type of campaign.- Returns:
- campaignType
-
setCampaignType
-
type
-
getType
Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published- Returns:
- type
-
setType
-
voucher
-
getVoucher
Get voucher- Returns:
- voucher
-
setVoucher
-
autoJoin
-
getAutoJoin
Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled.- Returns:
- autoJoin
-
setAutoJoin
-
joinOnce
-
getJoinOnce
If this value is set to `true`, customers will be able to join the campaign only once.- Returns:
- joinOnce
-
setJoinOnce
-
useVoucherMetadataSchema
public LoyaltiesUpdateCampaignResponseBody useVoucherMetadataSchema(Boolean useVoucherMetadataSchema) -
getUseVoucherMetadataSchema
Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema.- Returns:
- useVoucherMetadataSchema
-
setUseVoucherMetadataSchema
-
validityTimeframe
-
getValidityTimeframe
Get validityTimeframe- Returns:
- validityTimeframe
-
setValidityTimeframe
-
validityDayOfWeek
public LoyaltiesUpdateCampaignResponseBody validityDayOfWeek(List<LoyaltiesUpdateCampaignResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) -
addValidityDayOfWeekItem
public LoyaltiesUpdateCampaignResponseBody addValidityDayOfWeekItem(LoyaltiesUpdateCampaignResponseBody.ValidityDayOfWeekEnum validityDayOfWeekItem) -
getValidityDayOfWeek
@Nullable public List<LoyaltiesUpdateCampaignResponseBody.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<LoyaltiesUpdateCampaignResponseBody.ValidityDayOfWeekEnum> validityDayOfWeek) -
validityHours
-
getValidityHours
Get validityHours- Returns:
- validityHours
-
setValidityHours
-
activityDurationAfterPublishing
public LoyaltiesUpdateCampaignResponseBody activityDurationAfterPublishing(String activityDurationAfterPublishing) -
getActivityDurationAfterPublishing
Defines the amount of time the campaign will be active in ISO 8601 format after publishing. For example, a campaign with a `duration` of `P24D` will be valid for a duration of 24 days.- Returns:
- activityDurationAfterPublishing
-
setActivityDurationAfterPublishing
-
vouchersCount
-
getVouchersCount
Total number of unique vouchers in campaign.- Returns:
- vouchersCount
-
setVouchersCount
-
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
-
active
-
getActive
A flag to toggle the campaign on or off. You can disable a campaign even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* campaign - `false` indicates an *inactive* campaign- Returns:
- active
-
setActive
-
metadata
-
getMetadata
The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format.- Returns:
- metadata
-
setMetadata
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the campaign was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the campaign was last updated in ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
category
-
getCategory
Unique category name.- Returns:
- category
-
setCategory
-
creationStatus
public LoyaltiesUpdateCampaignResponseBody creationStatus(LoyaltiesUpdateCampaignResponseBody.CreationStatusEnum creationStatus) -
getCreationStatus
Indicates the status of the campaign creation.- Returns:
- creationStatus
-
setCreationStatus
public void setCreationStatus(LoyaltiesUpdateCampaignResponseBody.CreationStatusEnum creationStatus) -
vouchersGenerationStatus
public LoyaltiesUpdateCampaignResponseBody vouchersGenerationStatus(LoyaltiesUpdateCampaignResponseBody.VouchersGenerationStatusEnum vouchersGenerationStatus) -
getVouchersGenerationStatus
@Nullable public LoyaltiesUpdateCampaignResponseBody.VouchersGenerationStatusEnum getVouchersGenerationStatus()Indicates the status of the campaign's voucher generation.- Returns:
- vouchersGenerationStatus
-
setVouchersGenerationStatus
public void setVouchersGenerationStatus(LoyaltiesUpdateCampaignResponseBody.VouchersGenerationStatusEnum vouchersGenerationStatus) -
readonly
-
getReadonly
Indicates whether the campaign can be only read by a restricted user in the Areas and Stores enterprise feature. It is returned only to restricted users; this field is not returned for users with other roles.- Returns:
- readonly
-
setReadonly
-
_protected
-
getProtected
Indicates whether the resource can be deleted.- Returns:
- _protected
-
setProtected
-
categoryId
-
getCategoryId
Unique category ID that this campaign belongs to.- Returns:
- categoryId
-
setCategoryId
-
categories
-
addCategoriesItem
-
getCategories
Contains details about the category.- Returns:
- categories
-
setCategories
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about the campaign.- Returns:
- _object
-
setObject
-
loyaltyTiersExpiration
public LoyaltiesUpdateCampaignResponseBody loyaltyTiersExpiration(LoyaltyTiersExpirationAll loyaltyTiersExpiration) -
getLoyaltyTiersExpiration
Get loyaltyTiersExpiration- Returns:
- loyaltyTiersExpiration
-
setLoyaltyTiersExpiration
-
validationRulesAssignments
public LoyaltiesUpdateCampaignResponseBody validationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments) -
getValidationRulesAssignments
Get validationRulesAssignments- Returns:
- validationRulesAssignments
-
setValidationRulesAssignments
public void setValidationRulesAssignments(ValidationRulesAssignmentsList validationRulesAssignments) -
accessSettingsAssignments
public LoyaltiesUpdateCampaignResponseBody accessSettingsAssignments(AccessSettingsCampaignAssignmentsList accessSettingsAssignments) -
getAccessSettingsAssignments
Get accessSettingsAssignments- Returns:
- accessSettingsAssignments
-
setAccessSettingsAssignments
public void setAccessSettingsAssignments(AccessSettingsCampaignAssignmentsList accessSettingsAssignments) -
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltiesUpdateCampaignResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesUpdateCampaignResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesUpdateCampaignResponseBody
-
toJson
Convert an instance of LoyaltiesUpdateCampaignResponseBody to an JSON string- Returns:
- JSON string
-