feat(wxapi): 升级公共组件

This commit is contained in:
Fu Diwei
2024-01-29 23:11:56 +08:00
committed by RHQYZ
parent 54e7ac8266
commit 5a110785f8
590 changed files with 7047 additions and 7220 deletions

View File

@@ -12,6 +12,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public IList<double>? RatioList { get; set; }
public IList<decimal>? RatioList { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{

View File

@@ -10,7 +10,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("page_id")]
[System.Text.Json.Serialization.JsonPropertyName("page_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string PageId { get; set; } = default!;
/// <summary>

View File

@@ -18,7 +18,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("page_id")]
[System.Text.Json.Serialization.JsonPropertyName("page_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string PageId { get; set; } = default!;
/// <summary>

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{

View File

@@ -10,7 +10,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("page_id")]
[System.Text.Json.Serialization.JsonPropertyName("page_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string PageId { get; set; } = default!;
}
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /card/giftcard/page/get 接口的响应。</para>
@@ -7,8 +7,172 @@
{
public static class Types
{
public class Page : CardGiftCardPageAddRequest.Types.Page
public class Page
{
public static class Types
{
public class Theme
{
public static class Types
{
public class Card : CardGiftCardPageAddRequest.Types.Page.Types.Theme.Types.Card
{
}
public class Picture : CardGiftCardPageAddRequest.Types.Page.Types.Theme.Types.Picture
{
}
}
/// <summary>
/// 获取或设置主题封面图片 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("theme_pic_url")]
[System.Text.Json.Serialization.JsonPropertyName("theme_pic_url")]
public string ThemePictureUrl { get; set; } = default!;
/// <summary>
/// 获取或设置主题名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("title")]
[System.Text.Json.Serialization.JsonPropertyName("title")]
public string Title { get; set; } = default!;
/// <summary>
/// 获取或设置主题颜色(格式:#RRGGBB
/// </summary>
[Newtonsoft.Json.JsonProperty("title_color")]
[System.Text.Json.Serialization.JsonPropertyName("title_color")]
public string TitleColor { get; set; } = default!;
/// <summary>
/// 获取或设置礼品卡列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("item_list")]
[System.Text.Json.Serialization.JsonPropertyName("item_list")]
public Types.Card[] CardList { get; set; } = default!;
/// <summary>
/// 获取或设置封面列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("pic_item_list")]
[System.Text.Json.Serialization.JsonPropertyName("pic_item_list")]
public Types.Picture[] PictureList { get; set; } = default!;
/// <summary>
/// 获取或设置主题分类标号。
/// </summary>
[Newtonsoft.Json.JsonProperty("category_index")]
[System.Text.Json.Serialization.JsonPropertyName("category_index")]
public int CategoryIndex { get; set; }
/// <summary>
/// 获取或设置该主题购买页是否突出商品名显示。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_sku_title_first")]
[System.Text.Json.Serialization.JsonPropertyName("show_sku_title_first")]
public bool? IsShowSKUTitleFirst { get; set; }
/// <summary>
/// 获取或设置是否将当前主题设置为 Banner 主题。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_banner")]
[System.Text.Json.Serialization.JsonPropertyName("is_banner")]
public bool? IsBanner { get; set; }
}
public class Category : CardGiftCardPageAddRequest.Types.Page.Types.Category
{
}
public class CustomCell : CardGiftCardPageAddRequest.Types.Page.Types.CustomCell
{
}
}
/// <summary>
/// 获取或设置 Banner 图片 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("banner_pic_url")]
[System.Text.Json.Serialization.JsonPropertyName("banner_pic_url")]
public string BannerUrl { get; set; } = default!;
/// <summary>
/// 获取或设置页面标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_title")]
[System.Text.Json.Serialization.JsonPropertyName("page_title")]
public string PageTitle { get; set; } = default!;
/// <summary>
/// 获取或设置是否支持一次购买多张。
/// </summary>
[Newtonsoft.Json.JsonProperty("support_multi")]
[System.Text.Json.Serialization.JsonPropertyName("support_multi")]
public bool? IsSupportMultiple { get; set; }
/// <summary>
/// 获取或设置是否支持买给自己。
/// </summary>
[Newtonsoft.Json.JsonProperty("support_buy_for_self")]
[System.Text.Json.Serialization.JsonPropertyName("support_buy_for_self")]
public bool? IsSupportBuyForSelf { get; set; }
/// <summary>
/// 获取或设置主题列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("theme_list")]
[System.Text.Json.Serialization.JsonPropertyName("theme_list")]
public Types.Theme[]? ThemeList { get; set; }
/// <summary>
/// 获取或设置主题分类列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("category_list")]
[System.Text.Json.Serialization.JsonPropertyName("category_list")]
public Types.Category[]? CategoryList { get; set; }
/// <summary>
/// 获取或设置商家地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("address")]
[System.Text.Json.Serialization.JsonPropertyName("address")]
public string Address { get; set; } = default!;
/// <summary>
/// 获取或设置商家服务电话。
/// </summary>
[Newtonsoft.Json.JsonProperty("service_phone")]
[System.Text.Json.Serialization.JsonPropertyName("service_phone")]
public string ServicePhoneNumber { get; set; } = default!;
/// <summary>
/// 获取或设置商家使用说明。
/// </summary>
[Newtonsoft.Json.JsonProperty("biz_description")]
[System.Text.Json.Serialization.JsonPropertyName("biz_description")]
public string BusinessDescription { get; set; } = default!;
/// <summary>
/// 获取或设置是否支持开发票。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_receipt")]
[System.Text.Json.Serialization.JsonPropertyName("need_receipt")]
public bool? IsSupportReceipt { get; set; }
/// <summary>
/// 获取或设置自定义服务入口 1 信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("cell_1")]
[System.Text.Json.Serialization.JsonPropertyName("cell_1")]
public Types.CustomCell? CustomCell1 { get; set; }
/// <summary>
/// 获取或设置自定义服务入口 2 信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("cell_2")]
[System.Text.Json.Serialization.JsonPropertyName("cell_2")]
public Types.CustomCell? CustomCell2 { get; set; }
}
}

View File

@@ -24,7 +24,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("next_begin_id")]
[System.Text.Json.Serialization.JsonPropertyName("next_begin_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string? NextMerchantId { get; set; }
}
}

View File

@@ -14,7 +14,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("merchant_id")]
[System.Text.Json.Serialization.JsonPropertyName("merchant_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string MerchantId { get; set; } = default!;
/// <summary>

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /card/invoice/clearoutinvoice 接口的响应。</para>

View File

@@ -65,7 +65,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("xmdj")]
[System.Text.Json.Serialization.JsonPropertyName("xmdj")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Price { get; set; }
public decimal Price { get; set; }
/// <summary>
/// 获取或设置项目金额(单位:元)。
@@ -73,7 +73,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("xmje")]
[System.Text.Json.Serialization.JsonPropertyName("xmje")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Amount { get; set; }
public decimal Amount { get; set; }
/// <summary>
/// 获取或设置税率。
@@ -81,7 +81,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("sl")]
[System.Text.Json.Serialization.JsonPropertyName("sl")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double TaxRate { get; set; }
public decimal TaxRate { get; set; }
/// <summary>
/// 获取或设置税额(单位:元)。
@@ -89,7 +89,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("se")]
[System.Text.Json.Serialization.JsonPropertyName("se")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Tax { get; set; }
public decimal Tax { get; set; }
}
}
@@ -225,7 +225,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("jshj")]
[System.Text.Json.Serialization.JsonPropertyName("jshj")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Fee { get; set; }
public decimal Fee { get; set; }
/// <summary>
/// 获取或设置合计金额(单位:元)。
@@ -233,7 +233,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("hjje")]
[System.Text.Json.Serialization.JsonPropertyName("hjje")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double FeeWithoutTax { get; set; }
public decimal FeeWithoutTax { get; set; }
/// <summary>
/// 获取或设置合计税额(单位:元)。
@@ -241,7 +241,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("hjse")]
[System.Text.Json.Serialization.JsonPropertyName("hjse")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Tax { get; set; }
public decimal Tax { get; set; }
/// <summary>
/// 获取或设置备注。

View File

@@ -19,27 +19,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否填写抬头。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_title")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_title")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowTitle { get; set; }
/// <summary>
/// 获取或设置是否填写联系电话。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_phone")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_phone")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowPhoneNumber { get; set; }
/// <summary>
/// 获取或设置是否填写邮箱。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_email")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_email")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowEmail { get; set; }
/// <summary>
@@ -56,54 +56,54 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否填写抬头。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_title")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_title")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowTitle { get; set; }
/// <summary>
/// 获取或设置是否填写税号。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_tax_no")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_tax_no")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowTaxNumber { get; set; }
/// <summary>
/// 获取或设置是否填写单位地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_addr")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_addr")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowAddress { get; set; }
/// <summary>
/// 获取或设置是否填写联系电话。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_phone")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_phone")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowPhoneNumber { get; set; }
/// <summary>
/// 获取或设置是否填写开户银行。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_bank_type")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_bank_type")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowBankType { get; set; }
/// <summary>
/// 获取或设置是否填写银行账号。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_bank_no")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_bank_no")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowBankNumber { get; set; }
/// <summary>

View File

@@ -10,7 +10,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("s_media_id")]
[System.Text.Json.Serialization.JsonPropertyName("s_media_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string SpMediaId { get; set; } = default!;
}
}

View File

@@ -51,9 +51,9 @@
/// 获取或设置是否用户自己填写。
/// </summary>
[Newtonsoft.Json.JsonProperty("user_fill")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("user_fill")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsUserFill { get; set; }
/// <summary>

View File

@@ -145,18 +145,18 @@
/// 获取或设置关注后自动回复是否开启。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_add_friend_reply_open")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_add_friend_reply_open")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsAddFriendReplyOpen { get; set; }
/// <summary>
/// 获取或设置消息自动回复是否开启。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_autoreply_open")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_autoreply_open")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsAutoReplyOpen { get; set; }
/// <summary>

View File

@@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// <para>表示 [POST] /cgi-bin/stable_token 接口的请求。</para>
/// </summary>
public class CgibinStableTokenRequest : WechatApiRequest, IInferable<CgibinTokenRequest, CgibinTokenResponse>
public class CgibinStableTokenRequest : WechatApiRequest, IInferable<CgibinStableTokenRequest, CgibinStableTokenResponse>
{
/// <summary>
/// 获取或设置微信 AppId。如果不指定将使用构造 <see cref="WechatApiClient"/> 时的 <see cref="WechatApiClientOptions.AppId"/> 参数。

View File

@@ -24,7 +24,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("is_wx_verify_succ")]
[System.Text.Json.Serialization.JsonPropertyName("is_wx_verify_succ")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualBooleanConverter))]
public bool IsVerifySuccessful { get; set; }
/// <summary>
@@ -32,7 +32,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("is_link_succ")]
[System.Text.Json.Serialization.JsonPropertyName("is_link_succ")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualBooleanConverter))]
public bool IsLinkSuccessful { get; set; }
}
}

