Package io.voucherify.client.model
Class PromotionsStacksUpdateResponseBody
java.lang.Object
io.voucherify.client.model.PromotionsStacksUpdateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsStacksUpdateResponseBody
extends Object
Response body schema for **PUT** `v1/promotions/{campaignId}/stacks/{stackId}`.
-
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 PromotionsStacksUpdateResponseBody 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<PromotionStackBase> categories) voidsetCategoryId(String categoryId) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of PromotionsStacksUpdateResponseBody 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
-
PromotionsStacksUpdateResponseBody
public PromotionsStacksUpdateResponseBody()
-
-
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
public PromotionsStacksUpdateResponseBody _object(PromotionsStacksUpdateResponseBody.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 PromotionsStacksUpdateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsStacksUpdateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsStacksUpdateResponseBody
-
toJson
Convert an instance of PromotionsStacksUpdateResponseBody to an JSON string- Returns:
- JSON string
-