Interface DiscountCombinationMode
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
DiscountCombinationMode.DiscountCombinationModeEnum
Defines how Product Discounts and Cart Discounts are combined for every Cart in a Project.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumpossible values of DiscountCombinationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DiscountCombinationModeEither Product Discounts or Cart Discounts are chosen based on best deal for the customer.static final DiscountCombinationModeProduct Discounts and Cart Discounts are both applied to the Cart, potentially increasing the total discount. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountCombinationModefactory method for a enum value of DiscountCombinationMode if no enum has been found an anonymous instance will be createdstatic Optional<DiscountCombinationMode>findEnumViaJsonName(String jsonName) method to find enum using the JSON valuethe JSON valuename()the enum valuetoString()convert value to stringstatic DiscountCombinationMode[]values()possible enum values
-
Field Details
-
BEST_DEAL
Either Product Discounts or Cart Discounts are chosen based on best deal for the customer. Only one type applies per Cart.
-
STACKING
Product Discounts and Cart Discounts are both applied to the Cart, potentially increasing the total discount.
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonNamein interfaceJsonEnum- Returns:
- json value
-
name
String name()the enum value -
toString
String toString()convert value to string -
findEnum
factory method for a enum value of DiscountCombinationMode if no enum has been found an anonymous instance will be created- Parameters:
value- the enum value to be wrapped- Returns:
- enum instance
-
findEnumViaJsonName
method to find enum using the JSON value- Parameters:
jsonName- the json value to be wrapped- Returns:
- optional of enum instance
-
values
possible enum values- Returns:
- array of possible enum values
-