org.broadleafcommerce.core.web.controller.checkout
Class DefaultCODExtensionHandler

java.lang.Object
  extended by org.broadleafcommerce.common.extension.AbstractExtensionHandler
      extended by org.broadleafcommerce.core.web.controller.checkout.DefaultCODExtensionHandler
All Implemented Interfaces:
ExtensionHandler, PaymentInfoServiceExtensionHandler

@Service(value="blDefaultCODExtensionHandler")
public class DefaultCODExtensionHandler
extends AbstractExtensionHandler
implements PaymentInfoServiceExtensionHandler

Extension handler to add a Collect On Delivery(COD) PaymentInfo to the payments map and to the order

Author:
Joshua Skorton (jskorton)

Field Summary
protected  CODPaymentInfoFactoryImpl codPaymentInfoFactory
           
protected  PaymentInfoServiceExtensionManager extensionManager
           
 
Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priority
 
Constructor Summary
DefaultCODExtensionHandler()
           
 
Method Summary
 ExtensionResultStatusType addAdditionalPaymentInfos(Map<PaymentInfo,Referenced> payments, List<PaymentInfoType> paymentInfoTypeList, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, BillingInfoForm billingForm, org.springframework.validation.BindingResult result)
          Adds a COD PaymentInfo to the payments map and the order.
protected  ExtensionResultStatusType addToPaymentsMap(Map<PaymentInfo,Referenced> payments)
          Adds a COD PaymentInfo to the payments map and the order.
 void init()
           
 
Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
 

Field Detail

extensionManager

protected PaymentInfoServiceExtensionManager extensionManager

codPaymentInfoFactory

protected CODPaymentInfoFactoryImpl codPaymentInfoFactory
Constructor Detail

DefaultCODExtensionHandler

public DefaultCODExtensionHandler()
Method Detail

init

@PostConstruct
public void init()

addAdditionalPaymentInfos

public ExtensionResultStatusType addAdditionalPaymentInfos(Map<PaymentInfo,Referenced> payments,
                                                           List<PaymentInfoType> paymentInfoTypeList,
                                                           javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response,
                                                           org.springframework.ui.Model model,
                                                           BillingInfoForm billingForm,
                                                           org.springframework.validation.BindingResult result)
Adds a COD PaymentInfo to the payments map and the order. The paymentInfoTypeList is checked to confirm that the COD PaymentInfo should be added.

Specified by:
addAdditionalPaymentInfos in interface PaymentInfoServiceExtensionHandler
Parameters:
payments -
paymentInfoTypeList - - Checks this list to decide if COD PaymentInfos should be added to the payments map.
request -
response -
model -
billingForm -
result -
Returns:

addToPaymentsMap

protected ExtensionResultStatusType addToPaymentsMap(Map<PaymentInfo,Referenced> payments)
Adds a COD PaymentInfo to the payments map and the order.

Parameters:
payments -
Returns:


Copyright © 2013. All Rights Reserved.