1
0
mirror of synced 2025-12-26 04:27:56 +08:00

#392 微信支付增加企业付款到银行卡的相关接口

This commit is contained in:
Binary Wang
2017-12-21 23:49:57 +08:00
parent 34a974bc28
commit 0240fffa1c
10 changed files with 178 additions and 14 deletions

View File

@@ -1,8 +1,8 @@
package com.github.binarywang.wxpay.service.impl;
import com.github.binarywang.wxpay.bean.entpay.EntPayRequest;
import com.github.binarywang.wxpay.bean.entpay.EntPayBankRequest;
import com.github.binarywang.wxpay.bean.entpay.EntPayBankResult;
import com.github.binarywang.wxpay.bean.entpay.EntPayRequest;
import com.github.binarywang.wxpay.bean.request.WxEntPayRequest;
import com.github.binarywang.wxpay.constant.WxPayConstants;
import com.github.binarywang.wxpay.exception.WxPayException;
@@ -16,7 +16,7 @@ import org.testng.annotations.Test;
/**
* <pre>
* 企业付款测试类
* 企业付款测试类.
* Created by BinaryWang on 2017/12/19.
* </pre>
*
@@ -72,8 +72,8 @@ public class EntPayServiceImplTest {
}
@Test
public void testPayToBankCard() throws Exception {
EntPayBankResult result = this.payService.getEntPayService().payToBankCard(EntPayBankRequest.builder()
public void testPayBank() throws Exception {
EntPayBankResult result = this.payService.getEntPayService().payBank(EntPayBankRequest.builder()
.bankCode("aa")
.amount(1)
.encBankNo("1")
@@ -83,4 +83,9 @@ public class EntPayServiceImplTest {
.build());
this.logger.info(result.toString());
}
@Test
public void testQueryPayBank() throws Exception {
this.logger.info(this.payService.getEntPayService().queryPayBank("123").toString());
}
}