All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.txlayer.extensions.payment.PaymentItem

java.lang.Object
   |
   +----semper.txlayer.extensions.payment.PaymentItem

public class PaymentItem
extends Object
implements Serializable, Transferable, Containable, Describable
This class describes a "payment item." The notion of an item is defined by the txlayer.

Version:
$Revision: 1.1 $ $Date: 1997/10/14 14:54:09 $
Author:
N. Asokan ([email protected])
See Also:
PaymentTransferTransaction, PaymentDescription

Constructor Index

 o PaymentItem(PaymentEntity, Amount)
Constructor with typical set of parameters
 o PaymentItem(PaymentEntity, String, Amount, Vector, Vector)
Constructor with full set of parameters

Method Index

 o getAmount()
Get the amount
 o getDescription()
Create a description of this item
 o getMyAlias()
Get our own name string.
 o getPeer()
Get the peer identity
 o getPSList()
Get the restriction on payment systems
 o getPursesList()
Get the restriction on purses
 o getTransferTransaction()
Create a payment transfer transaction.
 o registerContainer(Container)
TODO: whatever this method was intended to do, needs to be implemented.
 o toString()
Overriding the toString method.

Constructors

 o PaymentItem
 public PaymentItem(PaymentEntity peer,
                    String my_alias,
                    Amount amount,
                    Vector PS_list,
                    Vector purses_list)
Constructor with full set of parameters

Parameters:
peer - identity of peer
amount - amount involved in the transfer
PS_list - Restriction list: this payment must be carried out only via one of the payment systems specified in this list.
purses_list - Restriction list: this payment must be carried out only via one of the purses specified in this list.
 o PaymentItem
 public PaymentItem(PaymentEntity peer,
                    Amount amount)
Constructor with typical set of parameters

Parameters:
peer - identity of peer
amount - amount involved in the transfer

Methods

 o toString
 public String toString()
Overriding the toString method.

Returns:
String string describing the payment
Overrides:
toString in class Object
 o getTransferTransaction
 public TransferTransaction getTransferTransaction()
Create a payment transfer transaction.

Returns:
a PaymentTransfer object to transfer this item
 o registerContainer
 public boolean registerContainer(Container c)
TODO: whatever this method was intended to do, needs to be implemented.

 o getDescription
 public Description getDescription()
Create a description of this item

 o getAmount
 public Amount getAmount()
Get the amount

Returns:
the amount of this payment
 o getPeer
 public PaymentEntity getPeer()
Get the peer identity

Returns:
the identity of the peer
 o getMyAlias
 public String getMyAlias()
Get our own name string. Beware, it may be null.

Returns:
the name by which we want to be known to the peer
 o getPSList
 public Vector getPSList()
Get the restriction on payment systems

Returns:
Vector containing a list of payment systems
 o getPursesList
 public Vector getPursesList()
Get the restriction on purses

Returns:
Vector containing a list of purse names

All Packages  Class Hierarchy  This Package  Previous  Next  Index