View File

@@ -17,27 +17,27 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("x1")]
[System.Text.Json.Serialization.JsonPropertyName("x1")]
public double X1 { get; set; }
public decimal X1 { get; set; }
/// <summary>
/// 获取或设置裁剪框左上角 Y 坐标范围01
/// </summary>
[Newtonsoft.Json.JsonProperty("y1")]
[System.Text.Json.Serialization.JsonPropertyName("y1")]
public double Y1 { get; set; }
public decimal Y1 { get; set; }
/// <summary>
/// 获取或设置裁剪框右下角 X 坐标范围01
/// </summary>
[Newtonsoft.Json.JsonProperty("x2")]
[System.Text.Json.Serialization.JsonPropertyName("x2")]
public double X2 { get; set; }
public decimal X2 { get; set; }
/// <summary>
/// 获取或设置裁剪框右下角 Y 坐标范围01
/// </summary>
[Newtonsoft.Json.JsonProperty("y2")]
[System.Text.Json.Serialization.JsonPropertyName("y2")]
public double Y2 { get; set; }
public decimal Y2 { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/comment/close 接口的请求。</para>

View File

@@ -54,9 +54,9 @@
/// 获取或设置是否精选评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("comment_type")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("comment_type")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsElected { get; set; }
/// <summary>

View File

@@ -38,45 +38,45 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否开通微信门店功能。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_store")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("open_store")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsOpenStore { get; set; }
/// <summary>
/// 获取或设置是否开通微信扫商品功能。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_scan")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("open_scan")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsOpenScan { get; set; }
/// <summary>
/// 获取或设置是否开通微信支付功能。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_pay")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("open_pay")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsOpenPay { get; set; }
/// <summary>
/// 获取或设置是否开通微信卡券功能。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_card")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("open_card")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsOpenCard { get; set; }
/// <summary>
/// 获取或设置是否开通微信摇一摇功能。
/// </summary>
[Newtonsoft.Json.JsonProperty("open_shake")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("open_shake")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsOpenShake { get; set; }
}

View File

@@ -24,7 +24,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("option_value")]
[System.Text.Json.Serialization.JsonPropertyName("option_value")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string OptionValue { get; set; } = default!;
}
}

