diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.cs index 66f4beea..a5b99f5d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { @@ -28,6 +28,22 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("value")] [System.Text.Json.Serialization.JsonPropertyName("value")] public string PictureMediaId { get; set; } = string.Empty; + + /// + /// 获取或设置资质过期时间戳。 + /// + [Newtonsoft.Json.JsonProperty("expire_time")] + [System.Text.Json.Serialization.JsonPropertyName("expire_time")] + public long? ExpireTimestamp { get; set; } + + /// + /// 获取或设置资质是否永久有效。 + /// + [Newtonsoft.Json.JsonProperty("is_permanent")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))] + [System.Text.Json.Serialization.JsonPropertyName("is_permanent")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))] + public bool? IsPermanent { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.json index b25b756e..13941b65 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenAddCategoryRequest.json @@ -1,4 +1,4 @@ -{ +{ "categories": [ { "first": 8, @@ -6,7 +6,9 @@ "certicates": [ { "key": "《因私出入境中介机构经营许可证》", - "value": "media_id" + "value": "media_id", + "expire_time": 123456, + "is_permanent": 1 } ] } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenModifyCategoryRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenModifyCategoryRequest.json index 3cb9f7b3..28fb6485 100644 --- a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenModifyCategoryRequest.json +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/CgibinWxopen/Category/CgibinWxopenModifyCategoryRequest.json @@ -1,10 +1,12 @@ -{ +{ "first": 8, "second": 39, "certicates": [ { "key": "《因私出入境中介机构经营许可证》", - "value": "" + "value": "media_id", + "expire_time": 123456, + "is_permanent": 1 } ] }