mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(wxapi): 新增视频号小店电子面单打印管理相关接口
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /card/paygiftcard/add 接口的响应。</para>
|
||||
@@ -58,13 +58,13 @@
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fail_mchid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fail_mchid_list")]
|
||||
public Types.Merchant[] FailMerchantList { get; set; } = default!;
|
||||
public Types.Merchant[] FailedMerchantList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置设置成功的微信商户号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("succ_mchid_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("succ_mchid_list")]
|
||||
public string[] SuccessMerchantIdList { get; set; } = default!;
|
||||
public string[] SuccessfulMerchantIdList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,53 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/batchprint 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderBatchPrintRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillOrderBatchPrintRequest, ChannelsECLogisticsEWaybillOrderBatchPrintResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class PrintRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_id")]
|
||||
public string EWaybillOrderId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string WaybillId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是补打单。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("re_print")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("re_print")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsReprint { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置打印请求列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("req_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("req_list")]
|
||||
public IList<Types.PrintRequest> PrintRequestList { get; set; } = new List<Types.PrintRequest>();
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/batchprint 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderBatchPrintResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置成功的电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("succ_ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("succ_ewaybill_order_id")]
|
||||
public string[]? SuccessfulEWaybillOrderIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置失败的电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fail_ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fail_ewaybill_order_id")]
|
||||
public string[]? FailedEWaybillOrderIdList { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/print 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderPrintRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillOrderPrintRequest, ChannelsECLogisticsEWaybillOrderPrintResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_id")]
|
||||
public string EWaybillOrderId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string WaybillId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否是补打单。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("re_print")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("re_print")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalBooleanConverter))]
|
||||
public bool IsReprint { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/print 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderPrintResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/print/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillPrintGetRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillPrintGetRequest, ChannelsECLogisticsEWaybillPrintGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_id")]
|
||||
public string EWaybillOrderId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("template_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("template_id")]
|
||||
public string TemplateId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/print/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillPrintGetResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置打印报文信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("print_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("print_info")]
|
||||
public string? PrintInfo { get; set; } = default!;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user