1
0
mirror of synced 2026-02-13 07:37:48 +08:00

🆕 #3862 【微信支付】 增加V3「微工卡」的批量转账接口实现

This commit is contained in:
Copilot
2026-01-20 13:07:50 +08:00
committed by GitHub
parent 373d9fa5f1
commit e02f6d234c
5 changed files with 542 additions and 0 deletions

View File

@@ -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());
}
}