Class semper.payment.generic.genericModuleMessage
All Packages Class Hierarchy This Package Previous Next Index
Class semper.payment.generic.genericModuleMessage
java.lang.Object
|
+----semper.payment.generic.genericModuleMessage
- public class genericModuleMessage
- extends Object
- implements Streamable
Message class for protocol messages in the "generic payment system"
- Version:
- $Revision: 1.4 $ $Date: 1996/08/19 18:21:42 $
- Author:
- N. Asokan ([email protected])
-
MT_ERROR
- Flag -> this message is the error reply part of a transaction
-
MT_REPLY
- Flag -> this message is the reply part of a transaction
-
MT_REQUEST
- Flag -> this message is the request part of a transaction
-
SC_FAIL_CANT_PARSE_REQ
- Status code in MT_ERROR -> Failed because cannot parse request
-
SC_FAIL_NO_SUCH_ACCOUNT
- Status Code in MT_ERROR -> Failed because there is no such account
-
SC_FAIL_NOT_ENOUGH_BALANCE
- Status Code in MT_ERROR -> Failed because not enough balance
-
SC_FAIL_VERSION_MISMATCH
- Status code in MT_ERROR -> Failed because version mismatch
-
SC_SUCCESS
- Status Code in MT_REPLY -> Request was successful
-
TT_AUTHORISE
- Flag -> this message is part of a "authorise" transaction
-
TT_CAPTURE
- Flag -> this message is part of a "capture" transaction
-
TT_PAY
- Flag -> this message is part of a "pay" transaction
-
TT_REGISTER
- Flag -> this message is part of a "registration" transaction
-
genericModuleMessage()
- Constructor without arguments
-
genericModuleMessage(String, String, String, String, String, String, int, int, int, String, String)
- Constructor
Depending of the type of transaction, some of these fields can be null.
-
getAmount()
- Accessor method
-
getCurrency()
- Accessor method
-
getExtRef()
- Accessor method
-
getMessageType()
- Accessor method
-
getPayeeACNumber()
- Accessor method
-
getPayeeName()
- Accessor method
-
getPayerACNumber()
- Accessor method
-
getPayerName()
- Accessor method
-
getStatusCode()
- Accessor method
-
getTransactionType()
- Accessor method
-
getVersionNumber()
- Accessor method
-
myStreamSize()
- Implementing the Streamable interface
-
readObject(StreamInputInterface)
- Implementing the Streamable interface
-
toString()
- redefining toString() to suit our needs
-
writeObject(StreamOutputInterface)
- Implementing the Streamable interface
TT_PAY
public final static int TT_PAY
- Flag -> this message is part of a "pay" transaction
TT_AUTHORISE
public final static int TT_AUTHORISE
- Flag -> this message is part of a "authorise" transaction
TT_CAPTURE
public final static int TT_CAPTURE
- Flag -> this message is part of a "capture" transaction
TT_REGISTER
public final static int TT_REGISTER
- Flag -> this message is part of a "registration" transaction
MT_REQUEST
public final static int MT_REQUEST
- Flag -> this message is the request part of a transaction
MT_REPLY
public final static int MT_REPLY
- Flag -> this message is the reply part of a transaction
MT_ERROR
public final static int MT_ERROR
- Flag -> this message is the error reply part of a transaction
SC_SUCCESS
public final static int SC_SUCCESS
- Status Code in MT_REPLY -> Request was successful
SC_FAIL_NO_SUCH_ACCOUNT
public final static int SC_FAIL_NO_SUCH_ACCOUNT
- Status Code in MT_ERROR -> Failed because there is no such account
SC_FAIL_NOT_ENOUGH_BALANCE
public final static int SC_FAIL_NOT_ENOUGH_BALANCE
- Status Code in MT_ERROR -> Failed because not enough balance
SC_FAIL_CANT_PARSE_REQ
public final static int SC_FAIL_CANT_PARSE_REQ
- Status code in MT_ERROR -> Failed because cannot parse request
SC_FAIL_VERSION_MISMATCH
public final static int SC_FAIL_VERSION_MISMATCH
- Status code in MT_ERROR -> Failed because version mismatch
genericModuleMessage
public genericModuleMessage(String payer_name,
String payer_AC_number,
String payee_name,
String payee_AC_number,
String amount,
String currency,
int transaction_type,
int message_type,
int status_code,
String ext_ref,
String version_number)
- Constructor
Depending of the type of transaction, some of these fields can be null.
- Parameters:
- payer_name - String indicating the name by which payer/user is
known to the acquirer
- payee_name - String indicating the name by which the payee is
known to the acquirer
- payer_AC_number - String: payer's account number at the acquirer
- payee_AC_number - String payee's account number at the acquirer
- amount - String representing amount involved
- currency - String representing currency involved
- transaction_type - integer code indicating type of transaction
- message_type - integer code indicating type of message
- status_code - integer code in reply/error message indicating status
- ext_ref - String with an external reference
- version_number - String indicating protocol version number
genericModuleMessage
public genericModuleMessage()
- Constructor without arguments
toString
public String toString()
- redefining toString() to suit our needs
- Overrides:
- toString in class Object
getPayerName
public String getPayerName()
- Accessor method
getPayerACNumber
public String getPayerACNumber()
- Accessor method
getPayeeName
public String getPayeeName()
- Accessor method
getPayeeACNumber
public String getPayeeACNumber()
- Accessor method
getAmount
public String getAmount()
- Accessor method
getCurrency
public String getCurrency()
- Accessor method
getExtRef
public String getExtRef()
- Accessor method
getVersionNumber
public String getVersionNumber()
- Accessor method
getTransactionType
public int getTransactionType()
- Accessor method
getMessageType
public int getMessageType()
- Accessor method
getStatusCode
public int getStatusCode()
- Accessor method
writeObject
public void writeObject(StreamOutputInterface s) throws StreamIOException
- Implementing the Streamable interface
readObject
public void readObject(StreamInputInterface s) throws StreamIOException
- Implementing the Streamable interface
myStreamSize
public int myStreamSize() throws StreamIOException
- Implementing the Streamable interface
All Packages Class Hierarchy This Package Previous Next Index