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