Broadleaf Microservices
  • v1.0.0-latest-prod

Cart Services Release Notes for 2.1.0-GA

Tip
The 2.x versions are Spring Boot 3 compatible.

Requirements

  • JDK 17 is required for Broadleaf release trains 2.0.0-GA, and beyond.

New Features & Notable Changes

  • Added support for quote

    • Introduced the following new fields to Cart

      • type

      • expirationDate

      • salesRepAssignments

    • Introduced the following new domains

      • CartNote

      • ReviewerAssignment

    • Introduced a listener for scheduled job to mark quotes as expired

    • Introduced Cart Services Metadata library to support a Quote list grid in the admin

    • To enable:

      • Set broadleaf.quotes.enabled=true for Cart Operations Service or its containing flexpackage, e.g., Cart.

      • If using the Next.js Starter, set NEXT_PUBLIC_AUTH_CSR_SCOPE="CSR PUBLISH_QUOTE" and NEXT_PUBLIC_QUOTE_ENABLED=true.

      • Add the following to your Metadata Service or Supporting flexpackage pom.xml to include the new Cart Services Metadata library.

        <dependency>
            <groupId>com.broadleafcommerce.microservices</groupId>
            <artifactId>broadleaf-cart-services-metadata</artifactId>
        </dependency>
      • Set broadleaf.cart.metadata.enable-quote=true for Cart Services Metadata or its containing flexpackage, e.g., Supporting.

Upgrade Guide

API Changes

New Endpoints

Path Description

POST /carts/{cartId}/action-audits/clone

Clone cart action audits from the given cart id to another cart

POST /carts/{cartId}/notes

Creates a CartNote

GET /carts/{cartId}/notes

Retrieves CartNotes for the given cart id

PUT /carts/{cartId}/notes/{noteId}

Replaces a CartNote

PATCH /carts/{cartId}/notes/{noteId}

Updates a CartNote

DELETE /carts/{cartId}/notes/{noteId}

Deletes a CartNote