atg.integrations.taxware
Class SalesTaxService

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.integrations.taxware.TaxService
              extended by atg.integrations.taxware.SalesTaxService
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 SalesTaxService
extends TaxService

SalesTaxService provides a simpler interface for creating TaxRequest objects for domestic requests. Each instance of the SalesTaxService represents an origin location (based on tax nexus)/ ship-from location pair.

The origin address fields represent the location of the seller.

The shipFrom address fields represent location from which the goods will be shipped.

See Also:
TaxRequest, SalesTaxCaller, TaxResult

Field Summary
static java.lang.String CLASS_VERSION
           
protected  java.lang.String mOriginCity
           
protected  java.lang.String mOriginCountry
           
protected  java.lang.String mOriginGeoCode
           
protected  java.lang.String mOriginState
           
protected  java.lang.String mOriginZip
           
protected  java.lang.String mShipFromCity
           
protected  java.lang.String mShipFromGeoCode
           
protected  java.lang.String mShipFromState
           
protected  java.lang.String mShipFromZip
           
protected  java.lang.String mTaxSelParm
           
 
Fields inherited from class atg.integrations.taxware.TaxService
mCompanyId, mFailedToInitialize, mNonFatalCompCodes, msg, mShipFromCountry, Resource_Name
 
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
SalesTaxService()
           
 
Method Summary
 TaxRequest createRequest(java.lang.String strDstCountry, java.lang.String strDstCity, java.lang.String strDstProvince, java.lang.String strDstZip, java.lang.String strPOACountry, java.lang.String strPOACity, java.lang.String strPOAProvince, java.lang.String strPOAZip, java.lang.String strCurrencyCode, long centsPrice, long centsDiscountPrice, long centsFreight, java.util.Date dateTax)
          Create a new TaxRequest, filling in Origin, Ship-From, Destination and POA information from our member variables.
 java.lang.String getOriginCity()
          Get OriginCity used for tax calculations.
 java.lang.String getOriginCountry()
          Get OriginCountry used for tax calculations.
 java.lang.String getOriginGeoCode()
          Get OriginZip used for tax calculations.
 java.lang.String getOriginState()
          Get OriginState used for tax calculations.
 java.lang.String getOriginZip()
          Get OriginZip used for tax calculations.
 java.lang.String getShipFromCity()
          Get ShipFromCity used for tax calculations.
 java.lang.String getShipFromGeoCode()
          Get OriginZip used for tax calculations.
 java.lang.String getShipFromState()
          Get ShipFromState used for tax calculations.
 java.lang.String getShipFromZip()
          Get ShipFromZip/PostalCode used for tax calculations.
 java.lang.String getTaxSelParm()
           
 void setOriginCity(java.lang.String pOriginCity)
          Set OriginCity used for tax calculations.
 void setOriginCountry(java.lang.String pOriginCountry)
          Set 2 character OriginCountry used for tax calculations.
 void setOriginGeoCode(java.lang.String pOriginGeoCode)
          Set Origin GeoCode used for tax calculations.
 void setOriginState(java.lang.String pOriginState)
          Set OriginState/Province used for tax calculations.
 void setOriginZip(java.lang.String pOriginZip)
          Set OriginZip/PostalCode used for tax calculations.
 void setShipFromCity(java.lang.String pShipFromCity)
          Set ShipFromCity used for tax calculations.
 void setShipFromGeoCode(java.lang.String pShipFromGeoCode)
          Set ShipFrom GeoCode used for tax calculations.
 void setShipFromState(java.lang.String pShipFromState)
          Set ShipFromState/Province used for tax calculations.
 void setShipFromZip(java.lang.String pShipFromZip)
          Set ShipFromZip/PostalCode used for tax calculations.
 void setTaxSelParm(java.lang.String pTaxSelParm)
           
 
Methods inherited from class atg.integrations.taxware.TaxService
calculateSalesTax, doStartService, doStopService, getCompanyId, getFailedToInitialize, getNonFatalCompletionCodes, getShipFromCountry, setCompanyId, setNonFatalCompletionCodes, setShipFromCountry
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, 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

mTaxSelParm

protected java.lang.String mTaxSelParm

mShipFromCity

protected java.lang.String mShipFromCity

mShipFromState

protected java.lang.String mShipFromState

mShipFromZip

protected java.lang.String mShipFromZip

mShipFromGeoCode

protected java.lang.String mShipFromGeoCode

mOriginCountry

protected java.lang.String mOriginCountry

mOriginCity

protected java.lang.String mOriginCity

mOriginState

protected java.lang.String mOriginState

mOriginZip

protected java.lang.String mOriginZip

mOriginGeoCode

protected java.lang.String mOriginGeoCode
Constructor Detail

SalesTaxService

public SalesTaxService()
Method Detail

setShipFromCity

public void setShipFromCity(java.lang.String pShipFromCity)
Set ShipFromCity used for tax calculations.


getShipFromCity

public java.lang.String getShipFromCity()
Get ShipFromCity used for tax calculations.


setShipFromState

public void setShipFromState(java.lang.String pShipFromState)
Set ShipFromState/Province used for tax calculations.


getShipFromState

public java.lang.String getShipFromState()
Get ShipFromState used for tax calculations.


setShipFromZip

public void setShipFromZip(java.lang.String pShipFromZip)
Set ShipFromZip/PostalCode used for tax calculations.


getShipFromZip

public java.lang.String getShipFromZip()
Get ShipFromZip/PostalCode used for tax calculations.


setShipFromGeoCode

public void setShipFromGeoCode(java.lang.String pShipFromGeoCode)
Set ShipFrom GeoCode used for tax calculations.


getShipFromGeoCode

public java.lang.String getShipFromGeoCode()
Get OriginZip used for tax calculations.


setOriginCountry

public void setOriginCountry(java.lang.String pOriginCountry)
Set 2 character OriginCountry used for tax calculations.


getOriginCountry

public java.lang.String getOriginCountry()
Get OriginCountry used for tax calculations.


setOriginCity

public void setOriginCity(java.lang.String pOriginCity)
Set OriginCity used for tax calculations.


getOriginCity

public java.lang.String getOriginCity()
Get OriginCity used for tax calculations.


setOriginState

public void setOriginState(java.lang.String pOriginState)
Set OriginState/Province used for tax calculations.


getOriginState

public java.lang.String getOriginState()
Get OriginState used for tax calculations.


setOriginZip

public void setOriginZip(java.lang.String pOriginZip)
Set OriginZip/PostalCode used for tax calculations.


getOriginZip

public java.lang.String getOriginZip()
Get OriginZip used for tax calculations.


setOriginGeoCode

public void setOriginGeoCode(java.lang.String pOriginGeoCode)
Set Origin GeoCode used for tax calculations.


getOriginGeoCode

public java.lang.String getOriginGeoCode()
Get OriginZip used for tax calculations.


setTaxSelParm

public void setTaxSelParm(java.lang.String pTaxSelParm)

getTaxSelParm

public java.lang.String getTaxSelParm()

createRequest

public TaxRequest createRequest(java.lang.String strDstCountry,
                                java.lang.String strDstCity,
                                java.lang.String strDstProvince,
                                java.lang.String strDstZip,
                                java.lang.String strPOACountry,
                                java.lang.String strPOACity,
                                java.lang.String strPOAProvince,
                                java.lang.String strPOAZip,
                                java.lang.String strCurrencyCode,
                                long centsPrice,
                                long centsDiscountPrice,
                                long centsFreight,
                                java.util.Date dateTax)
Create a new TaxRequest, filling in Origin, Ship-From, Destination and POA information from our member variables.

Specified by:
createRequest in class TaxService