public interface CartOperationService
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.Cart |
addAttributeToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
AddAttributeRequest addAttributeRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Adds an attribute to the provided
Cart . |
AddCodeToCartResponse |
addCodeToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
AddCodeRequest codeRequest,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
addItemToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
AddItemRequest addItemRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Adds a single item to the provided
Cart based on the provided AddItemRequest . |
BulkAddToCartResponse |
addManyItemsToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
Collection<AddItemRequest> addItemRequests,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Adds one or more items to the provided
Cart . |
AddCodeToCartResponse |
addOfferCodeToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
AddCodeRequest addOfferCodeRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Adds an offer code to the provided
Cart . |
com.broadleafcommerce.cart.client.domain.Cart |
addPaymentToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
AddPaymentRequest addPaymentRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Add a
Payment to the cart based on the AddPaymentRequest payload. |
com.broadleafcommerce.cart.client.domain.Cart |
addToCart(AddItemRequest addItemRequest,
com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
use
addItemToCart(Cart, AddItemRequest, boolean, ContextInfo) for
updates and createCart(CartCreationRequest, CustomerRef, ContextInfo)
for creates |
BulkAddToCartResponse |
bulkAddToCart(Collection<AddItemRequest> addItemRequests,
com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
boolean shouldPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
createCart(CartCreationRequest cartCreationRequest,
com.broadleafcommerce.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
|
default com.broadleafcommerce.cart.client.domain.Cart |
priceCart(com.broadleafcommerce.cart.client.domain.Cart cart,
boolean saveCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Prices cart, processes free gift offers, and saves cart if
saveCart is true. |
default com.broadleafcommerce.cart.client.domain.Cart |
priceCart(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
since 1.6, in favor of
priceCart(Cart, boolean, ContextInfo) |
com.broadleafcommerce.cart.client.domain.Cart |
priceCart(com.broadleafcommerce.cart.client.domain.Cart cart,
PriceCartRequest priceCartRequest,
boolean saveCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Prices cart, processes free gift offers, and saves cart with the provided
PriceCartRequest if saveCart is true. |
com.broadleafcommerce.cart.client.domain.Cart |
priceCart(com.broadleafcommerce.cart.client.domain.Cart cart,
PriceCartRequest priceCartRequest,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
since 1.6, in favor of
priceCart(Cart, PriceCartRequest, boolean, ContextInfo) |
com.broadleafcommerce.cart.client.domain.Cart |
priceCartWithCatalogPriceUpdates(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Reprice the cart, including applying the latest catalog-based prices for each of its items
|
com.broadleafcommerce.cart.client.domain.Cart |
recalculateTaxesForCart(com.broadleafcommerce.cart.client.domain.Cart cart,
boolean estimated,
boolean actual,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Recalculates the taxes for the provided
Cart . |
com.broadleafcommerce.cart.client.domain.Cart |
removeAttributeFromCart(com.broadleafcommerce.cart.client.domain.Cart cart,
String key,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes an attribute to the provided
Cart . |
com.broadleafcommerce.cart.client.domain.Cart |
removeCartItems(com.broadleafcommerce.cart.client.domain.Cart cart,
Collection<String> cartItemIds,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
removeItemFromCart(com.broadleafcommerce.cart.client.domain.Cart cart,
String cartItemId,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes a single item from the provided
Cart matching the provided cart item ID. |
com.broadleafcommerce.cart.client.domain.Cart |
removeManyItemsFromCart(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart,
Collection<String> cartItemIds,
boolean price,
boolean updateCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes one or more items from the provided
Cart matching the provided cart item IDs. |
default com.broadleafcommerce.cart.client.domain.Cart |
removeManyItemsFromCart(com.broadleafcommerce.cart.client.domain.Cart cart,
Collection<String> cartItemIds,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes one or more items from the provided
Cart matching the provided cart item IDs. |
com.broadleafcommerce.cart.client.domain.Cart |
removeOfferAndCampaignCodesFromCart(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart,
List<String> codes,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes the provided offer and campaign codes from the cart and then updates the cart.
|
com.broadleafcommerce.cart.client.domain.Cart |
removeOfferCodeFromCart(com.broadleafcommerce.cart.client.domain.Cart cart,
String offerCode,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Removes an offer code from the provided
Cart , if it exists. |
com.broadleafcommerce.cart.client.domain.Cart |
removePaymentFromCart(com.broadleafcommerce.cart.client.domain.Cart cart,
String paymentId,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Remove the payment from the
Cart . |
Optional<com.broadleafcommerce.cart.client.domain.Cart> |
retrieveCartByCartId(String cartId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieve the cart for the provided id.
|
Optional<com.broadleafcommerce.cart.client.domain.Cart> |
retrieveCsrCartByCartId(String cartId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
Optional<com.broadleafcommerce.cart.client.domain.Cart> |
retrieveCsrOwnedCartByCustomerIdAndApplicationId(String customerId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
Optional<com.broadleafcommerce.cart.client.domain.Cart> |
retrieveCustomerCartByStatus(String customerId,
String status,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieves a cart with the provided customer ID and status, if it exists
|
Optional<com.broadleafcommerce.cart.client.domain.Cart> |
retrieveInProcessCartByCartId(String cartId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
in favor of
retrieveCartByCartId(String, ContextInfo) |
Optional<com.broadleafcommerce.cart.client.domain.Cart> |
retrieveInProcessCartByCustomerIdAndApplicationId(String customerId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
Optional<com.broadleafcommerce.cart.client.domain.Cart> |
retrieveTestCartByCartId(String cartId,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
in favor of
retrieveCartByCartId(String, ContextInfo) |
com.broadleafcommerce.cart.client.domain.Cart |
updateAsNamedCart(com.broadleafcommerce.cart.client.domain.Cart cart,
String name,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Updates the provided
Cart with the DefaultCartStatuses.NAMED . |
com.broadleafcommerce.cart.client.domain.Cart |
updateCart(com.broadleafcommerce.cart.client.domain.Cart cart,
boolean allowPriceCart,
boolean wasCartModified,
boolean invalidatePrices,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Updates the provided
Cart based on the provided flags. |
com.broadleafcommerce.cart.client.domain.Cart |
updateCartContactInfo(com.broadleafcommerce.cart.client.domain.Cart cart,
ContactInfoRequest contactInfoRequest,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
updateCartItem(com.broadleafcommerce.cart.client.domain.Cart cart,
UpdateItemRequest updateItemRequest,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
updateContactInfoInCart(com.broadleafcommerce.cart.client.domain.Cart cart,
ContactInfoRequest contactInfoRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Updates the contact info for the provided
Cart . |
com.broadleafcommerce.cart.client.domain.Cart |
updateFulfillmentGroup(com.broadleafcommerce.cart.client.domain.Cart cart,
String fulfillmentGroupId,
UpdateFulfillmentGroupRequest fulfillmentGroupRequest,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
updateFulfillmentGroupInCart(com.broadleafcommerce.cart.client.domain.Cart cart,
String referenceNumber,
UpdateFulfillmentGroupRequest updateFulfillmentGroupRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Updates an existing
FulfillmentGroup for the provided Cart . |
com.broadleafcommerce.cart.client.domain.Cart |
updateItemInCart(com.broadleafcommerce.cart.client.domain.Cart cart,
UpdateItemRequest updateItemRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Updates a single item in the provided
Cart based on the provided
UpdateItemRequest . |
com.broadleafcommerce.cart.client.domain.Cart |
updatePayment(com.broadleafcommerce.cart.client.domain.Cart cart,
UpdatePaymentRequest updatePaymentRequest,
boolean allowPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
updatePaymentInCart(com.broadleafcommerce.cart.client.domain.Cart cart,
UpdatePaymentRequest updatePaymentRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Updates an existing
Payment in the cart based on the UpdatePaymentRequest
payload. |
Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCartByCartId(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cartId
- The id of the cart on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCustomerCartByStatus(String customerId, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
customerId
- the customer IDstatus
- the statuscontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart createCart(CartCreationRequest cartCreationRequest, @Nullable com.broadleafcommerce.cart.client.domain.CustomerRef customer, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
for the provided CartCreationRequest
and
CustomerRef
. The CartCreationRequest
must contain
For guest customers, this will create a new guest cart
cartCreationRequest
- the cart creation requestcustomer
- the customercontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart updateCart(com.broadleafcommerce.cart.client.domain.Cart cart, boolean allowPriceCart, boolean wasCartModified, boolean invalidatePrices, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
based on the provided flags. wasCartModified
), this will price and update the cart
when the cart is not already priced (Cart.isPriced()
), regardless of
invalidatePrices
. If the cart was not modified and the cart is already priced, this
does nothing. allowPriceCart
) and if
not already already priced or if prices should be invalidated. cart
- the cart to be updatedallowPriceCart
- whether the cart may be pricedwasCartModified
- whether the cart was actually modified by the callerinvalidatePrices
- whether to invalidate prices on the cart if changes were madecom.broadleafcommerce.cart.client.domain.Cart updateAsNamedCart(com.broadleafcommerce.cart.client.domain.Cart cart, String name, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
with the DefaultCartStatuses.NAMED
. This method is
often used when transferring or creating new carts for a registered customer who already has
an in-progress cart.cart
- the cart to updatename
- the name for the cartcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart addItemToCart(com.broadleafcommerce.cart.client.domain.Cart cart, AddItemRequest addItemRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
based on the provided AddItemRequest
.cart
- the cartaddItemRequest
- the request to add an itemprice
- whether or not to re-price the cartcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart updateItemInCart(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateItemRequest updateItemRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
based on the provided
UpdateItemRequest
.cart
- the cartupdateItemRequest
- the request to update an itemprice
- whether or not to re-price the cartcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart removeItemFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, String cartItemId, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
matching the provided cart item ID.cart
- the cartcartItemId
- the cart item IDprice
- whether or not to re-price the cartcontextInfo
- the context infoBulkAddToCartResponse addManyItemsToCart(com.broadleafcommerce.cart.client.domain.Cart cart, Collection<AddItemRequest> addItemRequests, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
.cart
- the cartaddItemRequests
- the add item requestsprice
- whether or not to re-price the cartcontextInfo
- the context infodefault com.broadleafcommerce.cart.client.domain.Cart removeManyItemsFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, Collection<String> cartItemIds, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
matching the provided cart item IDs.cart
- the cartcartItemIds
- the cart item IDsprice
- whether or not to re-price the cartcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart removeManyItemsFromCart(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, Collection<String> cartItemIds, boolean price, boolean updateCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
matching the provided cart item IDs.cart
- the cartcartItemIds
- the cart item IDsprice
- whether or not to re-price the cartupdateCart
- whether or not to update Cart
pricing and save the cart after the
removalcontextInfo
- the context infoAddCodeToCartResponse addOfferCodeToCart(com.broadleafcommerce.cart.client.domain.Cart cart, AddCodeRequest addOfferCodeRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
.
CampaignRef
cart
- the cartaddOfferCodeRequest
- the add offer code requestprice
- whether or not to re-price the cartcontextInfo
- the context infoAddCodeException
- if the code cannot be added for any reason. This is usually because
the code is invalid or has already been used the maximum number of times.
AddCodeException.getReasonType()
will typically match the code's
CodeUsabilityInfo.getCodeUsabilityType()
and can be used on the frontend to
determine messaging.com.broadleafcommerce.cart.client.domain.Cart removeOfferCodeFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, String offerCode, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
, if it exists.
CampaignRef
cart
- cart cartofferCode
- the offer code to removeprice
- whether or not to re-price the cartcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart removeOfferAndCampaignCodesFromCart(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, List<String> codes, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The id of the cart on which to perform the operation.codes
- The codes to remove from the cart.allowPriceCart
- Whether to allow the cart to be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.default com.broadleafcommerce.cart.client.domain.Cart priceCart(com.broadleafcommerce.cart.client.domain.Cart cart, boolean saveCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
saveCart
is true.cart
- the cartsaveCart
- determines whether to save cart after pricingcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart priceCart(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable PriceCartRequest priceCartRequest, boolean saveCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
PriceCartRequest
if saveCart
is true.cart
- the cartpriceCartRequest
- the price cart requestsaveCart
- determines whether to save cart after pricingcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart priceCartWithCatalogPriceUpdates(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart on which to perform the operation.contextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart addAttributeToCart(com.broadleafcommerce.cart.client.domain.Cart cart, AddAttributeRequest addAttributeRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
.cart
- the cartaddAttributeRequest
- the add attribute requestprice
- whether to allow the cart to be priced after updatingcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart removeAttributeFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, String key, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
.cart
- the cartkey
- the attribute keyprice
- whether to allow the cart to be priced after updatingcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart updateContactInfoInCart(com.broadleafcommerce.cart.client.domain.Cart cart, ContactInfoRequest contactInfoRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
.cart
- the cartcontactInfoRequest
- the contact info requestprice
- whether to allow the cart to be priced after updatingcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart updateFulfillmentGroupInCart(com.broadleafcommerce.cart.client.domain.Cart cart, String referenceNumber, UpdateFulfillmentGroupRequest updateFulfillmentGroupRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
FulfillmentGroup
for the provided Cart
.cart
- the cartreferenceNumber
- the reference number of the fulfillment group to updateupdateFulfillmentGroupRequest
- the fulfillment group update requestprice
- whether to allow the cart to be priced after updatingcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart addPaymentToCart(com.broadleafcommerce.cart.client.domain.Cart cart, AddPaymentRequest addPaymentRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Payment
to the cart based on the AddPaymentRequest
payload.cart
- the cartaddPaymentRequest
- the add payment requestprice
- whether to allow the cart to be priced after updatingcontextInfo
- the context infoInvalidAddPaymentRequestException
- if the add payment request produced an invalid
paymentcom.broadleafcommerce.cart.client.domain.Cart updatePaymentInCart(com.broadleafcommerce.cart.client.domain.Cart cart, UpdatePaymentRequest updatePaymentRequest, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Payment
in the cart based on the UpdatePaymentRequest
payload.cart
- the cartupdatePaymentRequest
- the update payment requestprice
- whether to allow the cart to be priced after updatingcontextInfo
- the context infoInvalidUpdatePaymentRequestException
- if the update payment request produced an
invalid paymentcom.broadleafcommerce.cart.client.domain.Cart removePaymentFromCart(com.broadleafcommerce.cart.client.domain.Cart cart, String paymentId, boolean price, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
.cart
- the cartpaymentId
- the payment idprice
- whether to allow the cart to be priced after updatingcontextInfo
- the context infocom.broadleafcommerce.cart.client.domain.Cart recalculateTaxesForCart(com.broadleafcommerce.cart.client.domain.Cart cart, boolean estimated, boolean actual, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Cart
.cart
- the cartestimated
- whether to calculate estimated taxesactual
- whether to calculate actual taxescontextInfo
- the context info@Deprecated default com.broadleafcommerce.cart.client.domain.Cart priceCart(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
priceCart(Cart, boolean, ContextInfo)
cart
- the cartcontextInfo
- the context info@Deprecated com.broadleafcommerce.cart.client.domain.Cart priceCart(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable PriceCartRequest priceCartRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
priceCart(Cart, PriceCartRequest, boolean, ContextInfo)
PriceCartRequest
.cart
- the cartpriceCartRequest
- the price cart requestcontextInfo
- the context info@Deprecated Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveInProcessCartByCustomerIdAndApplicationId(String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
retrieveCustomerCartByStatus(String, String, ContextInfo)
customerId
- The id of the customer for which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.@Deprecated Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveInProcessCartByCartId(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
retrieveCartByCartId(String, ContextInfo)
cartId
- The id of the cart on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.@Deprecated Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCsrCartByCartId(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
retrieveCustomerCartByStatus(String, String, ContextInfo)
cartId
- The id of the cart on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.@Deprecated Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveTestCartByCartId(String cartId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
retrieveCartByCartId(String, ContextInfo)
cartId
- The id of the cart on which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.@Deprecated Optional<com.broadleafcommerce.cart.client.domain.Cart> retrieveCsrOwnedCartByCustomerIdAndApplicationId(String customerId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
retrieveCustomerCartByStatus(String, String, ContextInfo)
customerId
- The id of the customer for which to perform the operation.contextInfo
- Context information around sandbox and multitenant state.@Deprecated com.broadleafcommerce.cart.client.domain.Cart updateCartContactInfo(com.broadleafcommerce.cart.client.domain.Cart cart, ContactInfoRequest contactInfoRequest, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
updateContactInfoInCart(Cart, ContactInfoRequest, boolean, ContextInfo)
cart
- The cart that hold the contact info.contactInfoRequest
- The contact info that is to be added to the cart.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 addToCart(AddItemRequest addItemRequest, @Nullable com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.cart.client.domain.CustomerRef customerRef, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
addItemToCart(Cart, AddItemRequest, boolean, ContextInfo)
for
updates and createCart(CartCreationRequest, CustomerRef, ContextInfo)
for createsaddItemRequest
- Add an item to the customer's current cart based on the provided
untrusted information.cart
- The cart to be added to. If not provided, then a new cart will be produced.customerRef
- The cart's owning customer. Can be null if anonymous.allowPriceCart
- Whether to allow the cart to be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.CartItemValidationException
- Thrown if the cart item is misconfigured based on the
related product's included products and product options.@Deprecated BulkAddToCartResponse bulkAddToCart(Collection<AddItemRequest> addItemRequests, @Nullable com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.cart.client.domain.CustomerRef customerRef, boolean shouldPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
addManyItemsToCart(Cart, Collection, boolean, ContextInfo)
addItemRequests
- Add a list of items to the customer's current cart based on the
provided untrusted information.cart
- The id of the cart to be added to. If not provided, then a new cart will be
produced.customerRef
- The cart's owning customer. Can be null if anonymous.shouldPriceCart
- Whether the cart should be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.CartItemValidationException
- Thrown if the cart item is misconfigured based on the
related product's included products and product options.@Deprecated com.broadleafcommerce.cart.client.domain.Cart updateCartItem(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateItemRequest updateItemRequest, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
updateItemInCart(Cart, UpdateItemRequest, boolean, ContextInfo)
cart
- The id of the cart on which to perform the operation.updateItemRequest
- The cart item to use to update the details of the current cart item.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 removeCartItems(com.broadleafcommerce.cart.client.domain.Cart cart, Collection<String> cartItemIds, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
removeManyItemsFromCart(Cart, Collection, boolean, ContextInfo)
cart
- The id of the cart on which to perform the operation.cartItemIds
- The ids of the cart items on which to perform the operation.allowPriceCart
- Whether to allow the cart to be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.@Deprecated AddCodeToCartResponse addCodeToCart(com.broadleafcommerce.cart.client.domain.Cart cart, AddCodeRequest codeRequest, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
addOfferCodeToCart(Cart, AddCodeRequest, boolean, ContextInfo)
CampaignRef
cart
- The id of the cart on which to perform the operation.codeRequest
- The payload of the request to add a code to the cart.allowPriceCart
- Whether to allow the cart to be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.AddCodeException
- if the code cannot be added for any reason. This is usually because
the code is invalid or has already been used the maximum number of times.
AddCodeException.getReasonType()
will typically match the code's
CodeUsabilityInfo.getCodeUsabilityType()
and can be used on the frontend to
determine messaging.@Deprecated com.broadleafcommerce.cart.client.domain.Cart updateFulfillmentGroup(com.broadleafcommerce.cart.client.domain.Cart cart, String fulfillmentGroupId, UpdateFulfillmentGroupRequest fulfillmentGroupRequest, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
updateFulfillmentGroupInCart(Cart, String, UpdateFulfillmentGroupRequest, boolean, 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.fulfillmentGroupRequest
- The fulfillment group updates to be applied to the existing
fulfillment group.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 updatePayment(com.broadleafcommerce.cart.client.domain.Cart cart, UpdatePaymentRequest updatePaymentRequest, boolean allowPriceCart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
updatePaymentInCart(Cart, UpdatePaymentRequest, boolean, ContextInfo)
Payment
on the cart identified by the paymentId & based on the
UpdatePaymentRequest
payload.cart
- The cart that should include the new payment.updatePaymentRequest
- The payload of the payment to update.allowPriceCart
- Whether to allow the cart to be priced after updatingcontextInfo
- Context information around sandbox and multitenant state.Copyright © 2021. All rights reserved.