mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-21 02:58:06 +08:00
feat(wxapi): 新增微信小店推客带货相关接口
This commit is contained in:
@@ -183,11 +183,12 @@
|
||||
|
||||
<summary>[展开查看]</summary>
|
||||
|
||||
| | 微信 API | 备注 |
|
||||
| :-: | :------------: | :--: |
|
||||
| √ | 微信小店 | |
|
||||
| √ | 达人带货 | |
|
||||
| √ | 带货助手 | |
|
||||
| | 微信 API | 备注 |
|
||||
| :-: | :------: | :--: |
|
||||
| √ | 微信小店 | |
|
||||
| √ | 达人带货 | |
|
||||
| √ | 推客带货 | |
|
||||
| √ | 带货助手 | |
|
||||
|
||||
</details>
|
||||
|
||||
|
@@ -47,11 +47,11 @@ var client = WechatApiClientBuilder.Create(options).Build();
|
||||
var options = new WechatApiClientOptions()
|
||||
{
|
||||
// 其他配置项略
|
||||
SecureApiCustomRequestPathMatcher = (url) =>
|
||||
SecureApiCustomRequestPathMatcher = (path) =>
|
||||
{
|
||||
if (url == "/sns/auth")
|
||||
if (path == "/sns/auth")
|
||||
return true;
|
||||
else if (url == "/sns/userinfo")
|
||||
else if (path == "/sns/userinfo")
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
@@ -19,3 +19,21 @@ var client = WechatTenpayGlobalClientBuilder.Create(options).Build();
|
||||
```
|
||||
|
||||
该扩展客户端在用法上基础客户端完全相同,只需引入相应的命名空间即可。
|
||||
|
||||
---
|
||||
|
||||
### 切换接入点
|
||||
|
||||
默认情况下,微信支付境外支付 API 客户端的接入点为 `https://apihk.mch.weixin.qq.com/v3/global`。
|
||||
|
||||
如果你要切换为 `https://api.mch.weixin.qq.com/hk/v3` 或其他入口点,可以在构造客户端时指定:
|
||||
|
||||
```csharp
|
||||
|
||||
var options = new WechatTenpayGlobalClientOptions()
|
||||
{
|
||||
// 其他配置项略
|
||||
Endpoint = "https://api.mch.weixin.qq.com/hk/v3" // 注意结尾不要带 "/"
|
||||
};
|
||||
var client = WechatTenpayGlobalClientBuilder.Create(options).Build();
|
||||
```
|
||||
|
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 AppId。
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
|
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
@@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public string MiniProgramAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号的 AppId。
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mp_appid")]
|
||||
|
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
@@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public string MiniProgramAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号的 AppId。
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mp_appid")]
|
||||
|
@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
@@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public string MiniProgramAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号的 AppId。
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mp_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mp_appid")]
|
||||
|
@@ -78,7 +78,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
public int AppealRecordId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
|
@@ -2455,6 +2455,54 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
#endregion
|
||||
|
||||
#region ECLeague/HeadSupplier
|
||||
#region ECLeague/HeadSupplier/Clue
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/league/headsupplier/clue/list/get 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/clue/getcluelist.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECLeagueHeadSupplierClueListGetResponse> ExecuteChannelsECLeagueHeadSupplierClueListGetAsync(this WechatApiClient client, Models.ChannelsECLeagueHeadSupplierClueListGetRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "league", "headsupplier", "clue", "list", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECLeagueHeadSupplierClueListGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/league/headsupplier/clue/get 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/clue/getclue.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECLeagueHeadSupplierClueGetResponse> ExecuteChannelsECLeagueHeadSupplierClueGetAsync(this WechatApiClient client, Models.ChannelsECLeagueHeadSupplierClueGetRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "league", "headsupplier", "clue", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECLeagueHeadSupplierClueGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECLeague/HeadSupplier/CooperativeItem
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/league/headsupplier/cooperativeitem/add 接口。</para>
|
||||
@@ -2666,6 +2714,31 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECLeagueHeadSupplierItemPromotionDetailGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion、
|
||||
|
||||
#region ECLeague/HeadSupplier/LiveProtection
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/league/headsupplier/liveprotection/getqrcode 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_live_protection_qrcode.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse> ExecuteChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeAsync(this WechatApiClient client, Models.ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "league", "headsupplier", "liveprotection", "getqrcode")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECLeague/HeadSupplier/Order
|
||||
@@ -5271,6 +5344,825 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECPromoter
|
||||
#region ECPromoter/Article
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_talent_biz_article_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/article/get_talent_biz_article_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetTalentMpArticleListResponse> ExecuteChannelsECPromoterGetTalentMpArticleListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetTalentMpArticleListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_talent_biz_article_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetTalentMpArticleListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_mp_article_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/article/get_shop_mp_article_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopMpArticleListResponse> ExecuteChannelsECPromoterGetShopMpArticleListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopMpArticleListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_mp_article_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopMpArticleListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECPromoter/Coupon
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_public_coupon_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/coupon/getpubliccouponlist.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetPublicCouponListResponse> ExecuteChannelsECPromoterGetPublicCouponListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPublicCouponListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_public_coupon_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetPublicCouponListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_cooperative_coupon_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/coupon/getcooperativecouponlist.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetCooperativeCouponListResponse> ExecuteChannelsECPromoterGetCooperativeCouponListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCooperativeCouponListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_cooperative_coupon_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetCooperativeCouponListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_coupon_detail 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/coupon/getcoupondetail.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetCouponDetailResponse> ExecuteChannelsECPromoterGetCouponDetailAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCouponDetailRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_coupon_detail")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetCouponDetailResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_coupon_short_link 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/coupon/getcouponshortlink.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetCouponShortLinkResponse> ExecuteChannelsECPromoterGetCouponShortLinkAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCouponShortLinkRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_coupon_short_link")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetCouponShortLinkResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_coupon_qr_code 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/coupon/getcouponqrcode.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetCouponQrcodeResponse> ExecuteChannelsECPromoterGetCouponQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCouponQrcodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_coupon_qr_code")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetCouponQrcodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECPromoter/Feed
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_feed_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/video/get_feed_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetFeedListResponse> ExecuteChannelsECPromoterGetFeedListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetFeedListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_feed_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetFeedListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_feed_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/video/get_shop_feed_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopFeedListResponse> ExecuteChannelsECPromoterGetShopFeedListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopFeedListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_feed_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopFeedListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_feed_promotion_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/video/get_feed_promotion_info.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetFeedPromotionInfoResponse> ExecuteChannelsECPromoterGetFeedPromotionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetFeedPromotionInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_feed_promotion_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetFeedPromotionInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_feed_promotion_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/video/get_shop_feed_promotion_info.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopFeedPromotionInfoResponse> ExecuteChannelsECPromoterGetShopFeedPromotionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopFeedPromotionInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_feed_promotion_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopFeedPromotionInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECPromoter/Live
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_live_record_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_live_record_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetLiveRecordListResponse> ExecuteChannelsECPromoterGetLiveRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveRecordListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_record_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetLiveRecordListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_live_notice_record_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_live_notice_record_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetLiveNoticeRecordListResponse> ExecuteChannelsECPromoterGetLiveNoticeRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveNoticeRecordListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_notice_record_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetLiveNoticeRecordListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_live_record_qr_code 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_live_record_qr_code.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetLiveRecordQrcodeResponse> ExecuteChannelsECPromoterGetLiveRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveRecordQrcodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_record_qr_code")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetLiveRecordQrcodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_live_notice_record_qr_code 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_live_notice_record_qr_code.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse> ExecuteChannelsECPromoterGetLiveNoticeRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_notice_record_qr_code")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_live_commission_product_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_live_commission_product_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetLiveCommissionProductListResponse> ExecuteChannelsECPromoterGetLiveCommissionProductListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveCommissionProductListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_commission_product_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetLiveCommissionProductListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_live_notice_reservation_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_live_notice_reservation_info.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetLiveNoticeReservationInfoResponse> ExecuteChannelsECPromoterGetLiveNoticeReservationInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveNoticeReservationInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_notice_reservation_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetLiveNoticeReservationInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_live_record_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_shop_live_record_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopLiveRecordListResponse> ExecuteChannelsECPromoterGetShopLiveRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveRecordListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_record_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopLiveRecordListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_live_notice_record_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_shop_live_notice_record_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopLiveNoticeRecordListResponse> ExecuteChannelsECPromoterGetShopLiveNoticeRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveNoticeRecordListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_notice_record_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopLiveNoticeRecordListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_live_record_qr_code 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_shop_live_record_qr_code.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopLiveRecordQrcodeResponse> ExecuteChannelsECPromoterGetShopLiveRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveRecordQrcodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_record_qr_code")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopLiveRecordQrcodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_live_notice_record_qr_code 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_shop_live_notice_record_qr_code.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse> ExecuteChannelsECPromoterGetShopLiveNoticeRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_notice_record_qr_code")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_shop_live_commission_product_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/content/live/get_shop_live_commission_product_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetShopLiveCommissionProductListResponse> ExecuteChannelsECPromoterGetShopLiveCommissionProductListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveCommissionProductListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_commission_product_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetShopLiveCommissionProductListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECPromoter/Product
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/set_sharer_product_commission_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/product/setsharerproductcommissioninfo.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterSetSharerProductCommissionInfoResponse> ExecuteChannelsECPromoterSetSharerProductCommissionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterSetSharerProductCommissionInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "set_sharer_product_commission_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterSetSharerProductCommissionInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_sharer_product_commission_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/product/getsharerproductcommissioninfo.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetSharerProductCommissionInfoResponse> ExecuteChannelsECPromoterGetSharerProductCommissionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetSharerProductCommissionInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_sharer_product_commission_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetSharerProductCommissionInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_promote_product_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/product/getpromoteproductlist.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetPromoteProductListResponse> ExecuteChannelsECPromoterGetPromoteProductListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoteProductListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promote_product_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetPromoteProductListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_promote_product_detail 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/product/getpromoteproductdetail.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetPromoteProductDetailResponse> ExecuteChannelsECPromoterGetPromoteProductDetailAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoteProductDetailRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promote_product_detail")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetPromoteProductDetailResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_product_promotion_link_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/product/getproductpromotionlinkinfo.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetProductPromotionLinkInfoResponse> ExecuteChannelsECPromoterGetProductPromotionLinkInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetProductPromotionLinkInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_product_promotion_link_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetProductPromotionLinkInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_product_promotion_qrcode_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/product/getproductpromotionqrcodeinfo.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetProductPromotionQrcodeInfoResponse> ExecuteChannelsECPromoterGetProductPromotionQrcodeInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetProductPromotionQrcodeInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_product_promotion_qrcode_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetProductPromotionQrcodeInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_promoter_single_product_promotion_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/product/getpromotersingleproductpromotioninfo.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse> ExecuteChannelsECPromoterGetPromoterSingleProductPromotionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promoter_single_product_promotion_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ECPromoter/Sharer
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_promoter_register_and_bind_status 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/sharer/getpromoterregisterandbindstatus.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse> ExecuteChannelsECPromoterGetPromoterRegisterAndBindStatusAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promoter_register_and_bind_status")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/set_sharer_commission_info 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/sharer/setsharercommissioninfo.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterSetSharerCommissionInfoResponse> ExecuteChannelsECPromoterSetSharerCommissionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterSetSharerCommissionInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "set_sharer_commission_info")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterSetSharerCommissionInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_bind_sharer_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/sharer/getbindsharerlist.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetBindSharerListResponse> ExecuteChannelsECPromoterGetBindSharerListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindSharerListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_sharer_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetBindSharerListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_bind_talent_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/sharer/get_bind_talent_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetBindTalentListResponse> ExecuteChannelsECPromoterGetBindTalentListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindTalentListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_talent_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetBindTalentListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_bind_shop_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/sharer/get_bind_shop_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetBindShopListResponse> ExecuteChannelsECPromoterGetBindShopListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindShopListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_shop_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetBindShopListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /channels/ec/promoter/get_bind_shop_promoter_list 接口。</para>
|
||||
/// <para>
|
||||
/// REF: <br/>
|
||||
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/leagueheadsupplier/API/promotion/sharer/get_bind_shop_promoter_list.html ]]>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ChannelsECPromoterGetBindShopPromoterListResponse> ExecuteChannelsECPromoterGetBindShopPromoterListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindShopPromoterListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_shop_promoter_list")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECPromoterGetBindShopPromoterListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region ECQIC
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /channels/ec/qic/inspect/config/get 接口。</para>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/fastregister 接口的响应。</para>
|
||||
@@ -6,7 +6,7 @@
|
||||
public class CgibinAccountFastRegisterResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置新创建的 AppId。
|
||||
/// 获取或设置新创建 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
@@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? ArticleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
@@ -58,7 +58,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? ArticleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/open/bind 接口的请求。</para>
|
||||
@@ -6,14 +6,14 @@
|
||||
public class CgibinOpenBindRequest : WechatApiRequest, IInferable<CgibinOpenBindRequest, CgibinOpenBindResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 AppId。
|
||||
/// 获取或设置授权方 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AuthorizerAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开放平台的 AppId。
|
||||
/// 获取或设置开放平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/open/create 接口的请求。</para>
|
||||
@@ -6,7 +6,7 @@
|
||||
public class CgibinOpenCreateRequest : WechatApiRequest, IInferable<CgibinOpenCreateRequest, CgibinOpenCreateResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 AppId。
|
||||
/// 获取或设置授权方 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/open/create 接口的响应。</para>
|
||||
@@ -6,7 +6,7 @@
|
||||
public class CgibinOpenCreateResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置开放平台的 AppId。
|
||||
/// 获取或设置开放平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/open/get 接口的请求。</para>
|
||||
@@ -6,7 +6,7 @@
|
||||
public class CgibinOpenGetRequest : WechatApiRequest, IInferable<CgibinOpenGetRequest, CgibinOpenGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 AppId。
|
||||
/// 获取或设置授权方 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/open/get 接口的响应。</para>
|
||||
@@ -6,7 +6,7 @@
|
||||
public class CgibinOpenGetResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置开放平台的 AppId。
|
||||
/// 获取或设置开放平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_appid")]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/open/unbind 接口的请求。</para>
|
||||
@@ -6,14 +6,14 @@
|
||||
public class CgibinOpenUnbindRequest : WechatApiRequest, IInferable<CgibinOpenUnbindRequest, CgibinOpenUnbindResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 AppId。
|
||||
/// 获取或设置授权方 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AuthorizerAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开放平台的 AppId。
|
||||
/// 获取或设置开放平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_appid")]
|
||||
|
@@ -257,8 +257,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// <summary>
|
||||
/// 获取或设置商品数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_count")]
|
||||
[Newtonsoft.Json.JsonProperty("product_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
|
||||
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class ChannelsECBasicsShopH5UrlGetResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 H5 短链。
|
||||
/// 获取或设置小店 H5 短链。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_h5url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_h5url")]
|
||||
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class ChannelsECBasicsShopQrcodeGetResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺二维码链接。
|
||||
/// 获取或设置小店二维码链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_qrcode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_qrcode")]
|
||||
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class ChannelsECBasicsShopTagLinkGetResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺微信口令。
|
||||
/// 获取或设置小店微信口令。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_taglink")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_taglink")]
|
||||
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class ChannelsECCooperationOrderGetRequest : WechatApiRequest, IInferable<ChannelsECCooperationOrderGetRequest, ChannelsECCooperationOrderGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 AppId。
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class ChannelsECCooperationProductGetRequest : WechatApiRequest, IInferable<ChannelsECCooperationProductGetRequest, ChannelsECCooperationProductGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 AppId。
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
|
@@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class ChannelsECCooperationProductListRequest : WechatApiRequest, IInferable<ChannelsECCooperationProductListRequest, ChannelsECCooperationProductListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 AppId。
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
|
@@ -10,14 +10,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class Shop
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 AppId。
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺名称。
|
||||
/// 获取或设置小店名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
@@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺列表。
|
||||
/// 获取或设置小店列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_list")]
|
||||
|
@@ -11,7 +11,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CouponDetail
|
||||
public class CouponInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
@@ -126,7 +126,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public Types.Validity Validity { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CouponStock
|
||||
public class StockInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置剩余量。
|
||||
@@ -178,14 +178,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon_info")]
|
||||
public Types.CouponDetail CouponDetail { get; set; } = default!;
|
||||
public Types.CouponInfo CouponInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优惠券库存信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("stock_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("stock_info")]
|
||||
public Types.CouponStock CouponStock { get; set; } = default!;
|
||||
public Types.StockInfo StockInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新时间戳。
|
||||
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/league/headsupplier/clue/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLeagueHeadSupplierClueGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierClueGetRequest, ChannelsECLeagueHeadSupplierClueGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string OrderId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
public long SKUId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,201 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/league/headsupplier/clue/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLeagueHeadSupplierClueGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CommissionClue
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ClueDetail
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ShopInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string ShopAppId { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class ProductInfo
|
||||
{
|
||||
/// <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>
|
||||
/// 获取或设置缩略图 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("thumb_img")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("thumb_img")]
|
||||
public string ThumbnailUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置实际支付金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("actual_payment")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("actual_payment")]
|
||||
public int ActualPayment { get; set; }
|
||||
}
|
||||
|
||||
public class OrderInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
}
|
||||
|
||||
public class SharerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string SharerAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客的昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opensharerid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opensharerid")]
|
||||
public string OpenSharerId { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class BuyerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置买家的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_id")]
|
||||
public string OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置买家的 UnionId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("union_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("union_id")]
|
||||
public string? UnionId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小店信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_info")]
|
||||
public Types.ShopInfo ShopInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info")]
|
||||
public Types.ProductInfo ProductInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
public Types.OrderInfo OrderInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分享者信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_info")]
|
||||
public Types.SharerInfo SharerInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置买家信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("buyer_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("buyer_info")]
|
||||
public Types.BuyerInfo BuyerInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long SKUId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置线索详情。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("clue_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("clue_detail")]
|
||||
public Types.ClueDetail ClueDetail { get; set; } = default!;
|
||||
|
||||
/// <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("commssion_clue")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commssion_clue")]
|
||||
public Types.CommissionClue CommissionClue { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/league/headsupplier/clue/list/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLeagueHeadSupplierClueListGetRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierClueListGetRequest, ChannelsECLeagueHeadSupplierClueListGetResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class TimeRange : ChannelsECOrderListGetRequest.Types.TimeRange
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? ShopAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建订单时间范围。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time_range")]
|
||||
public Types.TimeRange? CreateTimeRange { 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; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/league/headsupplier/clue/list/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLeagueHeadSupplierClueListGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CommissionClue
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long SKUId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置线索订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.CommissionClue[] CommissionClueList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/league/headsupplier/liveprotection/getqrcode 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest : WechatApiRequest, IInferable<ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest, ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/league/headsupplier/liveprotection/getqrcode 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
||||
public string QrcodeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
public string ShopAppId { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class ProductInfo
|
||||
@@ -94,6 +94,219 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int CommissionAmount { get; set; }
|
||||
}
|
||||
|
||||
public class SharerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string SharerAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 OpenSharerId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opensharerid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opensharerid")]
|
||||
public string OpenSharerId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
public int Ratio { get; set; }
|
||||
}
|
||||
|
||||
public class TalentInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 OpenTalentId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opentalentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opentalentid")]
|
||||
public string OpenTalentId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
public int Ratio { get; set; }
|
||||
}
|
||||
|
||||
public class AgencyInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置机构 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string AgencyAppId { 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("profit_sharding_suc_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("profit_sharding_suc_time")]
|
||||
public long ProfitShardingSuccessTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
public int Ratio { get; set; }
|
||||
}
|
||||
|
||||
public class PromotionInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class FinderInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置视频号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
|
||||
public string FinderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频号昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频号 OpenFinderId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openfinderid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openfinderid")]
|
||||
public string OpenFinderId { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class TalentInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 OpenTalentId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opentalentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opentalentid")]
|
||||
public string OpenTalentId { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class MpInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string MpAppId { 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("channel_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("channel_type")]
|
||||
public int ChannelType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_info")]
|
||||
public Types.FinderInfo? FinderInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_info")]
|
||||
public Types.TalentInfo? TalentInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mp_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mp_info")]
|
||||
public Types.MpInfo? MpInfo { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -123,6 +336,65 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("profit_sharding_suc_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("profit_sharding_suc_time")]
|
||||
public long ProfitShardingSuccessTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货渠道。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promotion_channel")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promotion_channel")]
|
||||
public int PromotionChannel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_info")]
|
||||
public Types.SharerInfo? SharerInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_info")]
|
||||
public Types.TalentInfo? TalentInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推广信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promotion_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promotion_info")]
|
||||
public Types.PromotionInfo? PromotionInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置帮卖机构信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_agency_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_agency_info")]
|
||||
public Types.AgencyInfo? SubAgencyInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客机构信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_agency_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_agency_info")]
|
||||
public Types.AgencyInfo? PromoterAgencyInfo { get; set; }
|
||||
}
|
||||
|
||||
public class BuyerInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置买家的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("open_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("open_id")]
|
||||
public string OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置买家的 UnionId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("union_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("union_id")]
|
||||
public string? UnionId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,6 +425,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("commission_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commission_info")]
|
||||
public Types.CommissionInfo CommissionInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置买家信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("buyer_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("buyer_info")]
|
||||
public Types.BuyerInfo BuyerInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -88,21 +88,21 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class ShopInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置店铺名称。
|
||||
/// 获取或设置小店名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺图标 URL。
|
||||
/// 获取或设置小店图标 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("icon")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("icon")]
|
||||
public string IconUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺评分。
|
||||
/// 获取或设置小店评分。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("score")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("score")]
|
||||
|
@@ -5,5 +5,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
public class ChannelsECLeagueHeadSupplierSubItemAddResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人佣金计划 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_item_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_item_id")]
|
||||
public long SubItemId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -10,11 +10,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public class SubItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置计划 ID。
|
||||
/// 获取或设置达人佣金计划 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_item_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_item_id")]
|
||||
public long PlanId { get; set; }
|
||||
public long SubItemId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置计划链接。
|
||||
@@ -30,6 +30,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置达人佣金率(范围:0~90)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ratio")]
|
||||
public int Ratio { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置相对于服务费的达人佣金率(范围:0~90)。
|
||||
/// </summary>
|
||||
|
@@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 AppId。与字段 <see cref="FinderId" />、<see cref="OpenId"/> 三选一。
|
||||
/// 获取或设置达人平台 AppId。与字段 <see cref="FinderId" />、<see cref="OpenId"/> 三选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
|
@@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OpenFinderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 AppId。与字段 <see cref="FinderId" />、<see cref="OpenId"/>、<see cref="OpenFinderId"/> 四选一。
|
||||
/// 获取或设置达人平台 AppId。与字段 <see cref="FinderId" />、<see cref="OpenId"/>、<see cref="OpenFinderId"/> 四选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
|
@@ -34,7 +34,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OpenFinderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 ID。
|
||||
/// 获取或设置带货达人 OpenTalentId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opentalentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opentalentid")]
|
||||
|
@@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OpenFinderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 ID。
|
||||
/// 获取或设置带货达人 OpenTalentId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opentalentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opentalentid")]
|
||||
|
@@ -34,7 +34,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OpenFinderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 ID。
|
||||
/// 获取或设置带货达人 OpenTalentId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opentalentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opentalentid")]
|
||||
|
@@ -70,7 +70,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public Types.Category[]? CategoryV2List { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品小程序跳转小店场景添加商品时传递的跟佣信息。
|
||||
/// 获取或设置商品小程序跳转小店场景添加商品时传递的推广信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_promotion_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_promotion_link")]
|
||||
|
@@ -41,7 +41,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OpenFinderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 ID。
|
||||
/// 获取或设置带货达人 OpenTalentId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("opentalentid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("opentalentid")]
|
||||
|
@@ -35,7 +35,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置团长开放唯一凭证。
|
||||
/// 获取或设置供货机构 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("headsupplier_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("headsupplier_appid")]
|
||||
|
@@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? EWaybillOrderCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代发的订单所属店铺 AppId。
|
||||
/// 获取或设置代发的订单所属小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")]
|
||||
|
@@ -122,7 +122,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? EWaybillOrderCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代发的订单所属店铺 AppId。
|
||||
/// 获取或设置代发的订单所属小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")]
|
||||
|
@@ -121,7 +121,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? EWaybillOrderCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代发的订单所属店铺 AppId。
|
||||
/// 获取或设置代发的订单所属小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")]
|
||||
|
@@ -903,7 +903,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public string? OpenFinderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置带货达人 ID。
|
||||
/// 获取或设置带货达人 OpenTalentId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_id")]
|
||||
|
@@ -56,6 +56,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("op_type_list")]
|
||||
public IList<int>? OperateTypeList { 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>
|
||||
@@ -63,12 +70,5 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; } = 10;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? PageCursor { get; set; }
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,51 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_mp_article_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopMpArticleListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopMpArticleListRequest, ChannelsECPromoterGetShopMpArticleListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,109 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_mp_article_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopMpArticleListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Article
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ProductInfo
|
||||
{
|
||||
/// <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>
|
||||
/// 获取或设置商品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_img_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_img_url")]
|
||||
public string ImageUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估佣金金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("predict_commission_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")]
|
||||
public int PredictCommissionAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金比例(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commission_rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commission_rate")]
|
||||
public int CommissionRate { get; set; }
|
||||
}
|
||||
|
||||
public class ArticleInfo : ChannelsECPromoterGetTalentMpArticleListResponse.Types.Article.Types.ArticleInfo
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_list")]
|
||||
public Types.ProductInfo[] ProductInfoList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文章信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("article_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("article_info")]
|
||||
public Types.ArticleInfo ArticleInfo { get; set; } = default!;
|
||||
|
||||
/// <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("article_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("article_list")]
|
||||
public Types.Article[] ArticleList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,44 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_talent_biz_article_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetTalentMpArticleListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetTalentMpArticleListRequest, ChannelsECPromoterGetTalentMpArticleListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("biz_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("biz_appid")]
|
||||
public string? MpAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,136 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_talent_biz_article_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetTalentMpArticleListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Article
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ProductInfo
|
||||
{
|
||||
/// <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>
|
||||
/// 获取或设置商品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_img_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_img_url")]
|
||||
public string ImageUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估佣金金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("predict_commission_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")]
|
||||
public int PredictCommissionAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品最低价(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_mini_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_mini_price")]
|
||||
public int MinPrice { get; set; }
|
||||
}
|
||||
|
||||
public class ArticleInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置文章标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("article_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("article_title")]
|
||||
public string ArticleTitle { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置封面图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_image")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_image")]
|
||||
public string CoverImageUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文章 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("article_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("article_url")]
|
||||
public string ArticleUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文章推广参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_share_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_share_link")]
|
||||
public string PromoterShareLink { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info_list")]
|
||||
public Types.ProductInfo[] ProductInfoList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置文章信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("article_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("article_info")]
|
||||
public Types.ArticleInfo ArticleInfo { get; set; } = default!;
|
||||
|
||||
/// <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("article_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("article_list")]
|
||||
public Types.Article[] ArticleList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_cooperative_coupon_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCooperativeCouponListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetCooperativeCouponListRequest, ChannelsECPromoterGetCooperativeCouponListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string? ShopAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_cooperative_coupon_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCooperativeCouponListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Coupon : ChannelsECPromoterGetPublicCouponListResponse.Types.Coupon
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置券列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupons")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupons")]
|
||||
public Types.Coupon[] CouponList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,17 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_coupon_detail 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCouponDetailRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetCouponDetailRequest, ChannelsECPromoterGetCouponDetailResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置券 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon_id")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public long CouponId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_coupon_detail 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCouponDetailResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Coupon : ChannelsECCouponGetResponse.Types.Coupon
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置券信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon")]
|
||||
public Types.Coupon Coupon { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_coupon_qr_code 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCouponQrcodeRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetCouponQrcodeRequest, ChannelsECPromoterGetCouponQrcodeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客的微信电商平台注册的身份标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_openid")]
|
||||
public string? SharerOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置券 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon_id")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public long CouponId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_coupon_qr_code 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCouponQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置优惠券推广二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qr_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qr_code")]
|
||||
public string QrcodeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_coupon_short_link 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCouponShortLinkRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetCouponShortLinkRequest, ChannelsECPromoterGetCouponShortLinkResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客的微信电商平台注册的身份标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_openid")]
|
||||
public string? SharerOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置券 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon_id")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
|
||||
public long CouponId { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_coupon_short_link 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetCouponShortLinkResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置优惠券推广短链。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("short_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("short_link")]
|
||||
public string ShortLink { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_public_coupon_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetPublicCouponListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetPublicCouponListRequest, ChannelsECPromoterGetPublicCouponListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string? ShopAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_public_coupon_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetPublicCouponListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Coupon
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置券 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long CouponId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置券列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupons")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupons")]
|
||||
public Types.Coupon[] CouponList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,37 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_feed_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetFeedListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetFeedListRequest, ChannelsECPromoterGetFeedListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台的视频号导出名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_exportusername")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_exportusername")]
|
||||
public string? FinderExportUsername { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,98 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_feed_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetFeedListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Feed
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ProductInfo
|
||||
{
|
||||
/// <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>
|
||||
/// 获取或设置商品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_img_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_img_url")]
|
||||
public string ImageUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品最低价(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_mini_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_mini_price")]
|
||||
public int MinPrice { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估佣金金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("predict_commission_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")]
|
||||
public int PredictCommissionAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info")]
|
||||
public Types.ProductInfo ProductInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("feed_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("feed_list")]
|
||||
public Types.Feed[] FeedList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,51 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_feed_promotion_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetFeedPromotionInfoRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetFeedPromotionInfoRequest, ChannelsECPromoterGetFeedPromotionInfoResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Feed
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置短视频 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mini_program_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")]
|
||||
public string MiniProgramAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("feed_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("feed_list")]
|
||||
public IList<Types.Feed> FeedList { get; set; } = new List<Types.Feed>();
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_feed_promotion_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetFeedPromotionInfoResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Feed
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置短视频 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置内嵌短视频的卡片信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("feed_token")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("feed_token")]
|
||||
public string FeedToken { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推广推客信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_share_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_share_link")]
|
||||
public string PromoterShareLink { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("feed_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("feed_list")]
|
||||
public Types.Feed[] List { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,44 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_feed_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopFeedListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopFeedListRequest, ChannelsECPromoterGetShopFeedListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,63 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_feed_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopFeedListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Feed
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ProductInfo : ChannelsECPromoterGetFeedListResponse.Types.Feed.Types.ProductInfo
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估佣金金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("predict_commission_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")]
|
||||
public int PredictCommissionAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info")]
|
||||
public Types.ProductInfo ProductInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("feed_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("feed_list")]
|
||||
public Types.Feed[] FeedList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,59 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_feed_promotion_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopFeedPromotionInfoRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopFeedPromotionInfoRequest, ChannelsECPromoterGetShopFeedPromotionInfoResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Feed : ChannelsECPromoterGetFeedPromotionInfoRequest.Types.Feed
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mini_program_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")]
|
||||
public string MiniProgramAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("feed_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("feed_list")]
|
||||
public IList<Types.Feed> FeedList { get; set; } = new List<Types.Feed>();
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_feed_promotion_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopFeedPromotionInfoResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Feed : ChannelsECPromoterGetFeedPromotionInfoResponse.Types.Feed
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置短视频列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("feed_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("feed_list")]
|
||||
public Types.Feed[] List { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_commission_product_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveCommissionProductListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetLiveCommissionProductListRequest, ChannelsECPromoterGetLiveCommissionProductListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,71 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_commission_product_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveCommissionProductListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
/// <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>
|
||||
/// 获取或设置商品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_img_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_img_url")]
|
||||
public string ImageUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售价(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_price")]
|
||||
public int Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估佣金金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("predict_commission_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")]
|
||||
public int PredictCommissionAmount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_list")]
|
||||
public Types.Product[] ProductList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_notice_record_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveNoticeRecordListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetLiveNoticeRecordListRequest, ChannelsECPromoterGetLiveNoticeRecordListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mini_program_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")]
|
||||
public string MiniProgramAppId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_notice_record_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveNoticeRecordListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class LiveNoticeRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置预约 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notice_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notice_id")]
|
||||
public string NoticeId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预约描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
public long StartTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播预约数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_notice_record_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_notice_record_list")]
|
||||
public Types.LiveNoticeRecord[] LiveNoticeRecordList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_notice_record_qr_code 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest, ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预约 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notice_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notice_id")]
|
||||
public string NoticeId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_notice_record_qr_code 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
||||
public string QrcodeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_notice_reservation_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveNoticeReservationInfoRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetLiveNoticeReservationInfoRequest, ChannelsECPromoterGetLiveNoticeReservationInfoResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string SharerAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预约 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_notice_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_notice_id")]
|
||||
public string NoticeId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_notice_reservation_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveNoticeReservationInfoResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置预约人数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("count")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_record_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveRecordListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetLiveRecordListRequest, ChannelsECPromoterGetLiveRecordListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mini_program_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")]
|
||||
public string MiniProgramAppId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_record_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveRecordListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class LiveRecord
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置直播 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置内嵌直播卡片时需要的推广参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_share_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_share_link")]
|
||||
public string PromoterShareLink { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_record_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_record_list")]
|
||||
public Types.LiveRecord[] LiveRecordList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_record_qr_code 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveRecordQrcodeRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetLiveRecordQrcodeRequest, ChannelsECPromoterGetLiveRecordQrcodeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置达人平台 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("talent_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("talent_appid")]
|
||||
public string TalentAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_live_record_qr_code 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetLiveRecordQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
||||
public string QrcodeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,44 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_commission_product_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveCommissionProductListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopLiveCommissionProductListRequest, ChannelsECPromoterGetShopLiveCommissionProductListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int PageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页游标。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("next_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("next_key")]
|
||||
public string? Cursor { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_commission_product_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveCommissionProductListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product : ChannelsECPromoterGetLiveCommissionProductListResponse.Types.Product
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置佣金率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commission_rate")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commission_rate")]
|
||||
public int CommissionRate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_list")]
|
||||
public Types.Product[] ProductList { 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("has_more")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
|
||||
public bool HasMore { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveNoticeRecordListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopLiveNoticeRecordListRequest, ChannelsECPromoterGetShopLiveNoticeRecordListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveNoticeRecordListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class LiveNoticeRecord : ChannelsECPromoterGetLiveNoticeRecordListResponse.Types.LiveNoticeRecord
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播预约数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_record_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_record_list")]
|
||||
public Types.LiveNoticeRecord[] LiveNoticeRecordList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_qr_code 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest, ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预约 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notice_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notice_id")]
|
||||
public string NoticeId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_qr_code 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
||||
public string QrcodeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_record_list 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveRecordListRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopLiveRecordListRequest, ChannelsECPromoterGetShopLiveRecordListResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mini_program_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")]
|
||||
public string MiniProgramAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_record_list 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveRecordListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class LiveRecord : ChannelsECPromoterGetLiveRecordListResponse.Types.LiveRecord
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播数据列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_record_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_record_list")]
|
||||
public Types.LiveRecord[] LiveRecordList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_record_qr_code 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveRecordQrcodeRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetShopLiveRecordQrcodeRequest, ChannelsECPromoterGetShopLiveRecordQrcodeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_id")]
|
||||
public string PromoterId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promoter_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promoter_type")]
|
||||
public int PromoterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_shop_live_record_qr_code 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetShopLiveRecordQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
||||
public string QrcodeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_product_promotion_link_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetProductPromotionLinkInfoRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetProductPromotionLinkInfoRequest, ChannelsECPromoterGetProductPromotionLinkInfoResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客的微信电商平台注册的身份标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_openid")]
|
||||
public string? SharerOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string? ShopAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置供货机构 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_supplier_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")]
|
||||
public string? HeadSupplierAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long? ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品短链。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_short_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_short_link")]
|
||||
public string? ProductShortLink { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_product_promotion_link_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetProductPromotionLinkInfoResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品推广短链。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("short_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("short_link")]
|
||||
public string ShortLink { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_product_promotion_qrcode_info 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetProductPromotionQrcodeInfoRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetProductPromotionQrcodeInfoRequest, ChannelsECPromoterGetProductPromotionQrcodeInfoResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置推客的微信电商平台注册的身份标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_appid")]
|
||||
public string? SharerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置推客的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sharer_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sharer_openid")]
|
||||
public string? SharerOpenId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string? ShopAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置供货机构 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_supplier_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")]
|
||||
public string? HeadSupplierAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long? ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品短链。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_short_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_short_link")]
|
||||
public string? ProductShortLink { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_product_promotion_qrcode_info 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetProductPromotionQrcodeInfoResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品推广二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode_url")]
|
||||
public string QrcodeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_promote_product_detail 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetPromoteProductDetailRequest : WechatApiRequest, IInferable<ChannelsECPromoterGetPromoteProductDetailRequest, ChannelsECPromoterGetPromoteProductDetailResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置供货机构 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_supplier_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")]
|
||||
public string? HeadSupplierAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置计划类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("plan_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("plan_type")]
|
||||
public int PlanType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否返回商品可用的机构券。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("get_available_coupon")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("get_available_coupon")]
|
||||
public bool RequireAvailableCoupon { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,256 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/promoter/get_promote_product_detail 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECPromoterGetPromoteProductDetailResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ProductInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Detail : ChannelsECProductGetResponse.Types.Product.Types.Detail
|
||||
{
|
||||
}
|
||||
|
||||
public class Category : ChannelsECProductGetResponse.Types.Product.Types.Category
|
||||
{
|
||||
}
|
||||
|
||||
public class Attribute : ChannelsECProductGetResponse.Types.Product.Types.Attribute
|
||||
{
|
||||
}
|
||||
|
||||
public class SKUDeliver : ChannelsECProductGetResponse.Types.Product.Types.SKUDeliver
|
||||
{
|
||||
}
|
||||
|
||||
public class SKU
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long SKUId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置缩略图 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("thumb_img")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("thumb_img")]
|
||||
public string ThumbnailUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售价(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_price")]
|
||||
public int SalePrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("stock_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("stock_num")]
|
||||
public int Stock { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品属性列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_attrs")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_attrs")]
|
||||
public Attribute[]? AttributeList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品配送信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_deliver_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_deliver_info")]
|
||||
public SKUDeliver? SKUDeliver { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品副标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
|
||||
public string? SubTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主图 URL 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_imgs")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_imgs")]
|
||||
public string[] HeadImageUrlList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品详情信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("desc_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("desc_info")]
|
||||
public Types.Detail Detail { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置新版商品类目列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cats_v2")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cats_v2")]
|
||||
public Types.Category[]? CategoryV2List { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("skus")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("skus")]
|
||||
public Types.SKU[] SKUs { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CommissionInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品带货状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置服务费率(单位:万分数)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_ratio")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_ratio")]
|
||||
public int ServiceRatio { 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; }
|
||||
}
|
||||
|
||||
public class HeadSupplierInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置供货机构 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_supplier_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")]
|
||||
public string HeadSupplierAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置供货机构名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小店 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
|
||||
public string ShopAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品小程序跳转小店场景添加商品时传递的推广信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_promotion_link")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_promotion_link")]
|
||||
public string ProductPromotionLink { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info")]
|
||||
public Types.ProductInfo ProductInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置佣金信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("commission_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("commission_info")]
|
||||
public Types.CommissionInfo CommissionInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置供货机构信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_supplier_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_supplier_info")]
|
||||
public Types.HeadSupplierInfo? HeadSupplierInfo { get; set; }
|
||||
}
|
||||
|
||||
public class Coupon
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置券 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("coupon_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("coupon_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long CouponId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product")]
|
||||
public Types.Product Product { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品可用的公开机构券列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("public_coupons")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("public_coupons")]
|
||||
public Types.Coupon[]? PublicCouponList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品可用的定向机构券列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cooperative_coupons")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cooperative_coupons")]
|
||||
public Types.Coupon[]? CooperativeCouponList { get; set; }
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user