Class semper.payment.generic.genericTransaction
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.payment.generic.genericTransaction

java.lang.Object
   |
   +----semper.payment.PaymentTransaction
           |
           +----semper.payment.generic.genericTransaction

public class genericTransaction
extends PaymentTransaction
implements AccountBasedPurseServices, MicropaymentServices
Generic Transaction subclass.
Version:
$Revision: 1.17 $ $Date: 1996/08/20 12:04:24 $
Author:
Jose-Luis Abad-Peiro (jla@zurich.ibm.com)
See Also:
PaymentTransaction, Purse

Constructor Index

 o genericTransaction()
Constructor of the class.
 o genericTransaction(String)
Constructor of the class.

Method Index

 o abort()
Abort transaction.
 o authorise()
Authorise Implementing from AccountBasedPurseServices
 o authorise(Amount)
Authorise Implementing from Account BasedPurseServices
 o capture()
Capture Implementing from AccountBasedPurseServices
 o capture(Amount)
Capture Implementing from AccountBasedPurseServices
 o doMicropayment(Amount)
Do Micropayments Implementing from MicropaymentServices
 o getStatus()
Get current status for the Transaction object.
 o getTransactionRecord()
Gets an associated Record for this transaction.
 o multiAuthorise(Vector)
Multiple Authorisation The seller (normally) requests at the same time authorisation for several received payments
 o multiCapture(Vector)
Multiple Captures The seller (normally) performs captures at the same time for several received payments
 o pay(PaymentEntity, Amount, Vector, String[])
Pay method.
 o receiveMicropayment(Amount)
Receive (get and enjoy) a Micropayment
 o receivePayment(PaymentEntity, Amount, Vector, String[])
Receive a Payment.
 o receiveRawPayment(PaymentEntity, Amount, Vector, String[])
Receive "not cooked" payment (information) Receive securely a bunch of information that would be used in the payment.
 o resume()
Resume transaction.
 o reversePayment(PaymentTransactionRecord)
Payment Reversal Request on a generic Payment System
 o reverseReceivedPayment(PaymentTransactionRecord)
Accept a Payment Reversal
 o startMicropayment(PaymentEntity, Amount, Vector, String[])
Start micropayments.
 o startReceiveMicropayment(PaymentEntity, Vector, String[])
Start (get ready to) accept Micropayments.
 o stopMicropayment()
Stop making all those micropayments This method informs that the micropayments should stop and then the transaction must finish.
 o stopReceiveMicropayment()
Stop getting those Micropayments (please)

Constructors

 o genericTransaction
  public genericTransaction() throws PaymentServiceException
Constructor of the class. Creates a generic Transaction object, setting the type of transaction and the status of the transaction to none.
Throws: PaymentServiceException
if registering the transaction failes
See Also:
PaymentTransaction
 o genericTransaction
  public genericTransaction(String purse_name) throws PaymentServiceException
Constructor of the class. Creates a generic Transaction object, setting the type of transaction and the status of the transaction to none.
Parameters:
purse_name - distinguished name of calling purse
Throws: PaymentServiceException
if registering the transaction failes
See Also:
PaymentTransaction

Methods

 o abort
  public void abort()
Abort transaction. Get's the transaction to an stable status. Implemented abstract method from semper.payment.PaymentTransaction
Overrides:
abort in class PaymentTransaction
See Also:
abort
 o resume
  public void resume()
Resume transaction. After having booted this transaction was in a communication state. It has to be resent and get to a previous safe point before the service interruption. Implemented abstract method from semper.payment.PaymentTransaction
See Also:
resume
 o getTransactionRecord
  public PaymentTransactionRecord getTransactionRecord()
Gets an associated Record for this transaction. This transaction must be referenced by an genericTransactionRecord object, that will store and describe it perfectly. Implemented abstract method from semper.payment.PaymentTransaction
Overrides:
getTransactionRecord in class PaymentTransaction
See Also:
getTransactionRecord, PaymentTransactionRecord, genericTransactionRecord
 o getStatus
  public int getStatus()
Get current status for the Transaction object. Implemented abstract method from semper.payment.PaymentTransaction
Overrides:
getStatus in class PaymentTransaction
See Also:
getStatus
 o pay
  public void pay(PaymentEntity payee,
                  Amount amount,
                  Vector options,
                  String a_ext_ref[]) throws PaymentServiceException
