package com.iformall.service;

import com.alibaba.fastjson.JSONObject;
import com.iformall.exception.MallinkException;

import java.util.Map;


public interface PosService {

    /**
     * 获取商城会员设置状态
     * @param params
     * @return
     */
    JSONObject checkUserPassword(Map<String, String> params) throws MallinkException;

    /**
     * 支付计算
     * @param params
     * @return
     */
    JSONObject queryAndCalcMem(Map<String, String> params) throws MallinkException;

    /**
     * 优惠核销(包含核销，支付预核销)
     * @param params
     * @return
     * @throws MallinkException
     */
    JSONObject couponOrderVerify(Map<String, String> params) throws MallinkException;

    /**
     * 优惠撤销(包含核销撤销，支付预核销撤销)
     * @param params
     * @return
     * @throws MallinkException
     */
    JSONObject couponOrderVerifyCancel(Map<String, String> params) throws MallinkException;

    /**
     * 消费卡POS预支付
     * @param params
     * @return
     * @throws MallinkException
     */
    JSONObject cardPayPre(Map<String, String> params) throws MallinkException;

    /**
     * 消费卡POS预支付取消
     * @param params
     * @return
     * @throws MallinkException
     */
    JSONObject cardPayPreCancel(Map<String, String> params) throws MallinkException;

    /**
     * 订单同步-Neusoft-支付或者退款成功后通知富茂
     * @param params
     * @return
     * @throws MallinkException
     */
    JSONObject posOrderSync(Map<String, String> params) throws MallinkException;

    /**
     * 消费卡POS支付
     * @param params
     * @return
     * @throws MallinkException
     */
    //Map<String, String> cardPay(Map<String, String> params) throws MallinkException;


    /**
     * 消费卡POS支付取消
     * @param params
     * @return
     * @throws MallinkException
     */
    //Map<String, String> cardPayCancel(Map<String, String> params) throws MallinkException;


}
