Skip to content

Commit

Permalink
[WeChatPay.V3] 发起商家转账API 添加 "转账场景Id"、"批次状态" 参数 (#155)
Browse files Browse the repository at this point in the history
1、WeChatPayTransferBatchesBodyModel添加【转账场景ID】
2、WeChatPayTransferBatchesResponse添加【批次状态】
  • Loading branch information
igaobingbing authored Jul 4, 2023
1 parent 19cb11e commit c5df363
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
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; }

}

0 comments on commit c5df363

Please sign in to comment.