Compare commits

...

2 Commits

Author SHA1 Message Date
Fu Diwei
d7f6d0a1b6 feat(wxapi): bump version to v3.12.0
Some checks failed
CodeQL / Analyze (csharp) (push) Has been cancelled
CodeLint / Lint (push) Has been cancelled
2025-09-30 01:29:12 +08:00
Fu Diwei
771806924a feat(wxapi): 新增微信小店代发供货商相关接口 2025-09-30 01:25:00 +08:00
81 changed files with 2341 additions and 53 deletions

View File

@@ -33,6 +33,18 @@
<summary>[展开查看]</summary>
- Release 3.12.0 (2025-09-30)
- **新增**:新增微信小店商品类目推荐口。
- **新增**:新增微信小店生成某个达人平台的用于直播预约的推广参数、为推客获取小店关联账号直播预约的推广参数等接口。
- **新增**:新增微信小店代发供货商相关接口。
- **新增**:随官方更新微信小店商品、订单、联盟单货机构商品、联盟单货机构佣金单、联盟单货机构达人带货橱窗等相关接口模型。
- **变更**:升级依赖 `BouncyCastle.Cryptography` 至 v2.6.2。
- Release 3.11.0 (2025-07-14)
- **新增**:新增微信小店连接小程序相关接口。

View File

@@ -183,12 +183,12 @@
<summary>[展开查看]</summary>
| | 微信 API | 备注 |
| :-: | :------: | :--: |
| √ | 微信小店 | |
| √ | 达人带货 | |
| √ | 推客带货 | |
| √ | 带货助手 | |
| | 微信 API | 备注 |
| :-: | :----------: | :--: |
| √ | 微信小店 | |
| √ | 联盟带货机构 | |
| √ | 带货助手 | |
| √ | 供货商 | |
</details>

View File

@@ -0,0 +1,20 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.dropship_order_cancel 事件的数据。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/notify/ds_order_notify/ds_order_cancel_notice.html ]]>
/// </para>
/// </summary>
public class DropshipOrderCancelEvent : WechatApiEvent
{
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
[System.Xml.Serialization.XmlElement("ds_order_id")]
public string DropshipOrderId { get; set; } = default!;
}
}

View File

@@ -0,0 +1,20 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.dropship_order_new 事件的数据。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/notify/ds_order_notify/ds_order_add_notice.html ]]>
/// </para>
/// </summary>
public class DropshipOrderNewEvent : WechatApiEvent
{
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
[System.Xml.Serialization.XmlElement("ds_order_id")]
public string DropshipOrderId { get; set; } = default!;
}
}

View File

@@ -0,0 +1,28 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.dropship_order_update 事件的数据。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/notify/ds_order_notify/ds_order_update_notice.html ]]>
/// </para>
/// </summary>
public class DropshipOrderUpdateEvent : WechatApiEvent
{
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
[System.Xml.Serialization.XmlElement("ds_order_id")]
public string DropshipOrderId { get; set; } = default!;
/// <summary>
/// 获取或设置更新时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("update_time")]
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
[System.Xml.Serialization.XmlElement("update_time")]
public long UpdateTimestamp { get; set; }
}
}

View File

@@ -4,7 +4,9 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
/// <para>表示 EVENT.ewaybill_push_path 事件的数据。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/push_path.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/push_path.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/notify/merchant_callback/ewaybill_push_path.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/notify/merchant_callback/ewaybill_push_path.html ]]>
/// </para>
/// </summary>
public class EWaybillPushPathEvent : WechatApiEvent

View File