View File

@@ -53,9 +53,9 @@
/// 获取或设置代码是否存在。
/// </summary>
[Newtonsoft.Json.JsonProperty("code_exist")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("code_exist")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsCodeExisted { get; set; }
/// <summary>

View File

@@ -32,9 +32,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置业务域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("wxa_jump_h5_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringListWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringListWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("wxa_jump_h5_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringListWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringListWithSemicolonSplitConverter))]
public IList<string>? WxaJumpH5DomainList { get; set; }
}
}

View File

@@ -9,27 +9,27 @@
/// 获取或设置目前生效的全网发布版第三方平台小程序业务域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("published_wxa_jump_h5_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("published_wxa_jump_h5_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
public string[]? PublishedWxaJumpH5DomainList { get; set; }
/// <summary>
/// 获取或设置目前生效的测试版第三方平台小程序业务域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("testing_wxa_jump_h5_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("testing_wxa_jump_h5_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
public string[]? TestingWxaJumpH5DomainList { get; set; }
/// <summary>
/// 获取或设置未通过验证的第三方平台小程序业务域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("invalid_wxa_jump_h5_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("invalid_wxa_jump_h5_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
public string[]? InvalidWxaJumpH5DomainList { get; set; }
}
}

View File

@@ -32,9 +32,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置服务器域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("wxa_server_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringListWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringListWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("wxa_server_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringListWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringListWithSemicolonSplitConverter))]
public IList<string>? WxaServerDomainList { get; set; }
}
}

View File

@@ -9,27 +9,27 @@
/// 获取或设置目前生效的全网发布版第三方平台小程序服务器域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("published_wxa_server_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("published_wxa_server_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
public string[]? PublishedWxaServerDomainList { get; set; }
/// <summary>
/// 获取或设置目前生效的测试版第三方平台小程序服务器域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("testing_wxa_server_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("testing_wxa_server_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
public string[]? TestingWxaServerDomainList { get; set; }
/// <summary>
/// 获取或设置未通过验证的第三方平台小程序服务器域名列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("invalid_wxa_server_domain")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("invalid_wxa_server_domain")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringArrayWithSemicolonSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringArrayWithSemicolonSplitConverter))]
public string[]? InvalidWxaServerDomainList { get; set; }
}
}

View File

@@ -57,27 +57,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否显示封面。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_cover_pic")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_cover_pic")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowCover { get; set; }
/// <summary>
/// 获取或设置是否打开评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_open_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("need_open_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOpenComment { get; set; }
/// <summary>
/// 获取或设置是否粉丝才可评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("only_fans_can_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("only_fans_can_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOnlyFansCanComment { get; set; }
}
}

View File

@@ -23,9 +23,9 @@
/// 获取或设置是否不返回内容。
/// </summary>
[Newtonsoft.Json.JsonProperty("no_content")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("no_content")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? RequireNoContent { get; set; }
}
}

View File

@@ -62,27 +62,27 @@
/// 获取或设置是否显示封面。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_cover_pic")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_cover_pic")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsShowCover { get; set; }
/// <summary>
/// 获取或设置是否打开评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_open_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("need_open_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOpenComment { get; set; }
/// <summary>
/// 获取或设置是否粉丝才可评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("only_fans_can_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("only_fans_can_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOnlyFansCanComment { get; set; }
}
}

View File

@@ -55,27 +55,27 @@
/// 获取或设置是否显示封面。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_cover_pic")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_cover_pic")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowCover { get; set; }
/// <summary>
/// 获取或设置是否打开评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_open_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("need_open_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOpenComment { get; set; }
/// <summary>
/// 获取或设置是否粉丝才可评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("only_fans_can_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("only_fans_can_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOnlyFansCanComment { get; set; }
}
}

View File

@@ -47,18 +47,18 @@
/// 获取或设置是否支持散单。
/// </summary>
[Newtonsoft.Json.JsonProperty("can_use_cash")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("can_use_cash")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? CanUseCash { get; set; }
/// <summary>
/// 获取或设置是否支持查询面单余额。
/// </summary>
[Newtonsoft.Json.JsonProperty("can_get_quota")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("can_get_quota")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? CanUseQuota { get; set; }
/// <summary>

View File

@@ -120,28 +120,28 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("space_x")]
[System.Text.Json.Serialization.JsonPropertyName("space_x")]
public double? Length { get; set; }
public decimal? Length { get; set; }
/// <summary>
/// 获取或设置包裹宽度(单位:厘米)。
/// </summary>
[Newtonsoft.Json.JsonProperty("space_y")]
[System.Text.Json.Serialization.JsonPropertyName("space_y")]
public double? Width { get; set; }
public decimal? Width { get; set; }
/// <summary>
/// 获取或设置包裹高度(单位:厘米)。
/// </summary>
[Newtonsoft.Json.JsonProperty("space_z")]
[System.Text.Json.Serialization.JsonPropertyName("space_z")]
public double? Height { get; set; }
public decimal? Height { get; set; }
/// <summary>
/// 获取或设置包裹重量(单位:千克)。
/// </summary>
[Newtonsoft.Json.JsonProperty("weight")]
[System.Text.Json.Serialization.JsonPropertyName("weight")]
public double? Weight { get; set; }
public decimal? Weight { get; set; }
/// <summary>
/// 获取或设置商品详情列表。
@@ -222,9 +222,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否保价。
/// </summary>
[Newtonsoft.Json.JsonProperty("use_insured")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("use_insured")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsUseInsured { get; set; }
/// <summary>

View File

@@ -25,9 +25,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置打印员面单打印权限列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("tagid_list")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.TextualStringListWithCommaSplitConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.StringifiedStringListWithCommaSplitConverter))]
[System.Text.Json.Serialization.JsonPropertyName("tagid_list")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualStringListWithCommaSplitConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.StringifiedStringListWithCommaSplitConverter))]
public IList<string>? TagIdList { get; set; }
}
}

