Interface LineItemPriceMode
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
LineItemPriceMode.LineItemPriceModeEnum
This mode indicates how the price is set for the Line Item.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of LineItemPriceMode -
Field Summary
Modifier and TypeFieldDescriptionstatic final LineItemPriceMode
The Line Item price is set externally.static final LineItemPriceMode
The Line Item price with the total is set externally.static final LineItemPriceMode
The price is selected from the Product Variant. -
Method Summary
Modifier and TypeMethodDescriptionstatic LineItemPriceMode
factory method for a enum value of LineItemPriceMode if no enum has been found an anonymous instance will be createdstatic Optional<LineItemPriceMode>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic LineItemPriceMode[]
values()
possible enum values
-
Field Details
-
PLATFORM
The price is selected from the Product Variant. This is the default mode.
-
EXTERNAL_PRICE
The Line Item price is set externally. Cart Discounts can apply to Line Items with this price mode. All update actions that change the quantity of a Line Item with this price mode require the
externalPrice
field to be given. -
EXTERNAL_TOTAL
The Line Item price with the total is set externally. Cart Discounts are deactivated for Line Items with this price mode, despite a matching CartDiscountLineItemsTarget or MultiBuyLineItemsTarget. Although a Line Item with this price mode has both
price
andtotalPrice
set externally, onlytotalPrice
is used to calculate the total price of a Cart. All update actions that change the quantity of a Line Item with this price mode can set the new price with theexternalTotalPrice
field. If theexternalTotalPrice
field is not given in the update actions, the external price is unset and the price mode is set toPlatform
.
-
-
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 LineItemPriceMode 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
-