package com.bohuikeji.delivery.backstage.service;

import com.alibaba.fastjson.JSONObject;
import com.bohuikeji.delivery.backstage.entity.TCustomer;
import com.bohuikeji.delivery.backstage.entity.TCustomerPay;
import com.bohuikeji.frame.module.admin.base.ServiceBase;
import com.bohuikeji.frame.module.admin.entity.vo.AliReturnPayVo;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 客户钱包充值缴费记录 服务类
 * </p>
 *
 * @author 10552
 * @since 2019-12-27
 */
public interface ITCustomerPayService extends ServiceBase<TCustomerPay> {

    /**
     * 客户钱包充值预支付订单
     * @param TCustomer
     * @param price
     * @param payWay
     * @param scenario
     * @return
     */
    TCustomerPay createWalletPay(TCustomer TCustomer, String price, String payWay, String scenario,String location);

    /**
     * 开放平台
     * 付款路径返回（在生成二维码支付）
     * @param customer
     * @param price
     * @param type
     * @param payStatus
     * @param request
     * @return
     */
    JSONObject getCustomer(TCustomer customer, String price, String type, String payStatus,HttpServletRequest request);

    /**
     * 微信&支付宝钱包充值，业务处理
     * @param req
     * @param customerPay
     * @param jsonObject
     * @return
     */
    boolean updateWalletPay(AliReturnPayVo req, TCustomerPay customerPay, JSONObject jsonObject);

}
