All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface semper.payment.PurseServices

public interface PurseServices
This interface defines all the generic services that a payment system should typically provide. This interface is implemented by leaf subclasses of the PaymentTransaction class. Additional generic services that are optional are defined elsewhere (e.g. in the MicropaymentServices interface)

Version:
$Revision: 1.13 $ $Date: 1997/10/10 15:27:04 $
Author:
N. Asokan (aso@zurich.ibm.com)
See Also:
AccountBasedPurseServices, CashLikePurseServices, MicropaymentServices, TPurseServices

Method Index

 o pay(PaymentEntity, Amount, Vector, String)
Move specified amount from payer to payee.
 o pay(PaymentEntity, Amount, Vector, String[])
Depracated; will be removed soon; use the other polymorphic form
 o receivePayment(PaymentEntity, Amount, Vector, String)
Accept incoming payment from a payer.
 o receivePayment(PaymentEntity, Amount, Vector, String[])
Depracated; will be removed soon; use the other polymorphic form
 o reversePayment(PaymentTransactionRecord)
Request reversal of a previously made payment.
 o reverseReceivedPayment(PaymentTransactionRecord)
Process request for reversing a previously received payment.

Methods

 o pay
 public abstract void pay(PaymentEntity payee,
                          Amount amount,
                          Vector options,
                          String ext_ref) throws PaymentServiceException
Move specified amount from payer to payee.

Parameters:
payee - Object containing necessary information to identify the recipient address
amount - Amount to be moved
options - List of options for the transaction (Vector of SecurityOption objects)
ext_ref - External reference string
Returns:
none
Throws: PaymentServiceException
for misc errors
See Also:
receivePayment, SecurityOption
 o receivePayment
 public abstract void receivePayment(PaymentEntity payer,
                                     Amount amount,
                                     Vector options,
                                     String ext_ref) throws PaymentServiceException
Accept incoming payment from a payer.

Parameters:
payer - Object containing necessary information to identify the payer. This is a return parameter.
options - List of options for the transaction (Vector of SecurityOption objects)
amount - Amount to be moved. This is a return parameter.
ext_ref - External reference string
Returns:
none
Throws: PaymentServiceException
for misc errors
See Also:
pay, SecurityOption
 o pay
 public abstract void pay(PaymentEntity payee,
                          Amount amount,
                          Vector options,
                          String ext_ref[]) throws PaymentServiceException
Depracated; will be removed soon; use the other polymorphic form

Throws: PaymentServiceException
see above
 o receivePayment
 public abstract void receivePayment(PaymentEntity payer,
                                     Amount amount,
                                     Vector options,
                                     String ext_ref[]) throws PaymentServiceException
Depracated; will be removed soon; use the other polymorphic form

Throws: PaymentServiceException
see above
 o reversePayment
 public abstract void reversePayment(PaymentTransactionRecord payment_reference) throws PaymentServiceException
Request reversal of a previously made payment.

Parameters:
payment_reference - PaymentTransaction object corresponding to the payment to be reversed.
Returns:
none
Throws: PaymentServiceException
if the reversal cannot be made
See Also:
pay
 o reverseReceivedPayment
 public abstract void reverseReceivedPayment(PaymentTransactionRecord payment_reference) throws PaymentServiceException
Process request for reversing a previously received payment.

Parameters:
payment_reference - PaymentTransaction object corresponding to the paymentto be reversed.
Returns:
none
Throws: PaymentServiceException
if the reversal cannot be made
See Also:
receivePayment

All Packages  Class Hierarchy  This Package  Previous  Next  Index