View File

@@ -166,7 +166,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
else if (reader.TokenType == Newtonsoft.Json.JsonToken.String)
{
string? value = serializer.Deserialize<string>(reader);
if (value == null)
if (value is null)
return existingValue;
IList<Types.WaybillData> list = new List<Types.WaybillData>();
@@ -187,7 +187,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public override void WriteJson(Newtonsoft.Json.JsonWriter writer, IList<Types.WaybillData>? value, Newtonsoft.Json.JsonSerializer serializer)
{
if (value != null)
if (value is not null)
writer.WriteValue("##" + string.Join("##", value.SelectMany(e => new string[] { e.Key, e.Value }).Select(e => e.Replace("#", string.Empty))) + "##");
else
writer.WriteNull();
@@ -205,7 +205,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
else if (reader.TokenType == System.Text.Json.JsonTokenType.String)
{
string? value = reader.GetString();
if (value == null)
if (value is null)
return null;
IList<Types.WaybillData> list = new List<Types.WaybillData>();
@@ -226,7 +226,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public override void Write(System.Text.Json.Utf8JsonWriter writer, IList<Types.WaybillData>? value, System.Text.Json.JsonSerializerOptions options)
{
if (value != null)
if (value is not null)
writer.WriteStringValue("##" + string.Join("##", value.SelectMany(e => new string[] { e.Key, e.Value }).Select(e => e.Replace("#", string.Empty))) + "##");
else
writer.WriteNullValue();

View File

@@ -10,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("return_id")]
[System.Text.Json.Serialization.JsonPropertyName("return_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string ReturnId { get; set; } = default!;
}
}

View File

@@ -10,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("return_id")]
[System.Text.Json.Serialization.JsonPropertyName("return_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string ReturnId { get; set; } = default!;
}
}

View File

@@ -1,3 +1,5 @@
using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
@@ -7,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public override bool IsSuccessful()
{
return base.IsSuccessful() && RawBytes?.Length > 0;
return base.IsSuccessful() && GetRawBytes().Any();
}
}
}

View File

@@ -87,14 +87,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("user_lng")]
[System.Text.Json.Serialization.JsonPropertyName("user_lng")]
public double UserLongitude { get; set; }
public decimal UserLongitude { get; set; }
/// <summary>
/// 获取或设置收件用户位置维度。
/// </summary>
[Newtonsoft.Json.JsonProperty("user_lat")]
[System.Text.Json.Serialization.JsonPropertyName("user_lat")]
public double UserLatitude { get; set; }
public decimal UserLatitude { get; set; }
/// <summary>
/// 获取或设置收件用户详细地址。
@@ -142,9 +142,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否使用沙箱。
/// </summary>
[Newtonsoft.Json.JsonProperty("use_sandbox")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("use_sandbox")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsSandbox { get; set; }
}
}

View File

@@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// <para>表示 [POST] /cgi-bin/express/intracity/balancequery 接口的请求。</para>
/// </summary>
public class CgibinExpressIntracityBalanceQueryRequest : WechatApiRequest, IInferable<CgibinExpressIntracityBalanceQueryRequest, CgibinExpressIntracityStoreChargeResponse>
public class CgibinExpressIntracityBalanceQueryRequest : WechatApiRequest, IInferable<CgibinExpressIntracityBalanceQueryRequest, CgibinExpressIntracityBalanceQueryResponse>
{
/// <summary>
/// 获取或设置微信门店编号。

View File

@@ -18,7 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("payorder_id")]
[System.Text.Json.Serialization.JsonPropertyName("payorder_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string PayOrderId { get; set; } = default!;
/// <summary>

View File

@@ -49,14 +49,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("lng")]
[System.Text.Json.Serialization.JsonPropertyName("lng")]
public double Longitude { get; set; }
public decimal Longitude { get; set; }
/// <summary>
/// 获取或设置纬度。
/// </summary>
[Newtonsoft.Json.JsonProperty("lat")]
[System.Text.Json.Serialization.JsonPropertyName("lat")]
public double Latitude { get; set; }
public decimal Latitude { get; set; }
/// <summary>
/// 获取或设置门店联系电话。

View File

@@ -72,14 +72,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("user_lng")]
[System.Text.Json.Serialization.JsonPropertyName("user_lng")]
public double UserLongitude { get; set; }
public decimal UserLongitude { get; set; }
/// <summary>
/// 获取或设置收件用户位置维度。
/// </summary>
[Newtonsoft.Json.JsonProperty("user_lat")]
[System.Text.Json.Serialization.JsonPropertyName("user_lat")]
public double UserLatitude { get; set; }
public decimal UserLatitude { get; set; }
/// <summary>
/// 获取或设置收件用户详细地址。
@@ -99,9 +99,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否使用沙箱。
/// </summary>
[Newtonsoft.Json.JsonProperty("use_sandbox")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("use_sandbox")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsSandbox { get; set; }
}
}

View File

