package com.crm.pay.service;

import com.crm.pay.dto.callback.ecom.EcomResultDto;
import com.crm.pay.dto.finance.withdraw.automatic.FinanceWithdrawEcomDto;
import com.crm.pay.entity.callback.EcomCallbackEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawEcomEntity;
import com.crm.pay.entity.finance.withdraw.automatic.FinanceWithdrawInfoEntity;
import com.crm.rely.backend.model.entity.finance.deposit.FinanceDepositAddEntity;

/**
 * @program: cwg-my-base
 * @description:
 * @author: houn
 * @create: 2024-01-20 12:44
 */
public interface EcomService {

    /**
     * 支付
     *
     * @param balanceSaveEntity 支付实体
     * @return
     * @throws Exception
     */
    String pay(FinanceDepositAddEntity balanceSaveEntity) throws Exception;

    /**
     * 回调
     *
     * @param callbackEntity 回调实体
     * @throws Exception
     */
    EcomResultDto callback(EcomCallbackEntity callbackEntity) throws Exception;

    FinanceWithdrawEcomDto withdrawInfo(FinanceWithdrawInfoEntity entity) throws Exception;

    String withdraw(FinanceWithdrawEcomEntity entity) throws Exception;
}