@@ -3531,7 +3531,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/get_account.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_account.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_account.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_getacct.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3557,7 +3558,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/get_acctdeliverylist.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_acctdeliverylist.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_acctdeliverylist.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_getdeliverylist.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3583,7 +3585,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/precreate_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/precreate_order.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/precreate_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_precreateorder.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3607,7 +3610,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/create_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/create_order.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/create_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_createorder.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3630,7 +3634,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/addsuborder 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/add_suborder.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/add_suborder.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_addsuborder.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3654,7 +3659,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/cancel_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/cancel_order.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/cancel_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_cancelorder.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3678,7 +3684,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/get_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_order.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_order.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_getorder.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3702,7 +3709,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/notify_print.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/notify_print.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/notify_print.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_printorder.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3726,7 +3734,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/batchnotify_print.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/batchnotify_print.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/batchnotify_print.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_batchprintorder.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3744,6 +3753,29 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECLogisticsEWaybillOrderBatchPrintResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/logistics/ewaybill/biz/order/getprintinfo 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_get_print_content.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECLogisticsEWaybillOrderGetPrintInfoResponse> ExecuteChannelsECLogisticsEWaybillOrderGetPrintInfoAsync(this WechatApiClient client, Models.ChannelsECLogisticsEWaybillOrderGetPrintInfoRequest 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", "logistics", "ewaybill", "biz", "order", "getprintinfo")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECLogisticsEWaybillOrderGetPrintInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
#endregion
#region ECLogistics/EWaybill/Print
@@ -3778,7 +3810,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/get_template_config.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_template_config.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_template_config.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_get_template_config.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3802,7 +3835,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/add_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/add_template.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/add_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_createtemplate.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3826,7 +3860,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/update_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/update_template.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/update_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_updatetemplate.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3850,7 +3885,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/delete_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/delete_template.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/delete_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_deltemplate.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3874,7 +3910,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/get_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_template.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_template.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_gettemplate.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -3898,7 +3935,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/ewaybill/get_templatebyid.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_templatebyid.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/get_templatebyid.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_ewaybill_gettemplatebyid.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -4025,7 +4063,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/merchant/address/list.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/list.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/list.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/address/api_getaddresslist.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -4049,7 +4088,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/merchant/address/get.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/get.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/get.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/address/api_getaddress.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -4073,7 +4113,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/merchant/address/add.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/add.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/add.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/address/api_addaddress.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -4097,7 +4138,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/merchant/address/update.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/update.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/update.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/address/api_updateaddress.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -4121,7 +4163,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/channels/API/merchant/address/delete.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/delete.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/merchant/address/delete.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/address/api_deleteaddress.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -4548,7 +4591,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
/// <para>异步调用 [POST] /channels/ec/order/deliverycompanylist/new/get 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/deliverycompanylist_get_new.html ]]>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/ewaybill/deliverycompanylist_get_new.html ]]> <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/electronic/api_getdeliverycompanylistnew.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
@@ -4616,6 +4660,240 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
}
#endregion
#region ECOrder/Dropship
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/assign 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/order/api_dropship_assign.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipAssignResponse> ExecuteChannelsECOrderDropshipAssignAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipAssignRequest 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", "order", "dropship", "assign")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipAssignResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/cancel 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/order/api_dropship_cancel.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipCancelResponse> ExecuteChannelsECOrderDropshipCancelAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipCancelRequest 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", "order", "dropship", "cancel")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipCancelResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/list 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/order/api_dropship_list.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipListResponse> ExecuteChannelsECOrderDropshipListAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipListRequest 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", "order", "dropship", "list")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/search 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/order/api_dropship_search.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipSearchResponse> ExecuteChannelsECOrderDropshipSearchAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipSearchRequest 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", "order", "dropship", "search")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipSearchResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/get 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/order/api_dropship_get.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipGetResponse> ExecuteChannelsECOrderDropshipGetAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipGetRequest 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", "order", "dropship", "get")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
#region ECOrder/Dropship/Supplier
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/supplier/delivery/send 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/shipping/api_delivery_send.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipSupplierDeliverySendResponse> ExecuteChannelsECOrderDropshipSupplierDeliverySendAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipSupplierDeliverySendRequest 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", "order", "dropship", "supplier", "delivery", "send")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipSupplierDeliverySendResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/supplier/delivery/update 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/delivery/shipping/api_delivery_update.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipSupplierDeliveryUpdateResponse> ExecuteChannelsECOrderDropshipSupplierDeliveryUpdateAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipSupplierDeliveryUpdateRequest 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", "order", "dropship", "supplier", "delivery", "update")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipSupplierDeliveryUpdateResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/supplier/list 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/order/api_dropship_list.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipSupplierListResponse> ExecuteChannelsECOrderDropshipSupplierListAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipSupplierListRequest 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", "order", "dropship", "supplier", "list")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipSupplierListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/supplier/search 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/order/api_dropship_search.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipSupplierSearchResponse> ExecuteChannelsECOrderDropshipSupplierSearchAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipSupplierSearchRequest 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", "order", "dropship", "supplier", "search")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipSupplierSearchResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/dropship/supplier/get 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/order/api_dropship_get.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECOrderDropshipSupplierGetResponse> ExecuteChannelsECOrderDropshipSupplierGetAsync(this WechatApiClient client, Models.ChannelsECOrderDropshipSupplierGetRequest 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", "order", "dropship", "supplier", "get")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECOrderDropshipSupplierGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
#endregion
#endregion
#region ECOrder/PresentOrder
/// <summary>
/// <para>异步调用 [POST] /channels/ec/order/presentorder/create 接口。</para>
@@ -7057,6 +7335,217 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
#endregion
#endregion
#region ECSupplier
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/base/get_supplier_base_info 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/account/api_get_supplier_base_info.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierBaseGetSupplierBaseInfoResponse> ExecuteChannelsECSupplierBaseGetSupplierBaseInfoAsync(this WechatApiClient client, Models.ChannelsECSupplierBaseGetSupplierBaseInfoRequest 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", "supplier", "base", "get_supplier_base_info")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierBaseGetSupplierBaseInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
#region ECSupplier/Relation
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/get_distribute 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/auto/api_get_distribution.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationGetDistributeResponse> ExecuteChannelsECSupplierRelationGetDistributeAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationGetDistributeRequest 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", "supplier", "relation", "get_distribute")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationGetDistributeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/set_manually_distribute 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/auto/api_set_manually_distribution.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationSetManuallyDistributeResponse> ExecuteChannelsECSupplierRelationSetManuallyDistributeAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationSetManuallyDistributeRequest 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", "supplier", "relation", "set_manually_distribute")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationSetManuallyDistributeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/set_all_distribution 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/auto/api_set_all_distribution.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationSetAllDistributeResponse> ExecuteChannelsECSupplierRelationSetAllDistributeAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationSetAllDistributeRequest 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", "supplier", "relation", "set_all_distribution")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationSetAllDistributeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/set_product_distribute 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/auto/api_set_product_distribution.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationSetProductDistributeResponse> ExecuteChannelsECSupplierRelationSetProductDistributeAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationSetProductDistributeRequest 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", "supplier", "relation", "set_product_distribute")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationSetProductDistributeResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/get_product_default_distribute 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/auto/api_get_product_default_distribution.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationGetProductDefaultDistributionResponse> ExecuteChannelsECSupplierRelationGetProductDefaultDistributionAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationGetProductDefaultDistributionRequest 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", "supplier", "relation", "get_product_default_distribute")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationGetProductDefaultDistributionResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/get_product_list 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/auto/api_get_product_list.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationGetProductListResponse> ExecuteChannelsECSupplierRelationGetProductListAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationGetProductListRequest 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", "supplier", "relation", "get_product_list")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationGetProductListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/get_supplier_list 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/shop/API/supplier/relation/api_get_supplier_list.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationGetSupplierListResponse> ExecuteChannelsECSupplierRelationGetSupplierListAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationGetSupplierListRequest 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", "supplier", "relation", "get_supplier_list")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationGetSupplierListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /channels/ec/supplier/relation/get_ec_list 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/doc/store/supplier/api/related/api_get_ec_list.html ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.ChannelsECSupplierRelationGetECListResponse> ExecuteChannelsECSupplierRelationGetECListAsync(this WechatApiClient client, Models.ChannelsECSupplierRelationGetECListRequest 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", "supplier", "relation", "get_ec_list")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.ChannelsECSupplierRelationGetECListResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
#endregion
#endregion
#region ECTalent
#region ECTalent/Order
/// <summary>

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/getprintinfo 接口的请求。</para>
/// </summary>
public class ChannelsECLogisticsEWaybillOrderGetPrintInfoRequest : ChannelsECLogisticsEWaybillPrintGetRequest, IInferable<ChannelsECLogisticsEWaybillOrderGetPrintInfoRequest, ChannelsECLogisticsEWaybillOrderGetPrintInfoResponse>
{
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/getprintinfo 接口的响应。</para>
/// </summary>
public class ChannelsECLogisticsEWaybillOrderGetPrintInfoResponse : ChannelsECLogisticsEWaybillPrintGetResponse
{
}
}

