@Service(value="blMergeCartService") public class MergeCartServiceImpl extends Object implements MergeCartService
| Modifier and Type | Field and Description |
|---|---|
protected MergeCartServiceExtensionManager |
extensionManager |
protected FulfillmentGroupService |
fulfillmentGroupService |
protected OrderItemService |
orderItemService |
protected OrderService |
orderService |
| Constructor and Description |
|---|
MergeCartServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkOtherValidity(OrderItem orderItem)
By default, Broadleaf does not provide additional validity checks.
|
MergeCartResponse |
mergeCart(OrderCustomer orderCustomer,
Order anonymousCart)
Delegates to mergeCart(Customer, Order, boolean) with priceOrder set to true
Merges the anonymous cart with the customer's current cart, taking into consideration the active
status of the SKUs to merge.
|
MergeCartResponse |
mergeCart(OrderCustomer orderCustomer,
Order anonymousCart,
boolean priceOrder)
Merges the anonymous cart with the customer's current cart, taking into consideration the active
status of the SKUs to merge.
|
ReconstructCartResponse |
reconstructCart(OrderCustomer orderCustomer)
Delegates to reconstructCart(Customer, boolean) with priceOrder set to true
Reconstruct the cart using previous stored state taking into
consideration sku activation
|
ReconstructCartResponse |
reconstructCart(OrderCustomer orderCustomer,
boolean priceOrder)
Reconstruct the cart using previous stored state taking into
consideration sku activation
|
protected void |
setNewCartOwnership(Order cart,
OrderCustomer orderCustomer) |
protected void |
setSavedCartAttributes(Order cart) |
protected OrderService orderService
protected OrderItemService orderItemService
protected FulfillmentGroupService fulfillmentGroupService
protected MergeCartServiceExtensionManager extensionManager
public MergeCartResponse mergeCart(OrderCustomer orderCustomer, Order anonymousCart) throws PricingException, RemoveFromCartException
MergeCartServicemergeCart in interface MergeCartServicePricingExceptionRemoveFromCartExceptionpublic ReconstructCartResponse reconstructCart(OrderCustomer orderCustomer) throws PricingException, RemoveFromCartException
MergeCartServicereconstructCart in interface MergeCartServicePricingExceptionRemoveFromCartExceptionpublic MergeCartResponse mergeCart(OrderCustomer orderCustomer, Order anonymousCart, boolean priceOrder) throws PricingException, RemoveFromCartException
MergeCartServicemergeCart in interface MergeCartServicepriceOrder - whether or not to price the orderPricingExceptionRemoveFromCartExceptionpublic ReconstructCartResponse reconstructCart(OrderCustomer orderCustomer, boolean priceOrder) throws PricingException, RemoveFromCartException
MergeCartServicereconstructCart in interface MergeCartServiceRemoveFromCartExceptionPricingExceptionprotected void setSavedCartAttributes(Order cart)
protected void setNewCartOwnership(Order cart, OrderCustomer orderCustomer)
protected boolean checkOtherValidity(OrderItem orderItem)
orderItem - Copyright © 2017. All rights reserved.