|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.integrations.cybersource.CyberSourceAddressVerification
public class CyberSourceAddressVerification
This class manages the communications to a CyberSource AVS system
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
boolean |
mCheckZip
Used to check the zip code for the shipping address |
CyberSourceConnection |
mCsCon
CyberSourceConnection module that is resposible for communication with the cybersource payment system |
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 | |
---|---|
CyberSourceAddressVerification()
Default constructor |
Method Summary | |
---|---|
void |
doStartService()
Initialize and start the service |
boolean |
getCheckZip()
|
CyberSourceConnection |
getCsCon()
|
void |
setCheckZip(boolean pCheckZip)
|
void |
setCsCon(CyberSourceConnection pCsCon)
|
java.lang.String |
toString()
|
java.lang.String |
trimZip(java.lang.String pZip)
Checks if the zip code is less than 5 digits |
AddressVerificationStatus |
verification(AddressVerificationInfo ccinfo)
|
AddressVerificationStatus |
verifyAddress(AddressVerificationInfo ccinfo)
Perform address verification on the information specified in pAvsInfo |
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 CyberSourceConnection mCsCon
public boolean mCheckZip
Constructor Detail |
---|
public CyberSourceAddressVerification()
Method Detail |
---|
public void setCsCon(CyberSourceConnection pCsCon)
public CyberSourceConnection getCsCon()
public void setCheckZip(boolean pCheckZip)
public boolean getCheckZip()
public AddressVerificationStatus verifyAddress(AddressVerificationInfo ccinfo)
AddressVerificationProcessor
verifyAddress
in interface AddressVerificationProcessor
ccinfo
- the AvsInfo reference which contains all the address values
public AddressVerificationStatus verification(AddressVerificationInfo ccinfo) throws com.cybersource.ics.base.exception.ICSException
com.cybersource.ics.base.exception.ICSException
public void doStartService() throws ServiceException
doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic java.lang.String trimZip(java.lang.String pZip) throws com.cybersource.ics.base.exception.ICSException
pZip
- A zip code string to be trimed and checked
com.cybersource.ics.base.exception.ICSException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |