|
||||||||||
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.cybersource.CyberSourceTax
atg.projects.store.integrations.cybersource.StoreCyberSourceTax
public class StoreCyberSourceTax
This class extends the ATG CyberSourceTax class as to be able to set the showTaxPerOffer on the ICSClientRequest.
Field Summary | |
---|---|
static java.lang.String |
AMOUNT
Amount constant. |
static java.lang.String |
BILL_CITY
Billing city constant. |
static java.lang.String |
BILL_COUNTRY
Billing country constant. |
static java.lang.String |
BILL_COUNTY
Billing county constant. |
static java.lang.String |
BILL_STATE
Billing state constant. |
static java.lang.String |
BILL_ZIP
Billing zip code constant. |
static java.lang.String |
CLASS_VERSION
Class version string. |
static java.lang.String |
CURRENCY
Currency constant. |
static java.lang.String |
ICS_APPLICATIONS
ICS application constant. |
static java.lang.String |
KEY_SEPARATOR
Cybersource reply's key separator. |
static java.lang.String |
MERCHANT_ID
Merchant id constant. |
static java.lang.String |
MERCHANT_REF_NUMBER
Merchant reference number constant. |
static java.lang.String |
MERCHANT_SKU
Merchant sku constant. |
static java.lang.String |
NEXUS
Nexus sku constant. |
static java.lang.String |
PRODUCT_CODE
Product code constant. |
static java.lang.String |
PRODUCT_NAME
Product name constant. |
static java.lang.String |
QUANTITY
Quantity constant. |
static java.lang.String |
SHIP_TO_ADDRESS1
First shipping address constant. |
static java.lang.String |
SHIP_TO_ADDRESS2
Second shipping address constant. |
static java.lang.String |
SHIP_TO_CITY
Shipping address city constant. |
static java.lang.String |
SHIP_TO_COUNTRY
Shipping address country constant. |
static java.lang.String |
SHIP_TO_COUNTY
Shipping address county constant. |
static java.lang.String |
SHIP_TO_STATE
Shipping address state constant. |
static java.lang.String |
SHIP_TO_ZIP
Shipping address zip code constant. |
static java.lang.String |
SHOW_TAX_PER_OFFER
Show tax per offer constant. |
Fields inherited from class atg.integrations.cybersource.CyberSourceTax |
---|
AcceptanceCity, AcceptanceCountry, AcceptanceState, AcceptanceZip, mCsCon, mNoNexus, mOriginCity, mOriginCountry, mOriginState, mOriginZip, mSellerRegistrationNumber, mShipFromCity, mShipFromCountry, mShipFromState, mShipFromZip, mUseProductCode, NoNexus, SellerRegistration, ShipFromCity, ShipFromCountry, ShipFromState, ShipFromZip |
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 | |
---|---|
StoreCyberSourceTax()
|
Method Summary | |
---|---|
atg.payment.tax.TaxStatus |
calculate(atg.payment.tax.TaxRequestInfo pTaxRequestInfo,
int i)
Call to cybersource to calculate taxes with this single CyberSource request |
atg.payment.tax.TaxStatus |
calculateAllTax(atg.payment.tax.TaxStatus[] taxstatus)
Overrides base method to not only calculate total taxes for passed TaxStatus objects but to preserve per offer taxes details in final TaxStatus. |
java.lang.String |
getShippingProductCode()
|
java.lang.String |
getShowTaxPerOffer()
|
java.lang.String[] |
getTaxPerOfferProperties()
Returns the TaxPerOfferProperties |
protected void |
setBillingInfo(com.cybersource.ics.client.message.ICSClientRequest pRequest,
atg.payment.tax.TaxRequestInfo pTaxRequestInfo,
int i)
Utility method to set the billing address information on the ICSCLientRequest. |
protected void |
setShipFromInfo(com.cybersource.ics.client.message.ICSClientRequest pRequest,
atg.payment.tax.TaxRequestInfo pTaxRequestInfo,
int i)
Utility method to set the origin shipping address information on the ICSCLientRequest. |
void |
setShippingProductCode(java.lang.String pShippingProductCode)
|
protected void |
setShipToInfo(com.cybersource.ics.client.message.ICSClientRequest pRequest,
atg.payment.tax.TaxRequestInfo pTaxRequestInfo,
int i)
Utility method to set the destination shipping address information on the ICSCLientRequest. |
void |
setShowTaxPerOffer(java.lang.String pShowTaxPerOffer)
|
void |
setTaxPerOfferProperties(java.lang.String[] pTaxPerOfferProperties)
Sets the TaxPerOfferProperties |
Methods inherited from class atg.integrations.cybersource.CyberSourceTax |
---|
assignTaxProductCode, calculateTax, calculateTaxByShipping, doStartService, getCsCon, getNoNexus, getOriginCity, getOriginCountry, getOriginState, getOriginZip, getSellerRegistrationNumber, getShipFromCity, getShipFromCountry, getShipFromState, getShipFromZip, getUseProductCode, main, performTax, setCsCon, setNoNexus, setOriginCity, setOriginCountry, setOriginState, setOriginZip, setSellerRegistrationNumber, setShipFromCity, setShipFromCountry, setShipFromState, setShipFromZip, setUseProductCode, TaxProductCodeSetting, toString |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, 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, reResolveThis, 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, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String CURRENCY
public static final java.lang.String ICS_APPLICATIONS
public static final java.lang.String MERCHANT_ID
public static final java.lang.String MERCHANT_REF_NUMBER
public static final java.lang.String MERCHANT_SKU
public static final java.lang.String NEXUS
public static final java.lang.String AMOUNT
public static final java.lang.String QUANTITY
public static final java.lang.String BILL_CITY
public static final java.lang.String BILL_COUNTRY
public static final java.lang.String BILL_COUNTY
public static final java.lang.String BILL_STATE
public static final java.lang.String BILL_ZIP
public static final java.lang.String SHIP_TO_ADDRESS1
public static final java.lang.String SHIP_TO_ADDRESS2
public static final java.lang.String SHIP_TO_CITY
public static final java.lang.String SHIP_TO_COUNTRY
public static final java.lang.String SHIP_TO_COUNTY
public static final java.lang.String SHIP_TO_STATE
public static final java.lang.String SHIP_TO_ZIP
public static final java.lang.String SHOW_TAX_PER_OFFER
public static final java.lang.String PRODUCT_CODE
public static final java.lang.String PRODUCT_NAME
public static final java.lang.String KEY_SEPARATOR
Constructor Detail |
---|
public StoreCyberSourceTax()
Method Detail |
---|
public java.lang.String getShowTaxPerOffer()
public void setShowTaxPerOffer(java.lang.String pShowTaxPerOffer)
pShowTaxPerOffer
- - show tax per offer property.public java.lang.String getShippingProductCode()
public void setShippingProductCode(java.lang.String pShippingProductCode)
pShippingProductCode
- - shipping product code.public java.lang.String[] getTaxPerOfferProperties()
public void setTaxPerOfferProperties(java.lang.String[] pTaxPerOfferProperties)
public atg.payment.tax.TaxStatus calculate(atg.payment.tax.TaxRequestInfo pTaxRequestInfo, int i) throws com.cybersource.ics.base.exception.ICSException
calculate
in class atg.integrations.cybersource.CyberSourceTax
pTaxRequestInfo
- - tax request informationi
- - some i parameter
com.cybersource.ics.base.exception.ICSException
- if error occurspublic atg.payment.tax.TaxStatus calculateAllTax(atg.payment.tax.TaxStatus[] taxstatus)
calculateAllTax
in class atg.integrations.cybersource.CyberSourceTax
protected void setBillingInfo(com.cybersource.ics.client.message.ICSClientRequest pRequest, atg.payment.tax.TaxRequestInfo pTaxRequestInfo, int i) throws com.cybersource.ics.base.exception.ICSException
pRequest
- - cyberstore requestpTaxRequestInfo
- - tas request infoi
- - some i parameter
com.cybersource.ics.base.exception.ICSException
- if error occursprotected void setShipToInfo(com.cybersource.ics.client.message.ICSClientRequest pRequest, atg.payment.tax.TaxRequestInfo pTaxRequestInfo, int i) throws com.cybersource.ics.base.exception.ICSException
pRequest
- - cyberstore requestpTaxRequestInfo
- - tax request informationi
- - some i parameter
com.cybersource.ics.base.exception.ICSException
- if error occursprotected void setShipFromInfo(com.cybersource.ics.client.message.ICSClientRequest pRequest, atg.payment.tax.TaxRequestInfo pTaxRequestInfo, int i) throws com.cybersource.ics.base.exception.ICSException
pRequest
- - cyberstore requestpTaxRequestInfo
- - tax request informationi
- - some i parameter
com.cybersource.ics.base.exception.ICSException
- if error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |