Package io.voucherify.client.model
Class PromotionsStacksCreateResponseBody
java.lang.Object
io.voucherify.client.model.PromotionsStacksCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsStacksCreateResponseBody
extends Object
Response body schema for **POST** `v1/promotions/{campaignId}/stacks`.
-
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 TypeMethodDescriptionaddCategoriesItem(PromotionStackBase categoriesItem) campaignId(String campaignId) categories(List<PromotionStackBase> categories) categoryId(String categoryId) createdAt(OffsetDateTime createdAt) booleanCreate an instance of PromotionsStacksCreateResponseBody 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 tiersinthashCode()voidsetCampaignId(String campaignId) voidsetCategories(List<PromotionStackBase> categories) voidsetCategoryId(String categoryId) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidvoidtoJson()Convert an instance of PromotionsStacksCreateResponseBody to an JSON stringtoString()
-
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_CAMPAIGN_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
SERIALIZED_NAME_CATEGORIES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PromotionsStacksCreateResponseBody
public PromotionsStacksCreateResponseBody()
-
-
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
-
campaignId
-
getCampaignId
Promotion stack's parent campaign's unique ID.- Returns:
- campaignId
-
setCampaignId
-
_object
public PromotionsStacksCreateResponseBody _object(PromotionsStacksCreateResponseBody.ObjectEnum _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 PromotionsStacksCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsStacksCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsStacksCreateResponseBody
-
toJson
Convert an instance of PromotionsStacksCreateResponseBody to an JSON string- Returns:
- JSON string
-