com.elasticpath.service.shoppingcart.impl
Class AbstractCheckoutEventHandlerImpl
java.lang.Object
com.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.shoppingcart.impl.AbstractCheckoutEventHandlerImpl
- All Implemented Interfaces:
- EpService, CheckoutEventHandler
- Direct Known Subclasses:
- NullCheckoutEventHandlerImpl
public abstract class AbstractCheckoutEventHandlerImpl
- extends AbstractEpServiceImpl
- implements CheckoutEventHandler
Abstract implementation of a CheckoutEventHandler. This serves as a convenience
class so that subclasses can only implement the events of interest.
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCheckoutEventHandlerImpl
public AbstractCheckoutEventHandlerImpl()
postCheckout
public void postCheckout(ShoppingCart shoppingCart,
OrderPayment orderPayment,
Order completedOrder)
- This event occurs after a checkout process has completed.
- Specified by:
postCheckout in interface CheckoutEventHandler
- Parameters:
shoppingCart - the shopping cart being checked outorderPayment - information about the method of paymentcompletedOrder - the order object resulting from the checkout
preCheckout
public void preCheckout(ShoppingCart shoppingCart,
OrderPayment orderPayment)
- This event occurs before any action is taken as part of the checkout process.
- Specified by:
preCheckout in interface CheckoutEventHandler
- Parameters:
shoppingCart - the shopping cart being checked outorderPayment - information about the method of payment
preCheckoutOrderPersist
public void preCheckoutOrderPersist(ShoppingCart shoppingCart,
OrderPayment orderPayment,
Order completedOrder)
- This event occurs after a checkout has been processed but before the order has been persisted.
This event occurs between preCheckout and postCheckout.
- Specified by:
preCheckoutOrderPersist in interface CheckoutEventHandler
- Parameters:
shoppingCart - the shopping cart being checked outorderPayment - information about the method of paymentcompletedOrder - the order object resulting from the checkout