|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--webfunds.sox.Encodable
|
+--webfunds.client.sox.StateReceipt
This class represents a payment issued and maybe settled. If pending, only pending information is included. If settled, the Receipt is included.
| Field Summary | |
static int |
CANCELLED
|
static int |
CANCELLING
|
static int |
PENDING
|
protected PendingReceipt |
pendingReceipt
|
protected java.lang.String |
pid
|
protected Receipt |
receipt
|
protected int |
state
|
static int |
SUCCEEDED
|
protected static int |
VERSION
The version of the encoded object. |
| Constructor Summary | |
StateReceipt(byte[] data)
Construct the object from a byte array that was previously returned from the encode() method of the previous object. |
|
StateReceipt(java.io.InputStream is)
Construct the object from data on an input stream that was previously returned from the encode() method of the previous object. |
|
StateReceipt(PendingReceipt pr)
Create a new StateReceipt. |
|
| Method Summary | |
protected static void |
cycle()
|
void |
decode(java.io.InputStream is)
Update this object with the previously encoded object (such as output from the encode() method of a previous object) read from an input stream. |
void |
encode(java.io.OutputStream os)
Encode a receipt, writing the data to an output stream, in a format suitable for sending to restoring using the decode() method to re-construct the object. |
boolean |
equals(java.lang.Object object)
|
static StateReceipt |
example()
Return a usefully correct example of the object for testing. |
java.lang.String |
getPaymentId()
Get the identifier on the payment, as originally created by the payer. |
PendingReceipt |
getPendingReceipt()
Get the Pending if there. |
Receipt |
getReceipt()
Get the Pending if there. |
int |
getState()
|
protected static void |
input()
|
boolean |
isCancelled()
|
boolean |
isCancelling()
|
boolean |
isComplete()
|
boolean |
isPending()
|
boolean |
isSucceeded()
|
static void |
main(java.lang.String[] args)
|
protected static void |
output()
|
protected static void |
readWrite()
|
void |
setCancelled(Receipt r)
|
void |
setCancelling()
|
void |
setReceipt(Receipt r)
|
java.lang.String |
toString()
Convert this object to a human readable string |
| Methods inherited from class webfunds.sox.Encodable |
decode,
encode,
readByteArray,
readCertificate,
readProperties,
readString,
writeByteArray,
writeCertificate,
writeProperties,
writeString |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected static final int VERSION
public static final int PENDING
public static final int CANCELLING
public static final int CANCELLED
public static final int SUCCEEDED
protected int state
protected PendingReceipt pendingReceipt
protected Receipt receipt
protected java.lang.String pid
| Constructor Detail |
public StateReceipt(PendingReceipt pr)
pendingReceipt - the deposit request for which this is the receipttransactionId - the transaction identifierdate - the time of the transaction
public StateReceipt(byte[] data)
throws SOXPacketException
data - the previously encoded object
public StateReceipt(java.io.InputStream is)
throws SOXPacketException
is - the previously encoded receipt inputstream| Method Detail |
public int getState()
public boolean isPending()
public boolean isCancelling()
public boolean isCancelled()
public boolean isSucceeded()
public boolean isComplete()
public PendingReceipt getPendingReceipt()
public Receipt getReceipt()
public void setReceipt(Receipt r)
public void setCancelled(Receipt r)
public void setCancelling()
public java.lang.String getPaymentId()
public void decode(java.io.InputStream is)
throws java.io.IOException,
SOXPacketException
is - the stream containing the encoded object
public void encode(java.io.OutputStream os)
throws java.io.IOException
os - the stream on which to send the outputpublic boolean equals(java.lang.Object object)
public java.lang.String toString()
public static StateReceipt example()
public static void main(java.lang.String[] args)
protected static void cycle()
throws java.lang.Exception
protected static void output()
throws java.lang.Exception
protected static void readWrite()
throws java.lang.Exception
protected static void input()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||