mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
feat(wxapi): 随官方更新自定义交易组件获取售后详情接口响应模型
This commit is contained in:
parent
00bddfb0b9
commit
161b7ee880
@ -13,19 +13,33 @@
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product_id")]
|
||||
public long ProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商家自定义商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("out_product_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("out_product_id")]
|
||||
public string? OutProductId { get; set; }
|
||||
public string OutProductId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
public long SKUId { 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; }
|
||||
public string OutSKUId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置参与售后的商品数量。
|
||||
@ -66,6 +80,40 @@
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long ReturnTimestamp { get; set; }
|
||||
}
|
||||
|
||||
public class Media
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("type")]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置缩略图 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("thumb_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("thumb_url")]
|
||||
public string? ThumbnailUrl { get; set; }
|
||||
}
|
||||
|
||||
public class Refund
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置退款单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_id")]
|
||||
public string RefundId { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -110,6 +158,13 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户 OpenId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("openid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("openid")]
|
||||
public string OpenId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款金额(单位:分)。
|
||||
/// </summary>
|
||||
@ -131,6 +186,13 @@
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_reason")]
|
||||
public string RefundReason { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退货单号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("return_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_id")]
|
||||
public string? ReturnId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间。
|
||||
/// </summary>
|
||||
@ -160,6 +222,20 @@
|
||||
[Newtonsoft.Json.JsonProperty("return_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("return_info")]
|
||||
public Types.Return? Return { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置退款信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("refund_pay_detail")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("refund_pay_detail")]
|
||||
public Types.Refund? Refund { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置附件列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("media_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("media_list")]
|
||||
public Types.Media[]? MediaList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,28 +1,38 @@
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"after_sales_order": {
|
||||
"out_aftersale_id": "aso_123124341",
|
||||
"aftersale_id": 123,
|
||||
"out_order_id": "order_312312",
|
||||
"order_id": 456,
|
||||
"product_info": {
|
||||
"out_product_id": "123",
|
||||
"out_sku_id": "12345",
|
||||
"product_cnt": 1
|
||||
},
|
||||
"type": 1,
|
||||
"return_info": {
|
||||
"order_return_time": "1628480465",
|
||||
"delivery_id": "sf",
|
||||
"waybill_id": "sf12314789",
|
||||
"delivery_name": "顺丰"
|
||||
},
|
||||
"orderamt": 100,
|
||||
"refund_reason_type": 1,
|
||||
"refund_reason": "买错码数",
|
||||
"status": 1,
|
||||
"create_time": "1628480465",
|
||||
"update_time": "1628480465"
|
||||
}
|
||||
}
|
||||
{
|
||||
"errcode": 0,
|
||||
"errmsg": "ok",
|
||||
"after_sales_order": {
|
||||
"out_aftersale_id": "",
|
||||
"aftersale_id": 4000000001596225,
|
||||
"out_order_id": "220425-16372977194524",
|
||||
"order_id": 3302853640130003968,
|
||||
"product_info": {
|
||||
"out_product_id": "410",
|
||||
"product_id": 0,
|
||||
"out_sku_id": "730",
|
||||
"sku_id": 0,
|
||||
"product_cnt": 1
|
||||
},
|
||||
"type": 1,
|
||||
"return_info": {
|
||||
"order_return_time": 0,
|
||||
"waybill_id": ""
|
||||
},
|
||||
"orderamt": 2,
|
||||
"refund_reason_type": 3,
|
||||
"refund_reason": "不想要了",
|
||||
"media_list": [{
|
||||
"type": 1,
|
||||
"url": "****",
|
||||
"thumb_url": "****"
|
||||
}],
|
||||
"status": 2,
|
||||
"create_time": "1650876295006",
|
||||
"update_time": "1650876295006",
|
||||
"openid": "oOYv50JOfwNY56q8hTNSLSFvYUDg",
|
||||
"refund_pay_detail": {
|
||||
"refund_id": ""
|
||||
},
|
||||
"return_id": ""
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user