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 Serializable
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.5 $ $Date: 1997/06/16 12:55:53 $
Author:
N. Asokan (aso@zurich.ibm.com)
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 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

Variables

 o TS_AB_UNKNOWN
 public static final AccountBasedTransactionState TS_AB_UNKNOWN
account-based transaction state: unknown

 o TS_AB_RAW_PAYMENT_RECEIVED
 public static final AccountBasedTransactionState TS_AB_RAW_PAYMENT_RECEIVED
account-based transaction state: received raw payment from payee

 o TS_AB_AUTH_REQUESTED
 public static final AccountBasedTransactionState TS_AB_AUTH_REQUESTED
account-based transaction state: sent authorisation request

 o TS_AB_AUTHORISED
 public static final AccountBasedTransactionState TS_AB_AUTHORISED
account-based transaction state: authorisation received

 o TS_AB_CAPTURE_REQUESTED
 public static final AccountBasedTransactionState TS_AB_CAPTURE_REQUESTED
account-based transaction state: sent capture request (for a transaction already authorised

 o TS_AB_NONAUTH_CAPTURE_REQUESTED
 public static final 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 static final AccountBasedTransactionState TS_AB_CAPTURED
account-based transaction state: payment captured

 o TS_AB_PAYMENT_SENT
 public static final AccountBasedTransactionState TS_AB_PAYMENT_SENT
account-based transaction state: sent payment to payee

 o TS_AB_PAYMENT_CONFIRMED
 public static final 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. TODO: if match succeeded at this level, recurse up anyway.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index