Class CashDeposit

All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AuthorizeCompletion

public class CashDeposit extends CheckCard
Output request executor for CAT method CashDeposit.
  • Constructor Details

    • CashDeposit

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

    • getAmount

      public long getAmount()
      Get amount of money.
      Returns:
      Amount of money.
    • 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 CheckCard
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.