@@ -35,7 +35,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("pay_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("pay_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string PayOrderId { get; set; } = default!;
/// <summary>

View File

@@ -66,7 +66,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("lng")]
[System.Text.Json.Serialization.JsonPropertyName("lng")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Longitude { get; set; }
public decimal Longitude { get; set; }
/// <summary>
/// 获取或设置收件地址纬度。
@@ -74,7 +74,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("lat")]
[System.Text.Json.Serialization.JsonPropertyName("lat")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Latitude { get; set; }
public decimal Latitude { get; set; }
/// <summary>
/// 获取或设置收件人联系电话。
@@ -113,7 +113,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("lng")]
[System.Text.Json.Serialization.JsonPropertyName("lng")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Longitude { get; set; }
public decimal Longitude { get; set; }
/// <summary>
/// 获取或设置门店纬度。
@@ -121,7 +121,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("lat")]
[System.Text.Json.Serialization.JsonPropertyName("lat")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Latitude { get; set; }
public decimal Latitude { get; set; }
/// <summary>
/// 获取或设置门店联系电话。

View File

@@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("lng")]
[System.Text.Json.Serialization.JsonPropertyName("lng")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Longitude { get; set; }
public decimal Longitude { get; set; }
/// <summary>
/// 获取或设置纬度。
@@ -62,7 +62,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[Newtonsoft.Json.JsonProperty("lat")]
[System.Text.Json.Serialization.JsonPropertyName("lat")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public double Latitude { get; set; }
public decimal Latitude { get; set; }
/// <summary>
/// 获取或设置门店联系电话。

View File

@@ -31,7 +31,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("tips")]
[System.Text.Json.Serialization.JsonPropertyName("tips")]
public double TipValue { get; set; }
public decimal TipValue { get; set; }
/// <summary>
/// 获取或设置备注。

View File

@@ -79,14 +79,14 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("rider_lng")]
[System.Text.Json.Serialization.JsonPropertyName("rider_lng")]
public double? RiderLongitude { get; set; }
public decimal? RiderLongitude { get; set; }
/// <summary>
/// 获取或设置骑手位置纬度。
/// </summary>
[Newtonsoft.Json.JsonProperty("rider_lat")]
[System.Text.Json.Serialization.JsonPropertyName("rider_lat")]
public double? RiderLatitude { get; set; }
public decimal? RiderLatitude { get; set; }
/// <summary>
/// 获取或设置预计剩余送达时间(单位:秒)。

View File

@@ -51,14 +51,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("lng")]
[System.Text.Json.Serialization.JsonPropertyName("lng")]
public double Longitude { get; set; }
public decimal Longitude { get; set; }
/// <summary>
/// 获取或设置纬度。
/// </summary>
[Newtonsoft.Json.JsonProperty("lat")]
[System.Text.Json.Serialization.JsonPropertyName("lat")]
public double Latitude { get; set; }
public decimal Latitude { get; set; }
/// <summary>
/// 获取或设置坐标类型。
@@ -101,7 +101,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("good_price")]
[System.Text.Json.Serialization.JsonPropertyName("good_price")]
public double? Price { get; set; }
public decimal? Price { get; set; }
/// <summary>
/// 获取或设置货物单位。
@@ -126,35 +126,35 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("goods_value")]
[System.Text.Json.Serialization.JsonPropertyName("goods_value")]
public double GoodsVaue { get; set; }
public decimal GoodsVaue { get; set; }
/// <summary>
/// 获取或设置货物高度(单位:厘米)。
/// </summary>
[Newtonsoft.Json.JsonProperty("goods_height")]
[System.Text.Json.Serialization.JsonPropertyName("goods_height")]
public double? GoodsHeight { get; set; }
public decimal? GoodsHeight { get; set; }
/// <summary>
/// 获取或设置货物长度(单位:厘米)。
/// </summary>
[Newtonsoft.Json.JsonProperty("goods_length")]
[System.Text.Json.Serialization.JsonPropertyName("goods_length")]
public double? GoodsLength { get; set; }
public decimal? GoodsLength { get; set; }
/// <summary>
/// 获取或设置货物宽度(单位:厘米)。
/// </summary>
[Newtonsoft.Json.JsonProperty("goods_width")]
[System.Text.Json.Serialization.JsonPropertyName("goods_width")]
public double? GoodsWidth { get; set; }
public decimal? GoodsWidth { get; set; }
/// <summary>
/// 获取或设置货物重量(单位:千克)。
/// </summary>
[Newtonsoft.Json.JsonProperty("goods_weight")]
[System.Text.Json.Serialization.JsonPropertyName("goods_weight")]
public double? GoodsWeight { get; set; }
public decimal? GoodsWeight { get; set; }
/// <summary>
/// 获取或设置货物详情信息。
@@ -247,9 +247,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置用户下单付款时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_insured")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_insured")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsInsured { get; set; }
/// <summary>
@@ -257,22 +257,22 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("declared_value")]
[System.Text.Json.Serialization.JsonPropertyName("declared_value")]
public double? DeclaredValue { get; set; }
public decimal? DeclaredValue { get; set; }
/// <summary>
/// 获取或设置小费金额(单位:元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("tips")]
[System.Text.Json.Serialization.JsonPropertyName("tips")]
public double? TipValue { get; set; }
public decimal? TipValue { get; set; }
/// <summary>
/// 获取或设置是否选择直拿直送。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_direct_delivery")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_direct_delivery")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsDirectDelivery { get; set; }
/// <summary>
@@ -280,14 +280,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("cash_on_delivery")]
[System.Text.Json.Serialization.JsonPropertyName("cash_on_delivery")]
public double? CashOnDelivery { get; set; }
public decimal? CashOnDelivery { get; set; }
/// <summary>
/// 获取或设置骑手应收金额(单位:元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("cash_on_pickup")]
[System.Text.Json.Serialization.JsonPropertyName("cash_on_pickup")]
public double? CashOnPickup { get; set; }
public decimal? CashOnPickup { get; set; }
/// <summary>
/// 获取或设置物流流向类型。
@@ -300,18 +300,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否骑手必须输入收货码才能完成订单妥投。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_finish_code_needed")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_finish_code_needed")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsFinishCodeRequired { get; set; }
/// <summary>
/// 获取或设置是否骑手必须输入取货码才能从商家取货。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_pickup_code_needed")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_pickup_code_needed")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsPickupCodeRequired { get; set; }
/// <summary>

View File

@@ -24,35 +24,35 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("fee")]
[System.Text.Json.Serialization.JsonPropertyName("fee")]
public double Fee { get; set; }
public decimal Fee { get; set; }
/// <summary>
/// 获取或设置运费(单位:元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("deliverfee")]
[System.Text.Json.Serialization.JsonPropertyName("deliverfee")]
public double DeliverFee { get; set; }
public decimal DeliverFee { get; set; }
/// <summary>
/// 获取或设置优惠券费用(单位:元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("couponfee")]
[System.Text.Json.Serialization.JsonPropertyName("couponfee")]
public double CouponFee { get; set; }
public decimal CouponFee { get; set; }
/// <summary>
/// 获取或设置小费(单位:元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("tips")]
[System.Text.Json.Serialization.JsonPropertyName("tips")]
public double TipFee { get; set; }
public decimal TipFee { get; set; }
/// <summary>
/// 获取或设置保价费(单位:元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("insurancefee")]
[System.Text.Json.Serialization.JsonPropertyName("insurancefee")]
public double InsuranceFee { get; set; }
public decimal InsuranceFee { get; set; }
/// <summary>
/// 获取或设置配送距离(单位:米)。

