|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.integrations.taxware.TaxService
atg.integrations.taxware.SalesTaxService
public class SalesTaxService
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.
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.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 |
---|
public static java.lang.String CLASS_VERSION
protected java.lang.String mTaxSelParm
protected java.lang.String mShipFromCity
protected java.lang.String mShipFromState
protected java.lang.String mShipFromZip
protected java.lang.String mShipFromGeoCode
protected java.lang.String mOriginCountry
protected java.lang.String mOriginCity
protected java.lang.String mOriginState
protected java.lang.String mOriginZip
protected java.lang.String mOriginGeoCode
Constructor Detail |
---|
public SalesTaxService()
Method Detail |
---|
public void setShipFromCity(java.lang.String pShipFromCity)
public java.lang.String getShipFromCity()
public void setShipFromState(java.lang.String pShipFromState)
public java.lang.String getShipFromState()
public void setShipFromZip(java.lang.String pShipFromZip)
public java.lang.String getShipFromZip()
public void setShipFromGeoCode(java.lang.String pShipFromGeoCode)
public java.lang.String getShipFromGeoCode()
public void setOriginCountry(java.lang.String pOriginCountry)
public java.lang.String getOriginCountry()
public void setOriginCity(java.lang.String pOriginCity)
public java.lang.String getOriginCity()
public void setOriginState(java.lang.String pOriginState)
public java.lang.String getOriginState()
public void setOriginZip(java.lang.String pOriginZip)
public java.lang.String getOriginZip()
public void setOriginGeoCode(java.lang.String pOriginGeoCode)
public java.lang.String getOriginGeoCode()
public void setTaxSelParm(java.lang.String pTaxSelParm)
public java.lang.String getTaxSelParm()
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)
createRequest
in class TaxService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |