feat(tenpayv3): 随官方更新商家转账到零钱相关接口模型

This commit is contained in:
fudiwei 2022-11-26 22:12:18 +08:00
parent 5e794f1cb7
commit dd59c13bc8
6 changed files with 36 additions and 9 deletions

View File

@ -48,6 +48,15 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
[WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_RSA_2048_WITH_SHA256, algorithm: Constants.EncryptionAlgorithms.RSA_2048_ECB_PKCS8_OAEP_WITH_SHA1_AND_MGF1)] [WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_RSA_2048_WITH_SHA256, algorithm: Constants.EncryptionAlgorithms.RSA_2048_ECB_PKCS8_OAEP_WITH_SHA1_AND_MGF1)]
[WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_SM2_WITH_SM3, algorithm: Constants.EncryptionAlgorithms.SM2_C1C3C2_ASN1)] [WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_SM2_WITH_SM3, algorithm: Constants.EncryptionAlgorithms.SM2_C1C3C2_ASN1)]
public string? UserName { get; set; } public string? UserName { get; set; }
/// <summary>
/// 获取或设置收款用户身份证号(需使用平台公钥/证书加密)。
/// </summary>
[Newtonsoft.Json.JsonProperty("user_id_card")]
[System.Text.Json.Serialization.JsonPropertyName("user_id_card")]
[WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_RSA_2048_WITH_SHA256, algorithm: Constants.EncryptionAlgorithms.RSA_2048_ECB_PKCS8_OAEP_WITH_SHA1_AND_MGF1)]
[WechatTenpaySensitiveProperty(scheme: Constants.SignSchemes.WECHATPAY2_SM2_WITH_SM3, algorithm: Constants.EncryptionAlgorithms.SM2_C1C3C2_ASN1)]
public string? UserIdCardNumber { get; set; }
} }
} }
@ -99,5 +108,12 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
[Newtonsoft.Json.JsonProperty("transfer_detail_list")] [Newtonsoft.Json.JsonProperty("transfer_detail_list")]
[System.Text.Json.Serialization.JsonPropertyName("transfer_detail_list")] [System.Text.Json.Serialization.JsonPropertyName("transfer_detail_list")]
public IList<Types.TransferDetail> TransferDetailList { get; set; } = new List<Types.TransferDetail>(); public IList<Types.TransferDetail> TransferDetailList { get; set; } = new List<Types.TransferDetail>();
/// <summary>
/// 获取或设置转账场景 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("transfer_scene_id")]
[System.Text.Json.Serialization.JsonPropertyName("transfer_scene_id")]
public string? TransferSceneId { get; set; }
} }
} }

View File

@ -1,4 +1,4 @@
using System; using System;
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
{ {
@ -133,6 +133,13 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
[Newtonsoft.Json.JsonProperty("fail_num")] [Newtonsoft.Json.JsonProperty("fail_num")]
[System.Text.Json.Serialization.JsonPropertyName("fail_num")] [System.Text.Json.Serialization.JsonPropertyName("fail_num")]
public int FailNumber { get; set; } public int FailNumber { get; set; }
/// <summary>
/// 获取或设置转账场景 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("transfer_scene_id")]
[System.Text.Json.Serialization.JsonPropertyName("transfer_scene_id")]
public string? TransferSceneId { get; set; }
} }
public class TransferDetail public class TransferDetail

View File

@ -1,4 +1,4 @@
{ {
"appid": "wxf636efh567hg4356", "appid": "wxf636efh567hg4356",
"out_batch_no": "plfk2020042013", "out_batch_no": "plfk2020042013",
"batch_name": "2019年1月深圳分部报销单", "batch_name": "2019年1月深圳分部报销单",
@ -11,7 +11,9 @@
"transfer_amount": 200000, "transfer_amount": 200000,
"transfer_remark": "2020年4月报销", "transfer_remark": "2020年4月报销",
"openid": "o-MYE42l80oelYMDE34nYD456Xoy", "openid": "o-MYE42l80oelYMDE34nYD456Xoy",
"user_name": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45" "user_name": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45",
"user_id_card": "8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f"
} }
] ],
"transfer_scene_id": "1000"
} }

View File

@ -1,4 +1,4 @@
{ {
"transfer_batch": { "transfer_batch": {
"mchid": "1900001109", "mchid": "1900001109",
"out_batch_no": "plfk2020042013", "out_batch_no": "plfk2020042013",
@ -16,7 +16,8 @@
"success_amount": 3900000, "success_amount": 3900000,
"success_num": 199, "success_num": 199,
"fail_amount": 100000, "fail_amount": 100000,
"fail_num": 1 "fail_num": 1,
"transfer_scene_id": "1000"
}, },
"transfer_detail_list": [ "transfer_detail_list": [
{ {

View File

@ -1,4 +1,4 @@
{ {
"transfer_batch": { "transfer_batch": {
"mchid": "1900001109", "mchid": "1900001109",
"out_batch_no": "plfk2020042013", "out_batch_no": "plfk2020042013",
@ -16,7 +16,8 @@
"success_amount": 3900000, "success_amount": 3900000,
"success_num": 199, "success_num": 199,
"fail_amount": 100000, "fail_amount": 100000,
"fail_num": 1 "fail_num": 1,
"transfer_scene_id": "1000"
}, },
"transfer_detail_list": [ "transfer_detail_list": [
{ {

View File

@ -1,4 +1,4 @@
{ {
"mchid": "1900001109", "mchid": "1900001109",
"out_batch_no": "plfk2020042013", "out_batch_no": "plfk2020042013",
"batch_id": "1030000071100999991182020050700019480001", "batch_id": "1030000071100999991182020050700019480001",