feat(wxapi): 新增若干视频号小店相关接口

This commit is contained in:
Fu Diwei
2023-02-06 19:46:57 +08:00
parent 4536fdae6c
commit 8685604944
226 changed files with 6646 additions and 76 deletions

View File

@@ -0,0 +1,58 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.channels_ec_brand 事件的数据。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/brand/callback/brand_event.html </para>
/// </summary>
public class ChannelsECBrandEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
{
public static class Types
{
public class Brand
{
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("brand_id")]
public long BrandId { get; set; }
/// <summary>
/// 获取或设置审核单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_id")]
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("audit_id")]
public long AuditId { get; set; }
/// <summary>
/// 获取或设置审核状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置审核原因。
/// </summary>
[Newtonsoft.Json.JsonProperty("reason")]
[System.Text.Json.Serialization.JsonPropertyName("reason")]
[System.Xml.Serialization.XmlElement("reason", IsNullable = true)]
public string? Reason { get; set; }
}
}
/// <summary>
/// 获取或设置品牌信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("BrandEvent")]
[System.Text.Json.Serialization.JsonPropertyName("BrandEvent")]
[System.Xml.Serialization.XmlElement("BrandEvent")]
public Types.Brand Brand { get; set; } = default!;
}
}

View File

@@ -0,0 +1,58 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.channels_ec_complaint_update 事件的数据。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/complaint/callback/channels_ec_complaint_update.html </para>
/// </summary>
public class ChannelsECCompliantUpdateEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
{
public static class Types
{
public class CompliantOrder
{
/// <summary>
/// 获取或设置纠纷单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("complaint_id")]
[System.Text.Json.Serialization.JsonPropertyName("complaint_id")]
[System.Xml.Serialization.XmlElement("complaint_id")]
public string CompliantId { get; set; } = default!;
/// <summary>
/// 获取或设置售后单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("after_sale_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("after_sale_order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("after_sale_order_id")]
public long AftersaleOrderId { get; set; }
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("order_id")]
public long OrderId { get; set; }
/// <summary>
/// 获取或设置纠纷单状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("complaint_status")]
[System.Text.Json.Serialization.JsonPropertyName("complaint_status")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("complaint_status")]
public int Status { get; set; }
}
}
/// <summary>
/// 获取或设置纠纷单信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_shop_complaint")]
[System.Text.Json.Serialization.JsonPropertyName("finder_shop_complaint")]
[System.Xml.Serialization.XmlElement("finder_shop_complaint")]
public Types.CompliantOrder CompliantOrder { get; set; } = default!;
}
}

View File

@@ -0,0 +1,41 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.channels_ec_order_deliver 事件的数据。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/order/callback/channels_ec_order_deliver.html </para>
/// </summary>
public class ChannelsECOrderDeliverEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
{
public static class Types
{
public class Order
{
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("order_id")]
public long OrderId { get; set; }
/// <summary>
/// 获取或设置是否发货完成。
/// </summary>
[Newtonsoft.Json.JsonProperty("finish_delivery")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
[System.Text.Json.Serialization.JsonPropertyName("finish_delivery")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
public bool IsFinishDelivery { get; set; }
}
}
/// <summary>
/// 获取或设置订单信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_info")]
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
[System.Xml.Serialization.XmlElement("order_info")]
public Types.Order Order { get; set; } = default!;
}
}

View File

@@ -0,0 +1,32 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.channels_ec_order_new 事件的数据。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/order/callback/channels_ec_order_new.html </para>
/// </summary>
public class ChannelsECOrderNewEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
{
public static class Types
{
public class Order
{
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
[System.Xml.Serialization.XmlElement("order_id")]
public long OrderId { get; set; }
}
}
/// <summary>
/// 获取或设置订单信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_info")]
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
[System.Xml.Serialization.XmlElement("order_info")]
public Types.Order Order { get; set; } = default!;
}
}

View File

@@ -9,24 +9,32 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置授权方 AppId。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("AuthorizerAppid")]
public string AuthorizerAppId { get; set; } = default!;
/// <summary>
/// 获取或设置预授权码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("PreAuthCode")]
public string PreAuthCode { get; set; } = default!;
/// <summary>
/// 获取或设置授权码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("AuthorizationCode")]
public string AuthCode { get; set; } = default!;
/// <summary>
/// 获取或设置授权码过期时间戳。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("AuthorizationCodeExpiredTime")]
public long AuthCodeExpireTimestamp { get; set; }
}

View File

@@ -9,6 +9,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置授权方 AppId。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("AuthorizerAppid")]
public string AuthorizerAppId { get; set; } = default!;
}

View File

@@ -1,7 +1,7 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 INFO.unauthorized 事件的数据。</para>
/// <para>表示 INFO.updateauthorized 事件的数据。</para>
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Before_Develop/authorize_event.html </para>
/// </summary>
public class ComponentUpdateAuthorizedEvent : ComponentAuthorizedEvent, WechatApiEvent.Serialization.IXmlSerializable

View File

@@ -9,6 +9,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置验证票据。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("ComponentVerifyTicket")]
public string ComponentVerifyTicket { get; set; } = default!;
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 INFO.notify_third_fastregisterbetaapp 事件的数据。</para>
@@ -13,12 +13,16 @@
/// <summary>
/// 获取或设置请求的唯一标识符。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("unique_id")]
public string UnionId { get; set; } = default!;
/// <summary>
/// 获取或设置小程序名称。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string AuthorizeUrl { get; set; } = default!;
@@ -28,24 +32,32 @@
/// <summary>
/// 获取或设置创建的小程序 AppId。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("appid", IsNullable = true)]
public string? MiniProgramAppId { get; set; }
/// <summary>
/// 获取或设置消息数据。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("info")]
public Types.InfoData InfoData { get; set; } = default!;
/// <summary>
/// 获取或设置错误码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("status")]
public int ErrorCode { get; set; }
/// <summary>
/// 获取或设置错误信息。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("msg", IsNullable = true)]
public string? ErrorMessage { get; set; }
}

View File

@@ -14,24 +14,32 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置企业名称。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("name", IsNullable = true)]
public string? EnterpriseName { get; set; }
/// <summary>
/// 获取或设置企业代码类型。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("code_type", IsNullable = true)]
public int? LicenseType { get; set; }
/// <summary>
/// 获取或设置企业代码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("code", IsNullable = true)]
public string? LicenseNumber { get; set; } = default!;
/// <summary>
/// 获取或设置法人姓名。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("legal_persona_name", IsNullable = true)]
public string? LegalPersonName { get; set; }
@@ -44,18 +52,24 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置用户姓名。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("idname", IsNullable = true)]
public string? IdName { get; set; }
/// <summary>
/// 获取或设置用户微信号。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("wxuser", IsNullable = true)]
public string? Wxname { get; set; }
/// <summary>
/// 获取或设置第三方联系电话。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("component_phone")]
public string? ComponentPhoneNumber { get; set; }
}
@@ -64,30 +78,40 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置创建的小程序 AppId。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("appid", IsNullable = true)]
public string? MiniProgramAppId { get; set; }
/// <summary>
/// 获取或设置授权码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("auth_code", IsNullable = true)]
public string? AuthCode { get; set; }
/// <summary>
/// 获取或设置消息数据。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("info")]
public Types.InfoData InfoData { get; set; } = default!;
/// <summary>
/// 获取或设置错误码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("status")]
public int ErrorCode { get; set; }
/// <summary>
/// 获取或设置错误信息。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("msg", IsNullable = true)]
public string? ErrorMessage { get; set; }
}

View File

@@ -13,36 +13,48 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置企业名称。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("name")]
public string EnterpriseName { get; set; } = default!;
/// <summary>
/// 获取或设置企业代码类型。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("code_type")]
public int LicenseType { get; set; }
/// <summary>
/// 获取或设置企业代码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("code")]
public string LicenseNumber { get; set; } = default!;
/// <summary>
/// 获取或设置法人姓名。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("legal_persona_name")]
public string LegalPersonName { get; set; } = default!;
/// <summary>
/// 获取或设置法人微信号。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("legal_persona_wechat")]
public string LegalPersonWxname { get; set; } = default!;
/// <summary>
/// 获取或设置第三方联系电话。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("component_phone")]
public string ComponentPhoneNumber { get; set; } = default!;
}
@@ -51,24 +63,32 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <summary>
/// 获取或设置创建的小程序 AppId。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("appid", IsNullable = true)]
public string? MiniProgramAppId { get; set; }
/// <summary>
/// 获取或设置消息数据。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("info")]
public Types.InfoData InfoData { get; set; } = default!;
/// <summary>
/// 获取或设置错误码。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("status")]
public int ErrorCode { get; set; }
/// <summary>
/// 获取或设置错误信息。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
[System.Xml.Serialization.XmlElement("msg", IsNullable = true)]
public string? ErrorMessage { get; set; }
}

View File

@@ -32,7 +32,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
[System.Xml.Serialization.XmlElement("brand_id")]
public int BrandId { get; set; }
public long BrandId { get; set; }
/// <summary>
/// 获取或设置审核单类型。

View File

@@ -41,14 +41,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
.SetQueryParam("height", request.Height)
.SetQueryParam("width", request.Width);
string boundary = "--BOUNDARY--" + DateTimeOffset.Now.Ticks.ToString("x");
using var httpContent = new MultipartFormDataContent(boundary);
using var fileContent = new ByteArrayContent(request.ImageFileBytes ?? Array.Empty<byte>());
httpContent.Add(fileContent, "\"media\"", "\"image.png\"");
httpContent.Headers.ContentType = MediaTypeHeaderValue.Parse("multipart/form-data; boundary=" + boundary);
fileContent.Headers.ContentType = MediaTypeHeaderValue.Parse("image/png");
fileContent.Headers.ContentLength = request.ImageFileBytes?.Length;
using var httpContent = Utilities.FileHttpContentBuilder.Build(fileName: "image.png", fileBytes: request.ImageFileBytes!, fileContentType: "image/png", formDataName: "media");
return await client.SendRequestAsync<Models.ProductImageUploadResponse>(flurlReq, httpContent: httpContent, cancellationToken: cancellationToken);
}
}

View File

@@ -1653,6 +1653,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <summary>
/// <para>异步调用 [POST] /shop/funds/qrcode/get 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/funds/qrcode/get.html </para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/funds/qrcode/get.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@@ -1673,6 +1674,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <summary>
/// <para>异步调用 [POST] /shop/funds/qrcode/check 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/funds/qrcode/check.html </para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/funds/qrcode/check.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@@ -1693,6 +1695,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <summary>
/// <para>异步调用 [POST] /shop/funds/getbanklist 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/funds/bank/getbanklist.html </para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/funds/bank/getbanklist.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@@ -1713,6 +1716,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <summary>
/// <para>异步调用 [POST] /shop/funds/getbankbynum 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/funds/bank/getbankbynum.html </para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/funds/bank/getbankbynum.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@@ -1733,6 +1737,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <summary>
/// <para>异步调用 [POST] /shop/funds/getprovince 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/funds/bank/getprovince.html </para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/funds/bank/getprovince.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@@ -1753,6 +1758,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <summary>
/// <para>异步调用 [POST] /shop/funds/getcity 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/funds/bank/getcity.html </para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/funds/bank/getcity.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
@@ -1773,6 +1779,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <summary>
/// <para>异步调用 [POST] /shop/funds/getsubbranch 接口。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/funds/bank/getsubbranch.html </para>
/// <para>REF: https://developers.weixin.qq.com/doc/channels/API/funds/bank/getsubbranch.html </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>

View File

