package com.crm.pay.service;

import com.crm.pay.dto.g.GPayDto;
import com.crm.pay.entity.callback.GPayCallbackEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

/**
 * @program: cwg-my-base
 * @description:
 * @author: houn
 * @create: 2022-06-20 10:44
 */
public interface GPayService {


    boolean verificationLimitQuantity(Long customId,String payType);
    /**
     * 支付
     *
     * @param balanceSaveEntity
     * @return
     * @throws ServiceException
     */
    String pay(FinanceDepositAddEntity balanceSaveEntity) throws Exception;

    /**
     * 回调
     *
     * @param callbackEntity
     * @throws ServiceException
     */
    GPayDto callback(GPayCallbackEntity callbackEntity, String payType) throws Exception;
}
