mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-15 23:13:32 +08:00
feat(wxapi): 新增自定义交易组件订单回调通知事件模型
* feat(wxapi): 新增自定义交易组件订单回调通知事件模型 * fix(wxapi): 修复自定义交易组件订单发货接口请求模型定义问题 * fix(wxapi): 更新自定义交易组件售后列表接口响应模型定义问题
This commit is contained in:
parent
eff147b5f6
commit
62f242a714
3
.gitignore
vendored
3
.gitignore
vendored
@ -190,4 +190,5 @@ ModelManifest.xml
|
||||
|
||||
# Visual Studio temporary files
|
||||
.vs
|
||||
*.nupkg
|
||||
*.nupkg
|
||||
.idea
|
@ -0,0 +1,39 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.open_product_order_cancel 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/callback/order_cancel.html </para>
|
||||
/// </summary>
|
||||
public class OpenProductOrderCancelEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
[System.Xml.Serialization.XmlElement("out_order_id")]
|
||||
public string OutOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Xml.Serialization.XmlElement("order_id")]
|
||||
public long OrderId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
[System.Xml.Serialization.XmlElement("order_info")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.open_product_order_confirm 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/callback/order_confirm.html </para>
|
||||
/// </summary>
|
||||
public class OpenProductOrderConfirmEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
[System.Xml.Serialization.XmlElement("out_order_id")]
|
||||
public string OutOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Xml.Serialization.XmlElement("order_id")]
|
||||
public long OrderId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
[System.Xml.Serialization.XmlElement("order_info")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.open_product_order_pay 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/callback/order_success.html </para>
|
||||
/// </summary>
|
||||
public class OpenProductOrderPayEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
[System.Xml.Serialization.XmlElement("out_order_id")]
|
||||
public string OutOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Xml.Serialization.XmlElement("order_id")]
|
||||
public long OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信支付交易单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("transaction_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("transaction_id")]
|
||||
[System.Xml.Serialization.XmlElement("transaction_id")]
|
||||
public string TransactionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置支付时间字符串(格式:yyyy-MM-dd HH:mm:ss)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pay_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pay_time")]
|
||||
[System.Xml.Serialization.XmlElement("pay_time")]
|
||||
public string PayTimeString { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
[System.Xml.Serialization.XmlElement("order_info")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.open_product_order_refund 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/callback/order_refund.html </para>
|
||||
/// </summary>
|
||||
public class OpenProductOrderRefundEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
[System.Xml.Serialization.XmlElement("out_order_id")]
|
||||
public string OutOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Xml.Serialization.XmlElement("order_id")]
|
||||
public long OrderId { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
[System.Xml.Serialization.XmlElement("order_info")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.open_product_order_settle 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/callback/order_settle.html </para>
|
||||
/// </summary>
|
||||
public class OpenProductOrderSettleEvent : WechatApiEvent, WechatApiEvent.Serialization.IJsonSerializable, WechatApiEvent.Serialization.IXmlSerializable
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
[System.Xml.Serialization.XmlElement("out_order_id")]
|
||||
public string OutOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
[System.Xml.Serialization.XmlElement("order_id")]
|
||||
public long OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置结算单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("settle_no")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("settle_no")]
|
||||
[System.Xml.Serialization.XmlElement("settle_no")]
|
||||
public string SettleNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置结算金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("amount")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("amount")]
|
||||
[System.Xml.Serialization.XmlElement("amount")]
|
||||
public int Amount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置结算时间字符串(格式:yyyy-MM-dd HH:mm:ss)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("settle_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("settle_time")]
|
||||
[System.Xml.Serialization.XmlElement("settle_time")]
|
||||
public string SettleTimeString { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_info")]
|
||||
[System.Xml.Serialization.XmlElement("order_info")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
@ -11,6 +12,33 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
public class Delivery
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
/// <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("product_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递公司 ID。
|
||||
/// </summary>
|
||||
@ -24,6 +52,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[Newtonsoft.Json.JsonProperty("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string? WaybillId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info_list")]
|
||||
public IList<Types.Product> ProductList { get; set; } = new List<Types.Product>();
|
||||
}
|
||||
}
|
||||
|
||||
@ -48,6 +83,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_list")]
|
||||
public IList<Types.Delivery> DeliveryList { get; set; } = new List<Types.Delivery>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否发货完成。
|
||||
/// </summary>
|
||||
@ -58,10 +100,12 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
public bool IsFinishAll { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置快递列表。
|
||||
/// 获取或设置完成发货时间.
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("delivery_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("delivery_list")]
|
||||
public IList<Types.Delivery> DeliveryList { get; set; } = new List<Types.Delivery>();
|
||||
[Newtonsoft.Json.JsonProperty("ship_done_time")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularDateTimeOffsetConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ship_done_time")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularDateTimeOffsetConverter))]
|
||||
public DateTimeOffset? ShipDoneTime { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -5,170 +5,13 @@
|
||||
/// </summary>
|
||||
public class ShopECAftersaleGetListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AftersaleOrder
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
/// <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("product_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
|
||||
public class Return
|
||||
{
|
||||
/// <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("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string WaybillId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_return_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_return_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long ReturnTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售后单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("aftersale_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("aftersale_id")]
|
||||
public long AftersaleOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义售后单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_aftersale_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_aftersale_id")]
|
||||
public string OutAftersaleOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public long OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
public string OutOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("orderamt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("orderamt")]
|
||||
public int RefundAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款原因类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_reason_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_reason_type")]
|
||||
public int RefundReasonType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_reason")]
|
||||
public string RefundReason { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long CreateTimeTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("update_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long UpdateTimeTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info")]
|
||||
public Types.Product Product { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_info")]
|
||||
public Types.Return? Return { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售后单列表。
|
||||
/// 获取或设置售后单号列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("after_sales_orders")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("after_sales_orders")]
|
||||
public Types.AftersaleOrder[] AftersaleOrderList { get; set; } = default!;
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.TextualLongArrayConverter))]
|
||||
public long[] AftersaleOrderIdList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否还有更多。
|
||||
|
@ -7,8 +7,159 @@
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class AftersaleOrder : ShopECAftersaleGetListResponse.Types.AftersaleOrder
|
||||
public class AftersaleOrder
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
/// <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("product_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_cnt")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
|
||||
public class Return
|
||||
{
|
||||
/// <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("waybill_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("waybill_id")]
|
||||
public string WaybillId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_return_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_return_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long ReturnTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售后单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("aftersale_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("aftersale_id")]
|
||||
public long AftersaleOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义售后单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_aftersale_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_aftersale_id")]
|
||||
public string OutAftersaleOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置订单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("order_id")]
|
||||
public long OrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义订单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_order_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_order_id")]
|
||||
public string OutOrderId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("orderamt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("orderamt")]
|
||||
public int RefundAmount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款原因类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_reason_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_reason_type")]
|
||||
public int RefundReasonType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_reason")]
|
||||
public string RefundReason { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long CreateTimeTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置更新时间。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("update_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("update_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long UpdateTimeTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_info")]
|
||||
public Types.Product Product { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_info")]
|
||||
public Types.Return? Return { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
"order_id": 123456,
|
||||
"out_order_id": "xxxxx",
|
||||
"openid": "oTVP50O53a7jgmawAmxKukNlq3XI",
|
||||
@ -6,7 +6,15 @@
|
||||
"delivery_list": [
|
||||
{
|
||||
"delivery_id": "SF",
|
||||
"waybill_id": "23424324253"
|
||||
"waybill_id": "23424324253",
|
||||
"product_info_list": [
|
||||
{
|
||||
"out_product_id": "1",
|
||||
"out_sku_id": "2",
|
||||
"product_cnt": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ship_done_time": "2022-01-01 10:24:00"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user