public abstract class AbstractUpdateCartServiceExtensionHandler extends AbstractExtensionHandler implements UpdateCartServiceExtensionHandler
enabled, priority
Constructor and Description |
---|
AbstractUpdateCartServiceExtensionHandler() |
Modifier and Type | Method and Description |
---|---|
ExtensionResultStatusType |
updateAndValidateCart(Order cart,
ExtensionResultHolder resultHolder)
Throws an exception if cart is invalid.
|
ExtensionResultStatusType |
validateAddToCartItem(OrderItemRequestDTO itemRequest,
Order cart)
Validates the item request just before it actually goes through the add or update workflow to get it into the cart
|
getPriority, isEnabled, setEnabled, setPriority
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, isEnabled
public AbstractUpdateCartServiceExtensionHandler()
public ExtensionResultStatusType updateAndValidateCart(Order cart, ExtensionResultHolder resultHolder)
updateAndValidateCart
in interface UpdateCartServiceExtensionHandler
cart
- resultHolder
- public ExtensionResultStatusType validateAddToCartItem(OrderItemRequestDTO itemRequest, Order cart) throws IllegalArgumentException
UpdateCartServiceExtensionHandler
validateAddToCartItem
in interface UpdateCartServiceExtensionHandler
IllegalArgumentException
Copyright © 2019. All rights reserved.