com.pax.dal

Interface IPaymentDevice



  • public interface IPaymentDevice
    支付设备类。
    Payment device class.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void controlPower(boolean isOn)
      给支付设备上电或者下电。
      Power up or down the payment device.
      void controlPower(java.lang.String exDev, boolean isOn)
      给支付设备上电或者下电。
      Power up or down the payment device.
      java.lang.String[] getExDeviceInfos()
      获取当前系统支持的设备。
      Get the devices supported by the current system.
      int getStatus()
      获取支付模块状态。
      Get the status of the payment device.
      int getStatus(java.lang.String exDev)
      获取设备状态。
      Get the status of the payment device.
      boolean mutiExDevSupport()
      是否支持多外接设备(机型:M8)。
      Whether to support multiple external devices(Model: M8).
      void wakeup()
      唤醒支付设备。
      Wake up the payment device.
      void wakeup(java.lang.String exDev)
      唤醒支付设备。
      Wake up the payment device.
    • Method Detail

      • controlPower

        void controlPower(boolean isOn)
                   throws java.lang.Exception
        给支付设备上电或者下电。
        Power up or down the payment device.
        Parameters:
        isOn -
        • false:下电。
        • true:上电。
        • false:Power down.
        • true:Power up.
        Throws:
        java.lang.Exception
        Since:
        V3.20.00
      • wakeup

        void wakeup()
             throws java.lang.Exception
        唤醒支付设备。
        Wake up the payment device.
        Throws:
        java.lang.Exception
        Since:
        V3.20.00
      • getStatus

        int getStatus()
               throws java.lang.Exception
        获取支付模块状态。
        Get the status of the payment device.
        Returns:
        • 1:未上电。
        • 2:上电但未就绪。
        • 3:就绪。
        • 4:休眠。
        • 1:No power on.
        • 2:Power on but not ready.
        • 3:Be ready.
        • 4:Dormancy.
        Throws:
        java.lang.Exception
        Since:
        V3.20.00
      • getStatus

        int getStatus(java.lang.String exDev)
               throws java.lang.Exception
        获取设备状态。
        Get the status of the payment device.
        Parameters:
        exDev -
        设备名
        device name
        Returns:
        • 1:未上电。
        • 2:上电但未就绪。
        • 3:就绪。
        • 4:休眠。
        • 1:No power on.
        • 2:Power on but not ready.
        • 3:Be ready.
        • 4:Dormancy.
        Throws:
        java.lang.Exception
        Since:
        V3.28.00
      • controlPower

        void controlPower(java.lang.String exDev,
                          boolean isOn)
                   throws java.lang.Exception
        给支付设备上电或者下电。
        Power up or down the payment device.
        Parameters:
        exDev -
        设备名
        device name
        isOn -
        • false:下电。
        • true:上电。
        • false:Power down.
        • true:Power up.
        Throws:
        java.lang.Exception
        Since:
        V3.28.00
      • wakeup

        void wakeup(java.lang.String exDev)
             throws java.lang.Exception
        唤醒支付设备。
        Wake up the payment device.
        Parameters:
        exDev -
        设备名
        device name
        Throws:
        java.lang.Exception
        Since:
        V3.28.00
      • getExDeviceInfos

        java.lang.String[] getExDeviceInfos()
                                     throws java.lang.Exception
        获取当前系统支持的设备。
        Get the devices supported by the current system.
        Returns:
        设备名称数组
        Device name array
        Throws:
        java.lang.Exception
        Since:
        V3.28.00
      • mutiExDevSupport

        boolean mutiExDevSupport()
                          throws java.lang.Exception
        是否支持多外接设备(机型:M8)。
        Whether to support multiple external devices(Model: M8).
        Returns:
        true: 支持, false: 不支持
        true: support, false: not support
        Throws:
        java.lang.Exception
        Since:
        V3.28.00