package com.alan344happyframework.core;

import com.alan344happyframework.bean.PayBase;
import com.alan344happyframework.bean.PayResponse;
import com.alan344happyframework.bean.TransferMoneyInternal;
import com.alan344happyframework.exception.PayException;
import com.alan344happyframework.weixin.entity.TransferToBankCardParams;

/**
 * @author AlanSun
 * @date 2019/7/22 16:50
 **/
public class TransferAccountsUtils {

    /**
     * 第三方内部转账，如果是支付宝就转账至余额，如果是微信就转账至零钱
     */
    public static PayResponse transferMoneyInternal(TransferMoneyInternal params) throws PayException {
        return PayIntegrate.getPay(params.getPayType()).transferMoneyInternal(params);
    }

    /**
     * 转账到银行卡
     * <p>
     * 支付宝未开放该接口
     */
    public static PayResponse transferToBankCard(TransferToBankCardParams params) throws PayException {
        return PayIntegrate.getPay(PayBase.PAY_TYPE_2).transferToBankCard(params);
    }

    /**
     * 查询转账到银行卡的结果
     * <p>
     * 支付宝未开放该接口
     */
    PayResponse getResultOfTransferToBank(String orderId) throws PayException {
        return PayIntegrate.getPay(PayBase.PAY_TYPE_2).getResultOfTransferToBank(orderId);
    }
}

@@ -128,24 +128,90 @@
 ayResponse;%0A
+import com.alan344happyframework.bean.QueryTransferMoneyInternal;%0A
 import com.a
@@ -251,32 +251,32 @@
 rMoneyInternal;%0A
-
 import com.alan3
@@ -727,32 +727,290 @@
 params);%0A    %7D%0A%0A
+    /**%0A     * %E6%9F%A5%E8%AF%A2%E5%86%85%E9%83%A8%E8%BD%AC%E8%B4%A6%E7%9A%84%E7%BB%93%E6%9E%9C%0A     */%0A    public static PayResponse getResultOftransferMoneyInternal(QueryTransferMoneyInternal params) throws PayException %7B%0A        return PayIntegrate.getPay(params.getPayType()).getResultOfTransferMoneyInternal(params);%0A    %7D%0A%0A
     /**%0A     * %E8%BD%AC
@@ -1308,20 +1308,34 @@
      */%0A
-
     
+public static 
 PayRespo

add 查询微信企业付款