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:
@@ -0,0 +1,51 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/account/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillAccountGetRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillAccountGetRequest, ChannelsECLogisticsEWaybillAccountGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string? DeliveryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("acct_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("acct_id")]
|
||||
public string? AccountId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int? Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否需要查询库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("need_balance")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("need_balance")]
|
||||
public bool RequireBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页起始位置。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("offset")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("offset")]
|
||||
public int? Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// <para>默认值:10</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int Limit { get; set; } = 10;
|
||||
}
|
||||
}
|
@@ -0,0 +1,378 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/account/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillAccountGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Account
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class SiteInfo
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Address
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置国家编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("country_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("country_code")]
|
||||
public string CountryCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置省份编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("province_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("province_code")]
|
||||
public string ProvinceCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置省份名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("province_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("province_name")]
|
||||
public string ProvinceName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置城市编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("city_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("city_code")]
|
||||
public string CityCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置城市名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("city_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("city_name")]
|
||||
public string CityName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置区县编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("district_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("district_code")]
|
||||
public string DistrictCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置区县名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("district_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("district_name")]
|
||||
public string DistrictName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置街道编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("street_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("street_code")]
|
||||
public string StreetCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置街道名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("street_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("street_name")]
|
||||
public string StreetName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("detail_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("detail_address")]
|
||||
public string DetailAddress { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class Contact
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置联系人。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置手机号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mobile")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mobile")]
|
||||
public string MobileNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电话号码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("phone")]
|
||||
public string PhoneNumber { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点运营状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_status")]
|
||||
public int SiteStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_code")]
|
||||
public string SiteCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_name")]
|
||||
public string SiteName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点全名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_fullname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_fullname")]
|
||||
public string SiteFullName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public Types.Address Address { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系方式信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("contact")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("contact")]
|
||||
public Types.Contact Contact { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class ShareInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_code")]
|
||||
public string SiteCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_name")]
|
||||
public string SiteName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置共享 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("share_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("share_id")]
|
||||
public string ShareId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_id")]
|
||||
public string ShopId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("acct_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("acct_id")]
|
||||
public string AccountId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发起共享方店铺名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置月结账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("monthly_card")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("monthly_card")]
|
||||
public string? MonthlyCard { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("update_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
|
||||
public long UpdateTimestamp { get; set; }
|
||||
}
|
||||
|
||||
public class SenderAddress
|
||||
{
|
||||
/// <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("county")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("county")]
|
||||
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("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string DetailAddress { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_id")]
|
||||
public string ShopId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("acct_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("acct_id")]
|
||||
public string AccountId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单账号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("acct_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("acct_type")]
|
||||
public int AccountType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置面单余额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("available")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("available")]
|
||||
public int AvailableBalance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累积已取单。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("allocated")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("allocated")]
|
||||
public int AllocatedCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累积已回收。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("recycled")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("recycled")]
|
||||
public int RecycledCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置累计已取消。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cancel")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cancel")]
|
||||
public int CancelCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置月结账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("monthly_card")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("monthly_card")]
|
||||
public string? MonthlyCard { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_info")]
|
||||
public Types.SiteInfo? SiteInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置共享账号信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("share")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("share")]
|
||||
public Types.ShareInfo? ShareInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置发货地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sender_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sender_address")]
|
||||
public Types.SenderAddress? SenderAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置账号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("account_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("account_list")]
|
||||
public Types.Account[] AccountList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_num")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/delivery/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillDeliveryGetRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillDeliveryGetRequest, ChannelsECLogisticsEWaybillDeliveryGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int? Status { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/delivery/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillDeliveryGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Delivery
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_name")]
|
||||
public string DeliveryName { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("list")]
|
||||
public Types.Delivery[] DeliveryList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_id")]
|
||||
public string ShopId { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/cancel 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderCancelRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillOrderCancelRequest, ChannelsECLogisticsEWaybillOrderCancelResponse>
|
||||
{
|
||||
/// <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;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/cancel 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderCancelResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司错误信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_error_msg")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_error_msg")]
|
||||
public string? DeliveryErrorMessage { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,186 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/create 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderCreateRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillOrderCreateRequest, ChannelsECLogisticsEWaybillOrderCreateResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Address : ChannelsECLogisticsEWaybillOrderPrecreateRequest.Types.Address
|
||||
{
|
||||
}
|
||||
|
||||
public class Order : ChannelsECLogisticsEWaybillOrderPrecreateRequest.Types.Order
|
||||
{
|
||||
public static new class Types
|
||||
{
|
||||
public class Goods : ChannelsECLogisticsEWaybillOrderPrecreateRequest.Types.Order.Types.Goods
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_product_id")]
|
||||
public string? OutProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_sku_id")]
|
||||
public string? OutSKUId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义商品详情。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_goods_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_goods_info")]
|
||||
public string? OutGoodsInfo { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class OrderVas
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置增值服务类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("vas_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("vas_type")]
|
||||
public string VasType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置增值服务描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("vas_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("vas_detail")]
|
||||
public string? VasDetail { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置增值服务值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("vas_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("vas_value")]
|
||||
public string? VasValue { get; set; }
|
||||
}
|
||||
|
||||
public class EWaybillExtra
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置温层信息类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("temperature_range")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("temperature_range")]
|
||||
public int? TemperatureRangeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置扩展字段。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonExtensionData]
|
||||
[System.Text.Json.Serialization.JsonExtensionData]
|
||||
public IDictionary<string, object>? ExtensionData { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <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("site_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_code")]
|
||||
public string? SiteCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_id")]
|
||||
public string ShopId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_acct_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_acct_id")]
|
||||
public string AccountId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置面单模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("template_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("template_id")]
|
||||
public string? TemplateId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置寄件人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sender")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sender")]
|
||||
public Types.Address Sender { get; set; } = new Types.Address();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver")]
|
||||
public Types.Address Receiver { get; set; } = new Types.Address();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货地址信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_address")]
|
||||
public Types.Address? ReturnAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_order_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_order_list")]
|
||||
public IList<Types.Order> OrderList { get; set; } = new List<Types.Order>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_type")]
|
||||
public int? OrderType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置增值服务列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_vas_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_vas_list")]
|
||||
public IList<Types.OrderVas>? OrderVasList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置面单补充信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ext_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ext_info")]
|
||||
public Types.EWaybillExtra? EWaybillExtra { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/create 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderCreateResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_id")]
|
||||
public string EWaybillOrderId { 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("delivery_error_msg")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_error_msg")]
|
||||
public string? DeliveryErrorMessage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置打印报文信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("print_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("print_info")]
|
||||
public string? PrintInfo { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/get 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderGetRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillOrderGetRequest, ChannelsECLogisticsEWaybillOrderGetResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_id")]
|
||||
public string EWaybillOrderId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,250 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/get 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class EWaybillOrder
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Address
|
||||
{
|
||||
/// <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("county")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("county")]
|
||||
public string District { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置街道。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("street")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("street")]
|
||||
public string? Street { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string DetailAddress { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系人。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mobile")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mobile")]
|
||||
public string MobileNumber { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class Order
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Goods
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long? ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
public long? SKUId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("good_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("good_name")]
|
||||
public string GoodsName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品个数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("good_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("good_count")]
|
||||
public int GoodsCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_order_id")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringReadOnlyConverter))]
|
||||
public string? OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_list")]
|
||||
public Types.Goods[] GoodsList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代发的订单密文。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_code")]
|
||||
public string? EWaybillOrderCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代发的订单所属店铺 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")]
|
||||
public string? EWaybillOrderAppId { get; set; }
|
||||
}
|
||||
|
||||
public class Path
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置轨迹状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置轨迹描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("desc")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("update_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
|
||||
public long UpdateTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_id")]
|
||||
public string EWaybillOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string WaybillId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_code")]
|
||||
public string? SiteCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_id")]
|
||||
public string ShopId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_acct_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_acct_id")]
|
||||
public string AccountId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置寄件人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sender")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sender")]
|
||||
public Types.Address Sender { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver")]
|
||||
public Types.Address Receiver { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_order_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_order_list")]
|
||||
public Types.Order[] OrderList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置轨迹列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("path_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("path_info")]
|
||||
public Types.Path[] PathList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
public Types.EWaybillOrder EWaybillOrder { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,188 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/precreate 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderPrecreateRequest : WechatApiRequest, IInferable<ChannelsECLogisticsEWaybillOrderPrecreateRequest, ChannelsECLogisticsEWaybillOrderPrecreateResponse>
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Address
|
||||
{
|
||||
/// <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("county")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("county")]
|
||||
public string District { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置街道。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("street")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("street")]
|
||||
public string? Street { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置详细地址。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("address")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("address")]
|
||||
public string DetailAddress { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系人。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("mobile")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("mobile")]
|
||||
public string MobileNumber { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class Order
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Goods
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long? ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
public long? SKUId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("good_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("good_name")]
|
||||
public string GoodsName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品个数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("good_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("good_count")]
|
||||
public int GoodsCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_order_id")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumericalStringConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_order_id")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumericalStringConverter))]
|
||||
public string? OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("goods_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("goods_list")]
|
||||
public IList<Types.Goods> GoodsList { get; set; } = new List<Types.Goods>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代发的订单密文。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_code")]
|
||||
public string? EWaybillOrderCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置代发的订单所属店铺 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")]
|
||||
public string? EWaybillOrderAppId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_id")]
|
||||
public string DeliveryId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置网点编码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("site_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("site_code")]
|
||||
public string? SiteCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_id")]
|
||||
public string ShopId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单账号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_acct_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_acct_id")]
|
||||
public string AccountId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置寄件人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sender")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sender")]
|
||||
public Types.Address Sender { get; set; } = new Types.Address();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置收件人信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("receiver")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("receiver")]
|
||||
public Types.Address Receiver { get; set; } = new Types.Address();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ec_order_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ec_order_list")]
|
||||
public IList<Types.Order> OrderList { get; set; } = new List<Types.Order>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/logistics/ewaybill/biz/order/precreate 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECLogisticsEWaybillOrderPrecreateResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置电子面单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ewaybill_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_id")]
|
||||
public string EWaybillOrderId { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/order/get 接口的响应。</para>
|
||||
|
Reference in New Issue
Block a user