View File

@@ -24,7 +24,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("deduct_fee")]
[System.Text.Json.Serialization.JsonPropertyName("deduct_fee")]
public double DeductFee { get; set; }
public decimal DeductFee { get; set; }
/// <summary>
/// 获取或设置说明。

View File

@@ -27,9 +27,9 @@
/// 获取或设置电话是否加密。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_phone_encrypted")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_phone_encrypted")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsPhoneEncrypted { get; set; }
}
}

View File

@@ -23,9 +23,9 @@
/// 获取或设置是否不返回内容。
/// </summary>
[Newtonsoft.Json.JsonProperty("no_content")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("no_content")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? RequireNoContent { get; set; }
}
}

View File

@@ -34,7 +34,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string ArticleId { get; set; } = default!;
/// <summary>

View File

@@ -65,7 +65,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("article_id")]
[System.Text.Json.Serialization.JsonPropertyName("article_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? ArticleId { get; set; }
/// <summary>

View File

@@ -77,27 +77,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否显示封面。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_cover_pic")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_cover_pic")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsShowCover { get; set; }
/// <summary>
/// 获取或设置是否打开评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_open_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("need_open_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOpenComment { get; set; }
/// <summary>
/// 获取或设置是否粉丝才可评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("only_fans_can_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("only_fans_can_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOnlyFansCanComment { get; set; }
}
}

View File

@@ -72,27 +72,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否显示封面。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_cover_pic")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_cover_pic")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsShowCover { get; set; }
/// <summary>
/// 获取或设置是否打开评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_open_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("need_open_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOpenComment { get; set; }
/// <summary>
/// 获取或设置是否粉丝才可评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("only_fans_can_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("only_fans_can_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOnlyFansCanComment { get; set; }
}
}

View File

@@ -1,4 +1,6 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/material/get_material 接口的响应。</para>
@@ -7,7 +9,7 @@
{
public override bool IsSuccessful()
{
return base.IsSuccessful() && RawBytes?.Length > 0;
return base.IsSuccessful() && GetRawBytes().Any();
}
}
}

View File

@@ -1,4 +1,6 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/media/get 接口的响应。</para>
@@ -7,7 +9,7 @@
{
public override bool IsSuccessful()
{
return base.IsSuccessful() && RawBytes?.Length > 0;
return base.IsSuccessful() && GetRawBytes().Any();
}
}
}

View File

@@ -57,27 +57,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否显示封面。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_cover_pic")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_cover_pic")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsShowCover { get; set; }
/// <summary>
/// 获取或设置是否打开评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_open_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("need_open_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOpenComment { get; set; }
/// <summary>
/// 获取或设置是否粉丝才可评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("only_fans_can_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("only_fans_can_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOnlyFansCanComment { get; set; }
}
}

View File

@@ -1,4 +1,6 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /cgi-bin/media/getfeedbackmedia 接口的响应。</para>
@@ -7,7 +9,7 @@
{
public override bool IsSuccessful()
{
return base.IsSuccessful() && RawBytes?.Length > 0;
return base.IsSuccessful() && GetRawBytes().Any();
}
}
}

View File

@@ -52,9 +52,9 @@
/// 获取或设置是否显示封面。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_cover")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_cover")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsShowCover { get; set; }
/// <summary>
@@ -154,9 +154,9 @@
/// 获取或设置菜单信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_menu_open")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_menu_open")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsMenuOpen { get; set; }
/// <summary>

View File

@@ -49,18 +49,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否打开评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_open_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("need_open_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOpenComment { get; set; }
/// <summary>
/// 获取或设置是否粉丝才可评论。
/// </summary>
[Newtonsoft.Json.JsonProperty("only_fans_can_comment")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("only_fans_can_comment")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsOnlyFansCanComment { get; set; }
}

View File

@@ -109,9 +109,9 @@
/// 获取或设置是否停止群发转载。
/// </summary>
[Newtonsoft.Json.JsonProperty("send_ignore_reprint")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("send_ignore_reprint")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsIgnoreReprint { get; set; }
/// <summary>

View File

@@ -94,9 +94,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否停止群发转载。
/// </summary>
[Newtonsoft.Json.JsonProperty("send_ignore_reprint")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("send_ignore_reprint")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsIgnoreReprint { get; set; }
/// <summary>

View File

@@ -23,9 +23,9 @@
/// 获取或设置是否满足历史首次充值。
/// </summary>
[Newtonsoft.Json.JsonProperty("first_save")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("first_save")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsFirstSave { get; set; }
/// <summary>

View File

@@ -103,14 +103,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("longitude")]
[System.Text.Json.Serialization.JsonPropertyName("longitude")]
public double Longitude { get; set; }
public decimal Longitude { get; set; }
/// <summary>
/// 获取或设置坐标纬度。
/// </summary>
[Newtonsoft.Json.JsonProperty("latitude")]
[System.Text.Json.Serialization.JsonPropertyName("latitude")]
public double Latitude { get; set; }
public decimal Latitude { get; set; }
/// <summary>
/// 获取或设置门店照片列表。
@@ -152,7 +152,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("avg_price")]
[System.Text.Json.Serialization.JsonPropertyName("avg_price")]
public double? AveragePrice { get; set; }
public decimal? AveragePrice { get; set; }
}
}

View File

@@ -18,7 +18,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("poi_id")]
[System.Text.Json.Serialization.JsonPropertyName("poi_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string POIId { get; set; } = default!;
/// <summary>

View File

@@ -101,14 +101,14 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("longitude")]
[System.Text.Json.Serialization.JsonPropertyName("longitude")]
public double Longitude { get; set; }
public decimal Longitude { get; set; }
/// <summary>
/// 获取或设置坐标纬度。
/// </summary>
[Newtonsoft.Json.JsonProperty("latitude")]
[System.Text.Json.Serialization.JsonPropertyName("latitude")]
public double Latitude { get; set; }
public decimal Latitude { get; set; }
/// <summary>
/// 获取或设置门店照片列表。
@@ -150,7 +150,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("avg_price")]
[System.Text.Json.Serialization.JsonPropertyName("avg_price")]
public double? AveragePrice { get; set; }
public decimal? AveragePrice { get; set; }
/// <summary>
/// 获取或设置门店可用状态。

