Interface DiscountApplicationMode
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
DiscountApplicationMode.DiscountApplicationModeEnum
This mode determines how absolute Discounts are applied on Line Items or Custom Line Items.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of DiscountApplicationMode -
Field Summary
Modifier and TypeFieldDescriptionstatic final DiscountApplicationMode
Distributes the Discount evenly across eligible Line Items or Custom Line Items.static final DiscountApplicationMode
Applies the Discount individually to eligible Line Item or Custom Line Item.static final DiscountApplicationMode
Distributes the Discount proportionately across eligible Line Items or Custom Line Items. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscountApplicationMode
factory method for a enum value of DiscountApplicationMode if no enum has been found an anonymous instance will be createdstatic Optional<DiscountApplicationMode>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic DiscountApplicationMode[]
values()
possible enum values
-
Field Details
-
PROPORTIONATE_DISTRIBUTION
Distributes the Discount proportionately across eligible Line Items or Custom Line Items.
-
EVEN_DISTRIBUTION
Distributes the Discount evenly across eligible Line Items or Custom Line Items.
-
INDIVIDUAL_APPLICATION
Applies the Discount individually to eligible Line Item or Custom Line Item.
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonName
in 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 DiscountApplicationMode 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
-