@@ -0,0 +1,31 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/addcomplaintmaterial 接口的请求。</para>
/// </summary>
public class ChannelsECAftersaleAddComplaintMaterialRequest : WechatApiRequest, IInferable<ChannelsECAftersaleAddComplaintMaterialRequest, ChannelsECAftersaleAddComplaintMaterialResponse>
{
/// <summary>
/// 获取或设置纠纷单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("complaint_id")]
[System.Text.Json.Serialization.JsonPropertyName("complaint_id")]
public string ComplaintId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置留言内容。
/// </summary>
[Newtonsoft.Json.JsonProperty("content")]
[System.Text.Json.Serialization.JsonPropertyName("content")]
public string Content { get; set; } = string.Empty;
/// <summary>
/// 获取或设置图片 MediaId 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("media_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("media_id_list")]
public IList<string>? MediaIdList { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/addcomplaintmaterial 接口的响应。</para>
/// </summary>
public class ChannelsECAftersaleAddComplaintMaterialResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,31 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/addcomplaintproof 接口的请求。</para>
/// </summary>
public class ChannelsECAftersaleAddComplaintProofRequest : WechatApiRequest, IInferable<ChannelsECAftersaleAddComplaintProofRequest, ChannelsECAftersaleAddComplaintProofResponse>
{
/// <summary>
/// 获取或设置纠纷单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("complaint_id")]
[System.Text.Json.Serialization.JsonPropertyName("complaint_id")]
public string ComplaintId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置举证内容。
/// </summary>
[Newtonsoft.Json.JsonProperty("content")]
[System.Text.Json.Serialization.JsonPropertyName("content")]
public string Content { get; set; } = string.Empty;
/// <summary>
/// 获取或设置图片 MediaId 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("media_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("media_id_list")]
public IList<string>? MediaIdList { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/addcomplaintproof 接口的响应。</para>
/// </summary>
public class ChannelsECAftersaleAddComplaintProofResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/getcomplaintorder 接口的请求。</para>
/// </summary>
public class ChannelsECAftersaleGetComplaintOrderRequest : WechatApiRequest, IInferable<ChannelsECAftersaleGetComplaintOrderRequest, ChannelsECAftersaleGetComplaintOrderResponse>
{
/// <summary>
/// 获取或设置纠纷单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("complaint_id")]
[System.Text.Json.Serialization.JsonPropertyName("complaint_id")]
public string ComplaintId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,100 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/aftersale/getcomplaintorder 接口的响应。</para>
/// </summary>
public class ChannelsECAftersaleGetComplaintOrderResponse : WechatApiResponse
{
public static class Types
{
public class ComplaintHistory
{
/// <summary>
/// 获取或设置历史操作类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("item_type")]
[System.Text.Json.Serialization.JsonPropertyName("item_type")]
public int ItemType { get; set; }
/// <summary>
/// 获取或设置时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("time")]
[System.Text.Json.Serialization.JsonPropertyName("time")]
public long Timestamp { get; set; }
/// <summary>
/// 获取或设置内容。
/// </summary>
[Newtonsoft.Json.JsonProperty("content")]
[System.Text.Json.Serialization.JsonPropertyName("content")]
public string? Content { get; set; }
/// <summary>
/// 获取或设置图片 MediaId 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("media_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("media_id_list")]
public string[]? MediaIdList { get; set; }
/// <summary>
/// 获取或设置手机号码。
/// </summary>
[Newtonsoft.Json.JsonProperty("phone_number")]
[System.Text.Json.Serialization.JsonPropertyName("phone_number")]
public string? PhoneNumber { get; set; }
/// <summary>
/// 获取或设置纠纷类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("complaint_type")]
[System.Text.Json.Serialization.JsonPropertyName("complaint_type")]
public int? ComplaintType { get; set; }
/// <summary>
/// 获取或设置售后类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("after_sale_type")]
[System.Text.Json.Serialization.JsonPropertyName("after_sale_type")]
public int? AftersaleType { get; set; }
/// <summary>
/// 获取或设置售后原因类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("after_sale_reason")]
[System.Text.Json.Serialization.JsonPropertyName("after_sale_reason")]
public int? AftersaleReasonType { get; set; }
}
}
/// <summary>
/// 获取或设置售后单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("after_sale_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("after_sale_order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long AftersaleOrderId { get; set; }
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long OrderId { get; set; }
/// <summary>
/// 获取或设置纠纷历史列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("history")]
[System.Text.Json.Serialization.JsonPropertyName("history")]
public Types.ComplaintHistory[] ComplaintHistoryList { get; set; } = default!;
/// <summary>
/// 获取或设置纠纷单状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/basics/addresscode/get 接口的请求。</para>
/// </summary>
public class ChannelsECBasicsAddressCodeGetRequest : WechatApiRequest, IInferable<ChannelsECBasicsAddressCodeGetRequest, ChannelsECBasicsAddressCodeGetResponse>
{
/// <summary>
/// 获取或设置地址行政编码。
/// </summary>
[Newtonsoft.Json.JsonProperty("addr_code")]
[System.Text.Json.Serialization.JsonPropertyName("addr_code")]
public int? AddressCode { get; set; }
}
}

View File

@@ -0,0 +1,49 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/basics/addresscode/get 接口的响应。</para>
/// </summary>
public class ChannelsECBasicsAddressCodeGetResponse : WechatApiResponse
{
public static class Types
{
public class AddressInfo
{
/// <summary>
/// 获取或设置地址名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
/// <summary>
/// 获取或设置地址行政编码。
/// </summary>
[Newtonsoft.Json.JsonProperty("code")]
[System.Text.Json.Serialization.JsonPropertyName("code")]
public int Code { get; set; }
/// <summary>
/// 获取或设置地址级别。
/// </summary>
[Newtonsoft.Json.JsonProperty("level")]
[System.Text.Json.Serialization.JsonPropertyName("level")]
public int Level { get; set; }
}
}
/// <summary>
/// 获取或设置本行政编码地址信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("addrs_msg")]
[System.Text.Json.Serialization.JsonPropertyName("addrs_msg")]
public Types.AddressInfo AddressInfo { get; set; } = default!;
/// <summary>
/// 获取或设置下一级地址列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_level_addrs")]
[System.Text.Json.Serialization.JsonPropertyName("next_level_addrs")]
public Types.AddressInfo[]? NextLevelAddressList { get; set; }
}
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/basics/img/upload 接口的响应。</para>
@@ -26,8 +26,8 @@
/// <summary>
/// 获取或设置图片临时 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("temp_img_url")]
[System.Text.Json.Serialization.JsonPropertyName("temp_img_url")]
[Newtonsoft.Json.JsonProperty("img_url")]
[System.Text.Json.Serialization.JsonPropertyName("img_url")]
public string? TempImageUrl { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/basics/info/get 接口的请求。</para>
/// </summary>
public class ChannelsECBasicsInfoGetRequest : WechatApiRequest, IInferable<ChannelsECBasicsInfoGetRequest, ChannelsECBasicsInfoGetResponse>
{
}
}

View File

@@ -0,0 +1,42 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/basics/info/get 接口的响应。</para>
/// </summary>
public class ChannelsECBasicsInfoGetResponse : WechatApiResponse
{
public static class Types
{
public class BasicInfo
{
/// <summary>
/// 获取或设置店铺名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string Nickname { get; set; } = default!;
/// <summary>
/// 获取或设置店铺头像 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("headimg_url")]
[System.Text.Json.Serialization.JsonPropertyName("headimg_url")]
public string HeadImageUrl { get; set; } = default!;
/// <summary>
/// 获取或设置店铺类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("subject_type")]
[System.Text.Json.Serialization.JsonPropertyName("subject_type")]
public string SubjectType { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置店铺基础信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("info")]
[System.Text.Json.Serialization.JsonPropertyName("info")]
public Types.BasicInfo BasicInfo { get; set; } = default!;
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/basics/media/get 接口的请求。</para>
/// </summary>
public class ChannelsECBasicsMediaGetRequest : WechatApiRequest, IInferable<ChannelsECBasicsMediaGetRequest, ChannelsECBasicsMediaGetResponse>
{
/// <summary>
/// 获取或设置 MediaId。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string MediaId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,13 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/basics/media/get 接口的响应。</para>
/// </summary>
public class ChannelsECBasicsMediaGetResponse : WechatApiResponse
{
public override bool IsSuccessful()
{
return base.IsSuccessful() && RawBytes?.Length > 0;
}
}
}

View File

@@ -0,0 +1,31 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/basics/qualification/upload 接口的请求。</para>
/// </summary>
public class ChannelsECBasicsQualificationUploadRequest : WechatApiRequest, IInferable<ChannelsECBasicsQualificationUploadRequest, ChannelsECBasicsQualificationUploadResponse>
{
/// <summary>
/// 获取或设置图片文件字节数组。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public byte[] FileBytes { get; set; } = Array.Empty<byte>();
/// <summary>
/// 获取或设置图片文件名。如果不指定将由系统自动生成。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string? FileName { get; set; }
/// <summary>
/// 获取或设置图片文件 Conent-Type。如果不指定将由系统自动生成。
/// </summary>
[Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore]
public string? FileContentType { get; set; }
}
}

View File

@@ -0,0 +1,28 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/basics/qualification/upload 接口的响应。</para>
/// </summary>
public class ChannelsECBasicsQualificationUploadResponse : WechatApiResponse
{
public static class Types
{
public class Data
{
/// <summary>
/// 获取或设置文件 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("file_id")]
[System.Text.Json.Serialization.JsonPropertyName("file_id")]
public string FileId { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置返回数据。
/// </summary>
[Newtonsoft.Json.JsonProperty("data")]
[System.Text.Json.Serialization.JsonPropertyName("data")]
public Types.Data Data { get; set; } = default!;
}
}

View File

@@ -0,0 +1,210 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/add 接口的请求。</para>
/// </summary>
public class ChannelsECBrandAddRequest : WechatApiRequest, IInferable<ChannelsECBrandAddRequest, ChannelsECBrandAddResponse>
{
public static class Types
{
public class Brand
{
public static class Types
{
public class RegisterDetail
{
/// <summary>
/// 获取或设置商标注册人。
/// </summary>
[Newtonsoft.Json.JsonProperty("registrant")]
[System.Text.Json.Serialization.JsonPropertyName("registrant")]
public string? Registrant { get; set; }
/// <summary>
/// 获取或设置商标注册号。
/// </summary>
[Newtonsoft.Json.JsonProperty("register_no")]
[System.Text.Json.Serialization.JsonPropertyName("register_no")]
public string? RegisterNumber { get; set; }
/// <summary>
/// 获取或设置商标注册有效期开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置商标注册有效期结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置是否长期有效。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_permanent")]
[System.Text.Json.Serialization.JsonPropertyName("is_permanent")]
public bool IsPermanent { get; set; }
/// <summary>
/// 获取或设置商标注册证的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("register_certifications")]
[System.Text.Json.Serialization.JsonPropertyName("register_certifications")]
public IList<string> RegisterCertificationFileIdList { get; set; } = new List<string>();
/// <summary>
/// 获取或设置变更/续展证明的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("renew_certifications")]
[System.Text.Json.Serialization.JsonPropertyName("renew_certifications")]
public IList<string>? RenewCertificationFileIdList { get; set; }
}
public class ApplicationDetail
{
/// <summary>
/// 获取或设置商标申请号。
/// </summary>
[Newtonsoft.Json.JsonProperty("acceptance_no")]
[System.Text.Json.Serialization.JsonPropertyName("acceptance_no")]
public string? AcceptanceNumber { get; set; }
/// <summary>
/// 获取或设置商标申请受理时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("acceptance_time")]
[System.Text.Json.Serialization.JsonPropertyName("acceptance_time")]
public long? AcceptanceTimestamp { get; set; }
/// <summary>
/// 获取或设置商标注册申请受理书的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("acceptance_certification")]
[System.Text.Json.Serialization.JsonPropertyName("acceptance_certification")]
public IList<string>? AcceptanceCertificationFileIdList { get; set; }
}
public class GrantDetail
{
/// <summary>
/// 获取或设置授权级数。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_level")]
[System.Text.Json.Serialization.JsonPropertyName("grant_level")]
public int? GrantLevel { get; set; }
/// <summary>
/// 获取或设置授权有效期开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置授权有效期结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置是否长期有效。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_permanent")]
[System.Text.Json.Serialization.JsonPropertyName("is_permanent")]
public bool IsPermanent { get; set; }
/// <summary>
/// 获取或设置品牌销售授权书的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_certifications")]
[System.Text.Json.Serialization.JsonPropertyName("grant_certifications")]
public IList<string>? GrantCertificationFileIdList { get; set; }
/// <summary>
/// 获取或设置品牌权利人证件照的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_owner_id_photos")]
[System.Text.Json.Serialization.JsonPropertyName("brand_owner_id_photos")]
public IList<string>? BrandOwnerIdPhotoFileIdList { get; set; }
}
}
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
public long BrandId { get; set; }
/// <summary>
/// 获取或设置品牌商标中文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("ch_name")]
[System.Text.Json.Serialization.JsonPropertyName("ch_name")]
public string? ChineseName { get; set; }
/// <summary>
/// 获取或设置品牌商标英文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("en_name")]
[System.Text.Json.Serialization.JsonPropertyName("en_name")]
public string? EnglishName { get; set; }
/// <summary>
/// 获取或设置商标分类号。
/// </summary>
[Newtonsoft.Json.JsonProperty("classification_no")]
[System.Text.Json.Serialization.JsonPropertyName("classification_no")]
public string ClassificationNumber { get; set; } = string.Empty;
/// <summary>
/// 获取或设置商标类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("trade_mark_symbol")]
[System.Text.Json.Serialization.JsonPropertyName("trade_mark_symbol")]
public int TradeMarkSymbol { get; set; }
/// <summary>
/// 获取或设置商标注册详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("register_details")]
[System.Text.Json.Serialization.JsonPropertyName("register_details")]
public Types.RegisterDetail RegisterDetail { get; set; } = new Types.RegisterDetail();
/// <summary>
/// 获取或设置商标申请详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("application_details")]
[System.Text.Json.Serialization.JsonPropertyName("application_details")]
public Types.ApplicationDetail ApplicationDetail { get; set; } = new Types.ApplicationDetail();
/// <summary>
/// 获取或设置商标授权类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_type")]
[System.Text.Json.Serialization.JsonPropertyName("grant_type")]
public int? GrantType { get; set; }
/// <summary>
/// 获取或设置商标授权详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_details")]
[System.Text.Json.Serialization.JsonPropertyName("grant_details")]
public Types.GrantDetail GrantDetail { get; set; } = new Types.GrantDetail();
}
}
/// <summary>
/// 获取或设置品牌信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand")]
[System.Text.Json.Serialization.JsonPropertyName("brand")]
public Types.Brand Brand { get; set; } = new Types.Brand();
}
}

View File

@@ -0,0 +1,16 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/add 接口的响应。</para>
/// </summary>
public class ChannelsECBrandAddResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置审核单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_id")]
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long AuditId { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/all 接口的请求。</para>
/// </summary>
public class ChannelsECBrandAllRequest : WechatApiRequest, IInferable<ChannelsECBrandAllRequest, ChannelsECBrandAllResponse>
{
/// <summary>
/// 获取或设置分页每页页数。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? Cursor { get; set; }
}
}

View File

@@ -0,0 +1,57 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/all 接口的响应。</para>
/// </summary>
public class ChannelsECBrandAllResponse : WechatApiResponse
{
public static class Types
{
public class Brand
{
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long BrandId { get; set; }
/// <summary>
/// 获取或设置品牌商标中文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("ch_name")]
[System.Text.Json.Serialization.JsonPropertyName("ch_name")]
public string? ChineseName { get; set; }
/// <summary>
/// 获取或设置品牌商标英文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("en_name")]
[System.Text.Json.Serialization.JsonPropertyName("en_name")]
public string? EnglishName { get; set; }
}
}
/// <summary>
/// 获取或设置品牌列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("brands")]
[System.Text.Json.Serialization.JsonPropertyName("brands")]
public Types.Brand[] BrandList { get; set; } = default!;
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? NextCursor { get; set; }
/// <summary>
/// 获取或设置是否还有更多。
/// </summary>
[Newtonsoft.Json.JsonProperty("continue_flag")]
[System.Text.Json.Serialization.JsonPropertyName("continue_flag")]
public bool HasMore { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/audit/cancel 接口的请求。</para>
/// </summary>
public class ChannelsECBrandAuditCancelRequest : WechatApiRequest, IInferable<ChannelsECBrandAuditCancelRequest, ChannelsECBrandAuditCancelResponse>
{
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
public long BrandId { get; set; }
/// <summary>
/// 获取或设置审核单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_id")]
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
public long AuditId { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/audit/cancel 接口的响应。</para>
/// </summary>
public class ChannelsECBrandAuditCancelResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/delete 接口的请求。</para>
/// </summary>
public class ChannelsECBrandDeleteRequest : WechatApiRequest, IInferable<ChannelsECBrandDeleteRequest, ChannelsECBrandDeleteResponse>
{
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
public long BrandId { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/delete 接口的响应。</para>
/// </summary>
public class ChannelsECBrandDeleteResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/get 接口的请求。</para>
/// </summary>
public class ChannelsECBrandGetRequest : WechatApiRequest, IInferable<ChannelsECBrandGetRequest, ChannelsECBrandGetResponse>
{
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
public long BrandId { get; set; }
}
}

View File

@@ -0,0 +1,259 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/get 接口的响应。</para>
/// </summary>
public class ChannelsECBrandGetResponse : WechatApiResponse
{
public static class Types
{
public class Brand
{
public static class Types
{
public class RegisterDetail
{
/// <summary>
/// 获取或设置商标注册人。
/// </summary>
[Newtonsoft.Json.JsonProperty("registrant")]
[System.Text.Json.Serialization.JsonPropertyName("registrant")]
public string? Registrant { get; set; }
/// <summary>
/// 获取或设置商标注册号。
/// </summary>
[Newtonsoft.Json.JsonProperty("register_no")]
[System.Text.Json.Serialization.JsonPropertyName("register_no")]
public string? RegisterNumber { get; set; }
/// <summary>
/// 获取或设置商标注册有效期开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置商标注册有效期结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置是否长期有效。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_permanent")]
[System.Text.Json.Serialization.JsonPropertyName("is_permanent")]
public bool IsPermanent { get; set; }
/// <summary>
/// 获取或设置商标注册证的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("register_certifications")]
[System.Text.Json.Serialization.JsonPropertyName("register_certifications")]
public string[] RegisterCertificationFileIdList { get; set; } = default!;
/// <summary>
/// 获取或设置变更/续展证明的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("renew_certifications")]
[System.Text.Json.Serialization.JsonPropertyName("renew_certifications")]
public string[]? RenewCertificationFileIdList { get; set; }
}
public class ApplicationDetail
{
/// <summary>
/// 获取或设置商标申请号。
/// </summary>
[Newtonsoft.Json.JsonProperty("acceptance_no")]
[System.Text.Json.Serialization.JsonPropertyName("acceptance_no")]
public string? AcceptanceNumber { get; set; }
/// <summary>
/// 获取或设置商标申请受理时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("acceptance_time")]
[System.Text.Json.Serialization.JsonPropertyName("acceptance_time")]
public long? AcceptanceTimestamp { get; set; }
/// <summary>
/// 获取或设置商标注册申请受理书的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("acceptance_certification")]
[System.Text.Json.Serialization.JsonPropertyName("acceptance_certification")]
public string[]? AcceptanceCertificationFileIdList { get; set; }
}
public class GrantDetail
{
/// <summary>
/// 获取或设置授权级数。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_level")]
[System.Text.Json.Serialization.JsonPropertyName("grant_level")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int? GrantLevel { get; set; }
/// <summary>
/// 获取或设置授权有效期开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置授权有效期结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置是否长期有效。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_permanent")]
[System.Text.Json.Serialization.JsonPropertyName("is_permanent")]
public bool IsPermanent { get; set; }
/// <summary>
/// 获取或设置品牌销售授权书的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_certifications")]
[System.Text.Json.Serialization.JsonPropertyName("grant_certifications")]
public string[]? GrantCertificationFileIdList { get; set; }
/// <summary>
/// 获取或设置品牌权利人证件照的文件 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_owner_id_photos")]
[System.Text.Json.Serialization.JsonPropertyName("brand_owner_id_photos")]
public string[]? BrandOwnerIdPhotoFileIdList { get; set; }
}
public class AuditResult
{
/// <summary>
/// 获取或设置审核单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_id")]
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long AuditId { get; set; }
/// <summary>
/// 获取或设置审核拒绝原因。
/// </summary>
[Newtonsoft.Json.JsonProperty("reject_reason")]
[System.Text.Json.Serialization.JsonPropertyName("reject_reason")]
public string? RejectReason { get; set; }
}
}
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long BrandId { get; set; }
/// <summary>
/// 获取或设置品牌商标中文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("ch_name")]
[System.Text.Json.Serialization.JsonPropertyName("ch_name")]
public string? ChineseName { get; set; }
/// <summary>
/// 获取或设置品牌商标英文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("en_name")]
[System.Text.Json.Serialization.JsonPropertyName("en_name")]
public string? EnglishName { get; set; }
/// <summary>
/// 获取或设置商标分类号。
/// </summary>
[Newtonsoft.Json.JsonProperty("classification_no")]
[System.Text.Json.Serialization.JsonPropertyName("classification_no")]
public string ClassificationNumber { get; set; } = default!;
/// <summary>
/// 获取或设置商标类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("trade_mark_symbol")]
[System.Text.Json.Serialization.JsonPropertyName("trade_mark_symbol")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int TradeMarkSymbol { get; set; }
/// <summary>
/// 获取或设置商标注册详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("register_details")]
[System.Text.Json.Serialization.JsonPropertyName("register_details")]
public Types.RegisterDetail RegisterDetail { get; set; } = default!;
/// <summary>
/// 获取或设置商标申请详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("application_details")]
[System.Text.Json.Serialization.JsonPropertyName("application_details")]
public Types.ApplicationDetail ApplicationDetail { get; set; } = default!;
/// <summary>
/// 获取或设置商标授权类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_type")]
[System.Text.Json.Serialization.JsonPropertyName("grant_type")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int GrantType { get; set; }
/// <summary>
/// 获取或设置商标授权详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_details")]
[System.Text.Json.Serialization.JsonPropertyName("grant_details")]
public Types.GrantDetail GrantDetail { get; set; } = default!;
/// <summary>
/// 获取或设置申请状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int Status { get; set; }
/// <summary>
/// 获取或设置创建时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_time")]
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
public long CreateTimestamp { get; set; }
/// <summary>
/// 获取或设置更新时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("update_time")]
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
public long UpdateTimestamp { get; set; }
/// <summary>
/// 获取或设置审核结果。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_result")]
[System.Text.Json.Serialization.JsonPropertyName("audit_result")]
public Types.AuditResult? AuditResult { get; set; }
}
}
/// <summary>
/// 获取或设置品牌信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand")]
[System.Text.Json.Serialization.JsonPropertyName("brand")]
public Types.Brand Brand { get; set; } = default!;
}
}

View File

@@ -0,0 +1,30 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/list/get 接口的请求。</para>
/// </summary>
public class ChannelsECBrandListGetRequest : WechatApiRequest, IInferable<ChannelsECBrandListGetRequest, ChannelsECBrandListGetResponse>
{
/// <summary>
/// 获取或设置申请状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int? Status { get; set; }
/// <summary>
/// 获取或设置分页每页页数。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? Cursor { get; set; }
}
}

View File

@@ -0,0 +1,36 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/list/get 接口的响应。</para>
/// </summary>
public class ChannelsECBrandListGetResponse : WechatApiResponse
{
public static class Types
{
public class Brand : ChannelsECBrandGetResponse.Types.Brand
{
}
}
/// <summary>
/// 获取或设置品牌列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("brands")]
[System.Text.Json.Serialization.JsonPropertyName("brands")]
public Types.Brand[] BrandList { get; set; } = default!;
/// <summary>
/// 获取或设置品牌总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_num")]
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
public int TotalCount { get; set; }
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? NextCursor { get; set; }
}
}

View File

@@ -0,0 +1,99 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/update 接口的请求。</para>
/// </summary>
public class ChannelsECBrandUpdateRequest : WechatApiRequest, IInferable<ChannelsECBrandUpdateRequest, ChannelsECBrandUpdateResponse>
{
public static class Types
{
public class Brand
{
public static class Types
{
public class RegisterDetail : ChannelsECBrandAddRequest.Types.Brand.Types.RegisterDetail
{
}
public class ApplicationDetail : ChannelsECBrandAddRequest.Types.Brand.Types.ApplicationDetail
{
}
public class GrantDetail : ChannelsECBrandAddRequest.Types.Brand.Types.GrantDetail
{
}
}
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
public long BrandId { get; set; }
/// <summary>
/// 获取或设置品牌商标中文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("ch_name")]
[System.Text.Json.Serialization.JsonPropertyName("ch_name")]
public string? ChineseName { get; set; }
/// <summary>
/// 获取或设置品牌商标英文名。
/// </summary>
[Newtonsoft.Json.JsonProperty("en_name")]
[System.Text.Json.Serialization.JsonPropertyName("en_name")]
public string? EnglishName { get; set; }
/// <summary>
/// 获取或设置商标分类号。
/// </summary>
[Newtonsoft.Json.JsonProperty("classification_no")]
[System.Text.Json.Serialization.JsonPropertyName("classification_no")]
public string ClassificationNumber { get; set; } = string.Empty;
/// <summary>
/// 获取或设置商标类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("trade_mark_symbol")]
[System.Text.Json.Serialization.JsonPropertyName("trade_mark_symbol")]
public int TradeMarkSymbol { get; set; }
/// <summary>
/// 获取或设置商标注册详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("register_details")]
[System.Text.Json.Serialization.JsonPropertyName("register_details")]
public Types.RegisterDetail RegisterDetail { get; set; } = new Types.RegisterDetail();
/// <summary>
/// 获取或设置商标申请详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("application_details")]
[System.Text.Json.Serialization.JsonPropertyName("application_details")]
public Types.ApplicationDetail ApplicationDetail { get; set; } = new Types.ApplicationDetail();
/// <summary>
/// 获取或设置商标授权类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_type")]
[System.Text.Json.Serialization.JsonPropertyName("grant_type")]
public int? GrantType { get; set; }
/// <summary>
/// 获取或设置商标授权详细信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("grant_details")]
[System.Text.Json.Serialization.JsonPropertyName("grant_details")]
public Types.GrantDetail GrantDetail { get; set; } = new Types.GrantDetail();
}
}
/// <summary>
/// 获取或设置品牌信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand")]
[System.Text.Json.Serialization.JsonPropertyName("brand")]
public Types.Brand Brand { get; set; } = new Types.Brand();
}
}

View File

@@ -0,0 +1,16 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/brand/update 接口的响应。</para>
/// </summary>
public class ChannelsECBrandUpdateResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置审核单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_id")]
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long AuditId { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/category/all 接口的请求。</para>
/// </summary>
public class ChannelsECCategoryAllRequest : WechatApiRequest, IInferable<ChannelsECCategoryAllRequest, ChannelsECCategoryAllResponse>
{
}
}

View File

@@ -0,0 +1,124 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/category/all 接口的响应。</para>
/// </summary>
public class ChannelsECCategoryAllResponse : WechatApiResponse
{
public static class Types
{
public class Category
{
public static class Types
{
public class CategoryAndQualification
{
public static class Types
{
public class Category
{
/// <summary>
/// 获取或设置类目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("cat_id")]
[System.Text.Json.Serialization.JsonPropertyName("cat_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int CategoryId { get; set; }
/// <summary>
/// 获取或设置类目名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
/// <summary>
/// 获取或设置上级类目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("f_cat_id")]
[System.Text.Json.Serialization.JsonPropertyName("f_cat_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int ParentCategoryId { get; set; }
/// <summary>
/// 获取或设置类目层级。
/// </summary>
[Newtonsoft.Json.JsonProperty("level")]
[System.Text.Json.Serialization.JsonPropertyName("level")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int Level { get; set; }
}
public class Qualification
{
/// <summary>
/// 获取或设置资质 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("qua_id")]
[System.Text.Json.Serialization.JsonPropertyName("qua_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int QualificationId { get; set; }
/// <summary>
/// 获取或设置资质信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("tips")]
[System.Text.Json.Serialization.JsonPropertyName("tips")]
public string? Tips { get; set; }
/// <summary>
/// 获取或设置是否需要申请才能用。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_to_apply")]
[System.Text.Json.Serialization.JsonPropertyName("need_to_apply")]
public bool IsApplyRequired { get; set; }
/// <summary>
/// 获取或设置是否一定要提交资质。
/// </summary>
[Newtonsoft.Json.JsonProperty("mandatory")]
[System.Text.Json.Serialization.JsonPropertyName("mandatory")]
public bool IsApplyMandatory { get; set; }
}
}
/// <summary>
/// 获取或设置类目信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("cat")]
[System.Text.Json.Serialization.JsonPropertyName("cat")]
public Types.Category Category { get; set; } = default!;
/// <summary>
/// 获取或设置资质信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("qua")]
[System.Text.Json.Serialization.JsonPropertyName("qua")]
public Types.Qualification? Qualification { get; set; }
/// <summary>
/// 获取或设置商品资质信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_qua")]
[System.Text.Json.Serialization.JsonPropertyName("product_qua")]
public Types.Qualification? ProductQualification { get; set; }
}
}
/// <summary>
/// 获取或设置类目和资质列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("cat_and_qua")]
[System.Text.Json.Serialization.JsonPropertyName("cat_and_qua")]
public Types.CategoryAndQualification[] CategoryAndQualificationList { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置类目列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("cats")]
[System.Text.Json.Serialization.JsonPropertyName("cats")]
public Types.Category[] CategoryList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/audit/cancel 接口的请求。</para>
/// </summary>
public class ChannelsECCategoryAuditCancelRequest : WechatApiRequest, IInferable<ChannelsECCategoryAuditCancelRequest, ChannelsECCategoryAuditCancelResponse>
{
/// <summary>
/// 获取或设置审核单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_id")]
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
public long AuditId { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/audit/cancel 接口的响应。</para>
/// </summary>
public class ChannelsECCategoryAuditCancelResponse : WechatApiResponse
{
}
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/availablesoncategories/get 接口的响应。</para>
@@ -15,7 +15,7 @@
[Newtonsoft.Json.JsonProperty("cat_id")]
[System.Text.Json.Serialization.JsonPropertyName("cat_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long CategoryId { get; set; }
public int CategoryId { get; set; }
/// <summary>
/// 获取或设置类目名称。

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/detail 接口的请求。</para>
/// </summary>
public class ChannelsECCategoryDetailRequest : WechatApiRequest, IInferable<ChannelsECCategoryDetailRequest, ChannelsECCategoryAllResponse>
{
/// <summary>
/// 获取或设置类目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("cat_id")]
[System.Text.Json.Serialization.JsonPropertyName("cat_id")]
public int CategoryId { get; set; }
}
}

View File

@@ -0,0 +1,168 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/category/detail 接口的响应。</para>
/// </summary>
public class ChannelsECCategoryDetailResponse : WechatApiResponse
{
public static class Types
{
public class CategoryInfo
{
/// <summary>
/// 获取或设置类目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("cat_id")]
[System.Text.Json.Serialization.JsonPropertyName("cat_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int CategoryId { get; set; }
/// <summary>
/// 获取或设置类目名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
}
public class CategoryAttribute
{
public static class Types
{
public class Brand
{
/// <summary>
/// 获取或设置品牌 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_id")]
[System.Text.Json.Serialization.JsonPropertyName("brand_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long BrandId { get; set; }
}
public class ProductAttribute
{
/// <summary>
/// 获取或设置属性名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
/// <summary>
/// 获取或设置属性类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public string Type { get; set; } = default!;
/// <summary>
/// 获取或设置属性值。
/// </summary>
[Newtonsoft.Json.JsonProperty("value")]
[System.Text.Json.Serialization.JsonPropertyName("value")]
public string Value { get; set; } = default!;
/// <summary>
/// 获取或设置是否必填。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_required")]
[System.Text.Json.Serialization.JsonPropertyName("is_required")]
public bool IsRequired { get; set; }
}
public class TransactionFee
{
/// <summary>
/// 获取或设置实收的交易佣金比例(单位:万分比)。
/// </summary>
[Newtonsoft.Json.JsonProperty("basis_point")]
[System.Text.Json.Serialization.JsonPropertyName("basis_point")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int BasisPoint { get; set; }
/// <summary>
/// 获取或设置原始佣金比例(单位:万分比)。
/// </summary>
[Newtonsoft.Json.JsonProperty("original_basis_point")]
[System.Text.Json.Serialization.JsonPropertyName("original_basis_point")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int OriginalBasisPoint { get; set; }
/// <summary>
/// 获取或设置佣金激励类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("incentive_type")]
[System.Text.Json.Serialization.JsonPropertyName("incentive_type")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int IncentiveType { get; set; }
}
}
/// <summary>
/// 获取或设置类目名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("shop_no_shipment")]
[System.Text.Json.Serialization.JsonPropertyName("shop_no_shipment")]
public bool IsShopNoShipmentSupported { get; set; }
/// <summary>
/// 获取或设置是否定向准入。
/// </summary>
[Newtonsoft.Json.JsonProperty("access_permit_required")]
[System.Text.Json.Serialization.JsonPropertyName("access_permit_required")]
public bool IsAccessPermitRequired { get; set; }
/// <summary>
/// 获取或设置是否支持预售。
/// </summary>
[Newtonsoft.Json.JsonProperty("pre_sale")]
[System.Text.Json.Serialization.JsonPropertyName("pre_sale")]
public bool IsPresaleSupported { get; set; }
/// <summary>
/// 获取或设置定准类目的品牌列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("brand_list")]
[System.Text.Json.Serialization.JsonPropertyName("brand_list")]
public Types.Brand[]? BrandList { get; set; }
/// <summary>
/// 获取或设置保证金(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("deposit")]
[System.Text.Json.Serialization.JsonPropertyName("deposit")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int? Deposit { get; set; }
/// <summary>
/// 获取或设置产品属性列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_attr_list")]
[System.Text.Json.Serialization.JsonPropertyName("product_attr_list")]
public Types.ProductAttribute[]? ProductAttributeList { get; set; }
/// <summary>
/// 获取或设置交易佣金信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("transactionfee_info")]
[System.Text.Json.Serialization.JsonPropertyName("transactionfee_info")]
public Types.TransactionFee? TransactionFee { get; set; }
}
}
/// <summary>
/// 获取或设置类目信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("info")]
[System.Text.Json.Serialization.JsonPropertyName("info")]
public Types.CategoryInfo CategoryInfo { get; set; } = default!;
/// <summary>
/// 获取或设置类目属性信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("attr")]
[System.Text.Json.Serialization.JsonPropertyName("attr")]
public Types.CategoryAttribute CategoryAttribute { get; set; } = default!;
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/category/list/get 接口的请求。</para>
/// </summary>
public class ChannelsECCategoryListGetRequest : WechatApiRequest, IInferable<ChannelsECCategoryListGetRequest, ChannelsECCategoryListGetResponse>
{
}
}

View File

@@ -0,0 +1,37 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [GET] /channels/ec/category/list/get 接口的响应。</para>
/// </summary>
public class ChannelsECCategoryListGetResponse : WechatApiResponse
{
public static class Types
{
public class CategoryAndQualification
{
/// <summary>
/// 获取或设置类目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("cat_id")]
[System.Text.Json.Serialization.JsonPropertyName("cat_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int CategoryId { get; set; }
/// <summary>
/// 获取或设置资质 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("qua_id")]
[System.Text.Json.Serialization.JsonPropertyName("qua_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int? QualificationId { get; set; }
}
}
/// <summary>
/// 获取或设置类目和资质列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("list")]
[System.Text.Json.Serialization.JsonPropertyName("list")]
public Types.CategoryAndQualification[] CategoryAndQualificationList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getbankacct 接口的请求。</para>
/// </summary>
public class ChannelsECFundsGetBankAccountRequest : WechatApiRequest, IInferable<ChannelsECFundsGetBankAccountRequest, ChannelsECFundsGetBankAccountResponse>
{
}
}

View File

@@ -0,0 +1,77 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getbankacct 接口的响应。</para>
/// </summary>
public class ChannelsECFundsGetBankAccountResponse : WechatApiResponse
{
public static class Types
{
public class Account
{
/// <summary>
/// 获取或设置银行账户类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_account_type")]
[System.Text.Json.Serialization.JsonPropertyName("bank_account_type")]
public string BankAccountType { get; set; } = default!;
/// <summary>
/// 获取或设置银行名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_bank")]
[System.Text.Json.Serialization.JsonPropertyName("account_bank")]
public string BankName { get; set; } = default!;
/// <summary>
/// 获取或设置银行名称前端展示值。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_bank4show")]
[System.Text.Json.Serialization.JsonPropertyName("account_bank4show")]
public string? BankNameForShow { get; set; }
/// <summary>
/// 获取或设置开户银行联行号。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_address_code")]
[System.Text.Json.Serialization.JsonPropertyName("bank_address_code")]
public string BankAddressCode { get; set; } = default!;
/// <summary>
/// 获取或设置银行省市编码。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_branch_id")]
[System.Text.Json.Serialization.JsonPropertyName("bank_branch_id")]
public string? BankBranchId { get; set; }
/// <summary>
/// 获取或设置开户银行全称。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_name")]
[System.Text.Json.Serialization.JsonPropertyName("bank_name")]
public string? BankBranchName { get; set; }
/// <summary>
/// 获取或设置银行账户。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_number")]
[System.Text.Json.Serialization.JsonPropertyName("account_number")]
public string BankAccountNumber { get; set; } = default!;
/// <summary>
/// 获取或设置银行账户全称。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_name")]
[System.Text.Json.Serialization.JsonPropertyName("account_name")]
public string? BankAccountName { get; set; }
}
}
/// <summary>
/// 获取或设置银行账户信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_info")]
[System.Text.Json.Serialization.JsonPropertyName("account_info")]
public Types.Account Account { get; set; } = default!;
}
}

View File

@@ -0,0 +1,77 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/setbankacct 接口的请求。</para>
/// </summary>
public class ChannelsECFundsSetBankAccountRequest : WechatApiRequest, IInferable<ChannelsECFundsSetBankAccountRequest, ChannelsECFundsSetBankAccountResponse>
{
public static class Types
{
public class Account
{
/// <summary>
/// 获取或设置银行账户类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_account_type")]
[System.Text.Json.Serialization.JsonPropertyName("bank_account_type")]
public string BankAccountType { get; set; } = string.Empty;
/// <summary>
/// 获取或设置银行名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_bank")]
[System.Text.Json.Serialization.JsonPropertyName("account_bank")]
public string BankName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置银行名称前端展示值。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_bank4show")]
[System.Text.Json.Serialization.JsonPropertyName("account_bank4show")]
public string? BankNameForShow { get; set; }
/// <summary>
/// 获取或设置银行省市编码。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_address_code")]
[System.Text.Json.Serialization.JsonPropertyName("bank_address_code")]
public string BankAddressCode { get; set; } = string.Empty;
/// <summary>
/// 获取或设置银行省市编码。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_branch_id")]
[System.Text.Json.Serialization.JsonPropertyName("bank_branch_id")]
public string? BankBranchId { get; set; }
/// <summary>
/// 获取或设置开户银行全称。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_name")]
[System.Text.Json.Serialization.JsonPropertyName("bank_name")]
public string? BankBranchName { get; set; }
/// <summary>
/// 获取或设置银行账户。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_number")]
[System.Text.Json.Serialization.JsonPropertyName("account_number")]
public string BankAccountNumber { get; set; } = string.Empty;
/// <summary>
/// 获取或设置银行账户全称。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_name")]
[System.Text.Json.Serialization.JsonPropertyName("account_name")]
public string? BankAccountName { get; set; }
}
}
/// <summary>
/// 获取或设置银行账户信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("account_info")]
[System.Text.Json.Serialization.JsonPropertyName("account_info")]
public Types.Account Account { get; set; } = new Types.Account();
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/setbankacct 接口的响应。</para>
/// </summary>
public class ChannelsECFundsSetBankAccountResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getbalance 接口的请求。</para>
/// </summary>
public class ChannelsECFundsGetBalanceRequest : WechatApiRequest, IInferable<ChannelsECFundsGetBalanceRequest, ChannelsECFundsGetBalanceResponse>
{
}
}

View File

@@ -0,0 +1,30 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getbalance 接口的响应。</para>
/// </summary>
public class ChannelsECFundsGetBalanceResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置可用余额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("available_amount")]
[System.Text.Json.Serialization.JsonPropertyName("available_amount")]
public int AvailableAmount { get; set; }
/// <summary>
/// 获取或设置待结算余额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("pending_amount")]
[System.Text.Json.Serialization.JsonPropertyName("pending_amount")]
public int PendingAmount { get; set; }
/// <summary>
/// 获取或设置二级商户号。
/// </summary>
[Newtonsoft.Json.JsonProperty("sub_mchid")]
[System.Text.Json.Serialization.JsonPropertyName("sub_mchid")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
public string? SubMerchantId { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/submitwithdraw 接口的请求。</para>
/// </summary>
public class ChannelsECFundsSubmitWithdrawRequest : WechatApiRequest, IInferable<ChannelsECFundsSubmitWithdrawRequest, ChannelsECFundsSubmitWithdrawResponse>
{
/// <summary>
/// 获取或设置提现金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("amount")]
[System.Text.Json.Serialization.JsonPropertyName("amount")]
public int Amount { get; set; }
/// <summary>
/// 获取或设置提现备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("remark")]
[System.Text.Json.Serialization.JsonPropertyName("remark")]
public string? Remark { get; set; }
/// <summary>
/// 获取或设置银行附言。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_memo")]
[System.Text.Json.Serialization.JsonPropertyName("bank_memo")]
public string? BankMemo { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/submitwithdraw 接口的响应。</para>
/// </summary>
public class ChannelsECFundsSubmitWithdrawResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置二维码 Ticket。
/// </summary>
[Newtonsoft.Json.JsonProperty("qrcode_ticket")]
[System.Text.Json.Serialization.JsonPropertyName("qrcode_ticket")]
public string QrcodeTicket { get; set; } = default!;
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getwithdrawdetail 接口的请求。</para>
/// </summary>
public class ChannelsECGetWithdrawDetailRequest : WechatApiRequest, IInferable<ChannelsECGetWithdrawDetailRequest, ChannelsECGetWithdrawDetailResponse>
{
/// <summary>
/// 获取或设置提现单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("withdraw_id")]
[System.Text.Json.Serialization.JsonPropertyName("withdraw_id")]
public string WithdrawId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,71 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getwithdrawdetail 接口的响应。</para>
/// </summary>
public class ChannelsECGetWithdrawDetailResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置提现金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("amount")]
[System.Text.Json.Serialization.JsonPropertyName("amount")]
public int Amount { get; set; }
/// <summary>
/// 获取或设置提现备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("remark")]
[System.Text.Json.Serialization.JsonPropertyName("remark")]
public string? Remark { get; set; }
/// <summary>
/// 获取或设置银行名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_name")]
[System.Text.Json.Serialization.JsonPropertyName("bank_name")]
public string? BankName { get; set; }
/// <summary>
/// 获取或设置银行账号。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_num")]
[System.Text.Json.Serialization.JsonPropertyName("bank_num")]
public string? BankAccountNumber { get; set; }
/// <summary>
/// 获取或设置银行附言。
/// </summary>
[Newtonsoft.Json.JsonProperty("bank_memo")]
[System.Text.Json.Serialization.JsonPropertyName("bank_memo")]
public string? BankMemo { get; set; }
/// <summary>
/// 获取或设置提现状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public string Status { get; set; } = default!;
/// <summary>
/// 获取或设置提现原因。
/// </summary>
[Newtonsoft.Json.JsonProperty("reason")]
[System.Text.Json.Serialization.JsonPropertyName("reason")]
public string? Reason { get; set; }
/// <summary>
/// 获取或设置创建时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_time")]
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
public long CreateTimestamp { get; set; }
/// <summary>
/// 获取或设置修改时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("update_time")]
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
public long UpdateTimestamp { get; set; }
}
}

View File

@@ -0,0 +1,38 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getwithdrawlist 接口的请求。</para>
/// </summary>
public class ChannelsECGetWithdrawListRequest : WechatApiRequest, IInferable<ChannelsECGetWithdrawListRequest, ChannelsECGetWithdrawListResponse>
{
/// <summary>
/// 获取或设置开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置分页页数。
/// <para>默认值1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_num")]
[System.Text.Json.Serialization.JsonPropertyName("page_num")]
public int Page { get; set; } = 1;
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/funds/getwithdrawlist 接口的响应。</para>
/// </summary>
public class ChannelsECGetWithdrawListResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置提现单号列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("withdraw_ids")]
[System.Text.Json.Serialization.JsonPropertyName("withdraw_ids")]
public string[] WithdrawIdList { get; set; } = default!;
/// <summary>
/// 获取或设置提现单总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_num")]
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
public int TotalCount { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/funds/getfundsflowdetail 接口的请求。</para>
/// </summary>
public class ChannelsECLeagueFundsGetFundsFlowDetailRequest : WechatApiRequest, IInferable<ChannelsECLeagueFundsGetFundsFlowDetailRequest, ChannelsECLeagueFundsGetFundsFlowDetailResponse>
{
/// <summary>
/// 获取或设置资金流水单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_id")]
[System.Text.Json.Serialization.JsonPropertyName("flow_id")]
public string FundsFlowId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,135 @@
using System;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/funds/getfundsflowdetail 接口的响应。</para>
/// </summary>
public class ChannelsECLeagueFundsGetFundsFlowDetailResponse : WechatApiResponse
{
public static class Types
{
public class FundsFlow
{
public static class Types
{
public class RelatedInfo
{
/// <summary>
/// 获取或设置关联类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("related_type")]
[System.Text.Json.Serialization.JsonPropertyName("related_type")]
public string RelatedType { get; set; } = default!;
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? OrderId { get; set; }
/// <summary>
/// 获取或设置售后单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("aftersale_id")]
[System.Text.Json.Serialization.JsonPropertyName("aftersale_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? AftersaleOrderId { get; set; }
/// <summary>
/// 获取或设置支付单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("transaction_id")]
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
public string? TransactionId { get; set; }
/// <summary>
/// 获取或设置提现单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("withdraw_id")]
[System.Text.Json.Serialization.JsonPropertyName("withdraw_id")]
public string? WithdrawId { get; set; }
/// <summary>
/// 获取或设置运费险单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("insurance_id")]
[System.Text.Json.Serialization.JsonPropertyName("insurance_id")]
public string? InsuranceId { get; set; }
}
}
/// <summary>
/// 获取或设置资金流水单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_id")]
[System.Text.Json.Serialization.JsonPropertyName("flow_id")]
public string FundsFlowId { get; set; } = default!;
/// <summary>
/// 获取或设置资金类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("funds_type")]
[System.Text.Json.Serialization.JsonPropertyName("funds_type")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int FundsType { get; set; }
/// <summary>
/// 获取或设置流水类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_type")]
[System.Text.Json.Serialization.JsonPropertyName("flow_type")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int FlowType { get; set; }
/// <summary>
/// 获取或设置金额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("amount")]
[System.Text.Json.Serialization.JsonPropertyName("amount")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int Amount { get; set; }
/// <summary>
/// 获取或设置余额(单位:分)。
/// </summary>
[Newtonsoft.Json.JsonProperty("balance")]
[System.Text.Json.Serialization.JsonPropertyName("balance")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public int Balance { get; set; }
/// <summary>
/// 获取或设置流水关联信息列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("related_info_list")]
[System.Text.Json.Serialization.JsonPropertyName("related_info_list")]
public Types.RelatedInfo[] RelatedInfoList { get; set; } = default!;
/// <summary>
/// 获取或设置备注。
/// </summary>
[Newtonsoft.Json.JsonProperty("remark")]
[System.Text.Json.Serialization.JsonPropertyName("remark")]
public string? Remark { get; set; }
/// <summary>
/// 获取或设置记账时间。
/// </summary>
[Newtonsoft.Json.JsonProperty("bookkeeping_time")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularDateTimeOffsetConverter))]
[System.Text.Json.Serialization.JsonPropertyName("bookkeeping_time")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
public DateTimeOffset BookkeepingTIme { get; set; }
}
}
/// <summary>
/// 获取或设置资金流水信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("funds_flow")]
[System.Text.Json.Serialization.JsonPropertyName("funds_flow")]
public Types.FundsFlow FundsFlow { get; set; } = default!;
}
}

View File

@@ -0,0 +1,59 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/funds/getfundsflowlist 接口的请求。</para>
/// </summary>
public class ChannelsECLeagueFundsGetFundsFlowListRequest : WechatApiRequest, IInferable<ChannelsECLeagueFundsGetFundsFlowListRequest, ChannelsECLeagueFundsGetFundsFlowListResponse>
{
/// <summary>
/// 获取或设置流水类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_type")]
[System.Text.Json.Serialization.JsonPropertyName("flow_type")]
public int? FlowType { get; set; }
/// <summary>
/// 获取或设置流水产生的开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置流水产生的结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置关联支付单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("transaction_id")]
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
public string? TransactionId { get; set; }
/// <summary>
/// 获取或设置分页页数。
/// <para>默认值1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page")]
[System.Text.Json.Serialization.JsonPropertyName("page")]
public int Page { get; set; } = 1;
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? Cursor { get; set; }
}
}

View File

@@ -0,0 +1,29 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/funds/getfundsflowlist 接口的响应。</para>
/// </summary>
public class ChannelsECLeagueFundsGetFundsFlowListResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置资金流水单号列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("flow_ids")]
[System.Text.Json.Serialization.JsonPropertyName("flow_ids")]
public string[] FundsFlowIdList { get; set; } = default!;
/// <summary>
/// 获取或设置是否还有更多。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_more")]
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
public bool HasMore { get; set; }
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? NextCursor { get; set; }
}
}

View File

@@ -0,0 +1,72 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/batchadd 接口的请求。</para>
/// </summary>
public class ChannelsECLeagueItemBatchAddRequest : WechatApiRequest, IInferable<ChannelsECLeagueItemBatchAddRequest, ChannelsECLeagueItemBatchAddResponse>
{
public static class Types
{
public class Item
{
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
public long ProductId { get; set; }
/// <summary>
/// 获取或设置分佣率范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("ratio")]
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
public int? Ratio { get; set; }
}
}
/// <summary>
/// 获取或设置商品推广类别。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int Type { get; set; }
/// <summary>
/// 获取或设置联盟商品列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("list")]
[System.Text.Json.Serialization.JsonPropertyName("list")]
public IList<Types.Item> List { get; set; } = new List<Types.Item>();
/// <summary>
/// 获取或设置视频号唯一标识列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("finder_ids")]
public IList<string>? FinderIdList { get; set; }
/// <summary>
/// 获取或设置推广开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("begin_time")]
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
public long? BeginTimestamp { get; set; }
/// <summary>
/// 获取或设置推广开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置是否永久推广。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_forerver")]
[System.Text.Json.Serialization.JsonPropertyName("is_forerver")]
public bool? IsForerver { get; set; }
}
}

View File

@@ -0,0 +1,51 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/batchadd 接口的响应。</para>
/// </summary>
public class ChannelsECLeagueItemBatchAddResponse : WechatApiResponse
{
public static class Types
{
public class Result
{
/// <summary>
/// 获取或设置错误码。
/// </summary>
[Newtonsoft.Json.JsonProperty("errcode")]
[System.Text.Json.Serialization.JsonPropertyName("errcode")]
public int ErrorCode { get; set; }
/// <summary>
/// 获取或设置错误信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("errmsg")]
[System.Text.Json.Serialization.JsonPropertyName("errmsg")]
public string? ErrorMessage { get; set; }
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long ProductId { get; set; }
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? InfoId { get; set; }
}
}
/// <summary>
/// 获取或设置结果列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("result_info_list")]
[System.Text.Json.Serialization.JsonPropertyName("result_info_list")]
public Types.Result[] ResultList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,29 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/delete 接口的请求。</para>
/// </summary>
public class ChannelsECLeagueItemDeleteRequest : WechatApiRequest, IInferable<ChannelsECLeagueItemDeleteRequest, ChannelsECLeagueItemDeleteResponse>
{
/// <summary>
/// 获取或设置商品推广类别。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int Type { get; set; }
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
public long? ProductId { get; set; }
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
public long? InfoId { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/delete 接口的响应。</para>
/// </summary>
public class ChannelsECLeagueItemDeleteResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,57 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/get 接口的请求。</para>
/// </summary>
public class ChannelsECLeagueItemGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueItemGetRequest, ChannelsECLeagueItemGetResponse>
{
/// <summary>
/// 获取或设置商品推广类别。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int? Type { get; set; }
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
public long? ProductId { get; set; }
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
public long? InfoId { get; set; }
/// <summary>
/// 获取或设置是否获取特殊推广商品绑定的达人列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_relation")]
[System.Text.Json.Serialization.JsonPropertyName("need_relation")]
public bool? RequireRelation { get; set; }
/// <summary>
/// 获取或设置是否需要返回该计划绑定达人总数。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_total_num")]
[System.Text.Json.Serialization.JsonPropertyName("need_total_num")]
public bool? RequireRelationTotalCount { get; set; }
/// <summary>
/// 获取或设置达人分页页数(从 1 开始)。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_index")]
[System.Text.Json.Serialization.JsonPropertyName("page_index")]
public int? RelationPage { get; set; }
/// <summary>
/// 获取或设置达人分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int? RelationLimit { get; set; }
}
}

View File

@@ -0,0 +1,132 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/get 接口的响应。</para>
/// </summary>
public class ChannelsECLeagueItemGetResponse : WechatApiResponse
{
public static class Types
{
public class Item
{
public static class Types
{
public class ExclusiveInfo
{
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? InfoId { get; set; }
/// <summary>
/// 获取或设置推广达人视频号唯一标识列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("finder_ids")]
public string[]? FinderIdList { get; set; }
/// <summary>
/// 获取或设置推广达人总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_num")]
[System.Text.Json.Serialization.JsonPropertyName("finder_num")]
public int? FinderTotalCount { get; set; }
/// <summary>
/// 获取或设置推广开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("begin_time")]
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
public long? BeginTimestamp { get; set; }
/// <summary>
/// 获取或设置推广开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置是否永久推广。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_forerver")]
[System.Text.Json.Serialization.JsonPropertyName("is_forerver")]
public bool IsForerver { get; set; }
}
public class ExtendedInfo
{
/// <summary>
/// 获取或设置是否类目禁售。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_sale_forbidden")]
[System.Text.Json.Serialization.JsonPropertyName("is_sale_forbidden")]
public bool IsSaleForbidden { get; set; }
/// <summary>
/// 获取或设置是否被官方封禁。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_banned")]
[System.Text.Json.Serialization.JsonPropertyName("is_banned")]
public bool IsBanned { get; set; }
}
}
/// <summary>
/// 获取或设置商品推广类别。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int Type { get; set; }
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? ProductId { get; set; }
/// <summary>
/// 获取或设置分佣率范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("ratio")]
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
public int? Ratio { get; set; }
/// <summary>
/// 获取或设置商品推广状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置特殊推广信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("exclusive_info")]
[System.Text.Json.Serialization.JsonPropertyName("exclusive_info")]
public Types.ExclusiveInfo? ExclusiveInfo { get; set; }
/// <summary>
/// 获取或设置扩展信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("ext_info")]
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
public Types.ExtendedInfo? ExtendedInfo { get; set; }
}
}
/// <summary>
/// 获取或设置联盟商品信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("item")]
[System.Text.Json.Serialization.JsonPropertyName("item")]
public Types.Item Item { get; set; } = default!;
}
}

View File

@@ -0,0 +1,59 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/list/get 接口的请求。</para>
/// </summary>
public class ChannelsECLeagueItemListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueItemListGetRequest, ChannelsECLeagueItemListGetResponse>
{
/// <summary>
/// 获取或设置商品推广类别。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int? Type { get; set; }
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
public long? ProductId { get; set; }
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
public long? InfoId { get; set; }
/// <summary>
/// 获取或设置是否需要返回总数。
/// </summary>
[Newtonsoft.Json.JsonProperty("need_total_num")]
[System.Text.Json.Serialization.JsonPropertyName("need_total_num")]
public bool? RequireTotalCount { get; set; }
/// <summary>
/// 获取或设置分页页数。
/// <para>默认值1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_index")]
[System.Text.Json.Serialization.JsonPropertyName("page_index")]
public int Page { get; set; } = 1;
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("last_buffer")]
[System.Text.Json.Serialization.JsonPropertyName("last_buffer")]
public string? Cursor { get; set; }
}
}

View File

@@ -0,0 +1,58 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/list/get 接口的响应。</para>
/// </summary>
public class ChannelsECLeagueItemListGetResponse : WechatApiResponse
{
public static class Types
{
public class Item
{
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? ProductId { get; set; }
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? InfoId { get; set; }
}
}
/// <summary>
/// 获取或设置联盟商品列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("items")]
[System.Text.Json.Serialization.JsonPropertyName("items")]
public Types.Item[] Item { get; set; } = default!;
/// <summary>
/// 获取或设置联盟商品总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_num")]
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
public int? TotalCount { get; set; }
/// <summary>
/// 获取或设置是否还有更多。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_more")]
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
public bool HasMore { get; set; }
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("last_buffer")]
[System.Text.Json.Serialization.JsonPropertyName("last_buffer")]
public string? NextCursor { get; set; }
}
}

View File

@@ -0,0 +1,93 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/upd 接口的请求。</para>
/// </summary>
public class ChannelsECLeagueItemUpdateRequest : WechatApiRequest, IInferable<ChannelsECLeagueItemUpdateRequest, ChannelsECLeagueItemUpdateResponse>
{
public static class Types
{
public class ExclusiveInfo
{
/// <summary>
/// 获取或设置新增的视频号唯一标识列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("add_finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("add_finder_ids")]
public IList<string>? AddFinderIdList { get; set; }
/// <summary>
/// 获取或设置删除的视频号唯一标识列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("del_finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("del_finder_ids")]
public IList<string>? DeleteFinderIdList { get; set; }
/// <summary>
/// 获取或设置推广开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("begin_time")]
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
public long? BeginTimestamp { get; set; }
/// <summary>
/// 获取或设置推广开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置是否永久推广。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_forerver")]
[System.Text.Json.Serialization.JsonPropertyName("is_forerver")]
public bool? IsForerver { get; set; }
}
}
/// <summary>
/// 获取或设置操作类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("operate_type")]
[System.Text.Json.Serialization.JsonPropertyName("operate_type")]
public int OperateType { get; set; }
/// <summary>
/// 获取或设置商品推广类别。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int Type { get; set; }
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
public long? ProductId { get; set; }
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
public long? InfoId { get; set; }
/// <summary>
/// 获取或设置分佣率范围0100
/// </summary>
[Newtonsoft.Json.JsonProperty("ratio")]
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
public int? Ratio { get; set; }
/// <summary>
/// 获取或设置特殊推广信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("exclusive_info")]
[System.Text.Json.Serialization.JsonPropertyName("exclusive_info")]
public Types.ExclusiveInfo? ExclusiveInfo { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/item/upd 接口的响应。</para>
/// </summary>
public class ChannelsECLeagueItemUpdateResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置特殊推广商品计划 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("info_id")]
[System.Text.Json.Serialization.JsonPropertyName("info_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long? InfoId { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/add 接口的请求。</para>
/// </summary>
public class ChannelsECLeaguePromoterAddRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterAddRequest, ChannelsECLeaguePromoterAddResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
public string FinderId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/add 接口的响应。</para>
/// </summary>
public class ChannelsECLeaguePromoterAddResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/delete 接口的请求。</para>
/// </summary>
public class ChannelsECLeaguePromoterDeleteRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterDeleteRequest, ChannelsECLeaguePromoterDeleteResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
public string FinderId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/delete 接口的响应。</para>
/// </summary>
public class ChannelsECLeaguePromoterDeleteResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/get 接口的请求。</para>
/// </summary>
public class ChannelsECLeaguePromoterGetRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterGetRequest, ChannelsECLeaguePromoterGetResponse>
{
/// <summary>
/// 获取或设置视频号唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
public string FinderId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,56 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/get 接口的响应。</para>
/// </summary>
public class ChannelsECLeaguePromoterGetResponse : WechatApiResponse
{
public static class Types
{
public class Promoter
{
/// <summary>
/// 获取或设置视频号唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
public string FinderId { get; set; } = default!;
/// <summary>
/// 获取或设置合作状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置邀请时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("invite_time")]
[System.Text.Json.Serialization.JsonPropertyName("invite_time")]
public long InviteTimestamp { get; set; }
/// <summary>
/// 获取或设置累计合作商品数。
/// </summary>
[Newtonsoft.Json.JsonProperty("sale_product_number")]
[System.Text.Json.Serialization.JsonPropertyName("sale_product_number")]
public int SaleProductCount { get; set; }
/// <summary>
/// 获取或设置合作动销 GMV。
/// </summary>
[Newtonsoft.Json.JsonProperty("sale_gmv")]
[System.Text.Json.Serialization.JsonPropertyName("sale_gmv")]
public int SaleGMV { get; set; }
}
}
/// <summary>
/// 获取或设置达人信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("promoter")]
[System.Text.Json.Serialization.JsonPropertyName("promoter")]
public Types.Promoter Promoter { get; set; } = default!;
}
}

View File

@@ -0,0 +1,31 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/list/get 接口的请求。</para>
/// </summary>
public class ChannelsECLeaguePromoterListGetRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterListGetRequest, ChannelsECLeaguePromoterListGetResponse>
{
/// <summary>
/// 获取或设置合作状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int? Status { get; set; }
/// <summary>
/// 获取或设置分页页数。
/// <para>默认值1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_index")]
[System.Text.Json.Serialization.JsonPropertyName("page_index")]
public int Page { get; set; } = 1;
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/list/get 接口的响应。</para>
/// </summary>
public class ChannelsECLeaguePromoterListGetResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置视频号唯一标识列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_ids")]
[System.Text.Json.Serialization.JsonPropertyName("finder_ids")]
public string[] FinderIdList { get; set; } = default!;
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_num")]
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
public int TotalCount { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/upd 接口的请求。</para>
/// </summary>
public class ChannelsECLeaguePromoterUpdateRequest : WechatApiRequest, IInferable<ChannelsECLeaguePromoterUpdateRequest, ChannelsECLeaguePromoterUpdateResponse>
{
/// <summary>
/// 获取或设置操作类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("type")]
[System.Text.Json.Serialization.JsonPropertyName("type")]
public int OperateType { get; set; }
/// <summary>
/// 获取或设置视频号唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_id")]
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
public string FinderId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/league/promoter/upd 接口的响应。</para>
/// </summary>
public class ChannelsECLeaguePromoterUpdateResponse : WechatApiResponse
{
}
}

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/list/get 接口的请求。</para>
@@ -53,13 +53,6 @@
[System.Text.Json.Serialization.JsonPropertyName("openid")]
public string? OpenId { get; set; }
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? Cursor { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>
@@ -67,5 +60,12 @@
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
/// <summary>
/// 获取或设置翻页标记。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_key")]
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
public string? Cursor { get; set; }
}
}

View File

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

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/product/stock/get 接口的请求。</para>
/// </summary>
public class ChannelsECProductStockGetRequest : WechatApiRequest, IInferable<ChannelsECProductStockGetRequest, ChannelsECProductStockGetResponse>
{
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
public long ProductId { get; set; }
/// <summary>
/// 获取或设置 SKU ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
public long SKUId { get; set; }
}
}

View File

@@ -0,0 +1,69 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/product/stock/get 接口的响应。</para>
/// </summary>
public class ChannelsECProductStockGetResponse : WechatApiResponse
{
public static class Types
{
public class Data
{
public static class Types
{
public class WarehouseStock
{
/// <summary>
/// 获取或设置外部仓库 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("out_warehouse_id")]
[System.Text.Json.Serialization.JsonPropertyName("out_warehouse_id")]
public string OutWarehouseId { get; set; } = default!;
/// <summary>
/// 获取或设置库存数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("num")]
[System.Text.Json.Serialization.JsonPropertyName("num")]
public int Stock { get; set; }
}
}
/// <summary>
/// 获取或设置通用库存数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("normal_stock_num")]
[System.Text.Json.Serialization.JsonPropertyName("normal_stock_num")]
public int NormalStock { get; set; }
/// <summary>
/// 获取或设置限时抢购库存数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limited_discount_stock_num")]
[System.Text.Json.Serialization.JsonPropertyName("limited_discount_stock_num")]
public int LimitedDiscountStock { get; set; }
/// <summary>
/// 获取或设置区域库存列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("warehouse_stocks")]
[System.Text.Json.Serialization.JsonPropertyName("warehouse_stocks")]
public Types.WarehouseStock[] WarehouseStock { get; set; } = default!;
/// <summary>
/// 获取或设置库存总量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_stock_num")]
[System.Text.Json.Serialization.JsonPropertyName("total_stock_num")]
public int TotalStock { get; set; }
}
}
/// <summary>
/// 获取或设置返回数据。
/// </summary>
[Newtonsoft.Json.JsonProperty("data")]
[System.Text.Json.Serialization.JsonPropertyName("data")]
public Types.Data Data { get; set; } = default!;
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/sharer/bind 接口的请求。</para>
/// </summary>
public class ChannelsECSharerBindRequest : WechatApiRequest, IInferable<ChannelsECSharerBindRequest, ChannelsECSharerBindResponse>
{
/// <summary>
/// 获取或设置分享员微信号。
/// </summary>
[Newtonsoft.Json.JsonProperty("username")]
[System.Text.Json.Serialization.JsonPropertyName("username")]
public string Username { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/sharer/bind 接口的响应。</para>
/// </summary>
public class ChannelsECSharerBindResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置邀请二维码 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("qrcode_img")]
[System.Text.Json.Serialization.JsonPropertyName("qrcode_img")]
public string QrcodeImageUrl { get; set; } = default!;
/// <summary>
/// 获取或设置 Base64 编码的邀请二维码数据。
/// </summary>
[Newtonsoft.Json.JsonProperty("qrcode_img_base64")]
[System.Text.Json.Serialization.JsonPropertyName("qrcode_img_base64")]
public string EncodingQrcodeImage { get; set; } = default!;
}
}

View File

@@ -0,0 +1,31 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_list 接口的请求。</para>
/// </summary>
public class ChannelsECSharerGetSharerListRequest : WechatApiRequest, IInferable<ChannelsECSharerGetSharerListRequest, ChannelsECSharerGetSharerListResponse>
{
/// <summary>
/// 获取或设置分页页数。
/// <para>默认值1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page")]
[System.Text.Json.Serialization.JsonPropertyName("page")]
public int Page { get; set; } = 1;
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
/// <summary>
/// 获取或设置分享员类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("sharer_type")]
[System.Text.Json.Serialization.JsonPropertyName("sharer_type")]
public int SharerType { get; set; }
}
}

View File

@@ -0,0 +1,49 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_list 接口的响应。</para>
/// </summary>
public class ChannelsECSharerGetSharerListResponse : WechatApiResponse
{
public static class Types
{
public class Sharer
{
/// <summary>
/// 获取或设置分享员 OpenId。
/// </summary>
[Newtonsoft.Json.JsonProperty("openid")]
[System.Text.Json.Serialization.JsonPropertyName("openid")]
public string OpenId { get; set; } = default!;
/// <summary>
/// 获取或设置分享员昵称。
/// </summary>
[Newtonsoft.Json.JsonProperty("nickname")]
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
public string Nickname { get; set; } = default!;
/// <summary>
/// 获取或设置分享员类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("sharer_type")]
[System.Text.Json.Serialization.JsonPropertyName("sharer_type")]
public int SharerType { get; set; }
/// <summary>
/// 获取或设置绑定时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("bind_time")]
[System.Text.Json.Serialization.JsonPropertyName("bind_time")]
public long BindTimestamp { get; set; }
}
}
/// <summary>
/// 获取或设置分享员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("sharer_info_list")]
[System.Text.Json.Serialization.JsonPropertyName("sharer_info_list")]
public Types.Sharer[] SharerList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,52 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_order_list 接口的请求。</para>
/// </summary>
public class ChannelsECSharerGetSharerOrderListRequest : WechatApiRequest, IInferable<ChannelsECSharerGetSharerOrderListRequest, ChannelsECSharerGetSharerOrderListResponse>
{
/// <summary>
/// 获取或设置分享员 OpenId。
/// </summary>
[Newtonsoft.Json.JsonProperty("openid")]
[System.Text.Json.Serialization.JsonPropertyName("openid")]
public string? OpenId { get; set; }
/// <summary>
/// 获取或设置分享场景值。
/// </summary>
[Newtonsoft.Json.JsonProperty("share_scene")]
[System.Text.Json.Serialization.JsonPropertyName("share_scene")]
public int? ShareScene { get; set; }
/// <summary>
/// 获取或设置订单创建开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long? StartTimestamp { get; set; }
/// <summary>
/// 获取或设置订单创建结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long? EndTimestamp { get; set; }
/// <summary>
/// 获取或设置分页页数。
/// <para>默认值1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page")]
[System.Text.Json.Serialization.JsonPropertyName("page")]
public int Page { get; set; } = 1;
/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int Limit { get; set; } = 10;
}
}

View File

@@ -0,0 +1,98 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/sharer/get_sharer_order_list 接口的响应。</para>
/// </summary>
public class ChannelsECSharerGetSharerOrderListResponse : WechatApiResponse
{
public static class Types
{
public class Order
{
public static class Types
{
public class FinderScene
{
/// <summary>
/// 获取或设置视频号唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("promoter_id")]
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
public string PromoterId { get; set; } = default!;
/// <summary>
/// 获取或设置视频号昵称。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_nickname")]
[System.Text.Json.Serialization.JsonPropertyName("finder_nickname")]
public string FinderNickname { get; set; } = default!;
/// <summary>
/// 获取或设置直播间唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("live_export_id")]
[System.Text.Json.Serialization.JsonPropertyName("live_export_id")]
public string? LiveExportId { get; set; }
/// <summary>
/// 获取或设置短视频唯一标识。
/// </summary>
[Newtonsoft.Json.JsonProperty("video_export_id")]
[System.Text.Json.Serialization.JsonPropertyName("video_export_id")]
public string? VideoExportId { get; set; }
/// <summary>
/// 获取或设置短视频标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("video_title")]
[System.Text.Json.Serialization.JsonPropertyName("video_title")]
public string? VideoTitle { get; set; }
}
}
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long OrderId { get; set; }
/// <summary>
/// 获取或设置分享场景值。
/// </summary>
[Newtonsoft.Json.JsonProperty("share_scene")]
[System.Text.Json.Serialization.JsonPropertyName("share_scene")]
public int ShareScene { get; set; }
/// <summary>
/// 获取或设置分享员 OpenId。
/// </summary>
[Newtonsoft.Json.JsonProperty("sharer_openid")]
[System.Text.Json.Serialization.JsonPropertyName("sharer_openid")]
public string SharerOpenId { get; set; } = default!;
/// <summary>
/// 获取或设置分享员类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("sharer_type")]
[System.Text.Json.Serialization.JsonPropertyName("sharer_type")]
public int SharerType { get; set; }
/// <summary>
/// 获取或设置视频号场景信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("finder_scene_info")]
[System.Text.Json.Serialization.JsonPropertyName("finder_scene_info")]
public Types.FinderScene? FinderScene { get; set; }
}
}
/// <summary>
/// 获取或设置订单列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_list")]
[System.Text.Json.Serialization.JsonPropertyName("order_list")]
public Types.Order[] OrderList { get; set; } = default!;
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/sharer/search_sharer 接口的请求。</para>
/// </summary>
public class ChannelsECSharerSearchSharerRequest : WechatApiRequest, IInferable<ChannelsECSharerSearchSharerRequest, ChannelsECSharerSearchSharerResponse>
{
/// <summary>
/// 获取或设置分享员 OpenId。
/// </summary>
[Newtonsoft.Json.JsonProperty("openid")]
[System.Text.Json.Serialization.JsonPropertyName("openid")]
public string? OpenId { get; set; }
/// <summary>
/// 获取或设置分享员微信号。
/// </summary>
[Newtonsoft.Json.JsonProperty("username")]
[System.Text.Json.Serialization.JsonPropertyName("username")]
public string? Username { get; set; }
}
}

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