View File

@@ -83,7 +83,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("avg_price")]
[System.Text.Json.Serialization.JsonPropertyName("avg_price")]
public double? AveragePrice { get; set; }
public decimal? AveragePrice { get; set; }
}
}

View File

@@ -84,9 +84,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置用户是否订阅该公众号标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("subscribe")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("subscribe")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsSubscribed { get; set; }
/// <summary>

View File

@@ -80,9 +80,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置用户是否订阅该公众号标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("subscribe")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("subscribe")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsSubscribed { get; set; }
/// <summary>

View File

@@ -1,4 +1,6 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /cgi-bin/wxaapp/createwxaqrcode 接口的响应。</para>
@@ -7,7 +9,7 @@
{
public override bool IsSuccessful()
{
return base.IsSuccessful() && RawBytes?.Length > 0;
return base.IsSuccessful() && GetRawBytes().Any();
}
}
}

View File

@@ -40,9 +40,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置资质是否永久有效。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_permanent")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_permanent")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsPermanent { get; set; }
}
}

View File

@@ -60,9 +60,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否是编辑已有二维码规则。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_edit")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("is_edit")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsEdit { get; set; }
}
}

View File

@@ -78,9 +78,9 @@
/// 获取或设置是否已经打开二维码跳转链接设置。
/// </summary>
[Newtonsoft.Json.JsonProperty("qrcodejump_open")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("qrcodejump_open")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsQrcodeJumpOpen { get; set; }
}
}

View File

@@ -31,7 +31,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("percentage")]
[System.Text.Json.Serialization.JsonPropertyName("percentage")]
public double Percentage { get; set; }
public decimal Percentage { get; set; }
}
}

View File

@@ -99,27 +99,27 @@
/// 获取或设置是否在公众号管理页展示中。
/// </summary>
[Newtonsoft.Json.JsonProperty("selected")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("selected")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsSelected { get; set; }
/// <summary>
/// 获取或设置是否展示在附近的小程序中。
/// </summary>
[Newtonsoft.Json.JsonProperty("nearby_display_status")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("nearby_display_status")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsNearby { get; set; }
/// <summary>
/// 获取或设置是否已经发布。
/// </summary>
[Newtonsoft.Json.JsonProperty("released")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("released")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsReleased { get; set; }
/// <summary>

View File

@@ -16,18 +16,18 @@
/// 获取或设置是否发送模板消息通知公众号粉丝。
/// </summary>
[Newtonsoft.Json.JsonProperty("notify_users")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("notify_users")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool RequireNotifyUsers { get; set; }
/// <summary>
/// 获取或设置是否展示公众号主页中。
/// </summary>
[Newtonsoft.Json.JsonProperty("show_profile")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("show_profile")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool RequireShowInProfile { get; set; }
}
}

View File

@@ -1,9 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/getaftersalelist 接口的请求。</para>
/// </summary>
public class ChannelsECAftersaleGetAftersaleListRequest : WechatApiRequest, IInferable<ChannelsECAftersaleGetAftersaleListRequest, ChannelsECOrderListGetResponse>
public class ChannelsECAftersaleGetAftersaleListRequest : WechatApiRequest, IInferable<ChannelsECAftersaleGetAftersaleListRequest, ChannelsECAftersaleGetAftersaleListResponse>
{
/// <summary>
/// 获取或设置创建时间开始时间戳。

View File

@@ -1,9 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/getaftersaleorder 接口的请求。</para>
/// </summary>
public class ChannelsECAftersaleGetAftersaleOrderRequest : WechatApiRequest, IInferable<ChannelsECAftersaleGetAftersaleOrderRequest, ChannelsECOrderListGetResponse>
public class ChannelsECAftersaleGetAftersaleOrderRequest : WechatApiRequest, IInferable<ChannelsECAftersaleGetAftersaleOrderRequest, ChannelsECAftersaleGetAftersaleOrderResponse>
{
/// <summary>
/// 获取或设置售后单 ID。

View File

@@ -156,7 +156,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("after_sale_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("after_sale_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string AftersaleOrderId { get; set; } = default!;
/// <summary>
@@ -164,7 +164,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string OrderId { get; set; } = default!;
/// <summary>

View File

@@ -72,7 +72,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("after_sale_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("after_sale_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string AftersaleOrderId { get; set; } = default!;
/// <summary>
@@ -80,7 +80,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string OrderId { get; set; } = default!;
/// <summary>

View File

@@ -1,3 +1,5 @@
using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
@@ -7,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public override bool IsSuccessful()
{
return base.IsSuccessful() && RawBytes?.Length > 0;
return base.IsSuccessful() && GetRawBytes().Any();
}
}
}

View File

@@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/valid/list/get 接口的请求。</para>
/// </summary>
public class ChannelsECBrandValidListGetRequest : WechatApiRequest, IInferable<ChannelsECBrandValidListGetRequest, ChannelsECBrandListGetResponse>
public class ChannelsECBrandValidListGetRequest : WechatApiRequest, IInferable<ChannelsECBrandValidListGetRequest, ChannelsECBrandValidListGetResponse>
{
/// <summary>
/// 获取或设置分页每页页数。

View File

@@ -3,7 +3,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// <summary>
/// <para>表示 [POST] /channels/ec/category/detail 接口的请求。</para>
/// </summary>
public class ChannelsECCategoryDetailRequest : WechatApiRequest, IInferable<ChannelsECCategoryDetailRequest, ChannelsECCategoryAllResponse>
public class ChannelsECCategoryDetailRequest : WechatApiRequest, IInferable<ChannelsECCategoryDetailRequest, ChannelsECCategoryDetailResponse>
{
/// <summary>
/// 获取或设置类目 ID。

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/coupon/get 接口的响应。</para>
@@ -15,18 +15,32 @@
{
public static class Types
{
public class Discount : ChannelsECCouponCreateRequest.Types.Discount
public class Discount
{
public static new class Types
public static class Types
{
public class DiscountCondidtion : ChannelsECCouponCreateRequest.Types.Discount.Types.DiscountCondidtion
public class DiscountCondidtion
{
/// <summary>
/// 获取或设置商品数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_cnt")]
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
public int? ProductCount { get; set; }
/// <summary>
/// 获取或设置商品 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_ids")]
[System.Text.Json.Serialization.JsonPropertyName("product_ids")]
public new long[]? ProductIdList { get; set; }
public long[]? ProductIdList { get; set; }
/// <summary>
/// 获取或设置商品价格(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_price")]
[System.Text.Json.Serialization.JsonPropertyName("product_price")]
public int? ProductPrice { get; set; }
}
}
@@ -35,7 +49,21 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("discount_condition")]
[System.Text.Json.Serialization.JsonPropertyName("discount_condition")]
public new Types.DiscountCondidtion? DiscountCondidtion { get; set; }
public Types.DiscountCondidtion? DiscountCondidtion { get; set; }
/// <summary>
/// 获取或设置满减金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("discount_fee")]
[System.Text.Json.Serialization.JsonPropertyName("discount_fee")]
public int? DiscountFee { get; set; }
/// <summary>
/// 获取或设置折扣数值范围100010000
/// </summary>
[Newtonsoft.Json.JsonProperty("discount_num")]
[System.Text.Json.Serialization.JsonPropertyName("discount_num")]
public int? DiscountNumber { get; set; }
}
public class Extra : ChannelsECCouponCreateRequest.Types.Extra

View File

@@ -84,7 +84,7 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? OrderId { get; set; }
/// <summary>

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{

View File

@@ -24,7 +24,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_mchid")]
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? SubMerchantId { get; set; }
}
}

View File

@@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? OrderId { get; set; }
/// <summary>
@@ -35,7 +35,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("aftersale_id")]
[System.Text.Json.Serialization.JsonPropertyName("aftersale_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? AftersaleOrderId { get; set; }
/// <summary>
@@ -118,9 +118,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置记账时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("bookkeeping_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularDateTimeOffsetConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.BasicDateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("bookkeeping_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.BasicDateTimeOffsetConverter))]
public DateTimeOffset BookkeepingTIme { get; set; }
}
}

View File

@@ -57,9 +57,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置记账时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("bookkeeping_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularDateTimeOffsetConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.BasicDateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("bookkeeping_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.BasicDateTimeOffsetConverter))]
public DateTimeOffset BookkeepingTIme { get; set; }
/// <summary>
@@ -67,7 +67,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? OrderId { get; set; }
/// <summary>

View File

@@ -161,7 +161,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? OrderId { get; set; }
/// <summary>

View File

@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? OrderId { get; set; }
/// <summary>

View File

@@ -36,9 +36,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否是补打单。
/// </summary>
[Newtonsoft.Json.JsonProperty("re_print")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("re_print")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsReprint { get; set; }
}
}

View File

@@ -104,7 +104,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// </summary>
[Newtonsoft.Json.JsonProperty("ec_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ec_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string? OrderId { get; set; }
/// <summary>

View File

@@ -101,9 +101,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ec_order_id")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalStringConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonPropertyName("ec_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringConverter))]
public string? OrderId { get; set; }
/// <summary>