Pay method. This performs the payment. Implemented from PurseServices.
Parameters:
payee - the entity getting paid
amount - the amount involved in the payment
options - specified& negotiated options for the payment
a_ext_ref - a reference for the payment
Throws: PaymentServiceException
to be handled
Overrides:
pay in class PaymentTransaction
See Also:
pay
 o receivePayment
  public void receivePayment(PaymentEntity payer,
                             Amount amount,
                             Vector options,
                             String a_ext_ref[]) throws PaymentServiceException
Receive a Payment. This method is invoked from the Seller for receiving a payment Parameters with names beginning with an "a_" are one-element arrays used to pass their constituent element by reference.
Parameters:
payer - The entity performing the payment
options - Options agreeded in the payment
a_ext_ref - A reference to use for the payment, like the item being buyed or something similar.
Throws: PaymentServiceException
on misc errors
Overrides:
receivePayment in class PaymentTransaction
See Also:
receivePayment
 o startMicropayment
  public void startMicropayment(PaymentEntity payee,
                                Amount max_amount,
                                Vector options,
                                String a_ext_ref[])
Start micropayments. Prepare for a series of subsequent micropayment operations. This will return a Transaction object on which related PurseServices operations can be performed. This abstract method is implementing the abstract method in MicropaymentServices.startMicropayment()
Parameters:
payee - The entity accepting the payment, seller normally
max_amount - Maximum limit for the amount to be paid
options - List of Security Service options for the transaction
a_ext_ref - External reference string, e.g. "1 kg. potatoes"
Returns:
A Transaction object
See Also:
startMicropayment
 o startReceiveMicropayment
  public void startReceiveMicropayment(PaymentEntity payer,
                                       Vector options,
                                       String a_ext_ref[])
Start (get ready to) accept Micropayments.
See Also:
startReceiveMicropayment
 o reversePayment
  public void reversePayment(PaymentTransactionRecord payment_reference)
Payment Reversal Request on a generic Payment System
Overrides:
reversePayment in class PaymentTransaction
See Also:
reversePayment
 o reverseReceivedPayment
  public void reverseReceivedPayment(PaymentTransactionRecord payment_reference)
Accept a Payment Reversal
Overrides:
reverseReceivedPayment in class PaymentTransaction
See Also:
reverseReceivedPayment
 o receiveRawPayment
  public void receiveRawPayment(PaymentEntity payer,
                                Amount amount,
                                Vector options,
                                String a_ext_ref[])
Receive "not cooked" payment (information) Receive securely a bunch of information that would be used in the payment. Like the credit number, ... etc. Implementing from Account Based Purse Services
See Also:
receiveRawPayment
 o multiAuthorise
  public void multiAuthorise(Vector list_of_transactions)
Multiple Authorisation The seller (normally) requests at the same time authorisation for several received payments
See Also:
multiAuthorise
 o multiCapture
  public void multiCapture(Vector list_of_transactions)
Multiple Captures The seller (normally) performs captures at the same time for several received payments
See Also:
multiCapture
 o authorise
  public void authorise(Amount amount)
Authorise Implementing from Account BasedPurseServices
See Also:
authorise
 o authorise
  public void authorise()
Authorise Implementing from AccountBasedPurseServices
See Also:
authorise
 o capture
  public void capture()
Capture Implementing from AccountBasedPurseServices
See Also:
capture
 o capture
  public void capture(Amount amount)
Capture Implementing from AccountBasedPurseServices
See Also:
capture
 o doMicropayment
  public void doMicropayment(Amount amount)
Do Micropayments Implementing from MicropaymentServices
See Also:
doMicropayment
 o stopMicropayment
  public void stopMicropayment()
Stop making all those micropayments This method informs that the micropayments should stop and then the transaction must finish.
See Also:
stopMicropayment
 o receiveMicropayment
  public void receiveMicropayment(Amount amount)
Receive (get and enjoy) a Micropayment
See Also:
receiveMicropayment
 o stopReceiveMicropayment
  public void stopReceiveMicropayment()
Stop getting those Micropayments (please)
See Also:
stopReceiveMicropayment

All Packages  Class Hierarchy  This Package  Previous  Next  Index