View File

@@ -209,12 +209,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class Dropship
{
/// <summary>
/// 获取或设置代发单
/// 获取或设置代发单 ID
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
public long DropshipOrderId { get; set; }
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string DropshipOrderId { get; set; } = default!;
}
}

View File

@@ -13,28 +13,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
public static class Types
{
public class Product
public class Product : ChannelsECOrderDeliverySendRequest.Types.Delivery.Types.Product
{
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_id")]
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
public long ProductId { get; set; }
/// <summary>
/// 获取或设置 SKU ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_id")]
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
public long SKUId { get; set; }
/// <summary>
/// 获取或设置商品数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_cnt")]
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
public int Count { get; set; }
}
}

View File

@@ -0,0 +1,62 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/assign 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipAssignRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipAssignRequest, ChannelsECOrderDropshipAssignResponse>
{
public static class Types
{
public class DropshipProduct
{
/// <summary>
/// 获取或设置商品 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("spu_id")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))]
[System.Text.Json.Serialization.JsonPropertyName("spu_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
public long ProductId { get; set; }
/// <summary>
/// 获取或设置 SKU ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("sku_id")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))]
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)]
public long SKUId { get; set; }
/// <summary>
/// 获取或设置商品数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_cnt")]
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
public int Count { get; set; }
}
}
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string OrderId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string SupplierAppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置代发商品列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("dropship_product_list")]
[System.Text.Json.Serialization.JsonPropertyName("dropship_product_list")]
public IList<Types.DropshipProduct> DropshipProductList { get; set; } = new List<Types.DropshipProduct>();
}
}

View File

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

View File

@@ -0,0 +1,38 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/cancel 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipCancelRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipCancelRequest, ChannelsECOrderDropshipCancelResponse>
{
public static class Types
{
public class DropshipProduct : ChannelsECOrderDropshipAssignRequest.Types.DropshipProduct
{
}
}
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
public string DropshipOrderId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string OrderId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置代发商品列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("dropship_product_list")]
[System.Text.Json.Serialization.JsonPropertyName("dropship_product_list")]
public IList<Types.DropshipProduct> DropshipProductList { get; set; } = new List<Types.DropshipProduct>();
}
}

