Class QboQueryProcessorImpl
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.importexport.QboQueryProcessorImpl
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,QboQueryProcessor
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInQbo
(Map<String, Object> qboObject, String nameOfObject) createQboCustomer
(Order order) createQboCustomer
(String defaultCustomerName) createQboItem
(String defaultItemName, boolean taxable) createQboPaymentMethod
(String paymentMethodName) protected String
parseForErrors
(Map responseMap) queryQboForCustomerIdAndDisplayNameByPrimaryEmailAddr
(String customerUserName) queryQboForCustomerIdByDisplayName
(String customerDisplayName) queryQboForDepositAccountIdByName
(String depositAccountName) queryQboForItemId
(String itemName) queryQboForSalesReceiptByDocNumber
(String docNumber) queryQboForSalesReceiptIdByDocNumber
(String docNumber) queryQboForTaxCodeId
(String taxCodeName) 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 -
mapper
private static org.codehaus.jackson.map.ObjectMapper mapper
-
-
Constructor Details
-
QboQueryProcessorImpl
public QboQueryProcessorImpl()
-
-
Method Details
-
queryQboForSalesReceiptByDocNumber
- Specified by:
queryQboForSalesReceiptByDocNumber
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForSalesReceiptIdByDocNumber
- Specified by:
queryQboForSalesReceiptIdByDocNumber
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForPreferences
- Specified by:
queryQboForPreferences
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForCustomerIdAndDisplayNameByPrimaryEmailAddr
public Map<String,String> queryQboForCustomerIdAndDisplayNameByPrimaryEmailAddr(String customerUserName) throws Exception - Specified by:
queryQboForCustomerIdAndDisplayNameByPrimaryEmailAddr
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForAccountIdByName
- Specified by:
queryQboForAccountIdByName
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForCustomerIdByDisplayName
public Map<String,String> queryQboForCustomerIdByDisplayName(String customerDisplayName) throws Exception - Specified by:
queryQboForCustomerIdByDisplayName
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForItemId
- Specified by:
queryQboForItemId
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForTaxCodeId
- Specified by:
queryQboForTaxCodeId
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForPaymentMethodId
- Specified by:
queryQboForPaymentMethodId
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQboForDepositAccountIdByName
- Specified by:
queryQboForDepositAccountIdByName
in interfaceQboQueryProcessor
- Throws:
Exception
-
queryQbo
- Throws:
Exception
-
createQboItem
- Specified by:
createQboItem
in interfaceQboQueryProcessor
- Throws:
Exception
-
createQboItem
- Specified by:
createQboItem
in interfaceQboQueryProcessor
- Throws:
Exception
-
createQboCustomer
- Specified by:
createQboCustomer
in interfaceQboQueryProcessor
- Throws:
Exception
-
createQboCustomer
- Specified by:
createQboCustomer
in interfaceQboQueryProcessor
- Throws:
Exception
-
createQboPaymentMethod
- Specified by:
createQboPaymentMethod
in interfaceQboQueryProcessor
- Throws:
Exception
-
createInQbo
public Map<String,Object> createInQbo(Map<String, Object> qboObject, String nameOfObject) throws Exception- Specified by:
createInQbo
in interfaceQboQueryProcessor
- Throws:
Exception
-
parseForErrors
-
escape
-