public enum LineItemPriceMode extends Enum<LineItemPriceMode> implements SphereEnumeration
Enum Constant and Description |
---|
EXTERNAL_PRICE
The line item price was set externally.
|
EXTERNAL_TOTAL
The line item price with the total was set externally.
|
PLATFORM
The price is selected from the product variant.
|
Modifier and Type | Method and Description |
---|---|
static LineItemPriceMode |
ofSphereValue(String value) |
static LineItemPriceMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineItemPriceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
findBySphereName, name, toSphereName
public static final LineItemPriceMode PLATFORM
public static final LineItemPriceMode EXTERNAL_TOTAL
price
and totalPrice
externally set, only totalPrice
will be 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 the externalTotal
field. If the externalTotal
field is not given
in an update action that changes line item quantity then the external price is unset and the price mode is set back to PLATFORM
.SetLineItemTotalPrice
public static final LineItemPriceMode EXTERNAL_PRICE
EXTERNAL_PRICE
field to be given.public static LineItemPriceMode[] values()
for (LineItemPriceMode c : LineItemPriceMode.values()) System.out.println(c);
public static LineItemPriceMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static LineItemPriceMode ofSphereValue(String value)