atg.integrations.taxware
Class WorldTaxService

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.WorldTaxService
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 WorldTaxService
extends TaxService

WorldTaxService provides a simpler interface for creating TaxRequest objects for international requests.

See Also:
TaxRequest, SalesTaxCaller, TaxResult

Field Summary
static java.lang.String CLASS_VERSION
           
protected  java.lang.String mCommodityCode
           
protected  java.lang.String mDocumentNumber
           
protected  java.lang.String mSellerRegNumber
           
protected  java.lang.String mTaxCode
           
protected  java.lang.String mTransactionType
           
 
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
WorldTaxService()
           
 
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 Destination and POA information from our member variables.
 java.lang.String getCommodityCode()
           
 java.lang.String getDocumentNumber()
           
 java.lang.String getSellerRegNumber()
           
 java.lang.String getTaxCode()
           
 java.lang.String getTransactionType()
           
 void setCommodityCode(java.lang.String pCommodityCode)
           
 void setDocumentNumber(java.lang.String pDocumentNumber)
           
 void setSellerRegNumber(java.lang.String pSellerRegNumber)
           
 void setTaxCode(java.lang.String pTaxCode)
           
 void setTransactionType(java.lang.String pTransactionType)
           
 
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

mDocumentNumber

protected java.lang.String mDocumentNumber

mTransactionType

protected java.lang.String mTransactionType

mSellerRegNumber

protected java.lang.String mSellerRegNumber

mTaxCode

protected java.lang.String mTaxCode

mCommodityCode

protected java.lang.String mCommodityCode
Constructor Detail

WorldTaxService

public WorldTaxService()
Method Detail

setDocumentNumber

public void setDocumentNumber(java.lang.String pDocumentNumber)

getDocumentNumber

public java.lang.String getDocumentNumber()

setTransactionType

public void setTransactionType(java.lang.String pTransactionType)

getTransactionType

public java.lang.String getTransactionType()

setSellerRegNumber

public void setSellerRegNumber(java.lang.String pSellerRegNumber)

getSellerRegNumber

public java.lang.String getSellerRegNumber()

setTaxCode

public void setTaxCode(java.lang.String pTaxCode)

getTaxCode

public java.lang.String getTaxCode()

setCommodityCode

public void setCommodityCode(java.lang.String pCommodityCode)

getCommodityCode

public java.lang.String getCommodityCode()

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 Destination and POA information from our member variables.

Specified by:
createRequest in class TaxService