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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBillingAddress(Order order, Map<String, Object> salesReceipt) protected voidaddCustomerRef(Order order, Map<String, Object> salesReceipt) protected voidaddDepositAccount(Order order, Map<String, Object> salesReceipt) protected voidaddGlobalDiscountLine(Order order, List<Map<String, Object>> lines, Map<String, Object> qboPreferences) protected voidprotected voidaddPaymentInfo(Order order, Map<String, Object> salesReceipt) protected voidaddShippingAddress(Order order, Map<String, Object> salesReceipt) protected voidprotected voidaddShippingMethod(Order order, Map<String, Object> salesReceipt) protected voidaddTaxDetail(Order order, Map<String, Object> salesReceipt, List<Map<String, Object>> lines, Map<String, Object> qboPreferences) checkForDuplicate(Order order) protected StringparseForErrors(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, utilsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initializeMethods 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:
retrieveSalesReceiptForOrderin interfaceQboOrderProcessor- Throws:
Exception
-
syncOrder
- Specified by:
syncOrderin 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
-