添加 BatchDetailsResult 的 bankName 和 bankCardNumberTail 字段#3860
Merged
binarywang merged 2 commits intodevelopfrom Jan 20, 2026
Merged
添加 BatchDetailsResult 的 bankName 和 bankCardNumberTail 字段#3860binarywang merged 2 commits intodevelopfrom
binarywang merged 2 commits intodevelopfrom
Conversation
Co-authored-by: binarywang <1343140+binarywang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add bankName and bankCardNumberTail fields to BatchDetailsResult
添加 BatchDetailsResult 的 bankName 和 bankCardNumberTail 字段
Jan 19, 2026
🤖 Augment PR SummarySummary: 本 PR 补齐微信支付“转账到银行卡”明细查询接口返回字段在 Changes:
Technical Notes: 新增字段仅在“转账到银行卡”场景返回;对“转账到零钱”等不返回该字段的场景保持为 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Pull request overview
此 PR 为 BatchDetailsResult 实体类添加了微信支付 API 返回的银行相关字段,解决了转账到银行卡场景下关键信息丢失的问题。
Changes:
- 在
BatchDetailsResult类中添加bankName(开户银行全称)和bankCardNumberTail(银行卡号后四位)两个可选字段 - 使用
@SerializedName注解正确映射 API 返回的bank_name和bank_card_number_tail - 新增完整的单元测试用例,覆盖包含/不包含银行字段、序列化、特殊字符等多种场景
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| BatchDetailsResult.java | 添加 bankName 和 bankCardNumberTail 两个私有字段,使用 @SerializedName 注解进行 JSON 映射,并添加完整的 JavaDoc 文档说明字段用途、类型和示例值 |
| BatchDetailsResultTest.java | 新增测试类,包含 5 个测试方法验证新字段的反序列化、序列化、toString、特殊字符处理和失败场景,测试覆盖全面 |
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.
微信支付转账到银行卡的查询接口返回
bank_name和bank_card_number_tail字段,但BatchDetailsResult实体类缺少对应的属性映射,导致这些数据丢失。变更内容
BatchDetailsResult.java: 添加
bankName和bankCardNumberTail字段@SerializedName映射 API 返回的bank_name和bank_card_number_tailBatchDetailsResultTest.java: 新增单元测试
使用示例
转账到零钱场景下这两个字段为
null。Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
gitee.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)wx.gtimg.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.