Package io.voucherify.client.model
Class ManagementProjectsStackingRulesCreateResponseBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsStackingRulesCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsStackingRulesCreateResponseBody
extends Object
Response body schema for **POST** `/management/v1/projects/{projectId}/stacking-rules`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDefines if the discounts are applied by taking into account the initial order amount or the discounted order amount.static enumDefines the application mode for redeemables.static enumDefines the sorting rule for redeemables. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDiscountedAmountModeCategoriesItem(String discountedAmountModeCategoriesItem) addExclusiveCategoriesItem(String exclusiveCategoriesItem) addInitialAmountModeCategoriesItem(String initialAmountModeCategoriesItem) addJointCategoriesItem(String jointCategoriesItem) applicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) applicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) applicableRedeemablesLimit(Integer applicableRedeemablesLimit) applicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) createdAt(OffsetDateTime createdAt) discountCalculationMode(ManagementProjectsStackingRulesCreateResponseBody.DiscountCalculationModeEnum discountCalculationMode) discountedAmountModeCategories(List<String> discountedAmountModeCategories) booleanexclusiveCategories(List<String> exclusiveCategories) Create an instance of ManagementProjectsStackingRulesCreateResponseBody given an JSON stringDefines how many redeemables with an assigned exclusive category can be applied at the same time.Defines how many exclusive redeemables with the same category can be applied at the same time.Defines how many redeemables can be applied at the same time.Defines how many redeemables with the same category can be applied at the same time.Timestamp representing the date and time when the stacking rules were created.Defines if the discounts are applied by taking into account the initial order amount or the discounted order amount.Lists the IDs of the categories that apply a discount based on the discounted amount.Lists the IDs of the categories that are exclusive.getId()The unique identifier of the stacking rules.Lists the IDs of the categories that apply a discount based on the initial amount.Lists the IDs of the categories that are joint.Defines the application mode for redeemables.Defines how many redeemables can be sent to Voucherify for validation at the same time.Defines the sorting rule for redeemables.Timestamp representing the date and time when the stacking rules were updated.inthashCode()initialAmountModeCategories(List<String> initialAmountModeCategories) jointCategories(List<String> jointCategories) redeemablesApplicationMode(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) redeemablesLimit(Integer redeemablesLimit) redeemablesSortingRule(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesSortingRuleEnum redeemablesSortingRule) voidsetApplicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) voidsetApplicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) voidsetApplicableRedeemablesLimit(Integer applicableRedeemablesLimit) voidsetApplicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDiscountCalculationMode(ManagementProjectsStackingRulesCreateResponseBody.DiscountCalculationModeEnum discountCalculationMode) voidsetDiscountedAmountModeCategories(List<String> discountedAmountModeCategories) voidsetExclusiveCategories(List<String> exclusiveCategories) voidvoidsetInitialAmountModeCategories(List<String> initialAmountModeCategories) voidsetJointCategories(List<String> jointCategories) voidsetRedeemablesApplicationMode(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) voidsetRedeemablesLimit(Integer redeemablesLimit) voidsetRedeemablesSortingRule(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesSortingRuleEnum redeemablesSortingRule) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of ManagementProjectsStackingRulesCreateResponseBody to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_EXCLUSIVE_CATEGORIES
- See Also:
-
SERIALIZED_NAME_JOINT_CATEGORIES
- See Also:
-
SERIALIZED_NAME_REDEEMABLES_LIMIT
- See Also:
-
SERIALIZED_NAME_APPLICABLE_REDEEMABLES_LIMIT
- See Also:
-
SERIALIZED_NAME_APPLICABLE_REDEEMABLES_PER_CATEGORY_LIMIT
- See Also:
-
SERIALIZED_NAME_APPLICABLE_EXCLUSIVE_REDEEMABLES_LIMIT
- See Also:
-
SERIALIZED_NAME_APPLICABLE_EXCLUSIVE_REDEEMABLES_PER_CATEGORY_LIMIT
- See Also:
-
SERIALIZED_NAME_DISCOUNT_CALCULATION_MODE
- See Also:
-
SERIALIZED_NAME_INITIAL_AMOUNT_MODE_CATEGORIES
- See Also:
-
SERIALIZED_NAME_DISCOUNTED_AMOUNT_MODE_CATEGORIES
- See Also:
-
SERIALIZED_NAME_REDEEMABLES_APPLICATION_MODE
- See Also:
-
SERIALIZED_NAME_REDEEMABLES_SORTING_RULE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsStackingRulesCreateResponseBody
public ManagementProjectsStackingRulesCreateResponseBody()
-
-
Method Details
-
id
-
getId
The unique identifier of the stacking rules.- Returns:
- id
-
setId
-
exclusiveCategories
public ManagementProjectsStackingRulesCreateResponseBody exclusiveCategories(List<String> exclusiveCategories) -
addExclusiveCategoriesItem
public ManagementProjectsStackingRulesCreateResponseBody addExclusiveCategoriesItem(String exclusiveCategoriesItem) -
getExclusiveCategories
Lists the IDs of the categories that are exclusive.- Returns:
- exclusiveCategories
-
setExclusiveCategories
-
jointCategories
public ManagementProjectsStackingRulesCreateResponseBody jointCategories(List<String> jointCategories) -
addJointCategoriesItem
public ManagementProjectsStackingRulesCreateResponseBody addJointCategoriesItem(String jointCategoriesItem) -
getJointCategories
Lists the IDs of the categories that are joint.- Returns:
- jointCategories
-
setJointCategories
-
redeemablesLimit
-
getRedeemablesLimit
Defines how many redeemables can be sent to Voucherify for validation at the same time. minimum: 1 maximum: 30- Returns:
- redeemablesLimit
-
setRedeemablesLimit
-
applicableRedeemablesLimit
public ManagementProjectsStackingRulesCreateResponseBody applicableRedeemablesLimit(Integer applicableRedeemablesLimit) -
getApplicableRedeemablesLimit
Defines how many redeemables can be applied at the same time. The number must be less than or equal to `\"redeemables_limit\"`. minimum: 1- Returns:
- applicableRedeemablesLimit
-
setApplicableRedeemablesLimit
-
applicableRedeemablesPerCategoryLimit
public ManagementProjectsStackingRulesCreateResponseBody applicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) -
getApplicableRedeemablesPerCategoryLimit
Defines how many redeemables with the same category can be applied at the same time. The number must be less than or equal to `\"applicable_redeemables_limit\"`.- Returns:
- applicableRedeemablesPerCategoryLimit
-
setApplicableRedeemablesPerCategoryLimit
-
applicableExclusiveRedeemablesLimit
public ManagementProjectsStackingRulesCreateResponseBody applicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) -
getApplicableExclusiveRedeemablesLimit
Defines how many redeemables with an assigned exclusive category can be applied at the same time. minimum: 1 maximum: 5- Returns:
- applicableExclusiveRedeemablesLimit
-
setApplicableExclusiveRedeemablesLimit
-
applicableExclusiveRedeemablesPerCategoryLimit
public ManagementProjectsStackingRulesCreateResponseBody applicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) -
getApplicableExclusiveRedeemablesPerCategoryLimit
Defines how many exclusive redeemables with the same category can be applied at the same time. The number must be less than or equal to `\"applicable_exclusive_redeemables_limit\"`.- Returns:
- applicableExclusiveRedeemablesPerCategoryLimit
-
setApplicableExclusiveRedeemablesPerCategoryLimit
public void setApplicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) -
discountCalculationMode
public ManagementProjectsStackingRulesCreateResponseBody discountCalculationMode(ManagementProjectsStackingRulesCreateResponseBody.DiscountCalculationModeEnum discountCalculationMode) -
getDiscountCalculationMode
@Nullable public ManagementProjectsStackingRulesCreateResponseBody.DiscountCalculationModeEnum getDiscountCalculationMode()Defines if the discounts are applied by taking into account the initial order amount or the discounted order amount.- Returns:
- discountCalculationMode
-
setDiscountCalculationMode
public void setDiscountCalculationMode(ManagementProjectsStackingRulesCreateResponseBody.DiscountCalculationModeEnum discountCalculationMode) -
initialAmountModeCategories
public ManagementProjectsStackingRulesCreateResponseBody initialAmountModeCategories(List<String> initialAmountModeCategories) -
addInitialAmountModeCategoriesItem
public ManagementProjectsStackingRulesCreateResponseBody addInitialAmountModeCategoriesItem(String initialAmountModeCategoriesItem) -
getInitialAmountModeCategories
Lists the IDs of the categories that apply a discount based on the initial amount.- Returns:
- initialAmountModeCategories
-
setInitialAmountModeCategories
-
discountedAmountModeCategories
public ManagementProjectsStackingRulesCreateResponseBody discountedAmountModeCategories(List<String> discountedAmountModeCategories) -
addDiscountedAmountModeCategoriesItem
public ManagementProjectsStackingRulesCreateResponseBody addDiscountedAmountModeCategoriesItem(String discountedAmountModeCategoriesItem) -
getDiscountedAmountModeCategories
Lists the IDs of the categories that apply a discount based on the discounted amount.- Returns:
- discountedAmountModeCategories
-
setDiscountedAmountModeCategories
-
redeemablesApplicationMode
public ManagementProjectsStackingRulesCreateResponseBody redeemablesApplicationMode(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
getRedeemablesApplicationMode
@Nullable public ManagementProjectsStackingRulesCreateResponseBody.RedeemablesApplicationModeEnum getRedeemablesApplicationMode()Defines the application mode for redeemables. `\"ALL\"` means that all redeemables must be validated for the redemption to be successful. `\"PARTIAL\"` means that only those redeemables that can be validated will be redeemed. The redeemables that fail validaton will be skipped.- Returns:
- redeemablesApplicationMode
-
setRedeemablesApplicationMode
public void setRedeemablesApplicationMode(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
redeemablesSortingRule
public ManagementProjectsStackingRulesCreateResponseBody redeemablesSortingRule(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesSortingRuleEnum redeemablesSortingRule) -
getRedeemablesSortingRule
@Nullable public ManagementProjectsStackingRulesCreateResponseBody.RedeemablesSortingRuleEnum getRedeemablesSortingRule()Defines the sorting rule for redeemables. `\"CATEGORY_HIERARCHY\"` means that redeemables are applied with the order established by the hierarchy of the categories. `\"REQUESTED_ORDER\"` means that redeemables are applied with the order established in the request.- Returns:
- redeemablesSortingRule
-
setRedeemablesSortingRule
public void setRedeemablesSortingRule(ManagementProjectsStackingRulesCreateResponseBody.RedeemablesSortingRuleEnum redeemablesSortingRule) -
createdAt
-
getCreatedAt
Timestamp representing the date and time when the stacking rules were created. The value for this parameter is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the stacking rules were updated. The value for this parameter is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsStackingRulesCreateResponseBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsStackingRulesCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsStackingRulesCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsStackingRulesCreateResponseBody
-
toJson
Convert an instance of ManagementProjectsStackingRulesCreateResponseBody to an JSON string- Returns:
- JSON string
-