Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add batch transfer feature for micro employment cards
新增微工卡批量转账API支持
Jan 19, 2026
🤖 Augment PR SummarySummary: 本 PR 为微信支付 V3「微工卡」补充了此前缺失的批量转账接口支持,覆盖服务商场景下的 Changes:
Technical Notes: 敏感字段(如明细中的 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Pull request overview
此 PR 为微信支付 SDK 新增了微工卡批量转账 API 支持,补充了官方文档中存在但在 4.8.0 版本及之前缺失的 /v3/payroll-card/transfer-batches 接口。
Changes:
- 新增
PayrollTransferBatchesRequest和PayrollTransferBatchesResult两个数据模型类,支持批量转账请求和响应 - 在
PayrollService接口和PayrollServiceImpl实现类中添加payrollCardTransferBatches方法 - 添加相应的单元测试用例到
PayrollServiceImplTest
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| PayrollTransferBatchesRequest.java | 新增批量转账请求模型,包含批次信息和转账明细列表,userName 字段使用 @SpecEncrypt 注解支持自动加密 |
| PayrollTransferBatchesResult.java | 新增批量转账响应模型,包含批次状态、金额统计等完整的返回字段 |
| PayrollService.java | 在服务接口中新增 payrollCardTransferBatches 方法定义 |
| PayrollServiceImpl.java | 实现批量转账方法,包含敏感信息加密处理和 V3 API 调用 |
| PayrollServiceImplTest.java | 新增测试用例验证批量转账功能 |
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/service/impl/PayrollServiceImpl.java
Outdated
Show resolved
Hide resolved
…ice/impl/PayrollServiceImpl.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
补充微信支付官方微工卡批量转账接口
/v3/payroll-card/transfer-batches,该接口在 4.8.0 及之前版本中缺失。变更内容
新增请求/响应模型
PayrollTransferBatchesRequest: 批量转账请求参数,支持最多 1000 笔明细PayrollTransferBatchesResult: 批次状态、金额统计等返回信息扩展 PayrollService
payrollCardTransferBatches()方法RsaCryptoUtil.encryptFields()自动处理@SpecEncrypt注解字段加密,与TransferService实现保持一致单元测试
PayrollServiceImplTest中新增测试用例使用示例
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.