public interface CsrCartOperationService
Modifier and Type | Method and Description |
---|---|
void |
cancelCSRCart(@NonNull com.broadleafcommerce.cart.client.domain.Cart csrCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cancels the provided CSR cart.
|
com.broadleafcommerce.cart.client.domain.Cart |
cloneCartIntoStatus(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.enums.CartStatus status,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Clone the given cart into a new cart with the given status.
|
com.broadleafcommerce.cart.client.domain.Cart |
cloneCsrCartFromInProcess(@NonNull com.broadleafcommerce.cart.client.domain.Cart cartToClone,
com.broadleafcommerce.cart.client.domain.Cart csrCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Clone the customer's in-process cart into a new csr-owned cart.
|
com.broadleafcommerce.cart.client.domain.Cart |
cloneCsrCartFromInProcess(com.broadleafcommerce.cart.client.domain.Cart csrCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
in favor for
cloneCsrCartFromInProcess(Cart, Cart, ContextInfo) |
com.broadleafcommerce.cart.client.domain.Cart |
overrideCartItemPrice(com.broadleafcommerce.cart.client.domain.Cart cart,
String cartItemId,
OverridePriceRequest overridePrice,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Override the unit price on the cart item.
|
com.broadleafcommerce.cart.client.domain.Cart |
overrideFulfillmentGroupPrice(com.broadleafcommerce.cart.client.domain.Cart cart,
String fulfillmentGroupId,
OverridePriceRequest overridePrice,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Override the total fulfillment price on the fulfillment group.
|
com.broadleafcommerce.cart.client.domain.Cart overrideCartItemPrice(com.broadleafcommerce.cart.client.domain.Cart cart, String cartItemId, OverridePriceRequest overridePrice, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The id of the cart on which to perform the operation.cartItemId
- The id of the cart item on which to perform the operation.overridePrice
- The override price to set as the unit price on the cart item.allowPriceCart
- Whether to allow the cart to be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.com.broadleafcommerce.cart.client.domain.Cart overrideFulfillmentGroupPrice(com.broadleafcommerce.cart.client.domain.Cart cart, String fulfillmentGroupId, OverridePriceRequest overridePrice, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The id of the cart on which to perform the operation.fulfillmentGroupId
- The id of the fulfillment group on which to perform the operation.overridePrice
- The override price to set as the total fulfillment price.allowPriceCart
- Whether to allow the cart to be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.@Deprecated com.broadleafcommerce.cart.client.domain.Cart cloneCsrCartFromInProcess(@Nullable com.broadleafcommerce.cart.client.domain.Cart csrCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cloneCsrCartFromInProcess(Cart, Cart, ContextInfo)
csrCart
- The CSR-owned cart which will be replaced by the cloned cartcontextInfo
- Context information around sandbox and multitenant state.com.broadleafcommerce.cart.client.domain.Cart cloneCsrCartFromInProcess(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cartToClone, @Nullable com.broadleafcommerce.cart.client.domain.Cart csrCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cartToClone
- the in-process cart to clonecsrCart
- the CSR-owned cart which will be replaced by the cloned cartcontextInfo
- Context information around sandbox and multitenant state.void cancelCSRCart(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart csrCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
csrCart
- the cart to cancelcontextInfo
- the contxt infocom.broadleafcommerce.cart.client.domain.Cart cloneCartIntoStatus(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.cart.client.domain.enums.CartStatus status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The original cart which will be clonedstatus
- The new status for the cloned cartcontextInfo
- Context information around sandbox and multitenant state.Copyright © 2021. All rights reserved.