View File

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

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/get 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipGetRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipGetRequest, ChannelsECOrderDropshipGetResponse>
{
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
public string DropshipOrderId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,72 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/get 接口的响应。</para>
/// </summary>
public class ChannelsECOrderDropshipGetResponse : WechatApiResponse
{
public static class Types
{
public class DropshipOrder
{
/// <summary>
/// 获取或设置供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string SupplierAppId { get; set; } = default!;
/// <summary>
/// 获取或设置供货商名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_name")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_name")]
public string SupplierName { get; set; } = default!;
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string DropshipOrderId { get; set; } = default!;
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string OrderId { get; set; } = default!;
/// <summary>
/// 获取或设置代发单状态状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置创建时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("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("dropship_order")]
[System.Text.Json.Serialization.JsonPropertyName("dropship_order")]
public Types.DropshipOrder DropshipOrder { get; set; } = default!;
}
}

View File

@@ -0,0 +1,80 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/list 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipListRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipListRequest, ChannelsECOrderDropshipListResponse>
{
public static class Types
{
public class TimeRange
{
/// <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 Pagination
{
/// <summary>
/// 获取或设置分页起始位置。
/// </summary>
[Newtonsoft.Json.JsonProperty("offset")]
[System.Text.Json.Serialization.JsonPropertyName("offset")]
public int Offset { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limit")]
[System.Text.Json.Serialization.JsonPropertyName("limit")]
public int Limit { 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>
/// 获取或设置供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string? SupplierAppId { get; set; }
/// <summary>
/// 获取或设置代发单状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int? Status { get; set; }
/// <summary>
/// 获取或设置订单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string? OrderId { get; set; }
/// <summary>
/// 获取或设置分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_info")]
[System.Text.Json.Serialization.JsonPropertyName("page_info")]
public Types.Pagination? Pagination { get; set; }
}
}

View File

@@ -0,0 +1,43 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/list 接口的响应。</para>
/// </summary>
public class ChannelsECOrderDropshipListResponse : WechatApiResponse
{
public static class Types
{
public class Pagination : ChannelsECOrderDropshipListRequest.Types.Pagination
{
}
}
/// <summary>
/// 获取或设置代发单 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id_list")]
public string[] DropshipOrderIdList { get; set; } = default!;
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total")]
[System.Text.Json.Serialization.JsonPropertyName("total")]
public int TotalCount { get; set; }
/// <summary>
/// 获取或设置是否还有更多。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_more")]
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
public bool HasMore { get; set; }
/// <summary>
/// 获取或设置下一页分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_page")]
[System.Text.Json.Serialization.JsonPropertyName("next_page")]
public Types.Pagination? NextPagination { get; set; }
}
}

View File

@@ -0,0 +1,74 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/search 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipSearchRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipSearchRequest, ChannelsECOrderDropshipSearchResponse>
{
public static class Types
{
public class SearchCondition
{
public static class Types
{
public class TimeRange : ChannelsECOrderDropshipListRequest.Types.TimeRange
{
}
}
/// <summary>
/// 获取或设置创建时间范围信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_time_range")]
[System.Text.Json.Serialization.JsonPropertyName("create_time_range")]
public Types.TimeRange? CreateTimeRange { get; set; }
/// <summary>
/// 获取或设置供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string? SupplierAppId { get; set; }
/// <summary>
/// 获取或设置代发单状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int? Status { get; set; }
/// <summary>
/// 获取或设置订单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string? OrderId { get; set; }
/// <summary>
/// 获取或设置运单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("waybill_id")]
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
public string? WaybillId { get; set; }
}
public class Pagination : ChannelsECOrderDropshipSupplierListRequest.Types.Pagination
{
}
}
/// <summary>
/// 获取或设置搜索条件信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("search_condition")]
[System.Text.Json.Serialization.JsonPropertyName("search_condition")]
public Types.SearchCondition SearchCondition { get; set; } = new Types.SearchCondition();
/// <summary>
/// 获取或设置分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_info")]
[System.Text.Json.Serialization.JsonPropertyName("page_info")]
public Types.Pagination? Pagination { get; set; }
}
}

View File

@@ -0,0 +1,43 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/search 接口的响应。</para>
/// </summary>
public class ChannelsECOrderDropshipSearchResponse : WechatApiResponse
{
public static class Types
{
public class Pagination : ChannelsECOrderDropshipSearchRequest.Types.Pagination
{
}
}
/// <summary>
/// 获取或设置代发单 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id_list")]
public string[] DropshipOrderIdList { get; set; } = default!;
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total")]
[System.Text.Json.Serialization.JsonPropertyName("total")]
public int TotalCount { get; set; }
/// <summary>
/// 获取或设置是否还有更多。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_more")]
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
public bool HasMore { get; set; }
/// <summary>
/// 获取或设置下一页分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_page")]
[System.Text.Json.Serialization.JsonPropertyName("next_page")]
public Types.Pagination? NextPagination { get; set; }
}
}

View File

@@ -0,0 +1,58 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/delivery/send 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierDeliverySendRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipSupplierDeliverySendRequest, ChannelsECOrderDropshipSupplierDeliverySendResponse>
{
public static class Types
{
public class Delivery
{
public static class Types
{
public class Product : ChannelsECOrderDeliverySendRequest.Types.Delivery.Types.Product
{
}
}
/// <summary>
/// 获取或设置快递公司 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("delivery_id")]
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
public string DeliveryId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置快递单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("waybill_id")]
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
public string WaybillId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置商品列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_infos")]
[System.Text.Json.Serialization.JsonPropertyName("product_infos")]
public IList<Types.Product> ProductList { get; set; } = new List<Types.Product>();
}
}
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
public string DropshipOrderId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置快递列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("delivery_list")]
[System.Text.Json.Serialization.JsonPropertyName("delivery_list")]
public IList<Types.Delivery> DeliveryList { get; set; } = new List<Types.Delivery>();
}
}

View File

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

View File

@@ -0,0 +1,51 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/delivery/update 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierDeliveryUpdateRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipSupplierDeliveryUpdateRequest, ChannelsECOrderDropshipSupplierDeliveryUpdateResponse>
{
public static class Types
{
public class ChangeInfo
{
public static class Types
{
public class Delivery : ChannelsECOrderDropshipSupplierDeliverySendRequest.Types.Delivery
{
}
}
/// <summary>
/// 获取或设置旧快递信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("old")]
[System.Text.Json.Serialization.JsonPropertyName("old")]
public Types.Delivery OldDelivery { get; set; } = new Types.Delivery();
/// <summary>
/// 获取或设置新快递信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("new")]
[System.Text.Json.Serialization.JsonPropertyName("new")]
public Types.Delivery NewDelivery { get; set; } = new Types.Delivery();
}
}
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
public string DropshipOrderId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置快递修改信息列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("change_infos")]
[System.Text.Json.Serialization.JsonPropertyName("change_infos")]
public IList<Types.ChangeInfo> ChangeInfoList { get; set; } = new List<Types.ChangeInfo>();
}
}

View File

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

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/get 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierGetRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipSupplierGetRequest, ChannelsECOrderDropshipSupplierGetResponse>
{
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
public string DropshipOrderId { get; set; } = string.Empty;
}
}

View File

