Package io.voucherify.client.model
Class ManagementProjectsStackingRules
java.lang.Object
io.voucherify.client.model.ManagementProjectsStackingRules
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ManagementProjectsStackingRules
extends Object
Object representing the details of the 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(ManagementProjectsStackingRules.DiscountCalculationModeEnum discountCalculationMode) discountedAmountModeCategories(List<String> discountedAmountModeCategories) booleanexclusiveCategories(List<String> exclusiveCategories) Create an instance of ManagementProjectsStackingRules 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(ManagementProjectsStackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) redeemablesLimit(Integer redeemablesLimit) redeemablesSortingRule(ManagementProjectsStackingRules.RedeemablesSortingRuleEnum redeemablesSortingRule) voidsetApplicableExclusiveRedeemablesLimit(Integer applicableExclusiveRedeemablesLimit) voidsetApplicableExclusiveRedeemablesPerCategoryLimit(Integer applicableExclusiveRedeemablesPerCategoryLimit) voidsetApplicableRedeemablesLimit(Integer applicableRedeemablesLimit) voidsetApplicableRedeemablesPerCategoryLimit(Integer applicableRedeemablesPerCategoryLimit) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDiscountCalculationMode(ManagementProjectsStackingRules.DiscountCalculationModeEnum discountCalculationMode) voidsetDiscountedAmountModeCategories(List<String> discountedAmountModeCategories) voidsetExclusiveCategories(List<String> exclusiveCategories) voidvoidsetInitialAmountModeCategories(List<String> initialAmountModeCategories) voidsetJointCategories(List<String> jointCategories) voidsetRedeemablesApplicationMode(ManagementProjectsStackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) voidsetRedeemablesLimit(Integer redeemablesLimit) voidsetRedeemablesSortingRule(ManagementProjectsStackingRules.RedeemablesSortingRuleEnum redeemablesSortingRule) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of ManagementProjectsStackingRules 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
-
ManagementProjectsStackingRules
public ManagementProjectsStackingRules()
-
-
Method Details
-
id
-
getId
The unique identifier of the stacking rules.- Returns:
- id
-
setId
-
exclusiveCategories
-
addExclusiveCategoriesItem
-
getExclusiveCategories
Lists the IDs of the categories that are exclusive.- Returns:
- exclusiveCategories
-
setExclusiveCategories
-
jointCategories
-
addJointCategoriesItem
-
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 ManagementProjectsStackingRules 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 ManagementProjectsStackingRules 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 ManagementProjectsStackingRules 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 ManagementProjectsStackingRules 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 ManagementProjectsStackingRules discountCalculationMode(ManagementProjectsStackingRules.DiscountCalculationModeEnum discountCalculationMode) -
getDiscountCalculationMode
@Nullable public ManagementProjectsStackingRules.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(ManagementProjectsStackingRules.DiscountCalculationModeEnum discountCalculationMode) -
initialAmountModeCategories
public ManagementProjectsStackingRules initialAmountModeCategories(List<String> initialAmountModeCategories) -
addInitialAmountModeCategoriesItem
public ManagementProjectsStackingRules addInitialAmountModeCategoriesItem(String initialAmountModeCategoriesItem) -
getInitialAmountModeCategories
Lists the IDs of the categories that apply a discount based on the initial amount.- Returns:
- initialAmountModeCategories
-
setInitialAmountModeCategories
-
discountedAmountModeCategories
public ManagementProjectsStackingRules discountedAmountModeCategories(List<String> discountedAmountModeCategories) -
addDiscountedAmountModeCategoriesItem
public ManagementProjectsStackingRules addDiscountedAmountModeCategoriesItem(String discountedAmountModeCategoriesItem) -
getDiscountedAmountModeCategories
Lists the IDs of the categories that apply a discount based on the discounted amount.- Returns:
- discountedAmountModeCategories
-
setDiscountedAmountModeCategories
-
redeemablesApplicationMode
public ManagementProjectsStackingRules redeemablesApplicationMode(ManagementProjectsStackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
getRedeemablesApplicationMode
@Nullable public ManagementProjectsStackingRules.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(ManagementProjectsStackingRules.RedeemablesApplicationModeEnum redeemablesApplicationMode) -
redeemablesSortingRule
public ManagementProjectsStackingRules redeemablesSortingRule(ManagementProjectsStackingRules.RedeemablesSortingRuleEnum redeemablesSortingRule) -
getRedeemablesSortingRule
@Nullable public ManagementProjectsStackingRules.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(ManagementProjectsStackingRules.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
Create an instance of ManagementProjectsStackingRules given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ManagementProjectsStackingRules
- Throws:
IOException- if the JSON string is invalid with respect to ManagementProjectsStackingRules
-
toJson
Convert an instance of ManagementProjectsStackingRules to an JSON string- Returns:
- JSON string
-