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
-
TS_AB_AUTH_REQUESTED
- account-based transaction state: sent authorisation request
-
TS_AB_AUTHORISED
- account-based transaction state: authorisation received
-
TS_AB_CAPTURE_REQUESTED
- account-based transaction state: sent capture request (for a transaction
already authorised
-
TS_AB_CAPTURED
- account-based transaction state: payment captured
-
TS_AB_NONAUTH_CAPTURE_REQUESTED
- account-based transaction state: sent a capture request (for a
transaction not already authorised)
-
TS_AB_PAYMENT_CONFIRMED
- account-based transaction state: received confirmation from payee
-
TS_AB_PAYMENT_SENT
- account-based transaction state: sent payment to payee
-
TS_AB_RAW_PAYMENT_RECEIVED
- account-based transaction state: received raw payment from payee
-
TS_AB_UNKNOWN
- account-based transaction state: unknown
-
AccountBasedTransactionState()
- Constructor without arguments for serializer
-
equals(Object)
- Override equals:
If the input object cannot be cast into our class, we simply invoke the
equals method from the parent class.
-
hashCode()
- Override hashcode.
-
myStreamSize()
- Implementing the Streamable interface
-
readObject(StreamInputInterface)
- Implementing the Streamable interface
-
setAccountBasedState(AccountBasedTransactionState)
- Set the value of the account-based sub state to be the same as the state
corresponding to the input parameter.
-
toString()
- redefine toString
-
writeObject(StreamOutputInterface)
- Implementing the Streamable interface
TS_AB_UNKNOWN
public final static AccountBasedTransactionState TS_AB_UNKNOWN
- account-based transaction state: unknown
TS_AB_RAW_PAYMENT_RECEIVED
public final static AccountBasedTransactionState TS_AB_RAW_PAYMENT_RECEIVED
- account-based transaction state: received raw payment from payee
TS_AB_AUTH_REQUESTED
public final static AccountBasedTransactionState TS_AB_AUTH_REQUESTED
- account-based transaction state: sent authorisation request
TS_AB_AUTHORISED
public final static AccountBasedTransactionState TS_AB_AUTHORISED
- account-based transaction state: authorisation received
TS_AB_CAPTURE_REQUESTED
public final static AccountBasedTransactionState TS_AB_CAPTURE_REQUESTED
- account-based transaction state: sent capture request (for a transaction
already authorised
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)
TS_AB_CAPTURED
public final static AccountBasedTransactionState TS_AB_CAPTURED
- account-based transaction state: payment captured
TS_AB_PAYMENT_SENT
public final static AccountBasedTransactionState TS_AB_PAYMENT_SENT
- account-based transaction state: sent payment to payee
TS_AB_PAYMENT_CONFIRMED
public final static AccountBasedTransactionState TS_AB_PAYMENT_CONFIRMED
- account-based transaction state: received confirmation from payee
AccountBasedTransactionState
public AccountBasedTransactionState()
- Constructor without arguments for serializer
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
toString
public String toString()
- redefine toString
- Returns:
- a string describing this service
- Overrides:
- toString in class PaymentTransactionState
- See Also:
- toString
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
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
writeObject
public void writeObject(StreamOutputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
- Overrides:
- writeObject in class PaymentTransactionState
readObject
public void readObject(StreamInputInterface s) throws StreamIOException
- Implementing the Streamable interface
- Throws: StreamIOException
- as usual
- Overrides:
- readObject in class PaymentTransactionState
myStreamSize
public int myStreamSize() throws StreamIOException
- Implementing the Streamable interface
- Overrides:
- myStreamSize in class PaymentTransactionState
All Packages Class Hierarchy This Package Previous Next Index