Skip to content

feat(pay): 补齐商家转账收款样式参数 - #4132

Open
CalmChih wants to merge 1 commit into
binarywang:developfrom
CalmChih:develop
Open

CalmChih wants to merge 1 commit into
binarywang:developfrom
CalmChih:develop

Conversation

@CalmChih

Copy link
Copy Markdown

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

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants