mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 13:03:43 +08:00
feat(wxapi): 新增小程序同城配送相关接口
This commit is contained in:
@@ -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!;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user