|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.payment.PaymentStatusImpl
public class PaymentStatusImpl
This class implements a payment transaction status. It encapsulates basic transaction information returned from a payment system.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
PaymentStatusImpl()
|
|
PaymentStatusImpl(java.lang.String pTransactionId,
double pAmount,
boolean pTransactionSuccess,
java.lang.String pErrorMessage,
java.util.Date pTransactionTimestamp)
|
Method Summary | |
---|---|
double |
getAmount()
Returns property amount, this property represents the amount that the transaction represents. |
java.lang.String |
getErrorMessage()
A message describing the transaction failure |
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 |
void |
setAmount(double pAmount)
|
void |
setErrorMessage(java.lang.String pErrorMessage)
|
void |
setTransactionId(java.lang.String pTransactionId)
|
void |
setTransactionSuccess(boolean pTransactionSuccess)
|
void |
setTransactionTimestamp(java.util.Date pTransactionTimestamp)
|
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
Constructor Detail |
---|
public PaymentStatusImpl()
public PaymentStatusImpl(java.lang.String pTransactionId, double pAmount, boolean pTransactionSuccess, java.lang.String pErrorMessage, java.util.Date pTransactionTimestamp)
Method Detail |
---|
public java.lang.String getTransactionId()
getTransactionId
in interface PaymentStatus
public void setTransactionId(java.lang.String pTransactionId)
public double getAmount()
getAmount
in interface PaymentStatus
public void setAmount(double pAmount)
public boolean getTransactionSuccess()
getTransactionSuccess
in interface PaymentStatus
public void setTransactionSuccess(boolean pTransactionSuccess)
public java.lang.String getErrorMessage()
getErrorMessage
in interface PaymentStatus
public void setErrorMessage(java.lang.String pErrorMessage)
public java.util.Date getTransactionTimestamp()
getTransactionTimestamp
in interface PaymentStatus
public void setTransactionTimestamp(java.util.Date pTransactionTimestamp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |