Closed
Conversation
Closed
Closed
Comment on lines
+93
to
114
| /** | ||
| * <pre> | ||
| * 字段名:分账金额 | ||
| * 是否必填:是 | ||
| * 描述:分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额。调整最大分账比例:特约商户登录商户平台,进入以下页面:产品中心-授权的产品-分账授权 | ||
| * </pre> | ||
| */ | ||
| @SerializedName("amount") | ||
| private Integer amount; | ||
|
|
||
| /** | ||
| * <pre> | ||
| * 字段名:分账描述 | ||
| * 是否必填:是 | ||
| * 描述:分账的原因描述,会在查询分账结果接口和分账账单中原样返回 | ||
| * </pre> | ||
| */ | ||
| @SerializedName("description") | ||
| private String description; | ||
|
|
||
| /** | ||
| * <pre> |
There was a problem hiding this comment.
添加的 amount 和 description 字段可能不适用于分账接收方管理接口。
根据微信支付分账业务逻辑:
ProfitSharingReceiverV3Request用于/v3/profitsharing/receivers/add和/v3/profitsharing/receivers/delete接口,目的是管理分账接收方白名单(添加/删除哪些账户可以接收分账)- 而
amount(分账金额)和description(分账描述)应该属于实际执行分账操作时的参数,已经存在于ProfitSharingV3Request.Receiver类中(用于/v3/profitsharing/orders接口)
添加接收方时通常只需要指定接收方的身份信息(type、account、name、relation_type 等),而不需要指定具体的分账金额和描述。这些参数应该在每次实际分账请求时动态指定。
建议:
- 核实微信支付官方文档 https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_1_8.shtml 是否真的要求在添加接收方时提供这些字段
- 如果文档未要求,应将这两个字段移除,保持 API 设计的准确性
Suggested change
| /** | |
| * <pre> | |
| * 字段名:分账金额 | |
| * 是否必填:是 | |
| * 描述:分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额。调整最大分账比例:特约商户登录商户平台,进入以下页面:产品中心-授权的产品-分账授权 | |
| * </pre> | |
| */ | |
| @SerializedName("amount") | |
| private Integer amount; | |
| /** | |
| * <pre> | |
| * 字段名:分账描述 | |
| * 是否必填:是 | |
| * 描述:分账的原因描述,会在查询分账结果接口和分账账单中原样返回 | |
| * </pre> | |
| */ | |
| @SerializedName("description") | |
| private String description; | |
| /** | |
| * <pre> | |
| /** | |
| * <pre> |
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.
No description provided.