Enum Class DefaultCartOperationFlows

java.lang.Object
java.lang.Enum<DefaultCartOperationFlows>
com.broadleafcommerce.cartoperation.domain.enums.DefaultCartOperationFlows
All Implemented Interfaces:
Serializable, Comparable<DefaultCartOperationFlows>, Constable

public enum DefaultCartOperationFlows extends Enum<DefaultCartOperationFlows>
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
  • Enum Constant Details

    • PROCESS_CHECKOUT

      public static final DefaultCartOperationFlows PROCESS_CHECKOUT
      Represents the process checkout flow.
    • UPDATE_CONTACT_INFO

      public static final DefaultCartOperationFlows UPDATE_CONTACT_INFO
      Represents the update contact info flow.
    • UPDATE_FULFILLMENT_GROUP

      public static final DefaultCartOperationFlows UPDATE_FULFILLMENT_GROUP
      Represents the update fulfillment group flow.
    • PRICE_CART

      public static final DefaultCartOperationFlows PRICE_CART
      Represents the price cart flow.
    • RECALCULATE_TAXES

      public static final DefaultCartOperationFlows RECALCULATE_TAXES
      Represents the recalculate taxes flow.
    • DELETE_CANCELED_QUOTE

      public static final DefaultCartOperationFlows DELETE_CANCELED_QUOTE
      Represents the flow to delete a canceled quote.
  • Method Details

    • values

      public static DefaultCartOperationFlows[] 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

      public static DefaultCartOperationFlows valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isProcessCheckout

      public static boolean isProcessCheckout(String flow)
    • isUpdateContactInfo

      public static boolean isUpdateContactInfo(String flow)
    • isUpdateFulfillmentGroup

      public static boolean isUpdateFulfillmentGroup(String flow)
    • isPriceCart

      public static boolean isPriceCart(String flow)
    • isRecalculateTaxes

      public static boolean isRecalculateTaxes(String flow)
    • isDeleteCanceledQuote

      public static boolean isDeleteCanceledQuote(String flow)