Package io.voucherify.client.model
Class ManagementProjectsStackingRulesCreateRequestBody
java.lang.Object
io.voucherify.client.model.ManagementProjectsStackingRulesCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsStackingRulesCreateRequestBody
extends Object
Request 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
Fields -
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) discountCalculationMode(ManagementProjectsStackingRulesCreateRequestBody.DiscountCalculationModeEnum discountCalculationMode) discountedAmountModeCategories(List<String> discountedAmountModeCategories) booleanexclusiveCategories(List<String> exclusiveCategories) Create an instance of ManagementProjectsStackingRulesCreateRequestBody 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.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.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.inthashCode()initialAmountModeCategories(List<String> initialAmountModeCategories) jointCategories(List<String> jointCategories) redeemablesApplicationMode(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) redeemablesLimit(Integer redeemablesLimit) redeemablesSortingRule(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesSortingRuleEnum redeemablesSortingRule) voidsetApplicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) voidsetApplicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) voidsetApplicableRedeemablesLimit(Integer applicableRedeemablesLimit) voidsetApplicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) voidsetDiscountCalculationMode(ManagementProjectsStackingRulesCreateRequestBody.DiscountCalculationModeEnum discountCalculationMode) voidsetDiscountedAmountModeCategories(List<String> discountedAmountModeCategories) voidsetExclusiveCategories(List<String> exclusiveCategories) voidsetInitialAmountModeCategories(List<String> initialAmountModeCategories) voidsetJointCategories(List<String> jointCategories) voidsetRedeemablesApplicationMode(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) voidsetRedeemablesLimit(Integer redeemablesLimit) voidsetRedeemablesSortingRule(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesSortingRuleEnum redeemablesSortingRule) toJson()Convert an instance of ManagementProjectsStackingRulesCreateRequestBody to an JSON stringtoString()
-
Field Details
-
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:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManagementProjectsStackingRulesCreateRequestBody
public ManagementProjectsStackingRulesCreateRequestBody()
-
-
Method Details
-
exclusiveCategories
public ManagementProjectsStackingRulesCreateRequestBody exclusiveCategories(List<String> exclusiveCategories) -
addExclusiveCategoriesItem
public ManagementProjectsStackingRulesCreateRequestBody addExclusiveCategoriesItem(String exclusiveCategoriesItem) -
getExclusiveCategories
Lists the IDs of the categories that are exclusive.- Returns:
- exclusiveCategories
-
setExclusiveCategories
-
jointCategories
public ManagementProjectsStackingRulesCreateRequestBody jointCategories(List<String> jointCategories) -
addJointCategoriesItem
public ManagementProjectsStackingRulesCreateRequestBody 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 ManagementProjectsStackingRulesCreateRequestBody 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 ManagementProjectsStackingRulesCreateRequestBody 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 ManagementProjectsStackingRulesCreateRequestBody 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 ManagementProjectsStackingRulesCreateRequestBody 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 ManagementProjectsStackingRulesCreateRequestBody discountCalculationMode(ManagementProjectsStackingRulesCreateRequestBody.DiscountCalculationModeEnum discountCalculationMode) -
getDiscountCalculationMode
@Nullable public ManagementProjectsStackingRulesCreateRequestBody.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(ManagementProjectsStackingRulesCreateRequestBody.DiscountCalculationModeEnum discountCalculationMode) -
initialAmountModeCategories
public ManagementProjectsStackingRulesCreateRequestBody initialAmountModeCategories(List<String> initialAmountModeCategories) -
addInitialAmountModeCategoriesItem
public ManagementProjectsStackingRulesCreateRequestBody addInitialAmountModeCategoriesItem(String initialAmountModeCategoriesItem) -
getInitialAmountModeCategories
Lists the IDs of the categories that apply a discount based on the initial amount.- Returns:
- initialAmountModeCategories
-
setInitialAmountModeCategories
-
discountedAmountModeCategories
public ManagementProjectsStackingRulesCreateRequestBody discountedAmountModeCategories(List<String> discountedAmountModeCategories) -
addDiscountedAmountModeCategoriesItem
public ManagementProjectsStackingRulesCreateRequestBody addDiscountedAmountModeCategoriesItem(String discountedAmountModeCategoriesItem) -
getDiscountedAmountModeCategories
Lists the IDs of the categories that apply a discount based on the discounted amount.- Returns:
- discountedAmountModeCategories
-
setDiscountedAmountModeCategories
-
redeemablesApplicationMode
public ManagementProjectsStackingRulesCreateRequestBody redeemablesApplicationMode(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
getRedeemablesApplicationMode
@Nullable public ManagementProjectsStackingRulesCreateRequestBody.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(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
redeemablesSortingRule
public ManagementProjectsStackingRulesCreateRequestBody redeemablesSortingRule(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesSortingRuleEnum redeemablesSortingRule) -
getRedeemablesSortingRule
@Nullable public ManagementProjectsStackingRulesCreateRequestBody.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(ManagementProjectsStackingRulesCreateRequestBody.RedeemablesSortingRuleEnum redeemablesSortingRule) -
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ManagementProjectsStackingRulesCreateRequestBody fromJson(String jsonString) throws IOException Create an instance of ManagementProjectsStackingRulesCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsStackingRulesCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsStackingRulesCreateRequestBody
-
toJson
Convert an instance of ManagementProjectsStackingRulesCreateRequestBody to an JSON string- Returns:
- JSON string
-