-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
[WIP] Expose WeChat authorization interfaces for merchant transfers #4044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,6 +87,24 @@ public class TransferBillsRequest implements Serializable { | |
| @SerializedName("transfer_scene_report_infos") | ||
| private List<TransferSceneReportInfo> transferSceneReportInfos; | ||
|
|
||
| /** | ||
| * 自动收款授权信息 | ||
| */ | ||
| @SerializedName("authorization_info") | ||
| private AuthorizationInfo authorizationInfo; | ||
|
|
||
| /** | ||
| * 微信免确认收款授权单号 | ||
| */ | ||
| @SerializedName("authorization_id") | ||
| private String authorizationId; | ||
|
Comment on lines
+99
to
+100
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When callers set Useful? React with 👍 / 👎. |
||
|
|
||
| /** | ||
| * 商户侧授权单号 | ||
| */ | ||
| @SerializedName("out_authorization_no") | ||
| private String outAuthorizationNo; | ||
|
Comment on lines
+90
to
+106
|
||
|
|
||
| /** | ||
| * 收款授权模式 | ||
| * <pre> | ||
|
|
@@ -125,4 +143,28 @@ public static class TransferSceneReportInfo { | |
| @SerializedName("info_content") | ||
| private String infoContent; | ||
| } | ||
|
|
||
| @Data | ||
| @Builder(builderMethodName = "newBuilder") | ||
| @AllArgsConstructor | ||
| @NoArgsConstructor | ||
| public static class AuthorizationInfo { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Severity: medium 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| /** | ||
| * 用户展示名称 | ||
| */ | ||
| @SerializedName("user_display_name") | ||
| private String userDisplayName; | ||
|
|
||
| /** | ||
| * 商户侧授权单号 | ||
| */ | ||
| @SerializedName("out_authorization_no") | ||
| private String outAuthorizationNo; | ||
|
|
||
| /** | ||
| * 自动收款授权结果通知地址 | ||
| */ | ||
| @SerializedName("authorization_notify_url") | ||
| private String authorizationNotifyUrl; | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When callers populate
authorizationInfo,TransferServiceImpl.transferBillsstill serializes this request to/v3/fund-app/mch-transfer/transfer-bills. WeChat documentsauthorization_infoonly forPOST /v3/fund-app/mch-transfer/transfer-bills/pre-transfer-with-authorization(https://pay.wechatpay.cn/doc/v3/merchant/4014399293); the regular transfer endpoint doesn't accept it, so this newly exposed field will produce an unsupported request instead of starting the transfer+authorization flow.Useful? React with 👍 / 👎.