From 795033607c58699e35829f52ec000e4c4460017c Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Fri, 14 Mar 2025 13:41:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(tenpayv3):=20=E6=96=B0=E5=A2=9E=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E4=BF=9D=E9=99=A9=E7=90=86=E8=B5=94=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/WechatTenpayV3/Basic_ModelDefinition.md | 10 ++ ...ClientExecutePlatformSolutionExtensions.cs | 114 ++++++++++++ ...rchantTransferInsuranceClaimBillRequest.cs | 22 +++ ...chantTransferInsuranceClaimBillResponse.cs | 47 +++++ ...ferInsuranceClaimBillPreTransferRequest.cs | 57 ++++++ ...erInsuranceClaimBillPreTransferResponse.cs | 47 +++++ ...rchantTransferInsuranceClaimBillRequest.cs | 97 +++++++++++ ...chantTransferInsuranceClaimBillResponse.cs | 9 + ...ansferInsuranceClaimBillByBillIdRequest.cs | 22 +++ ...nsferInsuranceClaimBillByBillIdResponse.cs | 9 + ...nsuranceClaimBillByOutBillNumberRequest.cs | 22 +++ ...suranceClaimBillByOutBillNumberResponse.cs | 163 ++++++++++++++++++ ...hantTransferInsuranceClaimBillRequest.json | 3 + ...antTransferInsuranceClaimBillResponse.json | 7 + ...rInsuranceClaimBillPreTransferRequest.json | 13 ++ ...InsuranceClaimBillPreTransferResponse.json | 7 + ...hantTransferInsuranceClaimBillRequest.json | 12 ++ ...antTransferInsuranceClaimBillResponse.json | 20 +++ ...ferInsuranceClaimBillByBillIdResponse.json | 24 +++ ...ranceClaimBillByOutBillNumberResponse.json | 24 +++ 20 files changed, 729 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.json diff --git a/docs/WechatTenpayV3/Basic_ModelDefinition.md b/docs/WechatTenpayV3/Basic_ModelDefinition.md index f4f2fb0f..f88d2d6f 100644 --- a/docs/WechatTenpayV3/Basic_ModelDefinition.md +++ b/docs/WechatTenpayV3/Basic_ModelDefinition.md @@ -1062,6 +1062,16 @@ - 查询保险理赔功能开通状态:`GetPlatformSolutionEcommerceInsuranceCompensationContractBySubMerchantId` + - 平台收付通(平台保险理赔) + + - 请求保险理赔:`CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBill` + + - 请求保险理赔预下单:`CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransfer` + + - 请求撤销保险理赔:`CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBill` + + - 查询保险理赔结果:`GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumber` / `GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillId` + - 代金券 - 创建代金券批次:`CreateMarketingFavorStock` diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecutePlatformSolutionExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecutePlatformSolutionExtensions.cs index e6e4e116..9f6cb83c 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecutePlatformSolutionExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Extensions/WechatTenpayClientExecutePlatformSolutionExtensions.cs @@ -55,6 +55,120 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3 } #endregion + #region EcommerceInsuranceClaimBills + /// + /// 异步调用 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteCreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillAsync(this WechatTenpayClient client, Models.CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "platsolution", "ecommerce", "mch-transfer", "insurance-claim-bills"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/pre-transfer 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteCreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferAsync(this WechatTenpayClient client, Models.CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "platsolution", "ecommerce", "mch-transfer", "insurance-claim-bills", "pre-transfer"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/out-bill-no/{out_bill_no}/cancel 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteCancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillAsync(this WechatTenpayClient client, Models.CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "platsolution", "ecommerce", "mch-transfer", "insurance-claim-bills", "out-bill-no", request.OutBillNumber, "cancel"); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/out-bill-no/{out_bill_no} 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteGetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberAsync(this WechatTenpayClient client, Models.GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "platsolution", "ecommerce", "mch-transfer", "insurance-claim-bills", "out-bill-no", request.OutBillNumber) + .SetQueryParam("sub_mchid", request.SubMerchantId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/bill-id/{bill_id} 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteGetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdAsync(this WechatTenpayClient client, Models.GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Get, "platsolution", "ecommerce", "mch-transfer", "insurance-claim-bills", "bill-id", request.BillId) + .SetQueryParam("sub_mchid", request.SubMerchantId); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region EcommerceRecharges /// /// 异步调用 [POST] /platsolution/ecommerce/recharges/apply 接口。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs new file mode 100644 index 00000000..aaf90223 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/out-bill-no/{out_bill_no}/cancel 接口的请求。 + /// + public class CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest : WechatTenpayRequest + { + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonProperty("sub_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sub_mchid")] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置商户单号。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OutBillNumber { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs new file mode 100644 index 00000000..2d565dcd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs @@ -0,0 +1,47 @@ +using System; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/out-bill-no/{out_bill_no}/cancel 接口的响应。 + /// + public class CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse : WechatTenpayResponse + { + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonProperty("sub_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sub_mchid")] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置商户单号。 + /// + [Newtonsoft.Json.JsonProperty("out_bill_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_bill_no")] + public string OutBillNumber { get; set; } = default!; + + /// + /// 获取或设置微信支付付款单号。 + /// + [Newtonsoft.Json.JsonProperty("bill_id")] + [System.Text.Json.Serialization.JsonPropertyName("bill_id")] + public string BillId { get; set; } = default!; + + /// + /// 获取或设置付款状态。 + /// + [Newtonsoft.Json.JsonProperty("state")] + [System.Text.Json.Serialization.JsonPropertyName("state")] + public string State { get; set; } = default!; + + /// + /// 获取或设置撤销受理时间。 + /// + [Newtonsoft.Json.JsonProperty("cancel_accept_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("cancel_accept_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] + public DateTimeOffset CancelAcceptTime { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.cs new file mode 100644 index 00000000..40e45bf6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.cs @@ -0,0 +1,57 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/pre-transfer 接口的请求。 + /// + public class CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest : WechatTenpayRequest + { + public static class Types + { + public class Receiver : CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.Types.Receiver + { + } + } + + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonProperty("sub_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sub_mchid")] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置商户单号。 + /// + [Newtonsoft.Json.JsonProperty("out_bill_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_bill_no")] + public string OutBillNumber { get; set; } = string.Empty; + + /// + /// 获取或设置赔付用户信息。 + /// + [Newtonsoft.Json.JsonProperty("receiver")] + [System.Text.Json.Serialization.JsonPropertyName("receiver")] + public Types.Receiver Receiver { get; set; } = new Types.Receiver(); + + /// + /// 获取或设置赔付金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置赔付原因。 + /// + [Newtonsoft.Json.JsonProperty("transfer_remark")] + [System.Text.Json.Serialization.JsonPropertyName("transfer_remark")] + public string TransferRemark { get; set; } = string.Empty; + + /// + /// 获取或设置商户回调地址。 + /// + [Newtonsoft.Json.JsonProperty("notify_url")] + [System.Text.Json.Serialization.JsonPropertyName("notify_url")] + public string? NotifyUrl { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.cs new file mode 100644 index 00000000..c83c36ab --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.cs @@ -0,0 +1,47 @@ +using System; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/pre-transfer 接口的响应。 + /// + public class CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse : WechatTenpayResponse + { + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonProperty("sub_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sub_mchid")] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置商户单号。 + /// + [Newtonsoft.Json.JsonProperty("out_bill_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_bill_no")] + public string OutBillNumber { get; set; } = default!; + + /// + /// 获取或设置微信支付付款单号。 + /// + [Newtonsoft.Json.JsonProperty("bill_id")] + [System.Text.Json.Serialization.JsonPropertyName("bill_id")] + public string BillId { get; set; } = default!; + + /// + /// 获取或设置受理时间。 + /// + [Newtonsoft.Json.JsonProperty("accept_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("accept_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] + public DateTimeOffset AcceptTime { get; set; } + + /// + /// 获取或设置跳转领取页面的携带信息。 + /// + [Newtonsoft.Json.JsonProperty("package_info")] + [System.Text.Json.Serialization.JsonPropertyName("package_info")] + public string PackageInfo { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs new file mode 100644 index 00000000..616b7249 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.cs @@ -0,0 +1,97 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills 接口的请求。 + /// + public class CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest : WechatTenpayRequest + { + public static class Types + { + public class Receiver + { + public static class Types + { + public class TransactionInfo + { + /// + /// 获取或设置微信交易订单号。 + /// + [Newtonsoft.Json.JsonProperty("transaction_id")] + [System.Text.Json.Serialization.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } = string.Empty; + } + } + + /// + /// 获取或设置转账接收方类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// 获取或设置转账接收方订单信息。 + /// + [Newtonsoft.Json.JsonProperty("transaction_info")] + [System.Text.Json.Serialization.JsonPropertyName("transaction_info")] + public Types.TransactionInfo? TransactionInfo { get; set; } + } + } + + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonProperty("sub_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sub_mchid")] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置商户单号。 + /// + [Newtonsoft.Json.JsonProperty("out_bill_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_bill_no")] + public string OutBillNumber { get; set; } = string.Empty; + + /// + /// 获取或设置赔付用户信息。 + /// + [Newtonsoft.Json.JsonProperty("receiver")] + [System.Text.Json.Serialization.JsonPropertyName("receiver")] + public Types.Receiver Receiver { get; set; } = new Types.Receiver(); + + /// + /// 获取或设置赔付金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置赔付原因。 + /// + [Newtonsoft.Json.JsonProperty("transfer_remark")] + [System.Text.Json.Serialization.JsonPropertyName("transfer_remark")] + public string TransferRemark { get; set; } = string.Empty; + + /// + /// 获取或设置出资商户号。 + /// + [Newtonsoft.Json.JsonProperty("sponsor_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sponsor_mchid")] + public string? SponsorMerchantId { get; set; } + + /// + /// 获取或设置转账场景 ID。 + /// + [Newtonsoft.Json.JsonProperty("transfer_scene_id")] + [System.Text.Json.Serialization.JsonPropertyName("transfer_scene_id")] + public string? TransferSceneId { get; set; } + + /// + /// 获取或设置用户收款感知。 + /// + [Newtonsoft.Json.JsonProperty("user_recv_perception")] + [System.Text.Json.Serialization.JsonPropertyName("user_recv_perception")] + public string? UserReceivePerception { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs new file mode 100644 index 00000000..a5a30ec1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [POST] /platsolution/ecommerce/mch-transfer/insurance-claim-bills 接口的响应。 + /// + public class CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse : GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdRequest.cs new file mode 100644 index 00000000..9f98f01b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/bill-id/{bill_id} 接口的请求。 + /// + public class GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdRequest : WechatTenpayRequest + { + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置微信支付付款单号。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string BillId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.cs new file mode 100644 index 00000000..041cd17d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/bill-id/{bill_id} 接口的响应。 + /// + public class GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse : GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberRequest.cs new file mode 100644 index 00000000..36586de0 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/out-bill-no/{out_bill_no} 接口的请求。 + /// + public class GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberRequest : WechatTenpayRequest + { + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置商户单号。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public string OutBillNumber { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.cs new file mode 100644 index 00000000..88cde5b5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.cs @@ -0,0 +1,163 @@ +using System; + +namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models +{ + /// + /// 表示 [GET] /platsolution/ecommerce/mch-transfer/insurance-claim-bills/out-bill-no/{out_bill_no} 接口的响应。 + /// + public class GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse : WechatTenpayResponse + { + public static class Types + { + public class ReceiverDetail + { + public static class Types + { + public class Receiver + { + public static class Types + { + public class TransactionInfo + { + /// + /// 获取或设置微信交易订单号。 + /// + [Newtonsoft.Json.JsonProperty("transaction_id")] + [System.Text.Json.Serialization.JsonPropertyName("transaction_id")] + public string TransactionId { get; set; } = default!; + } + } + + /// + /// 获取或设置转账接收方类型。 + /// + [Newtonsoft.Json.JsonProperty("type")] + [System.Text.Json.Serialization.JsonPropertyName("type")] + public string? Type { get; set; } + + /// + /// 获取或设置转账接收方订单信息。 + /// + [Newtonsoft.Json.JsonProperty("transaction_info")] + [System.Text.Json.Serialization.JsonPropertyName("transaction_info")] + public Types.TransactionInfo? TransactionInfo { get; set; } + } + } + + /// + /// 获取或设置赔付用户信息。 + /// + [Newtonsoft.Json.JsonProperty("receiver")] + [System.Text.Json.Serialization.JsonPropertyName("receiver")] + public Types.Receiver Receiver { get; set; } = default!; + } + + public class CloseInfo + { + /// + /// 获取或设置关闭原因。 + /// + [Newtonsoft.Json.JsonProperty("close_reason")] + [System.Text.Json.Serialization.JsonPropertyName("close_reason")] + public string CloseReason { get; set; } = default!; + + /// + /// 获取或设置关闭时间。 + /// + [Newtonsoft.Json.JsonProperty("close_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("close_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] + public DateTimeOffset CloseTime { get; set; } + } + } + + /// + /// 获取或设置服务商商户号。 + /// + [Newtonsoft.Json.JsonProperty("sp_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sp_mchid")] + public string MerchantId { get; set; } = default!; + + /// + /// 获取或设置二级商户号。 + /// + [Newtonsoft.Json.JsonProperty("sub_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sub_mchid")] + public string? SubMerchantId { get; set; } + + /// + /// 获取或设置商户单号。 + /// + [Newtonsoft.Json.JsonProperty("out_bill_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_bill_no")] + public string OutBillNumber { get; set; } = default!; + + /// + /// 获取或设置微信支付付款单号。 + /// + [Newtonsoft.Json.JsonProperty("bill_id")] + [System.Text.Json.Serialization.JsonPropertyName("bill_id")] + public string BillId { get; set; } = default!; + + /// + /// 获取或设置转账接收方信息。 + /// + [Newtonsoft.Json.JsonProperty("receiver_detail")] + [System.Text.Json.Serialization.JsonPropertyName("receiver_detail")] + public Types.ReceiverDetail ReceiverDetail { get; set; } = default!; + + /// + /// 获取或设置赔付金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置付款状态。 + /// + [Newtonsoft.Json.JsonProperty("state")] + [System.Text.Json.Serialization.JsonPropertyName("state")] + public string State { get; set; } = default!; + + /// + /// 获取或设置赔付原因。 + /// + [Newtonsoft.Json.JsonProperty("transfer_remark")] + [System.Text.Json.Serialization.JsonPropertyName("transfer_remark")] + public string TransferRemark { get; set; } = default!; + + /// + /// 获取或设置出资商户号。 + /// + [Newtonsoft.Json.JsonProperty("sponsor_mchid")] + [System.Text.Json.Serialization.JsonPropertyName("sponsor_mchid")] + public string? SponsorMerchantId { get; set; } + + /// + /// 获取或设置受理时间。 + /// + [Newtonsoft.Json.JsonProperty("accept_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("accept_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] + public DateTimeOffset AcceptTime { get; set; } + + /// + /// 获取或设置成功时间。 + /// + [Newtonsoft.Json.JsonProperty("success_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.Rfc3339DateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("success_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.Rfc3339DateTimeOffsetConverter))] + public DateTimeOffset? SuccessTime { get; set; } + + /// + /// 获取或设置关闭信息。 + /// + [Newtonsoft.Json.JsonProperty("close_info")] + [System.Text.Json.Serialization.JsonPropertyName("close_info")] + public Types.CloseInfo? CloseInfo { get; set; } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json new file mode 100644 index 00000000..7d58dc71 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json @@ -0,0 +1,3 @@ +{ + "sub_mchid": "1900001109" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json new file mode 100644 index 00000000..b79dfa8d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CancelPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json @@ -0,0 +1,7 @@ +{ + "sub_mchid": "1900001109", + "out_bill_no": "plfk2020042013", + "bill_id": "1330000071100999991182020050700019480001", + "state": "SUCCESS", + "cancel_accept_time": "2015-05-20T13:29:35+08:00" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.json new file mode 100644 index 00000000..640b0d86 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferRequest.json @@ -0,0 +1,13 @@ +{ + "sub_mchid": "1900001109", + "receiver": { + "type": "MERCHANT", + "transaction_info": { + "transaction_id": "1217752501201407033233368018" + } + }, + "out_bill_no": "plfk2020042013", + "amount": 10000, + "transfer_remark": "直播违规扣罚", + "notify_url": "https://www.weixin.qq.com/wxpay/pay.php" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.json new file mode 100644 index 00000000..c50dd332 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillPreTransferResponse.json @@ -0,0 +1,7 @@ +{ + "sub_mchid": "1900001109", + "out_bill_no": "plfk2020042013", + "bill_id": "1330000071100999991182020050700019480001", + "accept_time": "2015-05-20T13:29:35+08:00", + "package_info": "affffddafdfafddffda==" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json new file mode 100644 index 00000000..99bce3c5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillRequest.json @@ -0,0 +1,12 @@ +{ + "sub_mchid": "1900001109", + "receiver": { + "type": "MERCHANT", + "transaction_info": { + "transaction_id": "1217752501201407033233368018" + } + }, + "out_bill_no": "plfk2020042013", + "amount": 10000, + "transfer_remark": "直播违规扣罚" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json new file mode 100644 index 00000000..d13fae6d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/CreatePlatformSolutionEcommerceMerchantTransferInsuranceClaimBillResponse.json @@ -0,0 +1,20 @@ +{ + "sp_mchid": "1900001108", + "sub_mchid": "1900001109", + "receiver_detail": { + "receiver": { + "type": "MERCHANT", + "transaction_info": { + "transaction_id": "1217752501201407033233368018" + } + } + }, + "out_bill_no": "plfk2020042013", + "amount": 10000, + "transfer_remark": "直播违规扣罚", + "bill_id": "1330000071100999991182020050700019480001", + "state": "SUCCESS", + "accept_time": "2015-05-20T13:29:35+08:00", + "success_time": "2015-05-20T13:29:35+08:00", + "sponsor_mchid": "1900001109" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.json new file mode 100644 index 00000000..c73fbd6b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByBillIdResponse.json @@ -0,0 +1,24 @@ +{ + "sp_mchid": "1900001108", + "sub_mchid": "1900001109", + "receiver_detail": { + "receiver": { + "type": "MERCHANT", + "transaction_info": { + "transaction_id": "1217752501201407033233368018" + } + } + }, + "out_bill_no": "plfk2020042013", + "amount": 10000, + "transfer_remark": "直播违规扣罚", + "bill_id": "1330000071100999991182020050700019480001", + "state": "SUCCESS", + "accept_time": "2015-05-20T13:29:35+08:00", + "success_time": "2015-05-20T13:29:35+08:00", + "close_info": { + "close_time": "2015-05-20T13:29:35+08:00", + "close_reason": "NOT_ENOUGH" + }, + "sponsor_mchid": "1900001109" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.json b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.json new file mode 100644 index 00000000..c73fbd6b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.TenpayV3.UnitTests/ModelSamples/_/_Partner/PlatformSolution/Ecommerce/InsuranceClaimBill/GetPlatformSolutionEcommerceMerchantTransferInsuranceClaimBillByOutBillNumberResponse.json @@ -0,0 +1,24 @@ +{ + "sp_mchid": "1900001108", + "sub_mchid": "1900001109", + "receiver_detail": { + "receiver": { + "type": "MERCHANT", + "transaction_info": { + "transaction_id": "1217752501201407033233368018" + } + } + }, + "out_bill_no": "plfk2020042013", + "amount": 10000, + "transfer_remark": "直播违规扣罚", + "bill_id": "1330000071100999991182020050700019480001", + "state": "SUCCESS", + "accept_time": "2015-05-20T13:29:35+08:00", + "success_time": "2015-05-20T13:29:35+08:00", + "close_info": { + "close_time": "2015-05-20T13:29:35+08:00", + "close_reason": "NOT_ENOUGH" + }, + "sponsor_mchid": "1900001109" +} \ No newline at end of file