package com.jeequan.jeepay.core.interfaces.device;

import com.alibaba.fastjson.JSONObject;
import com.jeequan.jeepay.core.exception.BizException;
import com.jeequan.jeepay.core.model.device.PayOrderInfo4Device;

/**
 * 调起播报接口
 *
 * @author zx
 *
 * @date 2021/12/16 11:31
 */
public interface IPrinterService {

    /** 调起打印
     * @param deviceParams
     * @param printPayOrderInfo
     * **/
    void send(JSONObject deviceParams, PayOrderInfo4Device printPayOrderInfo) throws BizException;

    /** 打印机  自定义语音播报
     * @param deviceParams
     * @param printPayOrderInfo
     * **/
    void sendCustomMsg(JSONObject deviceParams, PayOrderInfo4Device printPayOrderInfo) throws BizException;

    /** 添加打印机
     * @param deviceParams
     * **/
    String addPrinter(JSONObject deviceParams);

    /** 修改打印机
     * @param deviceParams
     * **/
    String editPrinter(JSONObject deviceParams);

    /** 清除打印队列
     * @param deviceParams
     * **/
    String clearPrinter(JSONObject deviceParams);

}
