Repository navigation
Conversation
为 TransferBillsRequest 增加 user_recv_style.type 字段,支持设置收款确认页或红包样式。补充请求体序列化回归测试,验证显式设置和省略参数的行为。
There was a problem hiding this comment.
🟡 Changes recommended
需保留旧公共构造函数的兼容性,并修复设置收款样式后的 Java 序列化失败问题。
2 open findings
What changed in this PR
为微信支付商家转账请求补充收款样式参数,支持选择收款确认页或红包样式。
Changes:
- 新增
user_recv_style.type字段及说明。 - 补充显式设置与省略参数时的请求序列化回归测试。
| File | Description |
|---|---|
| weixin-java-pay/src/test/java/com/github/binarywang/wxpay/service/impl/TransferUserAuthorizationApiCompatibilityTest.java | 验证收款样式字段的发送与省略行为。 |
| weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBillsRequest.java | 新增收款样式字段和嵌套模型。 |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
| * 用户收款样式;不传时默认展示收款确认页。 | ||
| */ | ||
| @SerializedName("user_recv_style") | ||
| private UserRecvStyle userRecvStyle; |
| @Builder(builderMethodName = "newBuilder") | ||
| @AllArgsConstructor | ||
| @NoArgsConstructor | ||
| public static class UserRecvStyle { |
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.


为 TransferBillsRequest 增加 user_recv_style.type 字段,支持设置收款确认页或红包样式。补充请求体序列化回归测试,验证显式设置和省略参数的行为。