@@ -0,0 +1,72 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/get 接口的响应。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierGetResponse : WechatApiResponse
{
public static class Types
{
public class DropshipOrder
{
/// <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("shop_name")]
[System.Text.Json.Serialization.JsonPropertyName("shop_name")]
public string ShopName { get; set; } = default!;
/// <summary>
/// 获取或设置代发单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string DropshipOrderId { get; set; } = default!;
/// <summary>
/// 获取或设置订单 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string OrderId { get; set; } = default!;
/// <summary>
/// 获取或设置代发单状态状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置创建时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("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("dropship_order")]
[System.Text.Json.Serialization.JsonPropertyName("dropship_order")]
public Types.DropshipOrder DropshipOrder { get; set; } = default!;
}
}

View File

@@ -0,0 +1,80 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/list 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierListRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipSupplierListRequest, ChannelsECOrderDropshipSupplierListResponse>
{
public static class Types
{
public class TimeRange
{
/// <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 Pagination
{
/// <summary>
/// 获取或设置分页起始位置。
/// </summary>
[Newtonsoft.Json.JsonProperty("offset")]
[System.Text.Json.Serialization.JsonPropertyName("offset")]
public int Offset { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limit")]
[System.Text.Json.Serialization.JsonPropertyName("limit")]
public int Limit { 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>
/// 获取或设置商家小店 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("shop_appid")]
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
public string? ShopAppId { get; set; }
/// <summary>
/// 获取或设置代发单状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int? Status { get; set; }
/// <summary>
/// 获取或设置订单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string? OrderId { get; set; }
/// <summary>
/// 获取或设置分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_info")]
[System.Text.Json.Serialization.JsonPropertyName("page_info")]
public Types.Pagination? Pagination { get; set; }
}
}

View File

@@ -0,0 +1,43 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/list 接口的响应。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierListResponse : WechatApiResponse
{
public static class Types
{
public class Pagination : ChannelsECOrderDropshipSupplierListRequest.Types.Pagination
{
}
}
/// <summary>
/// 获取或设置代发单 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id_list")]
public string[] DropshipOrderIdList { get; set; } = default!;
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total")]
[System.Text.Json.Serialization.JsonPropertyName("total")]
public int TotalCount { get; set; }
/// <summary>
/// 获取或设置是否还有更多。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_more")]
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
public bool HasMore { get; set; }
/// <summary>
/// 获取或设置下一页分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_page")]
[System.Text.Json.Serialization.JsonPropertyName("next_page")]
public Types.Pagination? NextPagination { get; set; }
}
}

View File

@@ -0,0 +1,74 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/search 接口的请求。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierSearchRequest : WechatApiRequest, IInferable<ChannelsECOrderDropshipSupplierSearchRequest, ChannelsECOrderDropshipSupplierSearchResponse>
{
public static class Types
{
public class SearchCondition
{
public static class Types
{
public class TimeRange : ChannelsECOrderDropshipSupplierListRequest.Types.TimeRange
{
}
}
/// <summary>
/// 获取或设置创建时间范围信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_time_range")]
[System.Text.Json.Serialization.JsonPropertyName("create_time_range")]
public Types.TimeRange? CreateTimeRange { get; set; }
/// <summary>
/// 获取或设置商家小店 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("shop_appid")]
[System.Text.Json.Serialization.JsonPropertyName("shop_appid")]
public string? ShopAppId { get; set; }
/// <summary>
/// 获取或设置代发单状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int? Status { get; set; }
/// <summary>
/// 获取或设置订单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("order_id")]
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
public string? OrderId { get; set; }
/// <summary>
/// 获取或设置运单号。
/// </summary>
[Newtonsoft.Json.JsonProperty("waybill_id")]
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
public string? WaybillId { get; set; }
}
public class Pagination : ChannelsECOrderDropshipSupplierListRequest.Types.Pagination
{
}
}
/// <summary>
/// 获取或设置搜索条件信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("search_condition")]
[System.Text.Json.Serialization.JsonPropertyName("search_condition")]
public Types.SearchCondition SearchCondition { get; set; } = new Types.SearchCondition();
/// <summary>
/// 获取或设置分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_info")]
[System.Text.Json.Serialization.JsonPropertyName("page_info")]
public Types.Pagination? Pagination { get; set; }
}
}

View File

@@ -0,0 +1,43 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/order/dropship/supplier/search 接口的响应。</para>
/// </summary>
public class ChannelsECOrderDropshipSupplierSearchResponse : WechatApiResponse
{
public static class Types
{
public class Pagination : ChannelsECOrderDropshipSupplierSearchRequest.Types.Pagination
{
}
}
/// <summary>
/// 获取或设置代发单 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("ds_order_id_list")]
[System.Text.Json.Serialization.JsonPropertyName("ds_order_id_list")]
public string[] DropshipOrderIdList { get; set; } = default!;
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total")]
[System.Text.Json.Serialization.JsonPropertyName("total")]
public int TotalCount { get; set; }
/// <summary>
/// 获取或设置是否还有更多。
/// </summary>
[Newtonsoft.Json.JsonProperty("has_more")]
[System.Text.Json.Serialization.JsonPropertyName("has_more")]
public bool HasMore { get; set; }
/// <summary>
/// 获取或设置下一页分页信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("next_page")]
[System.Text.Json.Serialization.JsonPropertyName("next_page")]
public Types.Pagination? NextPagination { get; set; }
}
}

View File

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

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/base/get_supplier_base_info 接口的响应。</para>
/// </summary>
public class ChannelsECSupplierBaseGetSupplierBaseInfoResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置供货商名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
}
}

View File

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

View File

