Enum Class DefaultCartOperationFlows
java.lang.Object
java.lang.Enum<DefaultCartOperationFlows>
com.broadleafcommerce.cartoperation.domain.enums.DefaultCartOperationFlows
- All Implemented Interfaces:
Serializable
,Comparable<DefaultCartOperationFlows>
,Constable
Represents the cart operation flows.
This is useful to determine when a cart or a DefaultCartTypes.QUOTE
can be updated or
read.
For example, in the quote context, a DefaultQuoteStatuses.PUBLISHED
quote's items cannot
be modified (add/update/remove items), but other aspects of the quote such as contact info or
shipping address can be updated, especially in certain flows.
- Author:
- Sunny Yu
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRepresents the flow to delete a canceled quote.Represents the price cart flow.Represents the process checkout flow.Represents the recalculate taxes flow.Represents the update contact info flow.Represents the update fulfillment group flow. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isDeleteCanceledQuote
(String flow) static boolean
isPriceCart
(String flow) static boolean
isProcessCheckout
(String flow) static boolean
isRecalculateTaxes
(String flow) static boolean
isUpdateContactInfo
(String flow) static boolean
static DefaultCartOperationFlows
Returns the enum constant of this class with the specified name.static DefaultCartOperationFlows[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROCESS_CHECKOUT
Represents the process checkout flow. -
UPDATE_CONTACT_INFO
Represents the update contact info flow. -
UPDATE_FULFILLMENT_GROUP
Represents the update fulfillment group flow. -
PRICE_CART
Represents the price cart flow. -
RECALCULATE_TAXES
Represents the recalculate taxes flow. -
DELETE_CANCELED_QUOTE
Represents the flow to delete a canceled quote.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isProcessCheckout
-
isUpdateContactInfo
-
isUpdateFulfillmentGroup
-
isPriceCart
-
isRecalculateTaxes
-
isDeleteCanceledQuote
-