Skip to content
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

[WeChatPay.V3] 发起商家转账API 添加 "转账场景Id"、"批次状态" 参数。 #155

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class WeChatPayTransferBatchesBodyModel : WeChatPayObject
/// 转账总笔数
/// </summary>
/// <remarks>
/// 个转账批次单最多发起三千笔转账。转账总笔数必须与批次内所有明细之和保持一致,否则无法发起转账操作
/// 一个转账批次单最多发起一千笔转账。转账总笔数必须与批次内所有明细之和保持一致,否则无法发起转账操作
/// <para>示例值:200</para>
/// </remarks>
[JsonPropertyName("total_num")]
Expand All @@ -72,8 +72,19 @@ public class WeChatPayTransferBatchesBodyModel : WeChatPayObject
/// 转账明细列表
/// </summary>
/// <remarks>
/// 发起批量转账的明细列表,最多三千笔
/// 发起批量转账的明细列表,最多一千笔
/// </remarks>
[JsonPropertyName("transfer_detail_list")]
public List<TransferDetail> TransferDetailList { get; set; }


/// <summary>
/// 转账场景ID
/// </summary>
/// <remarks>
/// 该批次转账使用的转账场景,如不填写则使用商家的默认场景,如无默认场景可为空,可前往“商家转账到零钱-前往功能”中申请。
/// 如:1001-现金营销
/// </remarks>
[JsonPropertyName("transfer_scene_id")]
public string TransferSceneId { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,17 @@ public class WeChatPayTransferBatchesResponse : WeChatPayResponse
/// </remarks>
[JsonPropertyName("create_time")]
public string CreateTime { get; set; }

/// <summary>
/// 批次状态
/// </summary>
/// <remarks>
///ACCEPTED:已受理。批次已受理成功,若发起批量转账的30分钟后,转账批次单仍处于该状态,可能原因是商户账户余额不足等。商户可查询账户资金流水,若该笔转账批次单的扣款已经发生,则表示批次已经进入转账中,请再次查单确认
///PROCESSING:转账中。已开始处理批次内的转账明细单
///FINISHED:已完成。批次内的所有转账明细单都已处理完成
///CLOSED:已关闭。可查询具体的批次关闭原因确认
/// </remarks>
[JsonPropertyName("batch_status")]
public string BatchStatus { get; set; }

}