🆕 #3862 【微信支付】 增加V3「微工卡」的批量转账接口实现
This commit is contained in:
@@ -14,6 +14,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.testng.annotations.Guice;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* 微工卡(服务商)
|
||||
*
|
||||
@@ -125,4 +127,29 @@ public class PayrollServiceImplTest {
|
||||
log.info(result.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void payrollCardTransferBatches() throws WxPayException {
|
||||
PayrollTransferBatchesRequest request = PayrollTransferBatchesRequest.builder()
|
||||
.appid("wxa1111111")
|
||||
.subMchid("1111111")
|
||||
.subAppid("wxa1111111")
|
||||
.outBatchNo("plfk2020042013" + System.currentTimeMillis())
|
||||
.batchName("2019年1月深圳分部报销单")
|
||||
.batchRemark("2019年1月深圳分部报销单")
|
||||
.totalAmount(200000L)
|
||||
.totalNum(1)
|
||||
.transferDetailList(Collections.singletonList(
|
||||
PayrollTransferBatchesRequest.TransferDetail.builder()
|
||||
.outDetailNo("x23zy545Bd5436" + System.currentTimeMillis())
|
||||
.transferAmount(200000L)
|
||||
.transferRemark("2020年4月报销")
|
||||
.openid("o-MYE42l80oelYMDE34nYD456Xoy")
|
||||
.userName("张三")
|
||||
.build()
|
||||
))
|
||||
.build();
|
||||
PayrollTransferBatchesResult result = wxPayService.getPayrollService().payrollCardTransferBatches(request);
|
||||
log.info(result.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user