Package io.voucherify.client.model
Class PromotionsStacksGetResponseBody
java.lang.Object
io.voucherify.client.model.PromotionsStacksGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsStacksGetResponseBody
extends Object
Response body schema for **GET** `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(Category categoriesItem) campaignId(String campaignId) categories(List<Category> categories) categoryId(String categoryId) createdAt(OffsetDateTime createdAt) booleanCreate an instance of PromotionsStacksGetResponseBody 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) voidvoidvoidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of PromotionsStacksGetResponseBody 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
-
PromotionsStacksGetResponseBody
public PromotionsStacksGetResponseBody()
-
-
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 PromotionsStacksGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsStacksGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsStacksGetResponseBody
-
toJson
Convert an instance of PromotionsStacksGetResponseBody to an JSON string- Returns:
- JSON string
-