Class semper.payment.AccountBasedTransactionState
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.AccountBasedTransactionState

java.lang.Object
   |
   +----semper.payment.PaymentTransactionState
           |
           +----semper.payment.AccountBasedTransactionState

public class AccountBasedTransactionState
extends PaymentTransactionState
implements Streamable
Description of account based transaction states. Objects of this class are used to identify a specific state of an account based transaction. Typically, adapters of account based payment systems are expected to instantiate state objects as objects of this class. This class provides various standard state values as constants (e.g. TS_AB_CAPTURED). The intent is that once a state object has been created, the setAccountBasedState method will be used to set the state based on one of these pre-defined constants. The setState method of the parent class should be used by the adapters to set the major status values.
Version:
$Revision: 1.3 $ $Date: 1997/01/27 12:15:19 $
Author:
N. Asokan ([email protected])
See Also:
PurseServices, PaymentTransactionState

Variable Index

 o TS_AB_AUTH_REQUESTED
account-based transaction state: sent authorisation request
 o TS_AB_AUTHORISED
account-based transaction state: authorisation received
 o TS_AB_CAPTURE_REQUESTED
account-based transaction state: sent capture request (for a transaction already authorised
 o TS_AB_CAPTURED
account-based transaction state: payment captured
 o TS_AB_NONAUTH_CAPTURE_REQUESTED
account-based transaction state: sent a capture request (for a transaction not already authorised)
 o TS_AB_PAYMENT_CONFIRMED
account-based transaction state: received confirmation from payee
 o TS_AB_PAYMENT_SENT
account-based transaction state: sent payment to payee
 o TS_AB_RAW_PAYMENT_RECEIVED
account-based transaction state: received raw payment from payee
 o TS_AB_UNKNOWN
account-based transaction state: unknown

Constructor Index

 o AccountBasedTransactionState()
Constructor without arguments for serializer

Method Index

 o equals(Object)
Override equals:
If the input object cannot be cast into our class, we simply invoke the equals method from the parent class.
 o hashCode()
Override hashcode.
 o myStreamSize()
Implementing the Streamable interface
 o readObject(StreamInputInterface)
Implementing the Streamable interface
 o setAccountBasedState(AccountBasedTransactionState)
Set the value of the account-based sub state to be the same as the state corresponding to the input parameter.
 o toString()
redefine toString
 o writeObject(StreamOutputInterface)
Implementing the Streamable interface

Variables

 o TS_AB_UNKNOWN
  public final static AccountBasedTransactionState TS_AB_UNKNOWN
account-based transaction state: unknown
 o TS_AB_RAW_PAYMENT_RECEIVED
  public final static AccountBasedTransactionState TS_AB_RAW_PAYMENT_RECEIVED
account-based transaction state: received raw payment from payee
 o TS_AB_AUTH_REQUESTED
  public final static AccountBasedTransactionState TS_AB_AUTH_REQUESTED
account-based transaction state: sent authorisation request
 o TS_AB_AUTHORISED
  public final static AccountBasedTransactionState TS_AB_AUTHORISED
account-based transaction state: authorisation received
 o TS_AB_CAPTURE_REQUESTED
  public final static AccountBasedTransactionState TS_AB_CAPTURE_REQUESTED
account-based transaction state: sent capture request (for a transaction already authorised
 o TS_AB_NONAUTH_CAPTURE_REQUESTED
  public final static AccountBasedTransactionState TS_AB_NONAUTH_CAPTURE_REQUESTED
account-based transaction state: sent a capture request (for a transaction not already authorised)
 o TS_AB_CAPTURED
  public final static AccountBasedTransactionState TS_AB_CAPTURED
account-based transaction state: payment captured
 o TS_AB_PAYMENT_SENT
  public final static AccountBasedTransactionState TS_AB_PAYMENT_SENT
account-based transaction state: sent payment to payee
 o TS_AB_PAYMENT_CONFIRMED
  public final static AccountBasedTransactionState TS_AB_PAYMENT_CONFIRMED
account-based transaction state: received confirmation from payee

Constructors

 o AccountBasedTransactionState
  public AccountBasedTransactionState()
Constructor without arguments for serializer

Methods

 o setAccountBasedState
  public synchronized void setAccountBasedState(AccountBasedTransactionState abts)
Set the value of the account-based sub state to be the same as the state corresponding to the input parameter. The intent is that pre-defined constant state values (e.g. TS_AB_CAPTURED) will be used as the input parameter to this method.
Parameters:
abts - An account based state object
Returns:
nothing
 o toString
  public String toString()
redefine toString
Returns:
a string describing this service
Overrides:
toString in class PaymentTransactionState
See Also:
toString
 o equals
  public boolean equals(Object o)
Override equals:
If the input object cannot be cast into our class, we simply invoke the equals method from the parent class. Otherwise, we return true if the internal integer state code of the input is the same as ours.
Returns:
true if the objects are equal; false otherwise
Overrides:
equals in class PaymentTransactionState
See Also:
equals
 o hashCode
  public int hashCode()
Override hashcode. We redefine hashCode as the sum of the integer state code and the parent class' hashCode
Returns:
integer hashcode
Overrides:
hashCode in class PaymentTransactionState
See Also:
hashCode
 o writeObject
  public void writeObject(StreamOutputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
Overrides:
writeObject in class PaymentTransactionState
 o readObject
  public void readObject(StreamInputInterface s) throws StreamIOException
Implementing the Streamable interface
Throws: StreamIOException
as usual
Overrides:
readObject in class PaymentTransactionState
 o myStreamSize
  public int myStreamSize() throws StreamIOException
Implementing the Streamable interface
Overrides:
myStreamSize in class PaymentTransactionState

All Packages  Class Hierarchy  This Package  Previous  Next  Index