Package io.voucherify.client.model
Class StackingRules
java.lang.Object
io.voucherify.client.model.StackingRules
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class StackingRules
extends Object
Defines stacking rules for redeemables. Read more in the [Stacking Rule Documentation](https://support.voucherify.io/article/604-stacking-rules).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDefines redeemables application mode.static enumDefines redeemables no effect rule.static enumDefines redeemables products application mode.static enumDefines redeemables sorting rule. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExclusiveCategoriesItem(String exclusiveCategoriesItem) addJointCategoriesItem(String jointCategoriesItem) applicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) applicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) applicableRedeemablesLimit(Integer applicableRedeemablesLimit) applicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) booleanexclusiveCategories(List<String> exclusiveCategories) static StackingRulesCreate an instance of StackingRules given an JSON stringDefines how many redeemables with an exclusive category can be applied in one request.Defines how many redeemables with an exclusive category per category in stacking rules can be applied in one request.Defines how many of the sent redeemables will be applied to the order.Defines how many redeemables per category can be applied in one request.Lists all exclusive categories.Lists all joint categories.Defines redeemables application mode.Defines how many redeemables can be sent in one stacking request (note: more redeemables means more processing time!).Defines redeemables no effect rule.Defines redeemables products application mode.Defines redeemables sorting rule.inthashCode()jointCategories(List<String> jointCategories) redeemablesApplicationMode(StackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) redeemablesLimit(Integer redeemablesLimit) redeemablesNoEffectRule(StackingRules.RedeemablesNoEffectRuleEnum redeemablesNoEffectRule) redeemablesProductsApplicationMode(StackingRules.RedeemablesProductsApplicationModeEnum redeemablesProductsApplicationMode) redeemablesSortingRule(StackingRules.RedeemablesSortingRuleEnum redeemablesSortingRule) voidsetApplicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) voidsetApplicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) voidsetApplicableRedeemablesLimit(Integer applicableRedeemablesLimit) voidsetApplicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) voidsetExclusiveCategories(List<String> exclusiveCategories) voidsetJointCategories(List<String> jointCategories) voidsetRedeemablesApplicationMode(StackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) voidsetRedeemablesLimit(Integer redeemablesLimit) voidsetRedeemablesNoEffectRule(StackingRules.RedeemablesNoEffectRuleEnum redeemablesNoEffectRule) voidsetRedeemablesProductsApplicationMode(StackingRules.RedeemablesProductsApplicationModeEnum redeemablesProductsApplicationMode) voidsetRedeemablesSortingRule(StackingRules.RedeemablesSortingRuleEnum redeemablesSortingRule) toJson()Convert an instance of StackingRules to an JSON stringtoString()
-
Field Details
-
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_EXCLUSIVE_CATEGORIES
- See Also:
-
SERIALIZED_NAME_JOINT_CATEGORIES
- See Also:
-
SERIALIZED_NAME_REDEEMABLES_APPLICATION_MODE
- See Also:
-
SERIALIZED_NAME_REDEEMABLES_SORTING_RULE
- See Also:
-
SERIALIZED_NAME_REDEEMABLES_PRODUCTS_APPLICATION_MODE
- See Also:
-
SERIALIZED_NAME_REDEEMABLES_NO_EFFECT_RULE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StackingRules
public StackingRules()
-
-
Method Details
-
redeemablesLimit
-
getRedeemablesLimit
Defines how many redeemables can be sent in one stacking request (note: more redeemables means more processing time!). minimum: 1 maximum: 30- Returns:
- redeemablesLimit
-
setRedeemablesLimit
-
applicableRedeemablesLimit
-
getApplicableRedeemablesLimit
Defines how many of the sent redeemables will be applied to the order. For example, a user can select 30 discounts but only 5 will be applied to the order and the remaining will be labelled as SKIPPED. minimum: 1 maximum: 30- Returns:
- applicableRedeemablesLimit
-
setApplicableRedeemablesLimit
-
applicableRedeemablesPerCategoryLimit
public StackingRules applicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) -
getApplicableRedeemablesPerCategoryLimit
Defines how many redeemables per category can be applied in one request. minimum: 1 maximum: 5- Returns:
- applicableRedeemablesPerCategoryLimit
-
setApplicableRedeemablesPerCategoryLimit
-
applicableExclusiveRedeemablesLimit
public StackingRules applicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) -
getApplicableExclusiveRedeemablesLimit
Defines how many redeemables with an exclusive category can be applied in one request. minimum: 1 maximum: 5- Returns:
- applicableExclusiveRedeemablesLimit
-
setApplicableExclusiveRedeemablesLimit
-
applicableExclusiveRedeemablesPerCategoryLimit
public StackingRules applicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) -
getApplicableExclusiveRedeemablesPerCategoryLimit
Defines how many redeemables with an exclusive category per category in stacking rules can be applied in one request. minimum: 1 maximum: 5- Returns:
- applicableExclusiveRedeemablesPerCategoryLimit
-
setApplicableExclusiveRedeemablesPerCategoryLimit
public void setApplicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) -
exclusiveCategories
-
addExclusiveCategoriesItem
-
getExclusiveCategories
Lists all exclusive categories. A redeemable from a campaign with an exclusive category is the only redeemable to be redeemed when applied with redeemables from other campaigns unless these campaigns are exclusive or joint.- Returns:
- exclusiveCategories
-
setExclusiveCategories
-
jointCategories
-
addJointCategoriesItem
-
getJointCategories
Lists all joint categories. A campaign with a joint category is always applied regardless of the exclusivity of other campaigns.- Returns:
- jointCategories
-
setJointCategories
-
redeemablesApplicationMode
public StackingRules redeemablesApplicationMode(StackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
getRedeemablesApplicationMode
Defines redeemables application mode.- Returns:
- redeemablesApplicationMode
-
setRedeemablesApplicationMode
public void setRedeemablesApplicationMode(StackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
redeemablesSortingRule
public StackingRules redeemablesSortingRule(StackingRules.RedeemablesSortingRuleEnum redeemablesSortingRule) -
getRedeemablesSortingRule
Defines redeemables sorting rule.- Returns:
- redeemablesSortingRule
-
setRedeemablesSortingRule
public void setRedeemablesSortingRule(StackingRules.RedeemablesSortingRuleEnum redeemablesSortingRule) -
redeemablesProductsApplicationMode
public StackingRules redeemablesProductsApplicationMode(StackingRules.RedeemablesProductsApplicationModeEnum redeemablesProductsApplicationMode) -
getRedeemablesProductsApplicationMode
@Nullable public StackingRules.RedeemablesProductsApplicationModeEnum getRedeemablesProductsApplicationMode()Defines redeemables products application mode.- Returns:
- redeemablesProductsApplicationMode
-
setRedeemablesProductsApplicationMode
public void setRedeemablesProductsApplicationMode(StackingRules.RedeemablesProductsApplicationModeEnum redeemablesProductsApplicationMode) -
redeemablesNoEffectRule
public StackingRules redeemablesNoEffectRule(StackingRules.RedeemablesNoEffectRuleEnum redeemablesNoEffectRule) -
getRedeemablesNoEffectRule
Defines redeemables no effect rule.- Returns:
- redeemablesNoEffectRule
-
setRedeemablesNoEffectRule
public void setRedeemablesNoEffectRule(StackingRules.RedeemablesNoEffectRuleEnum redeemablesNoEffectRule) -
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of StackingRules given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StackingRules
- Throws:
IOException- if the JSON string is invalid with respect to StackingRules
-
toJson
Convert an instance of StackingRules to an JSON string- Returns:
- JSON string
-