Class QboOrderProcessorImpl
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.importexport.QboOrderProcessorImpl
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,QboOrderProcessor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addBillingAddress
(Order order, Map<String, Object> salesReceipt) protected void
addCustomerRef
(Order order, Map<String, Object> salesReceipt) protected void
addDepositAccount
(Order order, Map<String, Object> salesReceipt) protected void
addGlobalDiscountLine
(Order order, List<Map<String, Object>> lines, Map<String, Object> qboPreferences) protected void
protected void
addPaymentInfo
(Order order, Map<String, Object> salesReceipt) protected void
addShippingAddress
(Order order, Map<String, Object> salesReceipt) protected void
protected void
addShippingMethod
(Order order, Map<String, Object> salesReceipt) protected void
addTaxDetail
(Order order, Map<String, Object> salesReceipt, List<Map<String, Object>> lines, Map<String, Object> qboPreferences) checkForDuplicate
(Order order) protected String
parseForErrors
(Map responseMap) populateItemIdCacheForOrder
(Order order) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
formatDateTime, formatPrice, getAppComponents, getAppSettings, getAttributeIDs, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getProductIDs, getSettings, getUser, initialize, isProcessorClassActive, loadMatchingSkus, parseDateTime, parseResponseData, prepareRequestData, sendHTTPGet, sendHTTPPost, sendHTTPPost, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, updateOrderTotals, updateOrderTotals, updateOrderTotals, utils
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
-
Field Details
-
log
static org.apache.commons.logging.Log log
-
-
Constructor Details
-
QboOrderProcessorImpl
public QboOrderProcessorImpl()
-
-
Method Details
-
retrieveSalesReceiptForOrder
- Specified by:
retrieveSalesReceiptForOrder
in interfaceQboOrderProcessor
- Throws:
Exception
-
syncOrder
- Specified by:
syncOrder
in interfaceQboOrderProcessor
- Throws:
Exception
-
checkForDuplicate
- Throws:
Exception
-
populateItemIdCacheForOrder
- Throws:
Exception
-
formatSalesReceipt
protected Map<String,Object> formatSalesReceipt(Order order, Map<String, String> itemIdCache, Map<String, throws ExceptionObject> qboPreferences) - Throws:
Exception
-
addBillingAddress
-
addShippingAddress
-
addShippingMethod
-
addCustomerRef
- Throws:
Exception
-
addLineItem
-
addShippingLineItem
protected void addShippingLineItem(Order order, List<Map<String, Object>> lines, Map<String, throws ExceptionObject> qboPreferences) - Throws:
Exception
-
addGlobalDiscountLine
protected void addGlobalDiscountLine(Order order, List<Map<String, Object>> lines, Map<String, throws ExceptionObject> qboPreferences) - Throws:
Exception
-
addTaxDetail
protected void addTaxDetail(Order order, Map<String, Object> salesReceipt, List<Map<String, throws ExceptionObject>> lines, Map<String, Object> qboPreferences) - Throws:
Exception
-
addPaymentInfo
- Throws:
Exception
-
addDepositAccount
- Throws:
Exception
-
parseForErrors
-
escape
-