package com.cku.oa.sys.zalog;

import com.cku.core.ZAErrorCode;
import com.cku.core.ZAException;

/**
 * Created with IntelliJ IDEA.
 * User: lyy
 * Date: 2016/7/8
 * Time: 17:00
 */
public class SysTimeOutPayState implements SysState {
    @Override
    public void createOrder(SysContext ckuContext, String info,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }

    @Override
    public void payment(SysContext ckuContext, String info,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }

    @Override
    public void cancelApply(SysContext ckuContext, String info,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }

    @Override
    public void confirmSuccess(SysContext ckuContext, String info,String memberCode, String tableName,String businessId,String runningNumber, SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }

    @Override
    public void confirmFail(SysContext ckuContext, String info, String errorInfo,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }

    @Override
    public void updateInfo(SysContext ckuContext, String info,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }

    @Override
    public void updateData(SysContext ckuContext, String info,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }

    @Override
    public void offlineRefund(SysContext ckuContext, String info,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String, ZAException> consumer) throws ZAException {
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }
    @Override
    public void noStateExecute(SysContext ckuContext, String info,String memberCode,String tableName,String businessId,String runningNumber,  SysConsumer<String,ZAException> consumer) throws ZAException{
        throw new ZAException(ZAErrorCode.ZA_ERC_TIMEOUTPAY_STATE,"支付超时，无法进行此操作！");
    }
}
