Class UPSShippingProcessor
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.core.BaseBusinessProcessor
com.softslate.commerce.businessobjects.shipping.BaseShippingProcessor
com.softslate.commerce.businessobjects.shipping.UPSShippingProcessor
- All Implemented Interfaces:
BusinessObject
,BusinessProcessor
,ShippingProcessor
Connects to the UPS online server for live shipping rates.
UPSShippingProcessor
is an implementation of the
ShippingProcessor
interface for the application.
- Author:
- Jason McWilliams, David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(package private) static org.apache.commons.logging.Log
boolean
boolean
int
boolean
Fields inherited from class com.softslate.commerce.businessobjects.shipping.BaseShippingProcessor
currentDropShipperID, dropShipperIDs, dropShippers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateShipmentPackageDimensionsNode
(Document document2, OrderShippingRule osr) createShipmentPackageNode
(Document document2, OrderShippingRule osr) createShipmentPackageWeightNode
(Document document2, OrderShippingRule osr) createShipmentShipFromNode
(Document document2) createShipmentShipperNode
(Document document2) createShipmentShipToNode
(Document document2) doEstimatedDeliveryDate
(String deliveryDays) doGlobalExtraCharge
(Collection mergedRates) formatRates
(String xmlString) getRatesFromXml
(String xml) boolean
isInCommaSeparatedString
(String value, String commaSeparatedString) int
void
void
Methods inherited from class com.softslate.commerce.businessobjects.shipping.BaseShippingProcessor
doEstimatedDeliveryDate, doEstimatedDeliveryDateWithShipDateToday, findPackageWeight, formatDeliveryDate, getAvailableOptions, getShippingOption, isBlackedOutHoliday, isPackageOkToCreate, loadShippingOptions, mergeRates, orderHasGiftCertificatesOnly, processShipping, pushPastWeekendsAndHolidays, retrieveDropShippersFromOrder, setAvailableOptions, setShippingOption, updateOrderDeliveryAddressIfPickUp, updateOrderWithOption, updateOrderWithOptionPrice, updateTotalsAndStatuses, updateTotalsAndStatusesInDatabase, verifyOption
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.shipping.ShippingProcessor
loadShippingOptions, processShipping
-
Field Details
-
log
static org.apache.commons.logging.Log log -
totalShipmentWeight
-
UPS_Url
-
UPS_accessLicenseNumber
-
UPS_userId
-
UPS_password
-
UPS_requestAction
-
UPS_requestOption
-
UPS_pickupTypeCode
-
UPS_customerClassificationCode
-
UPS_shipperName
-
UPS_shipperAttentionName
-
UPS_shipperTaxIdNumber
-
UPS_shipperPhoneNumber
-
UPS_shipperFaxNumber
-
UPS_shipperNumber
-
UPS_shipperCity
-
UPS_shipperStateCode
-
UPS_shipperPostalCode
-
UPS_shipperCountryCode
-
UPS_residentialAddressIndicator
public int UPS_residentialAddressIndicator -
UPS_shipFromCity
-
UPS_shipFromStateCode
-
UPS_shipFromPostalCode
-
UPS_shipFromCountryCode
-
UPS_unitOfMeasurementCode
-
UPS_validServiceCodes
-
UPS_packageCodeType
-
UPS_packageUseDimensions
public boolean UPS_packageUseDimensions -
UPS_packageDimensionsUomCode
-
UPS_packageDimensionsLength
-
UPS_packageDimensionsHeight
-
UPS_packageDimensionsWidth
-
UPS_packageOversizePackage
-
UPS_rateInformationNegotiatedRatesIndicator
public boolean UPS_rateInformationNegotiatedRatesIndicator -
UPS_insuredValueCurrencyCode
-
UPS_useInsuredValue
public boolean UPS_useInsuredValue -
UPS_extraCharge
-
UPS_extraWeight
-
UPS_maxPackageWeight
-
UPS_MethodsMap
-
-
Constructor Details
-
UPSShippingProcessor
public UPSShippingProcessor()
-
-
Method Details
-
loadShippingOptions
- Specified by:
loadShippingOptions
in classBaseShippingProcessor
- Throws:
Exception
-
setUPSSettings
- Throws:
Exception
-
setUpsMethodsMap
- Throws:
Exception
-
processShipping
- Specified by:
processShipping
in classBaseShippingProcessor
- Throws:
Exception
-
getXmlFromUps
- Throws:
Exception
-
createUPSCall
- Throws:
Exception
-
createAccessRequest
-
createRatingServiceSelectionRequest
-
createShipmentShipperNode
-
createShipmentShipToNode
-
createShipmentShipFromNode
-
createShipmentPackageNode
-
createShipmentPackageDimensionsNode
-
createShipmentPackageWeightNode
-
formatRates
- Throws:
Exception
-
getRatesFromXml
- Throws:
Exception
-
getResponseStatusFromXml
- Throws:
Exception
-
isInCommaSeparatedString
-
doEstimatedDeliveryDate
-
doGlobalExtraCharge
-