java.lang.Object
com.broadleafcommerce.cartoperation.service.util.cart.CartUtils

public class CartUtils extends Object
Author:
Dima Myroniuk (dmyroniuk)
  • Constructor Details

    • CartUtils

      public CartUtils()
  • Method Details

    • removeFulfillmentItemsWithoutCartItems

      public com.broadleafcommerce.cart.client.domain.Cart removeFulfillmentItemsWithoutCartItems(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart)
      Removes the fulfillment items from the Cart if there are no CartItems found for them.
      Parameters:
      cart - cart to remove the fulfillment items
      Returns:
      the updated cart
    • resetFulfillmentGroupReferenceNumbers

      public void resetFulfillmentGroupReferenceNumbers(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart)
      Resets the fulfillment group reference number.
      Parameters:
      cart - cart to reset the fulfillment group reference number