@@ -0,0 +1,29 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_distribute 接口的响应。</para>
/// </summary>
public class ChannelsECSupplierRelationGetDistributeResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置分配类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("distribute_type")]
[System.Text.Json.Serialization.JsonPropertyName("distribute_type")]
public int DistributeType { get; set; }
/// <summary>
/// 获取或设置全店订单自动分配的供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("all_supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("all_supplier_appid")]
public string? AllDistributeSupplierAppId { get; set; }
/// <summary>
/// 获取或设置全店订单自动分配的供货商名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("all_distribute_supplier_name")]
[System.Text.Json.Serialization.JsonPropertyName("all_distribute_supplier_name")]
public string? AllDistributeSupplierName { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_ec_list 接口的请求。</para>
/// </summary>
public class ChannelsECSupplierRelationGetECListRequest : WechatApiRequest, IInferable<ChannelsECSupplierRelationGetECListRequest, ChannelsECSupplierRelationGetECListResponse>
{
/// <summary>
/// 获取或设置分页起始位置。
/// </summary>
[Newtonsoft.Json.JsonProperty("offset")]
[System.Text.Json.Serialization.JsonPropertyName("offset")]
public int? Offset { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limit")]
[System.Text.Json.Serialization.JsonPropertyName("limit")]
public int? Limit { get; set; }
}
}

View File

@@ -0,0 +1,70 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_ec_list 接口的响应。</para>
/// </summary>
public class ChannelsECSupplierRelationGetECListResponse : WechatApiResponse
{
public static class Types
{
public class Shop
{
/// <summary>
/// 获取或设置商家小店 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("appid")]
[System.Text.Json.Serialization.JsonPropertyName("appid")]
public string AppId { get; set; } = default!;
/// <summary>
/// 获取或设置商家小店名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
/// <summary>
/// 获取或设置商家小店头像 URL。
/// </summary>
[Newtonsoft.Json.JsonProperty("head_img")]
[System.Text.Json.Serialization.JsonPropertyName("head_img")]
public string HeadImageUrl { get; set; } = default!;
/// <summary>
/// 获取或设置状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置绑定审核名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("bind_audit_status")]
[System.Text.Json.Serialization.JsonPropertyName("bind_audit_status")]
public int BindAuditStatus { 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("list")]
[System.Text.Json.Serialization.JsonPropertyName("list")]
public Types.Shop[] ShopList { get; set; } = default!;
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_count")]
[System.Text.Json.Serialization.JsonPropertyName("total_count")]
public int TotalCount { get; set; }
}
}

View File

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

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_product_default_distribute 接口的响应。</para>
/// </summary>
public class ChannelsECSupplierRelationGetProductDefaultDistributionResponse : WechatApiResponse
{
/// <summary>
/// 获取或设置是否存在已设置自动分配的供货商。
/// </summary>
[Newtonsoft.Json.JsonProperty("exist_default_supplier")]
[System.Text.Json.Serialization.JsonPropertyName("exist_default_supplier")]
public bool IsExistDefaultSupplier { get; set; }
/// <summary>
/// 获取或设置自动分配的供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string? SupplierAppId { get; set; }
}
}

View File

@@ -0,0 +1,64 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_product_list 接口的请求。</para>
/// </summary>
public class ChannelsECSupplierRelationGetProductListRequest : WechatApiRequest, IInferable<ChannelsECSupplierRelationGetProductListRequest, ChannelsECSupplierRelationGetProductListResponse>
{
/// <summary>
/// 获取或设置是否过滤分配状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_filter_distribute_status")]
[System.Text.Json.Serialization.JsonPropertyName("is_filter_distribute_status")]
public bool? IsFilterDistributeStatus { get; set; }
/// <summary>
/// 获取或设置分配状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("distribute_status")]
[System.Text.Json.Serialization.JsonPropertyName("distribute_status")]
public int? DistributeStatus { get; set; }
/// <summary>
/// 获取或设置是否过滤商品状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_filter_product_status")]
[System.Text.Json.Serialization.JsonPropertyName("is_filter_product_status")]
public bool? IsFilterProductStatus { get; set; }
/// <summary>
/// 获取或设置商品状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("product_status")]
[System.Text.Json.Serialization.JsonPropertyName("product_status")]
public int? ProductStatus { get; set; }
/// <summary>
/// 获取或设置是否过滤供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_filter_supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("is_filter_supplier_appid")]
public bool? IsFilterSupplierAppId { get; set; }
/// <summary>
/// 获取或设置供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string? SupplierAppId { get; set; }
/// <summary>
/// 获取或设置分页游标。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_context")]
[System.Text.Json.Serialization.JsonPropertyName("page_context")]
public string? Cursor { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limit")]
[System.Text.Json.Serialization.JsonPropertyName("limit")]
public int? Limit { get; set; }
}
}

View File

@@ -0,0 +1,63 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_product_list 接口的响应。</para>
/// </summary>
public class ChannelsECSupplierRelationGetProductListResponse : WechatApiResponse
{
public static class Types
{
public class Distribution
{
/// <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("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string SupplierAppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置供货商名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_name")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_name")]
public string SupplierName { get; set; } = string.Empty;
/// <summary>
/// 获取或设置分配状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("distribute_status")]
[System.Text.Json.Serialization.JsonPropertyName("distribute_status")]
public int DistributeStatus { get; set; }
}
}
/// <summary>
/// 获取或设置分配列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("list")]
[System.Text.Json.Serialization.JsonPropertyName("list")]
public Types.Distribution[] DistributionList { get; set; } = default!;
/// <summary>
/// 获取或设置下一页游标。
/// </summary>
[Newtonsoft.Json.JsonProperty("page_context")]
[System.Text.Json.Serialization.JsonPropertyName("page_context")]
public string? NextCursor { get; set; }
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_count")]
[System.Text.Json.Serialization.JsonPropertyName("total_count")]
public int TotalCount { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_supplier_list 接口的请求。</para>
/// </summary>
public class ChannelsECSupplierRelationGetSupplierListRequest : WechatApiRequest, IInferable<ChannelsECSupplierRelationGetSupplierListRequest, ChannelsECSupplierRelationGetSupplierListResponse>
{
/// <summary>
/// 获取或设置分页起始位置。
/// </summary>
[Newtonsoft.Json.JsonProperty("offset")]
[System.Text.Json.Serialization.JsonPropertyName("offset")]
public int? Offset { get; set; }
/// <summary>
/// 获取或设置分页每页数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("limit")]
[System.Text.Json.Serialization.JsonPropertyName("limit")]
public int? Limit { get; set; }
}
}

View File

@@ -0,0 +1,63 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/get_supplier_list 接口的响应。</para>
/// </summary>
public class ChannelsECSupplierRelationGetSupplierListResponse : WechatApiResponse
{
public static class Types
{
public class Supplier
{
/// <summary>
/// 获取或设置供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("appid")]
[System.Text.Json.Serialization.JsonPropertyName("appid")]
public string AppId { get; set; } = default!;
/// <summary>
/// 获取或设置供货商名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
/// <summary>
/// 获取或设置状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置绑定审核名称。
/// </summary>
[Newtonsoft.Json.JsonProperty("bind_audit_status")]
[System.Text.Json.Serialization.JsonPropertyName("bind_audit_status")]
public int BindAuditStatus { 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("list")]
[System.Text.Json.Serialization.JsonPropertyName("list")]
public Types.Supplier[] SupplierList { get; set; } = default!;
/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("total_count")]
[System.Text.Json.Serialization.JsonPropertyName("total_count")]
public int TotalCount { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/set_all_distribution 接口的请求。</para>
/// </summary>
public class ChannelsECSupplierRelationSetAllDistributeRequest : WechatApiRequest, IInferable<ChannelsECSupplierRelationSetAllDistributeRequest, ChannelsECSupplierRelationSetAllDistributeResponse>
{
/// <summary>
/// 获取或设置全店订单自动分配的供货商 AppId。
/// </summary>
[Newtonsoft.Json.JsonProperty("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string SupplierAppId { get; set; } = string.Empty;
}
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,44 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /channels/ec/supplier/relation/set_product_distribute 接口的请求。</para>
/// </summary>
public class ChannelsECSupplierRelationSetProductDistributeRequest : WechatApiRequest, IInferable<ChannelsECSupplierRelationSetProductDistributeRequest, ChannelsECSupplierRelationSetProductDistributeResponse>
{
public static class Types
{
public class Distribution
{
/// <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("supplier_appid")]
[System.Text.Json.Serialization.JsonPropertyName("supplier_appid")]
public string SupplierAppId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置是否自动分配给该供货商。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_distribute")]
[System.Text.Json.Serialization.JsonPropertyName("is_distribute")]
public bool IsDistribute { get; set; }
}
}
/// <summary>
/// 获取或设置分配列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("list")]
[System.Text.Json.Serialization.JsonPropertyName("list")]
public IList<Types.Distribution> DistributionList { get; set; } = new List<Types.Distribution>();
}
}

View File

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

View File

@@ -14,7 +14,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat</PackageProjectUrl>
<PackageTags>Flurl.Http Wechat Weixin MicroMessage MiniProgram MiniGame MiniStore 微信 公众号 服务号 订阅号 小程序 小游戏 小商店 视频号 公众平台 开放平台 微信公众号 微信服务号 微信订阅号 微信小程序 微信小游戏 微信小商店 微信视频号 微信公众平台 微信开放平台</PackageTags>
<Version>3.11.0</Version>
<Version>3.12.0</Version>
<Description>基于 Flurl.Http 的微信 API 客户端支持公众平台订阅号、服务号、小程序、小游戏、小商店、视频号、开放平台等平台支持基础服务、模板消息、订阅消息、客服消息、动态消息、菜单管理、素材管理、留言管理、用户管理、账号管理、草稿箱、发布能力、数据统计、微信门店、微信小店、视频号小店、智能接口、一物一码、微信发票、微信非税缴费、插件管理、附近的小程序、小程序码、小程序搜索、URL Scheme、URL Link、即时配送、物流助手、直播、生物认证、虚拟支付、开放数据、对局匹配、帧同步、内容安全、安全风控、交易组件、小程序联盟、第三方平台、服务平台等功能。</Description>
<Authors>Fu Diwei</Authors>
<RepositoryType>git</RepositoryType>

View File

@@ -0,0 +1,8 @@
{
"ToUserName": "gh_*",
"FromUserName": "OpenID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "dropship_order_cancel",
"ds_order_id": "4400123343235833535"
}

View File

@@ -0,0 +1,8 @@
{
"ToUserName": "gh_*",
"FromUserName": "OpenID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "dropship_order_new",
"ds_order_id": "4400123343235833535"
}

View File

@@ -0,0 +1,9 @@
{
"ToUserName": "gh_*",
"FromUserName": "OpenID",
"CreateTime": 1662480000,
"MsgType": "event",
"Event": "dropship_order_update",
"ds_order_id": "4400123343235833535",
"update_time": 1662480000
}

View File

@@ -0,0 +1,11 @@
{
"order_id": "37012940902395351",
"supplier_appid": "wxabc",
"dropship_product_list": [
{
"spu_id": "1253129080",
"sku_id": "2983950535",
"product_cnt": 3
}
]
}

View File

@@ -0,0 +1,11 @@
{
"order_id": "37012940902395351",
"ds_order_id": "37012940902395351",
"dropship_product_list": [
{
"spu_id": "1253129080",
"sku_id": "2983950535",
"product_cnt": 3
}
]
}

View File

@@ -0,0 +1,13 @@
{
"errcode": 0,
"errmsg": "ok",
"dropship_order": {
"ds_order_id": 0,
"create_time": 0,
"update_time": 0,
"status": 0,
"supplier_appid": "",
"supplier_name": "",
"order_id": 0
}
}

View File

@@ -0,0 +1,12 @@
{
"order_id": "37000204335323251",
"create_time_range": {
"start_time": 1658505600,
"end_time": 1658509200
},
"status": 0,
"page_info": {
"offset": 0,
"limit": 10
}
}

View File

@@ -0,0 +1,13 @@
{
"errcode": 0,
"errmsg": "ok",
"ds_order_id_list": [
"4404612354559743232",
"4404849110714209536"
],
"next_page": {
"offset": 10,
"limit": 10
},
"total": 100
}

View File

@@ -0,0 +1,14 @@
{
"search_condition": {
"order_id": "37000204335323251",
"create_time_range": {
"start_time": 1658505600,
"end_time": 1658509200
},
"status": 0
},
"page_info": {
"offset": 0,
"limit": 10
}
}

View File

@@ -0,0 +1,13 @@
{
"errcode": 0,
"errmsg": "ok",
"ds_order_id_list": [
"4404612354559743232",
"4404849110714209536"
],
"next_page": {
"offset": 10,
"limit": 10
},
"total": 100
}

View File

@@ -0,0 +1,16 @@
{
"ds_order_id": "123456",
"delivery_list": [
{
"delivery_id": "YD",
"waybill_id": "23424324253",
"product_infos": [
{
"product_cnt": 1,
"product_id": "12345",
"sku_id": "678910"
}
]
}
]
}

View File

@@ -0,0 +1,29 @@
{
"ds_order_id": "123456",
"change_infos": [
{
"old": {
"delivery_id": "YD",
"waybill_id": "23424324253",
"product_infos": [
{
"product_cnt": 1,
"product_id": "12345",
"sku_id": "678910"
}
]
},
"new": {
"delivery_id": "SF",
"waybill_id": "SF120930535",
"product_infos": [
{
"product_cnt": 1,
"product_id": "12345",
"sku_id": "678910"
}
]
}
}
]
}

View File

@@ -0,0 +1,13 @@
{
"errcode": 0,
"errmsg": "ok",
"dropship_order": {
"ds_order_id": "4429352113418018304",
"create_time": 1751959503,
"update_time": 1751959503,
"status": 300,
"shop_appid": "wx2b255582a7b4bfd0",
"shop_name": "开平电商小店",
"order_id": "3729352105237033728"
}
}

View File

@@ -0,0 +1,12 @@
{
"order_id": "37000204335323251",
"create_time_range": {
"start_time": 1658505600,
"end_time": 1658509200
},
"status": 0,
"page_info": {
"offset": 0,
"limit": 10
}
}

View File

@@ -0,0 +1,13 @@
{
"errcode": 0,
"errmsg": "ok",
"ds_order_id_list": [
"4404612354559743232",
"4404849110714209536"
],
"next_page": {
"offset": 10,
"limit": 10
},
"total": 100
}

View File

@@ -0,0 +1,14 @@
{
"search_condition": {
"order_id": "37000204335323251",
"create_time_range": {
"start_time": 1658505600,
"end_time": 1658509200
},
"status": 0
},
"page_info": {
"offset": 0,
"limit": 10
}
}

View File

@@ -0,0 +1,13 @@
{
"errcode": 0,
"errmsg": "ok",
"ds_order_id_list": [
"4404612354559743232",
"4404849110714209536"
],
"next_page": {
"offset": 10,
"limit": 10
},
"total": 100
}

View File

@@ -0,0 +1,5 @@
{
"errcode": 0,
"errmsg": "",
"name": "供货商名称"
}

View File

@@ -0,0 +1,7 @@
{
"errcode": 0,
"errmsg": "",
"distribute_type": 0,
"all_supplier_appid": "",
"all_distribute_supplier_name": ""
}

View File

@@ -0,0 +1,15 @@
{
"list": [
{
"appid": "wx8888888",
"name": "供货商test",
"status": 1,
"bind_audit_status": 1,
"update_time": 1754386966,
"head_img": "https://www.qq.com/1.png"
}
],
"total_count": 10,
"errcode": 0,
"errmsg": ""
}

View File

@@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "",
"exist_default_supplier": false,
"supplier_appid": ""
}

View File

@@ -0,0 +1,10 @@
{
"is_filter_distribute_status": false,
"distribute_status": 0,
"is_filter_product_status": false,
"product_status": 0,
"is_filter_supplier_appid": false,
"supplier_appid": "",
"limit": 0,
"page_context": ""
}

View File

@@ -0,0 +1,14 @@
{
"errcode": 0,
"errmsg": "",
"page_context": "",
"total_count": 0,
"list": [
{
"product_id": 0,
"distribute_status": 0,
"supplier_appid": "",
"supplier_name": ""
}
]
}

View File

@@ -0,0 +1,14 @@
{
"list": [
{
"name": "",
"appid": "",
"status": 0,
"bind_audit_status": 0,
"update_time": 0
}
],
"total_count": 0,
"errcode": 0,
"errmsg": ""
}

View File

@@ -0,0 +1,9 @@
{
"list": [
{
"supplier_appid": "",
"product_id": 0,
"is_distribute": false
}
]
}