From b45768b98dc1ab1dcc86e832fa14e1269a23e8bc Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 7 Nov 2024 15:44:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(microapp):=20=E9=9A=8F=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8B=85=E4=BF=9D=E6=94=AF=E4=BB=98=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E7=BB=93=E6=9E=9C=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Order/AppsECPayQueryRefundV1Response.cs | 21 +++++++++++++++++++ .../Order/AppsECPayQueryRefundV1Response.json | 11 ++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs index 593fed29..4204e8f6 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.cs @@ -29,6 +29,27 @@ public class Refund [Newtonsoft.Json.JsonProperty("refund_status")] [System.Text.Json.Serialization.JsonPropertyName("refund_status")] public string RefundStatus { get; set; } = default!; + + /// + /// 获取或设置退款时间戳。 + /// + [Newtonsoft.Json.JsonProperty("refunded_at")] + [System.Text.Json.Serialization.JsonPropertyName("refunded_at")] + public long RefundTimestamp { get; set; } + + /// + /// 获取或设置是否分账。 + /// + [Newtonsoft.Json.JsonProperty("is_all_settled")] + [System.Text.Json.Serialization.JsonPropertyName("is_all_settled")] + public bool IsAllSettled { get; set; } + + /// + /// 获取或设置自定义字段。 + /// + [Newtonsoft.Json.JsonProperty("cp_extra")] + [System.Text.Json.Serialization.JsonPropertyName("cp_extra")] + public string? Extra { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.json index f46eb8d7..50d8310d 100644 --- a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.json +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/_Legacy/AppsECPay/Order/AppsECPayQueryRefundV1Response.json @@ -1,9 +1,12 @@ -{ +{ "err_no": 0, "err_tips": "", "refundInfo": { - "refund_no": "69821555158047006", - "refund_amount": 3580, - "refund_status": "SUCCESS" + "refund_no": "N7067470744111892000", + "refund_amount": 190, + "refund_status": "SUCCESS", + "refunded_at": 1645523798, + "is_all_settled": false, + "cp_extra": "" } }