Interface CartProvider
- All Known Implementing Classes:
ExternalCartProvider
Cart
. Typically utilizes
WebClient
to make requests to an external REST API.- Author:
- Chad Harchar (charchar)
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.Cart
createCart
(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a new cart.com.broadleafcommerce.cart.client.domain.Cart
createNonRequestCart
(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a new cart, without updating the original request cart.void
deleteCartItem
(String cartId, com.broadleafcommerce.cart.client.domain.CartItem cartItem, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.com.broadleafcommerce.cart.client.domain.Cart
patchCart
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Patch the cart.Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCartById
(String cartId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve the cart.Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCartByOrderNumber
(String customerId, String orderNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the cart (if it exists) for the provided customer id and order number.Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCartByStatus
(String customerId, String accountId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a customer or account cart with the given status, customer cart will automatically be retrieved if the givenaccountId
is null.Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCartByStatusAndName
(String customerId, String status, String name, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a customer or account cart with the given status, customer cart will automatically be retrieved if the givenaccountId
is null.org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCarts
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
ofCarts
based on the given filters.org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCartsByStatuses
(String customerId, String accountId, Set<String> statuses, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
of customer or accountCarts
based on the given statuses, customer id, and account id.default org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCartsInStatus
(String customerId, String accountId, String status, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Convenient method to retrieve aPage
of customer or accountCarts
in a single status.org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCartsMatchingTenantByStatus
(String status, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
ofCarts
based on the given status and matching the tenant from the givenContextInfo
.default Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCsrOwnedCart
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofretrieveCsrOwnedCart(String, String, ContextInfo)
default Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCsrOwnedCart
(String customerId, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Convenient method to retrieve theDefaultCartStatuses.CSR_OWNED
customer or account cart.default Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveCustomerCartByStatus
(String customerId, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofretrieveCartByStatus(String, String, String, ContextInfo)
Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveHistoricalCartForAnonymousCustomer
(String emailAddress, String orderNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a single, historical cart for an anonymous customer.SimplePage<com.broadleafcommerce.cart.client.domain.Cart>
retrieveHistoricalCartsForCustomer
(String customerId, Date startDate, Date endDate, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all carts that areDefaultCartStatuses.SUBMITTED
orDefaultCartStatuses.CANCELLED
for the provided customer and dates.default Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveInProcessCart
(String customerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofretrieveInProcessCart(String, String, ContextInfo)
default Optional<com.broadleafcommerce.cart.client.domain.Cart>
retrieveInProcessCart
(String customerId, String accountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Convenient method to retrieve theDefaultCartStatuses.IN_PROCESS
customer or account cart.org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
retrieveMyCarts
(com.broadleafcommerce.order.common.domain.CustomerRef customerRef, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
ofCarts
based on the given filters.void
sendCartPendingPaymentFailedEvent
(CartPendingPaymentFailedEvent cartPendingPaymentFailedEvent, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the cart pending payment failed event to the cart service.void
sendCartRejectionEvent
(CartRejectionEvent cartRejectionEvent, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.This event will be sent directly from Cart Operation Services.void
sendCheckoutCompletionEvent
(CheckoutCompletionEvent checkoutCompletionEvent, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the checkout completion event to the cart service.void
sendRollbackEvent
(CheckoutRollbackEvent rollbackEvent, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the rollback event to the cart service.com.broadleafcommerce.cart.client.domain.Cart
updateCart
(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Update the cart.com.broadleafcommerce.cart.client.domain.Cart
updateCart
(UpdateCartRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Update the cart.com.broadleafcommerce.cart.client.domain.CartItem
updateCartItem
(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.cart.client.domain.CartItem cartItem, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.in favor of updating the entire cart withupdateCart(Cart, ContextInfo)
List<com.broadleafcommerce.cart.client.domain.Cart>
updateCartsMatchingTenantStatus
(List<String> cartIds, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates theCart.getStatus()
for the given cart ids and status and matching the tenant from the givenContextInfo
.
-
Method Details
-
retrieveCarts
org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveCarts(cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
ofCarts
based on the given filters.- Parameters:
filters
- the filters to applypageable
- the requested page of resultscontextInfo
- context information related to multitenancy- Returns:
- a
Page
ofCarts
based on the given filters
-
retrieveMyCarts
org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveMyCarts(com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
ofCarts
based on the given filters.- Parameters:
filters
- the filters to applypageable
- the requested page of resultscontextInfo
- context information related to multitenancy- Returns:
- a
Page
ofCarts
based on the given filters
-
retrieveCartsByStatuses
org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartsByStatuses(String customerId, @Nullable String accountId, Set<String> statuses, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
of customer or accountCarts
based on the given statuses, customer id, and account id. Customer cart will automatically be retrieved if the givenaccountId
is null.- Parameters:
customerId
- the id of the customer that owns theCarts
accountId
- the id of the account that theCarts
belong to, null can be passed in to retrieve customerCarts
statuses
- cart statuses to find theCarts
bypageable
- the requested page of resultscontextInfo
- context information related to multitenancy- Returns:
- a
Page
of customer or accountCarts
based on the given statuses, customer id, and account id
-
retrieveCartsInStatus
default org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartsInStatus(String customerId, @Nullable String accountId, String status, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Convenient method to retrieve aPage
of customer or accountCarts
in a single status. Customer cart will automatically be retrieved if the givenaccountId
is null.- Parameters:
customerId
- the id of the customer that owns theCarts
accountId
- the id of the account that theCarts
belong to, null can be passed in to retrieve customerCarts
status
- the cart status to find theCarts
bypageable
- the requested page of resultscontextInfo
- context information related to multitenancy- Returns:
- a
Page
of customer or accountCarts
based on the given status, customer id, and account id
-
retrieveInProcessCart
@Deprecated(since="1.8.0", forRemoval=true) default Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveInProcessCart(String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofretrieveInProcessCart(String, String, ContextInfo)
Convenient method to retrieve theDefaultCartStatuses.IN_PROCESS
cart for the provided customer.The
Cart
with the latestCart.getCreateDate()
is retrieved if there're multipleCarts
.- Parameters:
customerId
- The id of the customer for which we are attempting to find anDefaultCartStatuses.IN_PROCESS
cart.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- Retrieve the
DefaultCartStatuses.IN_PROCESS
cart for the provided customer.
-
retrieveInProcessCart
default Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveInProcessCart(String customerId, @Nullable String accountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Convenient method to retrieve theDefaultCartStatuses.IN_PROCESS
customer or account cart. Customer cart will automatically be retrieved if the givenaccountId
is null.The
Cart
with the latestCart.getCreateDate()
is retrieved if there're multipleCarts
.- Parameters:
customerId
- The id of the customer for which we are attempting to find anDefaultCartStatuses.IN_PROCESS
cart.accountId
- the id of the account that the cart belong to, null can be passed in to retrieve customer cart.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- Retrieve the
DefaultCartStatuses.IN_PROCESS
cart for the provided customer.
-
retrieveCsrOwnedCart
@Deprecated(since="1.8.0", forRemoval=true) default Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCsrOwnedCart(String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofretrieveCsrOwnedCart(String, String, ContextInfo)
Convenient method to retrieve theDefaultCartStatuses.CSR_OWNED
cart for the provided customer.The
Cart
with the latestCart.getCreateDate()
is retrieved if there're multipleCarts
.- Parameters:
customerId
- The id of the customer for which we are attempting to find anDefaultCartStatuses.CSR_OWNED
cart.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- Retrieve the
DefaultCartStatuses.CSR_OWNED
cart for the provided customer.
-
retrieveCsrOwnedCart
default Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCsrOwnedCart(String customerId, @Nullable String accountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Convenient method to retrieve theDefaultCartStatuses.CSR_OWNED
customer or account cart. Customer cart will automatically be retrieved if the givenaccountId
is null.The
Cart
with the latestCart.getCreateDate()
is retrieved if there're multipleCarts
.- Parameters:
customerId
- The id of the customer for which we are attempting to find anDefaultCartStatuses.CSR_OWNED
cart.accountId
- the id of the account that the cart belong to, null can be passed in to retrieve customer cart.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- Retrieve the
DefaultCartStatuses.CSR_OWNED
cart for the provided customer.
-
retrieveCustomerCartByStatus
@Deprecated(since="1.8.0", forRemoval=true) default Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCustomerCartByStatus(String customerId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofretrieveCartByStatus(String, String, String, ContextInfo)
Finds a cart with the given status belonging to the provided customer.The
Cart
with the latestCart.getCreateDate()
is retrieved if there're multipleCarts
.- Parameters:
customerId
- the customer IDstatus
- the statuscontextInfo
- the context info- Returns:
- a cart if it exists
-
retrieveCartByStatus
Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartByStatus(String customerId, @Nullable String accountId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a customer or account cart with the given status, customer cart will automatically be retrieved if the givenaccountId
is null.The cart with the latest
Cart.getCreateDate()
is retrieved if there're multipleCarts
.- Parameters:
customerId
- the customer IDaccountId
- the account ID, null can be passed in to retrieve customer cartstatus
- the statuscontextInfo
- the context info- Returns:
- a cart if it exists
-
retrieveCartByStatusAndName
Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartByStatusAndName(String customerId, String status, @Nullable String name, @Nullable String accountId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a customer or account cart with the given status, customer cart will automatically be retrieved if the givenaccountId
is null.The cart with the latest
Cart.getCreateDate()
is retrieved if there're multipleCarts
.- Parameters:
customerId
- the customer IDstatus
- the statusname
- the name of the cart to match or, if null, then a cart with no nameaccountId
- the account ID, null can be passed in to retrieve customer cartcontextInfo
- the context info- Returns:
- a cart if it exists
-
retrieveCartByOrderNumber
Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartByOrderNumber(String customerId, String orderNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find the cart (if it exists) for the provided customer id and order number.- Parameters:
customerId
- the id of the customer who owns the cartorderNumber
- the order number for the cartcontextInfo
- Context information around sandbox and multitenant state.- Returns:
- a cart (if it exists) with the given order number that belongs to the provided customer
-
retrieveHistoricalCartsForCustomer
SimplePage<com.broadleafcommerce.cart.client.domain.Cart> retrieveHistoricalCartsForCustomer(String customerId, @Nullable Date startDate, @Nullable Date endDate, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all carts that areDefaultCartStatuses.SUBMITTED
orDefaultCartStatuses.CANCELLED
for the provided customer and dates.- Parameters:
customerId
- the id of the customer who owns the cartsstartDate
- the starting date to filter carts byendDate
- the ending date to filter carts bypage
- the requested page of results from the databasecontextInfo
- Context information around sandbox and multitenant state.- Returns:
- all carts that are
DefaultCartStatuses.SUBMITTED
orfor the provided customer and dates.
-
retrieveHistoricalCartForAnonymousCustomer
Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveHistoricalCartForAnonymousCustomer(String emailAddress, String orderNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds a single, historical cart for an anonymous customer.- Parameters:
emailAddress
- Theemail address associated with the cart
orderNumber
- Thehistorical cart's order number
contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The single, historical cart for an anonymous customer
-
retrieveCartById
Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartById(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve the cart.- Parameters:
cartId
- The id of the cart on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The cart for the provided id.
-
createNonRequestCart
com.broadleafcommerce.cart.client.domain.Cart createNonRequestCart(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a new cart, without updating the original request cart.- Parameters:
cart
- The cart to createcontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The created cart.
-
createCart
com.broadleafcommerce.cart.client.domain.Cart createCart(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a new cart.- Parameters:
cart
- The cart to createcontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The created cart.
-
updateCart
com.broadleafcommerce.cart.client.domain.Cart updateCart(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Update the cart.- Parameters:
cart
- The cart on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The updated cart.
-
updateCart
com.broadleafcommerce.cart.client.domain.Cart updateCart(UpdateCartRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Update the cart.- Parameters:
request
- The request used to perform the operation.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The updated cart.
-
patchCart
com.broadleafcommerce.cart.client.domain.Cart patchCart(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Patch the cart. A patch does not replace the cart, but partially updates it using any non-null fields.- Parameters:
cart
- The cart on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The patched cart.
-
retrieveCartsMatchingTenantByStatus
org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartsMatchingTenantByStatus(String status, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves aPage
ofCarts
based on the given status and matching the tenant from the givenContextInfo
.Note that this ignores application context and should only be used in scheduled jobs where application context is not available.
- Parameters:
status
- the status to find the cartspageable
- the requested page of resultscontextInfo
- context information related to multitenancy- Returns:
- a
Page
ofCarts
based on the given status and matching the tenant from the givenContextInfo
-
updateCartsMatchingTenantStatus
List<com.broadleafcommerce.cart.client.domain.Cart> updateCartsMatchingTenantStatus(List<String> cartIds, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates theCart.getStatus()
for the given cart ids and status and matching the tenant from the givenContextInfo
.Note that this ignores application context and should only be used in scheduled jobs where application context is not available.
- Parameters:
cartIds
- the ids of the carts to update the status forstatus
- the status to update the carts tocontextInfo
- Context information around sandbox and multitenant state.- Returns:
- The updated carts.
-
updateCartItem
@Deprecated com.broadleafcommerce.cart.client.domain.CartItem updateCartItem(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.cart.client.domain.CartItem cartItem, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.in favor of updating the entire cart withupdateCart(Cart, ContextInfo)
Update the cart item.- Parameters:
cart
- the cart the item belongs tocartItem
- The cart item on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.- Returns:
- The updated cart item.
-
deleteCartItem
@Deprecated void deleteCartItem(String cartId, com.broadleafcommerce.cart.client.domain.CartItem cartItem, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.in favor of updating the entire cart withupdateCart(Cart, ContextInfo)
Delete the cart item.- Parameters:
cartId
- the ID of the card the item belongs tocartItem
- The cart item on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.
-
sendRollbackEvent
void sendRollbackEvent(CheckoutRollbackEvent rollbackEvent, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the rollback event to the cart service. The cart service handles this event and uses the durable message sending that is guaranty the message delivery.- Parameters:
rollbackEvent
- the event that should be sendcontextInfo
- context information around sandbox and multitenant state
-
sendCheckoutCompletionEvent
void sendCheckoutCompletionEvent(CheckoutCompletionEvent checkoutCompletionEvent, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the checkout completion event to the cart service. The cart service handles this event and uses the durable message sending that is guaranty the message delivery.- Parameters:
checkoutCompletionEvent
- the event that should be sendcontextInfo
- context information around sandbox and multitenant state
-
sendCartRejectionEvent
@Deprecated(since="1.8.2", forRemoval=true) void sendCartRejectionEvent(CartRejectionEvent cartRejectionEvent, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.This event will be sent directly from Cart Operation Services.Sends the cart rejection event to the cart service. The cart service handles this event and uses the durable message sending that is guaranty the message delivery.- Parameters:
cartRejectionEvent
- the event that should be sendcontextInfo
- context information around sandbox and multitenant state
-
sendCartPendingPaymentFailedEvent
void sendCartPendingPaymentFailedEvent(CartPendingPaymentFailedEvent cartPendingPaymentFailedEvent, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends the cart pending payment failed event to the cart service. The cart service handles this event and uses the durable message sending that is guaranty the message delivery.- Parameters:
cartPendingPaymentFailedEvent
- the event that should be sendcontextInfo
- context information around sandbox and multitenant state
-
updateCart(Cart, ContextInfo)