mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
test(tenpayv3): 适配新的模型测试
This commit is contained in:
parent
d74cc8074e
commit
6ed1040685
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,18 @@
|
||||
{
|
||||
"total_count": 100,
|
||||
"offset": 0,
|
||||
"limit": 100,
|
||||
"data": [
|
||||
{
|
||||
"mchid": "2480253391",
|
||||
"account_type": "BASIC",
|
||||
"income_record_type": "OFFLINERECHARGE",
|
||||
"income_record_id": "4200000811202011056138519459",
|
||||
"amount": 100,
|
||||
"success_time": "2017-12-08T00:08:00.00+08:00",
|
||||
"bank_name": "招商银行",
|
||||
"bank_account_name": "财付通支付科技有限公司",
|
||||
"bank_account_number": "****6473"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,18 @@
|
||||
{
|
||||
"total_count": 0,
|
||||
"offset": 0,
|
||||
"limit": 0,
|
||||
"data": [
|
||||
{
|
||||
"sub_mchid": "2480253391",
|
||||
"account_type": "BASIC",
|
||||
"income_record_type": "OFFLINERECHARGE",
|
||||
"income_record_id": "4200000811202011056138519459",
|
||||
"amount": 2734921,
|
||||
"success_time": "2017-12-08T00:08:00.00+08:00",
|
||||
"bank_name": "招商银行",
|
||||
"bank_account_name": "北京三快科技有限公司",
|
||||
"bank_account_number": "****6473"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
{
|
||||
"sub_mchid": "1900000109",
|
||||
"sub_appid": "wxf636efh567hg4356",
|
||||
"authorization_type": "INFORMATION_AUTHORIZATION_TYPE",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_name": "2019年1月深圳分部报销单",
|
||||
"batch_remark": "2019年1月深圳分部报销单",
|
||||
"total_amount": 4000000,
|
||||
"total_num": 200,
|
||||
"transfer_detail_list": [
|
||||
{
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"transfer_amount": 200000,
|
||||
"transfer_remark": "2020年4月报销",
|
||||
"openid": "o-MYE42l80oelYMDE34nYD456Xoy",
|
||||
"user_name": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45",
|
||||
"user_id_card": "8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f"
|
||||
}
|
||||
],
|
||||
"sp_appid": "wxf636efh567hg4388",
|
||||
"transfer_purpose": "COMMISSION"
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"create_time": "2015-05-20T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,29 @@
|
||||
{
|
||||
"sp_mchid": "1900001109",
|
||||
"sub_mchid": "1900000109",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"sub_appid": "wxf636efh567hg4356",
|
||||
"batch_status": "ACCEPTED",
|
||||
"batch_type": "API",
|
||||
"authorization_type": "INFORMATION_AUTHORIZATION_TYPE",
|
||||
"batch_name": "2019年1月深圳分部报销单",
|
||||
"batch_remark": "2019年1月深圳分部报销单",
|
||||
"close_reason": "OVERDUE_CLOSE",
|
||||
"total_amount": 4000000,
|
||||
"total_num": 200,
|
||||
"create_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"success_amount": 3900000,
|
||||
"success_num": 199,
|
||||
"fail_amount": 100000,
|
||||
"fail_num": 1,
|
||||
"transfer_detail_list": [
|
||||
{
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_status": "SUCCESS"
|
||||
}
|
||||
],
|
||||
"transfer_purpose": "COMMISSION"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,29 @@
|
||||
{
|
||||
"sp_mchid": "1900001109",
|
||||
"sub_mchid": "1900000109",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"sub_appid": "wxf636efh567hg4356",
|
||||
"batch_status": "ACCEPTED",
|
||||
"batch_type": "API",
|
||||
"authorization_type": "INFORMATION_AUTHORIZATION_TYPE",
|
||||
"batch_name": "2019年1月深圳分部报销单",
|
||||
"batch_remark": "2019年1月深圳分部报销单",
|
||||
"close_reason": "OVERDUE_CLOSE",
|
||||
"total_amount": 4000000,
|
||||
"total_num": 200,
|
||||
"create_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"success_amount": 3900000,
|
||||
"success_num": 199,
|
||||
"fail_amount": 100000,
|
||||
"fail_num": 1,
|
||||
"transfer_detail_list": [
|
||||
{
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_status": "SUCCESS"
|
||||
}
|
||||
],
|
||||
"transfer_purpose": "COMMISSION"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"sp_mchid": "1900001109",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"appid": "wxf636efh567hg4356",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"detail_status": "SUCCESS",
|
||||
"transfer_amount": 200000,
|
||||
"transfer_remark": "2020年4月报销",
|
||||
"fail_reason": "ACCOUNT_FROZEN",
|
||||
"openid": "o-MYE42l80oelYMDE34nYD456Xoy",
|
||||
"username": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45",
|
||||
"initiate_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"sp_mchid": "1900001109",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"appid": "wxf636efh567hg4356",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"detail_status": "SUCCESS",
|
||||
"transfer_amount": 200000,
|
||||
"transfer_remark": "2020年4月报销",
|
||||
"fail_reason": "ACCOUNT_FROZEN",
|
||||
"openid": "o-MYE42l80oelYMDE34nYD456Xoy",
|
||||
"username": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45",
|
||||
"initiate_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
{
|
||||
"appid": "wxf636efh567hg4356",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_name": "2019年1月深圳分部报销单",
|
||||
"batch_remark": "2019年1月深圳分部报销单",
|
||||
"total_amount": 4000000,
|
||||
"total_num": 200,
|
||||
"transfer_detail_list": [
|
||||
{
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"transfer_amount": 200000,
|
||||
"transfer_remark": "2020年4月报销",
|
||||
"openid": "o-MYE42l80oelYMDE34nYD456Xoy",
|
||||
"user_name": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45",
|
||||
"user_id_card": "8609cb22e1774a50a930e414cc71eca06121bcd266335cda230d24a7886a8d9f"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"create_time": "2015-05-20T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"transfer_batch": {
|
||||
"mchid": "1900001109",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"appid": "wxf636efh567hg4356",
|
||||
"batch_status": "ACCEPTED",
|
||||
"batch_type": "API",
|
||||
"batch_name": "2019年1月深圳分部报销单",
|
||||
"batch_remark": "2019年1月深圳分部报销单",
|
||||
"close_reason": "OVERDUE_CLOSE",
|
||||
"total_amount": 4000000,
|
||||
"total_num": 200,
|
||||
"create_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"success_amount": 3900000,
|
||||
"success_num": 199,
|
||||
"fail_amount": 100000,
|
||||
"fail_num": 1
|
||||
},
|
||||
"transfer_detail_list": [
|
||||
{
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_status": "SUCCESS"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,28 @@
|
||||
{
|
||||
"transfer_batch": {
|
||||
"mchid": "1900001109",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"appid": "wxf636efh567hg4356",
|
||||
"batch_status": "ACCEPTED",
|
||||
"batch_type": "API",
|
||||
"batch_name": "2019年1月深圳分部报销单",
|
||||
"batch_remark": "2019年1月深圳分部报销单",
|
||||
"close_reason": "OVERDUE_CLOSE",
|
||||
"total_amount": 4000000,
|
||||
"total_num": 200,
|
||||
"create_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"success_amount": 3900000,
|
||||
"success_num": 199,
|
||||
"fail_amount": 100000,
|
||||
"fail_num": 1
|
||||
},
|
||||
"transfer_detail_list": [
|
||||
{
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_status": "SUCCESS"
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"mchid": "1900001109",
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"appid": "wxf636efh567hg4356",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"detail_status": "SUCCESS",
|
||||
"transfer_amount": 200000,
|
||||
"transfer_remark": "2020年4月报销",
|
||||
"fail_reason": "ACCOUNT_FROZEN",
|
||||
"openid": "o-MYE42l80oelYMDE34nYD456Xoy",
|
||||
"user_name": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45",
|
||||
"initiate_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"batch_id": "1030000071100999991182020050700019480001",
|
||||
"appid": "wxf636efh567hg4356",
|
||||
"out_detail_no": "x23zy545Bd5436",
|
||||
"detail_id": "1040000071100999991182020050700019500100",
|
||||
"detail_status": "SUCCESS",
|
||||
"transfer_amount": 200000,
|
||||
"transfer_remark": "2020年4月报销",
|
||||
"fail_reason": "ACCOUNT_FROZEN",
|
||||
"openid": "o-MYE42l80oelYMDE34nYD456Xoy",
|
||||
"user_name": "757b340b45ebef5467rter35gf464344v3542sdf4t6re4tb4f54ty45t4yyry45",
|
||||
"initiate_time": "2015-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2015-05-20T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"out_batch_no": "plfk2020042013"
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"signature_no": "1050000010509999485212020110200058820001",
|
||||
"signature_status": "ACCEPTED",
|
||||
"hash_type": "SHA256",
|
||||
"hash_value": "DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529",
|
||||
"download_url": "https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx",
|
||||
"create_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2020-05-21T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"out_batch_no": "plfk2020042013",
|
||||
"signature_no": "1050000010509999485212020110200058820001",
|
||||
"signature_status": "ACCEPTED",
|
||||
"hash_type": "SHA256",
|
||||
"hash_value": "DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529",
|
||||
"download_url": "https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx",
|
||||
"create_time": "2020-05-20T13:29:35.120+08:00",
|
||||
"update_time": "2020-05-21T13:29:35.120+08:00"
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"accept_type": "BATCH_TRANSFER",
|
||||
"out_batch_no": "GD2021011610162610BBdkkIwcu3",
|
||||
"out_detail_no": "mx0911231610162610v4CNkO4HAf"
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"accept_type": "BATCH_TRANSFER",
|
||||
"out_batch_no": "GD2021011610162610BBdkkIwcu3",
|
||||
"out_detail_no": "mx0911231610162610v4CNkO4HAf",
|
||||
"signature_no": "1050000010509999485212020110200058820001",
|
||||
"signature_status": "ACCEPTED",
|
||||
"hash_type": "SHA256",
|
||||
"hash_value": "DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529",
|
||||
"download_url": "https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx"
|
||||
}
|
@ -0,0 +1 @@
|
||||
{}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"accept_type": "BATCH_TRANSFER",
|
||||
"out_batch_no": "GD2021011610162610BBdkkIwcu3",
|
||||
"out_detail_no": "mx0911231610162610v4CNkO4HAf",
|
||||
"signature_no": "1050000010509999485212020110200058820001",
|
||||
"signature_status": "ACCEPTED",
|
||||
"hash_type": "SHA256",
|
||||
"hash_value": "DE731F35146A0BEFADE5DB9D1E468D96C01CA8898119C674FEE9F11F4DBE5529",
|
||||
"download_url": "https://api.mch.weixin.qq.com/v3/billdownload/file?token=xxx"
|
||||
}
|
@ -21,7 +21,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests
|
||||
Assert.NotNull(response.WechatpayCertSerialNumber);
|
||||
Assert.NotNull(response.WechatpaySignature);
|
||||
|
||||
TestClients.Instance.DecryptResponseEncryptedData(response);
|
||||
TestClients.Instance.DecryptResponseEncryptedData(ref response);
|
||||
var certificateModel = response.CertificateList.SingleOrDefault(e => e.SerialNumber == response.WechatpayCertSerialNumber);
|
||||
Assert.NotNull(certificateModel);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user