public class PaymentStatusImpl extends java.lang.Object implements PaymentStatus
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
| Constructor and Description |
|---|
PaymentStatusImpl() |
PaymentStatusImpl(java.lang.String pTransactionId,
double pAmount,
boolean pTransactionSuccess,
java.lang.String pErrorMessage,
java.util.Date pTransactionTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public PaymentStatusImpl()
public PaymentStatusImpl(java.lang.String pTransactionId,
double pAmount,
boolean pTransactionSuccess,
java.lang.String pErrorMessage,
java.util.Date pTransactionTimestamp)
public java.lang.String getTransactionId()
getTransactionId in interface PaymentStatuspublic void setTransactionId(java.lang.String pTransactionId)
public double getAmount()
getAmount in interface PaymentStatuspublic void setAmount(double pAmount)
public boolean getTransactionSuccess()
getTransactionSuccess in interface PaymentStatuspublic void setTransactionSuccess(boolean pTransactionSuccess)
public java.lang.String getErrorMessage()
getErrorMessage in interface PaymentStatuspublic void setErrorMessage(java.lang.String pErrorMessage)
public java.util.Date getTransactionTimestamp()
getTransactionTimestamp in interface PaymentStatuspublic void setTransactionTimestamp(java.util.Date pTransactionTimestamp)