|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.payment.creditcard.AuthorizationAddressVerificationStatus atg.integrations.cybercash.CyberCashStatus
public class CyberCashStatus
This class encapsulates a standard CyberCash response. This data comes back from a majority of the commands.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static int |
LOC_BANK
The command failed at the bank. |
static int |
LOC_CYBERCASH_SERVER
The command failed at the CyberCash gateway server. |
static int |
LOC_LOCAL_SERVER
The command failed at the local payment server. |
static int |
LOC_UNKNOWN
Unknown location, this occurs there is no error. |
static int |
STAT_DUPLICATE_SUCCESS
Retrying an command that has already succeded. |
static int |
STAT_FAIL
The command failed, no retry is possible. |
static int |
STAT_FAIL_BANK
The command failed, bank reported an error. |
static int |
STAT_FAIL_RETRY
The command failed, retry is possible. |
static int |
STAT_FAIL_VERSION
The command failed, version incompatible. |
static int |
STAT_SUCCESS
The command was a complete success in all possible ways. |
static int |
STAT_UNKNOWN
Unknown status, if this occurs there is a bug. |
Constructor Summary | |
---|---|
CyberCashStatus(java.util.Dictionary values)
Constructs a CyberCashResponse with initial values. |
Method Summary | |
---|---|
double |
getAmount()
The amount that was submitted for the transaction |
java.util.Date |
getAuthorizationExpiration()
Authorization expiration date returned by some payment systems |
java.lang.String |
getAvsCode()
Address Verification Result returned from authorization |
java.lang.String |
getAvsDescriptiveResult()
A full descriptive address verification result message |
java.lang.String |
getErrorCode()
Gets property errorCode. |
java.lang.String |
getErrorMessage()
A message describing the transaction failure |
int |
getLocation()
Gets property location. |
int |
getStatus()
Gets property status. |
java.lang.String |
getTransactionId()
A unique transaction Id returned from the payment system |
boolean |
getTransactionSuccess()
Indicates if the transaction succeeded or failed |
java.util.Date |
getTransactionTimestamp()
Date when the transaction is initiated |
java.lang.Object |
getValue(java.lang.String key)
Gets a single property value from the values dictionary of the raw data from the CyberCash server. |
java.util.Dictionary |
getValues()
Gets property values. |
void |
setAmount(double pAmount)
|
void |
setAuthorizationExpiration(java.util.Date pAuthorizationExpiration)
|
void |
setAvsCode(java.lang.String pAvsCode)
|
void |
setAvsDescriptiveResult(java.lang.String pAvsDescriptiveResult)
|
void |
setErrorCode(java.lang.String pErrorCode)
Sets property errorCode. |
void |
setErrorMessage(java.lang.String pErrorMessage)
|
void |
setLocation(int pLocation)
Sets property location. |
void |
setStatus(int pStatus)
Sets property status. |
void |
setTransactionId(java.lang.String pTransactionId)
|
void |
setTransactionSuccess(boolean pTransactionSuccess)
|
void |
setTransactionTimestamp(java.util.Date pTransactionTimestamp)
|
void |
setValues(java.util.Dictionary pValues)
Sets property values. |
java.lang.String |
toString()
|
Methods inherited from class atg.payment.creditcard.AuthorizationAddressVerificationStatus |
---|
getAvsDescriptiveValue |
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 int STAT_UNKNOWN
public static final int STAT_SUCCESS
public static final int STAT_DUPLICATE_SUCCESS
public static final int STAT_FAIL
public static final int STAT_FAIL_RETRY
public static final int STAT_FAIL_VERSION
public static final int STAT_FAIL_BANK
public static final int LOC_UNKNOWN
public static final int LOC_LOCAL_SERVER
public static final int LOC_CYBERCASH_SERVER
public static final int LOC_BANK
Constructor Detail |
---|
public CyberCashStatus(java.util.Dictionary values)
Method Detail |
---|
public java.lang.String getTransactionId()
PaymentStatus
public void setTransactionId(java.lang.String pTransactionId)
public double getAmount()
PaymentStatus
public void setAmount(double pAmount)
public boolean getTransactionSuccess()
PaymentStatus
public void setTransactionSuccess(boolean pTransactionSuccess)
public java.lang.String getErrorMessage()
PaymentStatus
public void setErrorMessage(java.lang.String pErrorMessage)
public java.util.Date getTransactionTimestamp()
PaymentStatus
public void setTransactionTimestamp(java.util.Date pTransactionTimestamp)
public java.util.Date getAuthorizationExpiration()
CreditCardStatus
public void setAuthorizationExpiration(java.util.Date pAuthorizationExpiration)
public void setAvsCode(java.lang.String pAvsCode)
public java.lang.String getAvsCode()
CreditCardStatus
public void setAvsDescriptiveResult(java.lang.String pAvsDescriptiveResult)
public java.lang.String getAvsDescriptiveResult()
CreditCardStatus
public void setValues(java.util.Dictionary pValues)
public java.util.Dictionary getValues()
public java.lang.Object getValue(java.lang.String key)
public void setStatus(int pStatus)
public int getStatus()
public void setLocation(int pLocation)
public int getLocation()
public void setErrorCode(java.lang.String pErrorCode)
public java.lang.String getErrorCode()
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 |