View File

@@ -30,9 +30,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
/// 获取或设置是否是补打单。
/// </summary>
[Newtonsoft.Json.JsonProperty("re_print")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("re_print")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsReprint { get; set; }
}
}

View File

@@ -25,14 +25,14 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("lng")]
[System.Text.Json.Serialization.JsonPropertyName("lng")]
public double? Longitude { get; set; }
public decimal? Longitude { get; set; }
/// <summary>
/// 获取或设置纬度。
/// </summary>
[Newtonsoft.Json.JsonProperty("lat")]
[System.Text.Json.Serialization.JsonPropertyName("lat")]
public double? Latitude { get; set; }
public decimal? Latitude { get; set; }
}
public class AddressType
@@ -41,18 +41,18 @@
/// 获取或设置是否为同城配送地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("same_city")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("same_city")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsSupportSameCity { get; set; }
/// <summary>
/// 获取或设置是否为线下自提地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("pickup")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("pickup")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsSupportPickup { get; set; }
}
}
@@ -89,36 +89,36 @@
/// 获取或设置是否为发货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("send_addr")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("send_addr")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsSendAddress { get; set; }
/// <summary>
/// 获取或设置是否为默认发货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("default_send")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("default_send")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsDefaultSendAddress { get; set; }
/// <summary>
/// 获取或设置是否为收货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("recv_addr")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("recv_addr")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsReceiveAddress { get; set; }
/// <summary>
/// 获取或设置是否为默认收货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("default_recv")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("default_recv")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool? IsDefaultReceiveAddress { get; set; }
}
}

View File

@@ -25,14 +25,14 @@
/// </summary>
[Newtonsoft.Json.JsonProperty("lng")]
[System.Text.Json.Serialization.JsonPropertyName("lng")]
public double? Longitude { get; set; }
public decimal? Longitude { get; set; }
/// <summary>
/// 获取或设置纬度。
/// </summary>
[Newtonsoft.Json.JsonProperty("lat")]
[System.Text.Json.Serialization.JsonPropertyName("lat")]
public double? Latitude { get; set; }
public decimal? Latitude { get; set; }
}
public class AddressType
@@ -41,18 +41,18 @@
/// 获取或设置是否为同城配送地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("same_city")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("same_city")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsSupportSameCity { get; set; }
/// <summary>
/// 获取或设置是否为线下自提地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("pickup")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("pickup")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsSupportPickup { get; set; }
}
}
@@ -97,36 +97,36 @@
/// 获取或设置是否为发货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("send_addr")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("send_addr")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsSendAddress { get; set; }
/// <summary>
/// 获取或设置是否为默认发货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("default_send")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("default_send")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsDefaultSendAddress { get; set; }
/// <summary>
/// 获取或设置是否为收货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("recv_addr")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("recv_addr")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsReceiveAddress { get; set; }
/// <summary>
/// 获取或设置是否为默认收货地址。
/// </summary>
[Newtonsoft.Json.JsonProperty("default_recv")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("default_recv")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalBooleanConverter))]
public bool IsDefaultReceiveAddress { get; set; }
/// <summary>

Some files were not shown because too many files have changed in this diff Show More