atg.payment
Class PaymentStatusImpl

java.lang.Object
  extended by atg.payment.PaymentStatusImpl
All Implemented Interfaces:
PaymentStatus, java.io.Serializable
Direct Known Subclasses:
AddressVerificationStatusImpl, CreditCardStatusImpl, GiftCertificateStatusImpl, StoreCreditStatusImpl

public class PaymentStatusImpl
extends java.lang.Object
implements PaymentStatus

This class implements a payment transaction status. It encapsulates basic transaction information returned from a payment system.

See Also:
Serialized Form

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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

PaymentStatusImpl

public PaymentStatusImpl()

PaymentStatusImpl

public PaymentStatusImpl(java.lang.String pTransactionId,
                         double pAmount,
                         boolean pTransactionSuccess,
                         java.lang.String pErrorMessage,
                         java.util.Date pTransactionTimestamp)
Method Detail

getTransactionId

public java.lang.String getTransactionId()
A unique transaction Id returned from the payment system

Specified by:
getTransactionId in interface PaymentStatus

setTransactionId

public void setTransactionId(java.lang.String pTransactionId)

getAmount

public double getAmount()
Returns property amount, this property represents the amount that the transaction represents.

Specified by:
getAmount in interface PaymentStatus

setAmount

public void setAmount(double pAmount)

getTransactionSuccess

public boolean getTransactionSuccess()
indicates if the transaction succeeded or failed

Specified by:
getTransactionSuccess in interface PaymentStatus

setTransactionSuccess

public void setTransactionSuccess(boolean pTransactionSuccess)

getErrorMessage

public java.lang.String getErrorMessage()
A message describing the transaction failure

Specified by:
getErrorMessage in interface PaymentStatus

setErrorMessage

public void setErrorMessage(java.lang.String pErrorMessage)

getTransactionTimestamp

public java.util.Date getTransactionTimestamp()
Date when the transaction is initiated

Specified by:
getTransactionTimestamp in interface PaymentStatus

setTransactionTimestamp

public void setTransactionTimestamp(java.util.Date pTransactionTimestamp)