Class AuthorizeCompletion

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AuthorizePreSales, AuthorizeRefund, AuthorizeSales, AuthorizeVoid, AuthorizeVoidPreSales

public class AuthorizeCompletion extends CashDeposit
Output request executor for ElectronicValueRW method AuthorizeCompletion.
  • Constructor Details

    • AuthorizeCompletion

      public AuthorizeCompletion(ElectronicValueRWProperties 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 ElectronicValueRW device.
  • Method Details

    • getTaxOthers

      public long getTaxOthers()
      Get tax and other amounts for approval.
      Returns:
      Tax and other amounts for approval.
    • 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 CashDeposit
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.