mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 01:46:20 +08:00
feat(wxapi): 新增小程序同城配送相关接口
This commit is contained in:
parent
60bbf3a9e0
commit
474d63b7bd
@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events.OpenComponent
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 INFO.notify_apply_icpfiling_result 事件的数据。</para>
|
||||
|
@ -29,330 +29,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
return request;
|
||||
}
|
||||
|
||||
#region LocalBusiness
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/pre_add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.preAddOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderPreAddResponse> ExecuteCgibinExpressLocalBusinessOrderPreAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderPreAddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "pre_add")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderPreAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderAddResponse> ExecuteCgibinExpressLocalBusinessOrderAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderAddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "add")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/readd 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/express/by-business/logistics.addOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderReAddResponse> ExecuteCgibinExpressLocalBusinessOrderReAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderReAddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "readd")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderReAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/addtips 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addTip.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderAddTipsResponse> ExecuteCgibinExpressLocalBusinessOrderAddTipsAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderAddTipsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "addtips")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderAddTipsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/get 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderGetResponse> ExecuteCgibinExpressLocalBusinessOrderGetAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderGetRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/precancel 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.preCancelOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderPreCancelResponse> ExecuteCgibinExpressLocalBusinessOrderPreCancelAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderPreCancelRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "precancel")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderPreCancelResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/cancel 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderCancelResponse> ExecuteCgibinExpressLocalBusinessOrderCancelAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderCancelRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "cancel")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderCancelResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/confirm_return 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderConfirmReturnResponse> ExecuteCgibinExpressLocalBusinessOrderConfirmReturnAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderConfirmReturnRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "confirm_return")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderConfirmReturnResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/delivery/getall 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getAllImmeDelivery.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessDeliveryGetAllResponse> ExecuteCgibinExpressLocalBusinessDeliveryGetAllAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessDeliveryGetAllRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "delivery", "getall")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessDeliveryGetAllResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/shop/add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.bindAccount.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessShopAddResponse> ExecuteCgibinExpressLocalBusinessShopAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessShopAddRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "shop", "add")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessShopAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/shop/get 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessShopGetResponse> ExecuteCgibinExpressLocalBusinessShopGetAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessShopGetRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "shop", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessShopGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/test_update_order 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessTestUpdateOrderResponse> ExecuteCgibinExpressLocalBusinessTestUpdateOrderAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessTestUpdateOrderRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "test_update_order")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessTestUpdateOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/realmock_update_order 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessRealMockUpdateOrderResponse> ExecuteCgibinExpressLocalBusinessRealMockUpdateOrderAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessRealMockUpdateOrderRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "realmock_update_order")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessRealMockUpdateOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/open 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.openDelivery.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOpenResponse> ExecuteCgibinExpressLocalBusinessOpenAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOpenRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "open")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOpenResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/update_order 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-provider/immediateDelivery.updateOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessUpdateOrderResponse> ExecuteCgibinExpressLocalBusinessUpdateOrderAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessUpdateOrderRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "update_order")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessUpdateOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Business
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/business/order/add 接口。</para>
|
||||
@ -918,5 +594,591 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
#region Intracity
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/apply 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-1-%E5%BC%80%E9%80%9A%E9%97%A8%E5%BA%97%E6%9D%83%E9%99%90 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityApplyResponse> ExecuteCgibinExpressIntracityApplyAsync(this WechatApiClient client, Models.CgibinExpressIntracityApplyRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "apply")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityApplyResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/createstore 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-2-%E5%88%9B%E5%BB%BA%E9%97%A8%E5%BA%97 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityCreateStoreResponse> ExecuteCgibinExpressIntracityCreateStoreAsync(this WechatApiClient client, Models.CgibinExpressIntracityCreateStoreRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "createstore")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityCreateStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/querystore 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-3-%E6%9F%A5%E8%AF%A2%E9%97%A8%E5%BA%97 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityQueryStoreResponse> ExecuteCgibinExpressIntracityQueryStoreAsync(this WechatApiClient client, Models.CgibinExpressIntracityQueryStoreRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "querystore")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityQueryStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/updatestore 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-4-%E6%9B%B4%E6%96%B0%E9%97%A8%E5%BA%97 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityUpdateStoreResponse> ExecuteCgibinExpressIntracityUpdateStoreAsync(this WechatApiClient client, Models.CgibinExpressIntracityUpdateStoreRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "updatestore")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityUpdateStoreResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/storecharge 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-5-%E9%97%A8%E5%BA%97%E8%BF%90%E8%B4%B9%E5%85%85%E5%80%BC </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityStoreChargeResponse> ExecuteCgibinExpressIntracityStoreChargeAsync(this WechatApiClient client, Models.CgibinExpressIntracityStoreChargeRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "storecharge")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityStoreChargeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/storerefund 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-6-%E9%97%A8%E5%BA%97%E8%BF%90%E8%B4%B9%E9%80%80%E6%AC%BE </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityStoreRefundResponse> ExecuteCgibinExpressIntracityStoreRefundAsync(this WechatApiClient client, Models.CgibinExpressIntracityStoreRefundRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "storerefund")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityStoreRefundResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/queryflow 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-7-%E9%97%A8%E5%BA%97%E8%BF%90%E8%B4%B9%E6%B5%81%E6%B0%B4%E6%9F%A5%E8%AF%A2 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityQueryFlowResponse> ExecuteCgibinExpressIntracityQueryFlowAsync(this WechatApiClient client, Models.CgibinExpressIntracityQueryFlowRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "queryflow")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityQueryFlowResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/balancequery 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-8-%E9%97%A8%E5%BA%97%E4%BD%99%E9%A2%9D%E6%9F%A5%E8%AF%A2 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityBalanceQueryResponse> ExecuteCgibinExpressIntracityBalanceQueryAsync(this WechatApiClient client, Models.CgibinExpressIntracityBalanceQueryRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "balancequery")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityBalanceQueryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/preaddorder 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-9-%E6%9F%A5%E8%AF%A2%E8%BF%90%E8%B4%B9 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityPreAddOrderResponse> ExecuteCgibinExpressIntracityPreAddOrderAsync(this WechatApiClient client, Models.CgibinExpressIntracityPreAddOrderRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "preaddorder")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityPreAddOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/addorder 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-10-%E5%88%9B%E5%BB%BA%E9%85%8D%E9%80%81%E5%8D%95 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityAddOrderResponse> ExecuteCgibinExpressIntracityAddOrderAsync(this WechatApiClient client, Models.CgibinExpressIntracityAddOrderRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "addorder")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityAddOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/queryorder 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-11-%E6%9F%A5%E8%AF%A2%E9%85%8D%E9%80%81%E5%8D%95 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityQueryOrderResponse> ExecuteCgibinExpressIntracityQueryOrderAsync(this WechatApiClient client, Models.CgibinExpressIntracityQueryOrderRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "queryorder")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityQueryOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/cancelorder 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_2-12-%E5%8F%96%E6%B6%88%E9%85%8D%E9%80%81%E5%8D%95 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityCancelOrderResponse> ExecuteCgibinExpressIntracityCancelOrderAsync(this WechatApiClient client, Models.CgibinExpressIntracityCancelOrderRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "cancelorder")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityCancelOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/intracity/mocknotify 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html#_3-2-%E6%A8%A1%E6%8B%9F%E5%9B%9E%E8%B0%83%E6%8E%A5%E5%8F%A3 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressIntracityMockNotifyResponse> ExecuteCgibinExpressIntracityMockNotifyAsync(this WechatApiClient client, Models.CgibinExpressIntracityMockNotifyRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "intracity", "mocknotify")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressIntracityMockNotifyResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region LocalBusiness
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/pre_add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.preAddOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderPreAddResponse> ExecuteCgibinExpressLocalBusinessOrderPreAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderPreAddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "pre_add")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderPreAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderAddResponse> ExecuteCgibinExpressLocalBusinessOrderAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderAddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "add")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/readd 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/express/by-business/logistics.addOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderReAddResponse> ExecuteCgibinExpressLocalBusinessOrderReAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderReAddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "readd")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderReAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/addtips 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.addTip.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderAddTipsResponse> ExecuteCgibinExpressLocalBusinessOrderAddTipsAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderAddTipsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "addtips")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderAddTipsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/get 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderGetResponse> ExecuteCgibinExpressLocalBusinessOrderGetAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderGetRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/precancel 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.preCancelOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderPreCancelResponse> ExecuteCgibinExpressLocalBusinessOrderPreCancelAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderPreCancelRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "precancel")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderPreCancelResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/cancel 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.cancelOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderCancelResponse> ExecuteCgibinExpressLocalBusinessOrderCancelAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderCancelRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "cancel")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderCancelResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/order/confirm_return 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.abnormalConfirm.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOrderConfirmReturnResponse> ExecuteCgibinExpressLocalBusinessOrderConfirmReturnAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOrderConfirmReturnRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "order", "confirm_return")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOrderConfirmReturnResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/delivery/getall 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getAllImmeDelivery.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessDeliveryGetAllResponse> ExecuteCgibinExpressLocalBusinessDeliveryGetAllAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessDeliveryGetAllRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "delivery", "getall")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessDeliveryGetAllResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/shop/add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.bindAccount.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessShopAddResponse> ExecuteCgibinExpressLocalBusinessShopAddAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessShopAddRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "shop", "add")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessShopAddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/shop/get 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.getBindAccount.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessShopGetResponse> ExecuteCgibinExpressLocalBusinessShopGetAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessShopGetRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "shop", "get")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessShopGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/test_update_order 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessTestUpdateOrderResponse> ExecuteCgibinExpressLocalBusinessTestUpdateOrderAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessTestUpdateOrderRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "test_update_order")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessTestUpdateOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/realmock_update_order 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.mockUpdateOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessRealMockUpdateOrderResponse> ExecuteCgibinExpressLocalBusinessRealMockUpdateOrderAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessRealMockUpdateOrderRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "realmock_update_order")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessRealMockUpdateOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/open 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-business/immediateDelivery.openDelivery.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessOpenResponse> ExecuteCgibinExpressLocalBusinessOpenAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessOpenRequest 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
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "open")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessOpenResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/express/local/business/update_order 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/immediate-delivery/by-provider/immediateDelivery.updateOrder.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinExpressLocalBusinessUpdateOrderResponse> ExecuteCgibinExpressLocalBusinessUpdateOrderAsync(this WechatApiClient client, Models.CgibinExpressLocalBusinessUpdateOrderRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
PreprocessRequest(client, ref request);
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "cgi-bin", "express", "local", "business", "update_order")
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinExpressLocalBusinessUpdateOrderResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,150 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/addorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityAddOrderRequest : WechatApiRequest, IInferable<CgibinExpressIntracityAddOrderRequest, CgibinExpressIntracityAddOrderResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CargoInfo : CgibinExpressIntracityPreAddOrderRequest.Types.CargoInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置物品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_name")]
|
||||
public string ItemName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_pic_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_pic_url")]
|
||||
public string ItemPictureUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物品数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("count")]
|
||||
public int ItemCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_list")]
|
||||
public IList<Types.Item> ItemList { get; set; } = new List<Types.Item>();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店订单编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_order_id")]
|
||||
public string StoreOrderId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_openid")]
|
||||
public string UserOpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人手机号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_phone")]
|
||||
public string UserPhoneNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件用户位置经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_lng")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_lng")]
|
||||
public double UserLongitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件用户位置维度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_lat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_lat")]
|
||||
public double UserLatitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件用户详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_address")]
|
||||
public string UserAddress { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单序号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_seq")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_seq")]
|
||||
public string? OrderSequence { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置验证码类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("verify_code_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("verify_code_type")]
|
||||
public int? VerifyCodeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置跳转商家订单页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_detail_path")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_detail_path")]
|
||||
public string? OrderDetailPagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置回调地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("callback_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("callback_url")]
|
||||
public string? CallbackUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo")]
|
||||
public Types.CargoInfo CargoInfo { get; set; } = new Types.CargoInfo();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否使用沙箱。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("use_sandbox")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("use_sandbox")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsSandbox { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/addorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityAddOrderResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店订单编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_order_id")]
|
||||
public string StoreOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_order_id")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("trans_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("trans_order_id")]
|
||||
public string TransOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力配送单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string? WaybillId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送距离(单位:米)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("distance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("distance")]
|
||||
public int Distance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送费(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fee")]
|
||||
public int Fee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置取货码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fetch_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fetch_code")]
|
||||
public string? FetchCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单序号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_seq")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_seq")]
|
||||
public string? OrderSequence { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/apply 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityApplyRequest : WechatApiRequest, IInferable<CgibinExpressIntracityApplyRequest, CgibinExpressIntracityApplyResponse>
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/apply 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityApplyResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/balancequery 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityBalanceQueryRequest : WechatApiRequest, IInferable<CgibinExpressIntracityBalanceQueryRequest, CgibinExpressIntracityStoreChargeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/balancequery 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityBalanceQueryResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class BalanceDetail
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Order
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置充值订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payorder_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payorder_id")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
|
||||
public string PayOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("charge_amt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("charge_amt")]
|
||||
public int ChargeAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置未使用的余额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("unused_amt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("unused_amt")]
|
||||
public int UnusedAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值生效时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
|
||||
public long BeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值失效时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long EndTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置余额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance")]
|
||||
public int Balance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_name")]
|
||||
public string ServiceTransName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_list")]
|
||||
public Types.Order[]? OrderList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总余额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("all_balance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("all_balance")]
|
||||
public int TotalBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置余额详情列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("balance_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("balance_detail")]
|
||||
public Types.BalanceDetail[] BalanceDetailList { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/cancelorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityCancelOrderRequest : WechatApiRequest, IInferable<CgibinExpressIntracityCancelOrderRequest, CgibinExpressIntracityCancelOrderResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string? StoreId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店订单编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_order_id")]
|
||||
public string? StoreOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_order_id")]
|
||||
public string? OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置取消原因 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cancel_reason_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cancel_reason_id")]
|
||||
public int CancelReasonId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置取消原因描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cancel_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cancel_reason")]
|
||||
public string? CancelReason { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/cancelorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityCancelOrderResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_order_id")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店订单编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_order_id")]
|
||||
public string StoreOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_status")]
|
||||
public int OrderStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置违约金(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("deductfee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("deductfee")]
|
||||
public int? DeductFee { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/createstore 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityCreateStoreRequest : WechatApiRequest, IInferable<CgibinExpressIntracityCreateStoreRequest, CgibinExpressIntracityCreateStoreResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AddressInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置省份。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("province")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||
public string Province { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置城市。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("city")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||
public string City { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置区县。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("area")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("area")]
|
||||
public string District { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置街道。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("street")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("street")]
|
||||
public string Street { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("house")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("house")]
|
||||
public string Address { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lng")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lng")]
|
||||
public double Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置纬度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lat")]
|
||||
public double Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone")]
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_store_id")]
|
||||
public string OutStoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_name")]
|
||||
public string StoreName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力偏好类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_pattern")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_pattern")]
|
||||
public int? OrderPatternType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优先使用的运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_prefer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_prefer")]
|
||||
public string? ServiceTransIdPrefer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address_info")]
|
||||
public Types.AddressInfo? AddressInfo { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/createstore 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityCreateStoreResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_store_id")]
|
||||
public string OutStoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/mocknotify 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityMockNotifyRequest : WechatApiRequest, IInferable<CgibinExpressIntracityMockNotifyRequest, CgibinExpressIntracityMockNotifyResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string? StoreId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店订单编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_order_id")]
|
||||
public string? StoreOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_order_id")]
|
||||
public string? OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_status")]
|
||||
public int OrderStatus { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/mocknotify 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityMockNotifyResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/preaddorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityPreAddOrderRequest : WechatApiRequest, IInferable<CgibinExpressIntracityPreAddOrderRequest, CgibinExpressIntracityPreAddOrderResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CargoInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo_name")]
|
||||
public string CargoName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo_type")]
|
||||
public int CargoType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品重量(单位:克)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo_weight")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo_weight")]
|
||||
public int CargoWeight { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品价格(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo_price")]
|
||||
public int CargoPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo_num")]
|
||||
public int CargoCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人手机号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_phone")]
|
||||
public string UserPhoneNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件用户位置经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_lng")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_lng")]
|
||||
public double UserLongitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件用户位置维度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_lat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_lat")]
|
||||
public double UserLatitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件用户详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_address")]
|
||||
public string UserAddress { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo")]
|
||||
public Types.CargoInfo CargoInfo { get; set; } = new Types.CargoInfo();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否使用沙箱。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("use_sandbox")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("use_sandbox")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalNullableBooleanConverter))]
|
||||
public bool? IsSandbox { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/preaddorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityPreAddOrderResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送距离(单位:米)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("distance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("distance")]
|
||||
public int Distance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预估配送费(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("est_fee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("est_fee")]
|
||||
public int EstimatedFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预计送达时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expected_finished_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expected_finished_time")]
|
||||
public long? ExpectedFinishedTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预计配送时长(单位:分钟)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("promise_delivery_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("promise_delivery_time")]
|
||||
public long? PromiseDeliveryTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/queryflow 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityQueryFlowRequest : WechatApiRequest, IInferable<CgibinExpressIntracityQueryFlowRequest, CgibinExpressIntracityQueryFlowResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置流水类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("flow_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("flow_type")]
|
||||
public int FlowType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string? ServiceTransId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("begin_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("begin_time")]
|
||||
public long? BeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置结束时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
|
||||
public long? EndTimestamp { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,183 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/queryflow 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityQueryFlowResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Flow
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置流水类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("flow_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("flow_type")]
|
||||
public int FlowType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_order_id")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
|
||||
public string PayOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_order_id")]
|
||||
public string? OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("bill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("bill_id")]
|
||||
public string? BillId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户的 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string? OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_amount")]
|
||||
public int PayAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_amount")]
|
||||
public int? RefundAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置扣除违约金(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("deduct_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("deduct_amount")]
|
||||
public int? DeductAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_status")]
|
||||
public string PayStatus { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_status")]
|
||||
public string? RefundStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time")]
|
||||
public long PayTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_time")]
|
||||
public long RefundTimestamp { 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("consume_deadline")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("consume_deadline")]
|
||||
public long? ConsumeDeadlineTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_status")]
|
||||
public int? DeliveryStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运单完成配送时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_finished_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_finished_time")]
|
||||
public long? DeliveryFinishedTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总支付金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_pay_amt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_pay_amt")]
|
||||
public int? TotalPayAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_refund_amt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_refund_amt")]
|
||||
public int? TotalRefundAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总违约金(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_deduct_amt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_deduct_amt")]
|
||||
public int? TotalDeductAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置流水列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("flow_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("flow_list")]
|
||||
public Types.Flow[] FlowList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置流水总数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total")]
|
||||
public int Total { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/queryorder 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityQueryOrderRequest : WechatApiRequest, IInferable<CgibinExpressIntracityQueryOrderRequest, CgibinExpressIntracityQueryOrderResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string? StoreId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店订单编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_order_id")]
|
||||
public string? StoreOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_order_id")]
|
||||
public string? OrderId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,320 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/queryorder 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityQueryOrderResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CargoInfo : CgibinExpressIntracityPreAddOrderRequest.Types.CargoInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Item
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置物品名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_name")]
|
||||
public string ItemName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物品图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_pic_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_pic_url")]
|
||||
public string ItemPictureUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物品数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_num")]
|
||||
public int ItemCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置物品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("item_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("item_list")]
|
||||
public Types.Item[] ItemList { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class ReceiverInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置收件人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_name")]
|
||||
public string ReceiverName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string Address { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件地址经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lng")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lng")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public double Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件地址纬度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lat")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public double Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone_num")]
|
||||
public string PhoneNumber { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class StoreInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_name")]
|
||||
public string StoreName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string Address { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lng")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lng")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public double Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店纬度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lat")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public double Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone_num")]
|
||||
public string PhoneNumber { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class TransporterInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置配送员姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transporter_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transporter_name")]
|
||||
public string TransporterName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送员电话号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transporter_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transporter_phone")]
|
||||
public string TransporterPhoneNumber { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_order_id")]
|
||||
public string OrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店订单编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_order_id")]
|
||||
public string StoreOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_status")]
|
||||
public int OrderStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_openid")]
|
||||
public string UserOpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_no")]
|
||||
public string TransOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送距离(单位:米)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("distance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("distance")]
|
||||
public int Distance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置实际支付费用(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("actualfee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("actualfee")]
|
||||
public int ActualFee { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置违约金(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("deductfee")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("deductfee")]
|
||||
public int DeductFee { 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("accept_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("accept_time")]
|
||||
public long? AcceptTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送员取货时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fetch_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fetch_time")]
|
||||
public long? FetchTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送员送达时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finish_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finish_time")]
|
||||
public long? FinishTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置取消时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cancel_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cancel_time")]
|
||||
public long? CancelTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预期送达时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("expected_finish_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("expected_finish_time")]
|
||||
public long? ExpectedFinishTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置取货码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fetch_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fetch_code")]
|
||||
public string? FetchCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收货码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("recv_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("recv_code")]
|
||||
public string? ReceiveCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单序号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_seq")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_seq")]
|
||||
public string? OrderSequence { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cargo_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cargo_info")]
|
||||
public Types.CargoInfo CargoInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver_info")]
|
||||
public Types.ReceiverInfo ReceiverInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_info")]
|
||||
public Types.StoreInfo StoreInfo { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置配送员信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transporter_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transporter_info")]
|
||||
public Types.TransporterInfo? TransporterInfo { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/querystore 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityQueryStoreRequest : WechatApiRequest, IInferable<CgibinExpressIntracityQueryStoreRequest, CgibinExpressIntracityQueryStoreResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_store_id")]
|
||||
public string? OutStoreId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string? StoreId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/querystore 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityQueryStoreResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Store
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AddressInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置省份。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("province")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("province")]
|
||||
public string Province { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置城市。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("city")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("city")]
|
||||
public string City { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置区县。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("area")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("area")]
|
||||
public string District { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置街道。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("street")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("street")]
|
||||
public string Street { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("house")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("house")]
|
||||
public string Address { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置经度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lng")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lng")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public double Longitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置纬度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("lat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("lat")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public double Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone")]
|
||||
public string PhoneNumber { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_store_id")]
|
||||
public string OutStoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店所在城市 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("city_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("city_id")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public int CityId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力偏好类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_pattern")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_pattern")]
|
||||
public int OrderPatternType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优先使用的运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_prefer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_prefer")]
|
||||
public string? ServiceTransIdPrefer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address_info")]
|
||||
public Types.AddressInfo? AddressInfo { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_list")]
|
||||
public Types.Store[] StoreList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店总数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total")]
|
||||
public int Total { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/storecharge 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityStoreChargeRequest : WechatApiRequest, IInferable<CgibinExpressIntracityStoreChargeRequest, CgibinExpressIntracityStoreChargeResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置充值金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
public int Amount { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/storecharge 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityStoreChargeResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置充值页面 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("payurl")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("payurl")]
|
||||
public string PayUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/storerefund 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityStoreRefundRequest : WechatApiRequest, IInferable<CgibinExpressIntracityStoreRefundRequest, CgibinExpressIntracityStoreRefundResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_id")]
|
||||
public string ServiceTransId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/storerefund 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityStoreRefundResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_amount")]
|
||||
public int RefundAmount { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/updatestore 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityUpdateStoreRequest : WechatApiRequest, IInferable<CgibinExpressIntracityUpdateStoreRequest, CgibinExpressIntracityUpdateStoreResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Key
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义门店 ID。与字段 <see cref="StoreId"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_store_id")]
|
||||
public string? OutStoreId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。与字段 <see cref="OutStoreId"/> 二选一。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string? StoreId { get; set; }
|
||||
}
|
||||
|
||||
public class Content
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AddressInfo : CgibinExpressIntracityCreateStoreRequest.Types.AddressInfo
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("store_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("store_name")]
|
||||
public string? StoreName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置运力偏好类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_pattern")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_pattern")]
|
||||
public int? OrderPatternType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置优先使用的运力 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("service_trans_prefer")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("service_trans_prefer")]
|
||||
public string? ServiceTransIdPrefer { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address_info")]
|
||||
public Types.AddressInfo? AddressInfo { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("keys")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("keys")]
|
||||
public Types.Key Key { get; set; } = new Types.Key();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新内容。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("content")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("content")]
|
||||
public Types.Content Content { get; set; } = new Types.Content();
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/express/intracity/updatestore 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinExpressIntracityUpdateStoreResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义门店 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_store_id")]
|
||||
public string OutStoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信门店编号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_store_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_store_id")]
|
||||
public string StoreId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"store_order_id": "testorder123",
|
||||
"user_openid": "ozMQO0WsxkA3E56SWBGrLGQ4WVZY",
|
||||
"user_lng": "116.353093",
|
||||
"user_lat": "40.01496",
|
||||
"user_address": "北京市海淀区学清嘉创大厦A座15层)",
|
||||
"user_name": "顺丰同城",
|
||||
"user_phone": "13881979410",
|
||||
"callback_url": "https://testcallback.com",
|
||||
"use_sandbox": 1,
|
||||
"cargo": {
|
||||
"cargo_name": "榴莲披萨套餐",
|
||||
"cargo_type": 1,
|
||||
"cargo_num": 3,
|
||||
"cargo_price": 5000,
|
||||
"cargo_weight": 500,
|
||||
"item_list": [
|
||||
{
|
||||
"item_name": "8寸榴莲",
|
||||
"count": 1,
|
||||
"item_pic_url": "https://www.qq.com"
|
||||
},
|
||||
{
|
||||
"item_name": "可口可乐",
|
||||
"count": 2,
|
||||
"item_pic_url": "https://www.qq.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"service_trans_id": "SFTC",
|
||||
"wx_store_id": "1000000000000023002",
|
||||
"store_order_id": "testorder123",
|
||||
"distance": 2358,
|
||||
"fee": 1300,
|
||||
"trans_order_id": "JS123143DA"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"service_trans_id": "DADA"
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
{
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"all_balance": 10,
|
||||
"balance_detail": [
|
||||
{
|
||||
"balance": 10,
|
||||
"service_trans_id": "DADA",
|
||||
"service_trans_name": "达达快送",
|
||||
"order_list": [
|
||||
{
|
||||
"payorder_id": "2978080038359269380",
|
||||
"unused_amt": 10,
|
||||
"charge_amt": 10,
|
||||
"begin_time": 1687099701,
|
||||
"end_time": 1689691701
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"errcode": 0,
|
||||
"errmsg": "OK"
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"wx_order_id": "2000000000000092001",
|
||||
"cancel_reason_id": 1,
|
||||
"cancel_reason": "不需要了"
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"wx_order_id": "2000000000000092001",
|
||||
"store_order_id": "testorder12345879",
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"order_status": 20000,
|
||||
"deductfee": 0
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"out_store_id": "123",
|
||||
"store_name": "测试门店1",
|
||||
"order_pattern": 1,
|
||||
"address_info": {
|
||||
"province": "广东省",
|
||||
"city": "深圳市",
|
||||
"area": "南山区",
|
||||
"street": "南头街道",
|
||||
"house": "深南大道10000号",
|
||||
"lat": 22.540366,
|
||||
"lng": 113.934559,
|
||||
"phone": "1380000138"
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"out_store_id": "123"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"wx_order_id": "2000000000000092001",
|
||||
"order_status": 30000
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"user_lng": "116.353093",
|
||||
"user_lat": "40.01496",
|
||||
"user_address": "北京市海淀区学清嘉创大厦A座15层)",
|
||||
"use_sandbox": 1,
|
||||
"user_name": "顺丰同城",
|
||||
"user_phone": "13800000138",
|
||||
"cargo": {
|
||||
"cargo_name": "榴莲披萨套餐",
|
||||
"cargo_type": 1,
|
||||
"cargo_num": 7,
|
||||
"cargo_price": 5000,
|
||||
"cargo_weight": 500
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "OK",
|
||||
"distance": 1000,
|
||||
"est_fee": 870,
|
||||
"service_trans_id": "SFTC",
|
||||
"promise_delivery_time": 50,
|
||||
"expected_finished_time": 1692163151
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042002",
|
||||
"flow_type": 1,
|
||||
"service_trans_id": "SFTC"
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
{
|
||||
"total": 1,
|
||||
"flow_list": [
|
||||
{
|
||||
"flow_type": 1,
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"wx_store_id": "4000000000000042002",
|
||||
"pay_order_id": "2920020938702667776",
|
||||
"service_trans_id": "SFTC",
|
||||
"pay_amount": 1,
|
||||
"refund_amount": 1,
|
||||
"create_time": 1683639082,
|
||||
"pay_time": 1683639151,
|
||||
"refund_time": 1683653491,
|
||||
"consume_deadline": 1686231082,
|
||||
"pay_status": "SUCCESS"
|
||||
}
|
||||
],
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"total_pay_amt": 1,
|
||||
"total_refund_amt": 1
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001"
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
{
|
||||
"wx_order_id": "2000000000000042007",
|
||||
"store_order_id": "testorder12345",
|
||||
"order_status": 10000,
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"user_openid": "ozMQO0ehr_FBgL5mWa5_duxH71Yw",
|
||||
"service_trans_id": "SFTC",
|
||||
"delivery_no": "SF6508800795950",
|
||||
"distance": 2358,
|
||||
"actualfee": 201,
|
||||
"deductfee": 0,
|
||||
"create_time": 1682318663,
|
||||
"expected_finish_time": 1682319663,
|
||||
"store_info": {
|
||||
"phone_num": "13800000138",
|
||||
"address": "北京市海淀区西三旗街道永辉超市",
|
||||
"lng": 116.354787,
|
||||
"lat": 40.030613,
|
||||
"store_name": "测试门店3"
|
||||
},
|
||||
"receiver_info": {
|
||||
"phone_num": "顺丰同城",
|
||||
"address": "北京市海淀区学清嘉创大厦A座15层)",
|
||||
"lng": 116.353093,
|
||||
"lat": 40.01496
|
||||
},
|
||||
"cargo_info": {
|
||||
"cargo_name": "榴莲披萨套餐",
|
||||
"cargo_weight": 500,
|
||||
"cargo_price": 5000,
|
||||
"cargo_num": 3,
|
||||
"cargo_type": 1,
|
||||
"item_list": [
|
||||
{
|
||||
"item_name": "8寸榴莲",
|
||||
"item_num": 1,
|
||||
"item_pic_url": "https://www.qq.com"
|
||||
},
|
||||
{
|
||||
"item_name": "可口可乐",
|
||||
"item_num": 2,
|
||||
"item_pic_url": "https://www.qq.com"
|
||||
}
|
||||
]
|
||||
},
|
||||
"errcode": 0,
|
||||
"errmsg": "ok"
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001"
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"total": 1,
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"store_list": [
|
||||
{
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"out_store_id": "123",
|
||||
"city_id": 440300,
|
||||
"address_info": {
|
||||
"province": "广东省",
|
||||
"city": "深圳市",
|
||||
"area": "南山区",
|
||||
"street": "南头街道",
|
||||
"house": "深南大道10000号",
|
||||
"lat": 22.540366,
|
||||
"lng": 113.934559,
|
||||
"phone": "1380000138"
|
||||
},
|
||||
"order_pattern": 0,
|
||||
"service_trans_prefer": ""
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"service_trans_id": "SFTC",
|
||||
"amount": 10000
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"payurl": "https://fuwu.weixin.qq.com/service/common/buy?orderId=2886882380534202368&hasApply=1",
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"wx_store_id": "4000000000000042001"
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"service_trans_id": "SFTC"
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"appid": "wx539e0b4872f196d1",
|
||||
"wx_store_id": "4000000000000042001",
|
||||
"refund_amount": 3000
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"keys": {
|
||||
"wx_store_id": "4000000000000042001"
|
||||
},
|
||||
"content": {
|
||||
"store_name": "测试门店3",
|
||||
"address_info": {
|
||||
"province": "北京市",
|
||||
"city": "北京市",
|
||||
"area": "海淀区",
|
||||
"street": "西三旗街道",
|
||||
"house": "海淀区清河龙岗路51号清润家园小区 永辉",
|
||||
"phone": "13800000138",
|
||||
"lat": 40.030613,
|
||||
"lng": 116.354787
|
||||
},
|
||||
"order_pattern": 2,
|
||||
"service_trans_prefer": "SFTC"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user