Class AuthorizePreSales

All Implemented Interfaces:
Runnable

public class AuthorizePreSales extends AuthorizeCompletion
Output request executor for CAT method AuthorizePreSales.
  • Constructor Details

    • AuthorizePreSales

      public AuthorizePreSales(CATProperties data, int sequenceNumber, long amount, long taxOthers, int timeout)
      Constructor. Stores given parameters for later use.
      Parameters:
      data - Property set of device service.
      sequenceNumber - Sequence number for approval.
      amount - Purchase amount for approval.
      taxOthers - Tax and other amounts for approval.
      timeout - The maximum waiting time (in milliseconds) until the response is received from the CAT device.
  • Method Details

    • invoke

      public void invoke() throws jpos.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class AuthorizeCompletion
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.