Interface CartState
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
CartState.CartStateEnum
Indicates the current status of a Cart.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of CartState -
Field Summary
Modifier and TypeFieldDescriptionstatic final CartState
The default state where a Cart can be updated and ordered.static final CartState
A Cart is frozen.static final CartState
An anonymous Cart was merged into a Customer's Cart on sign-in, and no further operations are allowed on the Cart.static final CartState
A Cart was ordered, and no further operations are allowed on the Cart. -
Method Summary
Modifier and TypeMethodDescriptionstatic CartState
factory method for a enum value of CartState if no enum has been found an anonymous instance will be createdfindEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic CartState[]
values()
possible enum values
-
Field Details
-
ACTIVE
The default state where a Cart can be updated and ordered. A Customer can have more than one active Cart.
-
MERGED
An anonymous Cart was merged into a Customer's Cart on sign-in, and no further operations are allowed on the Cart.
-
ORDERED
A Cart was ordered, and no further operations are allowed on the Cart.
-
FROZEN
A Cart is frozen. Update actions that can change the price of (Custom) Line Items are not allowed.
- Add LineItem
- Change LineItem Quantity
- Remove LineItem
- Set LineItem DistributionChannel
- Set LineItem SupplyChannel
- Add CustomLineItem
- Change CustomLineItem Quantity
- Remove CustomLineItem
- Change TaxMode
- Set LineItem Price
- Set LineItem TotalPrice
-
-
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 CartState 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
-