Interface CartMergeMode
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
CartMergeMode.CartMergeModeEnum
Determines how to manually merge an anonymous Cart with an existing Customer Cart.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumpossible values of CartMergeMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CartMergeModeMerges the anonymous Cart with the existing Customer Cart.static final CartMergeModeUses the anonymous Cart as the new active Customer Cart, replacing the existing one. -
Method Summary
Modifier and TypeMethodDescriptionstatic CartMergeModefactory method for a enum value of CartMergeMode if no enum has been found an anonymous instance will be createdstatic Optional<CartMergeMode>findEnumViaJsonName(String jsonName) method to find enum using the JSON valuethe JSON valuename()the enum valuetoString()convert value to stringstatic CartMergeMode[]values()possible enum values
-
Field Details
-
MERGE_WITH_EXISTING_CUSTOMER_CART
Merges the anonymous Cart with the existing Customer Cart. Line Items from the anonymous Cart are added to the Customer Cart.
-
USE_AS_NEW_ACTIVE_CUSTOMER_CART
Uses the anonymous Cart as the new active Customer Cart, replacing the existing one.
-
-
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 CartMergeMode 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
-