Interface PriceSelectionMode
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
PriceSelectionMode.PriceSelectionModeEnum
Indicates how the price of a Line Item or Custom Line Item is selected during Order creation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumpossible values of PriceSelectionMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PriceSelectionModeThe price is updated each time a new Order is created.static final PriceSelectionModeThe price set when the Recurring Order was created is used for each subsequent order. -
Method Summary
Modifier and TypeMethodDescriptionstatic PriceSelectionModefactory method for a enum value of PriceSelectionMode if no enum has been found an anonymous instance will be createdstatic Optional<PriceSelectionMode>findEnumViaJsonName(String jsonName) method to find enum using the JSON valuethe JSON valuename()the enum valuetoString()convert value to stringstatic PriceSelectionMode[]values()possible enum values
-
Field Details
-
FIXED
The price set when the Recurring Order was created is used for each subsequent order.
-
DYNAMIC
The price is updated each time a new Order is created.
-
-
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 PriceSelectionMode 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
-