Skip to content

Commit 6a2eb77

Browse files
binarywangCopilot
andauthored
Modify TransferBillsRequest constructor to include userRecvStyle
Retain original constructor while adding default for userRecvStyle. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e8ff24d commit 6a2eb77

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/transfer/TransferBillsRequest.java‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,19 @@ public class TransferBillsRequest implements Serializable {
9393
@SerializedName("user_recv_style")
9494
private UserRecvStyle userRecvStyle;
9595

96+
/**
97+
* 保留原有全参构造函数,所有参数语义不变,用户收款样式默认不设置。
98+
*/
99+
public TransferBillsRequest(String appid, String outBillNo, String transferSceneId,
100+
String openid, String userName, Integer transferAmount, String transferRemark,
101+
String notifyUrl, String userRecvPerception,
102+
List<TransferSceneReportInfo> transferSceneReportInfos, AuthorizationInfo authorizationInfo,
103+
String authorizationId, String outAuthorizationNo, String receiptAuthorizationMode) {
104+
this(appid, outBillNo, transferSceneId, openid, userName, transferAmount, transferRemark,
105+
notifyUrl, userRecvPerception, transferSceneReportInfos, null, authorizationInfo,
106+
authorizationId, outAuthorizationNo, receiptAuthorizationMode);
107+
}
108+
96109
/**
97110
* 自动收款授权信息
98111
*/

0 commit comments

Comments
 (0)