com.softslate.commerce.businessobjects.payment.google.merchantcalculation
Class MerchantCalculationCallbackProcessorImpl
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.payment.google.merchantcalculation.MerchantCalculationCallbackProcessorImpl
- All Implemented Interfaces:
- com.google.checkout.merchantcalculation.MerchantCalculationCallbackProcessor, BusinessObject, BusinessProcessor
public class MerchantCalculationCallbackProcessorImpl
- extends BaseBusinessProcessor
- implements com.google.checkout.merchantcalculation.MerchantCalculationCallbackProcessor
Field Summary |
(package private) static org.apache.commons.logging.Log |
log
|
(package private) com.google.checkout.MerchantConstants |
merchantConstants
|
Method Summary |
private java.util.Map |
findMatchingMethod(java.lang.String method,
java.util.Collection shippingOptions)
|
com.google.checkout.MerchantConstants |
getMerchantConstants()
|
private java.util.Collection |
loadShippingOptions(int orderID)
|
private void |
populateAddress(com.google.checkout.merchantcalculation.AnonymousAddress address)
|
private void |
populateOrder(int orderID)
|
com.google.checkout.merchantcalculation.MerchantCalculationResults |
process(com.google.checkout.merchantcalculation.MerchantCalculationCallback callback)
|
private void |
resetAddress()
|
void |
setMerchantConstants(com.google.checkout.MerchantConstants merchantConstants)
|
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor |
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getProductIDs, getSettings, getUser, initialize, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setSettings, setUser, utils |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
static org.apache.commons.logging.Log log
merchantConstants
com.google.checkout.MerchantConstants merchantConstants
MerchantCalculationCallbackProcessorImpl
public MerchantCalculationCallbackProcessorImpl()
setMerchantConstants
public void setMerchantConstants(com.google.checkout.MerchantConstants merchantConstants)
getMerchantConstants
public com.google.checkout.MerchantConstants getMerchantConstants()
process
public com.google.checkout.merchantcalculation.MerchantCalculationResults process(com.google.checkout.merchantcalculation.MerchantCalculationCallback callback)
throws com.google.checkout.CheckoutException
- Specified by:
process
in interface com.google.checkout.merchantcalculation.MerchantCalculationCallbackProcessor
- Throws:
com.google.checkout.CheckoutException
resetAddress
private void resetAddress()
populateAddress
private void populateAddress(com.google.checkout.merchantcalculation.AnonymousAddress address)
populateOrder
private void populateOrder(int orderID)
throws java.lang.Exception
- Throws:
java.lang.Exception
findMatchingMethod
private java.util.Map findMatchingMethod(java.lang.String method,
java.util.Collection shippingOptions)
loadShippingOptions
private java.util.Collection loadShippingOptions(int orderID)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright ? SoftSlate, LLC 2003?2005