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 ([email protected])
- See Also:
- AccountBasedPurseServices, CashLikePurseServices, MicropaymentServices, TPurseServices
-
pay(PaymentEntity, Amount, Vector, String)
- Move specified amount from payer to payee.
-
pay(PaymentEntity, Amount, Vector, String[])
- Depracated; will be removed soon; use the other polymorphic form
-
receivePayment(PaymentEntity, Amount, Vector, String)
- Accept incoming payment from a payer.
-
receivePayment(PaymentEntity, Amount, Vector, String[])
- Depracated; will be removed soon; use the other polymorphic form
-
reversePayment(PaymentTransactionRecord)
- Request reversal of a previously made payment.
-
reverseReceivedPayment(PaymentTransactionRecord)
- Process request for reversing a previously received payment.
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
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
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
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
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
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