Package io.voucherify.client.model
Class PromotionStack
java.lang.Object
io.voucherify.client.model.PromotionStack
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionStack
extends Object
PromotionStack
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by JSON. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(PromotionStack.ObjectEnum _object) addCategoriesItem(Category categoriesItem) campaignId(String campaignId) categories(List<Category> categories) categoryId(String categoryId) createdAt(OffsetDateTime createdAt) booleanstatic PromotionStackCreate an instance of PromotionStack given an JSON stringPromotion stack's parent campaign's unique ID.Details about the category assigned to the promotion stack.Promotion stack category ID.Timestamp representing the date and time when the promotion stack was created.getId()Unique promotion stack ID.getName()Promotion stack name.The type of the object represented by JSON.getTiers()Get tiersTimestamp representing the date and time when the promotion stack was updated.inthashCode()voidsetCampaignId(String campaignId) voidsetCategories(List<Category> categories) voidsetCategoryId(String categoryId) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetObject(PromotionStack.ObjectEnum _object) voidsetTiers(PromotionStackTiers tiers) voidsetUpdatedAt(OffsetDateTime updatedAt) tiers(PromotionStackTiers tiers) toJson()Convert an instance of PromotionStack to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TIERS
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PromotionStack
public PromotionStack()
-
-
Method Details
-
name
-
getName
Promotion stack name.- Returns:
- name
-
setName
-
tiers
-
getTiers
Get tiers- Returns:
- tiers
-
setTiers
-
id
-
getId
Unique promotion stack ID.- Returns:
- id
-
setId
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the promotion stack was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the promotion stack was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
campaignId
-
getCampaignId
Promotion stack's parent campaign's unique ID.- Returns:
- campaignId
-
setCampaignId
-
_object
-
getObject
The type of the object represented by JSON.- Returns:
- _object
-
setObject
-
categoryId
-
getCategoryId
Promotion stack category ID.- Returns:
- categoryId
-
setCategoryId
-
categories
-
addCategoriesItem
-
getCategories
Details about the category assigned to the promotion stack.- Returns:
- categories
-
setCategories
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of PromotionStack given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionStack
- Throws:
IOException- if the JSON string is invalid with respect to PromotionStack
-
toJson
Convert an instance of PromotionStack to an JSON string- Returns:
- JSON string
-