diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.cs index f45ef3e8..21dfc946 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/Models/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Work.Models +namespace SKIT.FlurlHttpClient.Wechat.Work.Models { /// /// 表示 [POST] /cgi-bin/externalpay/get_bill_list 接口的响应。 @@ -73,7 +73,7 @@ public int RefundFee { get; set; } } - public class Contact + public class Payer { /// /// 获取或设置姓名。 @@ -96,6 +96,23 @@ [System.Text.Json.Serialization.JsonPropertyName("address")] public string? Address { get; set; } } + + public class MiniProgram + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + } } /// @@ -105,6 +122,13 @@ [System.Text.Json.Serialization.JsonPropertyName("mch_id")] public string MerchantId { get; set; } = default!; + /// + /// 获取或设置交易类型。 + /// + [Newtonsoft.Json.JsonProperty("bill_type")] + [System.Text.Json.Serialization.JsonPropertyName("bill_type")] + public int BillType { get; set; } + /// /// 获取或设置商户单号。 /// @@ -112,6 +136,13 @@ [System.Text.Json.Serialization.JsonPropertyName("out_trade_no")] public string OutTradeNumber { get; set; } = default!; + /// + /// 获取或设置商户退款单号。 + /// + [Newtonsoft.Json.JsonProperty("out_refund_no")] + [System.Text.Json.Serialization.JsonPropertyName("out_refund_no")] + public string? OutRefundNumber { get; set; } + /// /// 获取或设置交易单号。 /// @@ -131,14 +162,14 @@ /// [Newtonsoft.Json.JsonProperty("external_userid")] [System.Text.Json.Serialization.JsonPropertyName("external_userid")] - public string PayerExternalUserId { get; set; } = default!; + public string? PayerExternalUserId { get; set; } /// /// 获取或设置收款人成员账号。 /// [Newtonsoft.Json.JsonProperty("payee_userid")] [System.Text.Json.Serialization.JsonPropertyName("payee_userid")] - public string PayeeUserId { get; set; } = default!; + public string? PayeeUserId { get; set; } /// /// 获取或设置总金额(单位:分)。 @@ -180,7 +211,7 @@ /// [Newtonsoft.Json.JsonProperty("payer_info")] [System.Text.Json.Serialization.JsonPropertyName("payer_info")] - public Types.Contact? Contact { get; set; } + public Types.Payer? Payer { get; set; } /// /// 获取或设置商品列表。 @@ -195,6 +226,13 @@ [Newtonsoft.Json.JsonProperty("refund_list")] [System.Text.Json.Serialization.JsonPropertyName("refund_list")] public Types.Refund[]? RefundList { get; set; } + + /// + /// 获取或设置小程序信息。 + /// + [Newtonsoft.Json.JsonProperty("miniprogram_info")] + [System.Text.Json.Serialization.JsonPropertyName("miniprogram_info")] + public Types.MiniProgram? MiniProgram { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.json index 71c8fb27..66c05ac6 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Work.UnitTests/ModelSamples/CgibinExternalPay/Bill/CgibinExternalPayGetBillListResponse.json @@ -1,13 +1,15 @@ -{ +{ "errcode": 0, "errmsg": "ok", "next_cursor": "CURSOR", "bill_list": [ { "transaction_id": "xxxxx", + "bill_type": 1, "trade_state": 1, "pay_time": 12345, "out_trade_no": "xxxx", + "out_refund_no": "xxxxx", "external_userid": "xxxx", "total_fee": 100, "payee_userid": "zhangshan", @@ -35,6 +37,10 @@ "name": "xxx", "phone": "xxx", "address": "xxx" + }, + "miniprogram_info": { + "appid": "xxx", + "name": "xxx" } } ]