Package io.voucherify.client.model
Class PromotionsStacksCreateRequestBody
java.lang.Object
io.voucherify.client.model.PromotionsStacksCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class PromotionsStacksCreateRequestBody
extends Object
Request body schema for **POST** `v1/promotions/{campaignId}/stacks`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncategoryId(String categoryId) booleanCreate an instance of PromotionsStacksCreateRequestBody given an JSON stringPromotion stack category ID.getName()Promotion stack name.getTiers()Get tiersinthashCode()voidsetCategoryId(String categoryId) voidvoidtoJson()Convert an instance of PromotionsStacksCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TIERS
- See Also:
-
SERIALIZED_NAME_CATEGORY_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PromotionsStacksCreateRequestBody
public PromotionsStacksCreateRequestBody()
-
-
Method Details
-
name
-
getName
Promotion stack name.- Returns:
- name
-
setName
-
tiers
-
getTiers
Get tiers- Returns:
- tiers
-
setTiers
-
categoryId
-
getCategoryId
Promotion stack category ID.- Returns:
- categoryId
-
setCategoryId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of PromotionsStacksCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PromotionsStacksCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to PromotionsStacksCreateRequestBody
-
toJson
Convert an instance of PromotionsStacksCreateRequestBody to an JSON string- Returns:
- JSON string
-