atg.integrations.taxware
Class TaxWareVerifyZipInfo

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.integrations.taxware.TaxWareVerifyZipInfo
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class TaxWareVerifyZipInfo
extends GenericService

This orderprocessing object verifies zipcode.

See Also:
VeraZipable, VeraZipOrderImpl

Field Summary
static java.lang.String CLASS_VERSION
           
protected  java.lang.String mErrorMessage
           
protected  boolean mStopProcessingOnError
          Stop processing on tax calculation error? Defaults to true.
 
Fields inherited from class atg.nucleus.GenericService
SERVICE_INFO_KEY
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
TaxWareVerifyZipInfo()
          Constructor.
 
Method Summary
 java.lang.String getErrorMessage()
          Deprecated. This method is not thread safe. Inspect the AddressVerificationInfo for error messages
 boolean getStopProcessingOnError()
          Get whether processOrder will return false if an exception occurs.
protected  void modifyRequest(AddressVerificationInfo pOrder, ZipRequest request, boolean isBilling)
          Modifies the request before submitting it to TaxWare.
protected  boolean setErrorAndGetReturnValue(java.lang.String strError, java.lang.String address, ZipRequest zrequest)
          Sets the zip error string associated with the order, and returns the status for processOrder.
 void setErrorMessage(java.lang.String pErrorMessage)
          Deprecated. This method is not thread safe. Inspect the AddressVerificationInfo for error messages
 void setStopProcessingOnError(boolean pStopProcessingOnError)
          Set whether processOrder will return false if an exception occurs
protected static boolean shouldReverify(ZipRequest zipRequest, ZipResult zipResult)
          Returns whether or not we need to reverify shipTo info.
 boolean verifyZip(AddressVerificationInfo pOrder)
          This method gets the shipping cost from the ShippingMethod class.
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION

mStopProcessingOnError

protected boolean mStopProcessingOnError
Stop processing on tax calculation error? Defaults to true.


mErrorMessage

protected java.lang.String mErrorMessage
Constructor Detail

TaxWareVerifyZipInfo

public TaxWareVerifyZipInfo()
Constructor.

Method Detail

setStopProcessingOnError

public void setStopProcessingOnError(boolean pStopProcessingOnError)
Set whether processOrder will return false if an exception occurs


getStopProcessingOnError

public boolean getStopProcessingOnError()
Get whether processOrder will return false if an exception occurs.


setErrorMessage

public void setErrorMessage(java.lang.String pErrorMessage)
Deprecated. This method is not thread safe. Inspect the AddressVerificationInfo for error messages


getErrorMessage

public java.lang.String getErrorMessage()
Deprecated. This method is not thread safe. Inspect the AddressVerificationInfo for error messages


setErrorAndGetReturnValue

protected boolean setErrorAndGetReturnValue(java.lang.String strError,
                                            java.lang.String address,
                                            ZipRequest zrequest)
Sets the zip error string associated with the order, and returns the status for processOrder.


modifyRequest

protected void modifyRequest(AddressVerificationInfo pOrder,
                             ZipRequest request,
                             boolean isBilling)
Modifies the request before submitting it to TaxWare.


shouldReverify

protected static boolean shouldReverify(ZipRequest zipRequest,
                                        ZipResult zipResult)
Returns whether or not we need to reverify shipTo info.


verifyZip

public boolean verifyZip(AddressVerificationInfo pOrder)
This method gets the shipping cost from the ShippingMethod class.