From 877c998e48cba60aff3dee1da936beb9b5aac9aa Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 18 Sep 2021 14:33:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(wxapi):=20=E6=96=B0=E5=A2=9E=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E4=BA=A4=E6=98=93=E7=BB=84=E4=BB=B6=E6=8C=89?= =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E5=91=98=E6=88=96=E5=88=86=E4=BA=AB=E8=80=85?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=AE=A2=E5=8D=95=E7=9B=B8=E5=85=B3=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WechatApiClientExecuteShopExtensions.cs | 44 ++++++++++ .../Order/ShopOrderGetListByFinderRequest.cs | 57 +++++++++++++ .../Order/ShopOrderGetListByFinderResponse.cs | 32 ++++++++ .../Order/ShopOrderGetListBySharerRequest.cs | 50 +++++++++++ .../Order/ShopOrderGetListBySharerResponse.cs | 32 ++++++++ .../Models/Shop/Order/ShopOrderGetResponse.cs | 82 +++++++++++++++++++ .../ShopOrderGetListByFinderRequest.json | 8 ++ .../ShopOrderGetListByFinderResponse.json | 57 +++++++++++++ .../ShopOrderGetListBySharerRequest.json | 7 ++ .../ShopOrderGetListBySharerResponse.json | 58 +++++++++++++ 10 files changed, 427 insertions(+) create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerResponse.json diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteShopExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteShopExtensions.cs index 54996ccb..5b745236 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteShopExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteShopExtensions.cs @@ -485,6 +485,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// 异步调用 [POST] /shop/scene/check 接口。 /// REF: https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/API/order/check_scene.html + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/check_scene.html /// /// /// @@ -505,6 +506,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// 异步调用 [POST] /shop/order/add 接口。 /// REF: https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/API/order/add_order.html + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/add_order.html /// /// /// @@ -525,6 +527,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// 异步调用 [POST] /shop/order/pay 接口。 /// REF: https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/API/order/pay_order.html + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/pay_order.html /// /// /// @@ -545,6 +548,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api /// /// 异步调用 [POST] /shop/order/get 接口。 /// REF: https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/API/order/get_order.html + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/get_order.html /// /// /// @@ -561,6 +565,46 @@ namespace SKIT.FlurlHttpClient.Wechat.Api return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); } + + /// + /// 异步调用 [POST] /shop/order/get_list_by_finder 接口。 + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/get_order_list_by_finder.html + /// + /// + /// + /// + /// + public static async Task ExecuteShopOrderGetListByFinderAsync(this WechatApiClient client, Models.ShopOrderGetListByFinderRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateRequest(request, HttpMethod.Post, "shop", "order", "get_list_by_finder") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } + + /// + /// 异步调用 [POST] /shop/order/get_list_by_sharer 接口。 + /// REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/get_order_list_by_sharer.html + /// + /// + /// + /// + /// + public static async Task ExecuteShopOrderGetListBySharerAsync(this WechatApiClient client, Models.ShopOrderGetListBySharerRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateRequest(request, HttpMethod.Post, "shop", "order", "get_list_by_sharer") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendRequestWithJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken); + } #endregion #region Delivery diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderRequest.cs new file mode 100644 index 00000000..b7d3452e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderRequest.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /shop/order/get_list_by_finder 接口的请求。 + /// + public class ShopOrderGetListByFinderRequest : WechatApiRequest + { + /// + /// 获取或设置支付时间的开始时间。 + /// + [Newtonsoft.Json.JsonProperty("start_pay_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("start_pay_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))] + public DateTimeOffset? StartPayTime { get; set; } + + /// + /// 获取或设置支付时间的结束时间。 + /// + [Newtonsoft.Json.JsonProperty("end_pay_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("end_pay_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))] + public DateTimeOffset? EndPayTime { get; set; } + + /// + /// 获取或设置推广员用户名。 + /// + [Newtonsoft.Json.JsonProperty("finder_username")] + [System.Text.Json.Serialization.JsonPropertyName("finder_username")] + public string? FinderUsername { get; set; } + + /// + /// 获取或设置推广员备注。 + /// + [Newtonsoft.Json.JsonProperty("finder_remark")] + [System.Text.Json.Serialization.JsonPropertyName("finder_remark")] + public string? FinderRemark { get; set; } + + /// + /// 获取或设置分页页数(从 1 开始)。 + /// + [Newtonsoft.Json.JsonProperty("page")] + [System.Text.Json.Serialization.JsonPropertyName("page")] + public int Page { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int Limit { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderResponse.cs new file mode 100644 index 00000000..4469516c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListByFinderResponse.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /shop/order/get_list_by_finder 接口的响应。 + /// + public class ShopOrderGetListByFinderResponse : WechatApiResponse + { + public static class Types + { + public class Order : ShopOrderGetResponse.Types.Order + { + } + } + + /// + /// 获取或设置订单列表。 + /// + [Newtonsoft.Json.JsonProperty("orders")] + [System.Text.Json.Serialization.JsonPropertyName("orders")] + public Types.Order[] OrderList { get; set; } = default!; + + /// + /// 获取或设置订单总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_num")] + [System.Text.Json.Serialization.JsonPropertyName("total_num")] + public int TotalCount { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerRequest.cs new file mode 100644 index 00000000..534cb2a2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerRequest.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /shop/order/get_list_by_sharer 接口的请求。 + /// + public class ShopOrderGetListBySharerRequest : WechatApiRequest + { + /// + /// 获取或设置支付时间的开始时间。 + /// + [Newtonsoft.Json.JsonProperty("start_pay_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("start_pay_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))] + public DateTimeOffset? StartPayTime { get; set; } + + /// + /// 获取或设置支付时间的结束时间。 + /// + [Newtonsoft.Json.JsonProperty("end_pay_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("end_pay_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))] + public DateTimeOffset? EndPayTime { get; set; } + + /// + /// 获取或设置分享者的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置分页页数(从 1 开始)。 + /// + [Newtonsoft.Json.JsonProperty("page")] + [System.Text.Json.Serialization.JsonPropertyName("page")] + public int Page { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int Limit { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerResponse.cs new file mode 100644 index 00000000..8933af5a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetListBySharerResponse.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /shop/order/get_list_by_sharer 接口的响应。 + /// + public class ShopOrderGetListBySharerResponse : WechatApiResponse + { + public static class Types + { + public class Order : ShopOrderGetResponse.Types.Order + { + } + } + + /// + /// 获取或设置订单列表。 + /// + [Newtonsoft.Json.JsonProperty("orders")] + [System.Text.Json.Serialization.JsonPropertyName("orders")] + public Types.Order[] OrderList { get; set; } = default!; + + /// + /// 获取或设置订单总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_num")] + [System.Text.Json.Serialization.JsonPropertyName("total_num")] + public int TotalCount { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetResponse.cs index c91907b8..067da447 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Order/ShopOrderGetResponse.cs @@ -61,6 +61,34 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("sale_price")] [System.Text.Json.Serialization.JsonPropertyName("sale_price")] public int SalePrice { get; set; } + + /// + /// 获取或设置均摊价格(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("real_price")] + [System.Text.Json.Serialization.JsonPropertyName("real_price")] + public int RealPrice { get; set; } + + /// + /// 获取或设置小程序商品页面标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置小程序商品页面路径。 + /// + [Newtonsoft.Json.JsonProperty("path")] + [System.Text.Json.Serialization.JsonPropertyName("path")] + public string PagePath { get; set; } = default!; + + /// + /// 获取或设置商品头图 URL。 + /// + [Newtonsoft.Json.JsonProperty("head_image")] + [System.Text.Json.Serialization.JsonPropertyName("head_image")] + public string HeadImageUrl { get; set; } = default!; } public class Payment @@ -72,6 +100,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("pay_method")] public string PayMethod { get; set; } = default!; + /// + /// 获取或设置支付方式类型。 + /// + [Newtonsoft.Json.JsonProperty("pay_method_type")] + [System.Text.Json.Serialization.JsonPropertyName("pay_method_type")] + public int PayMethodType { get; set; } + /// /// 获取或设置预支付单号。 /// @@ -188,6 +223,46 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("delivery_list")] public Types.DeliveryDetail[]? DeliveryDetailList { get; set; } } + + public class Promotion + { + /// + /// 获取或设置推广员用户名。 + /// + [Newtonsoft.Json.JsonProperty("finder_username")] + [System.Text.Json.Serialization.JsonPropertyName("finder_username")] + public string? FinderUsername { get; set; } + + /// + /// 获取或设置推广员昵称。 + /// + [Newtonsoft.Json.JsonProperty("finder_nickname")] + [System.Text.Json.Serialization.JsonPropertyName("finder_nickname")] + public string? FinderNickname { get; set; } + + /// + /// 获取或设置推广员备注。 + /// + [Newtonsoft.Json.JsonProperty("finder_remark")] + [System.Text.Json.Serialization.JsonPropertyName("finder_remark")] + public string? FinderRemark { get; set; } + + /// + /// 获取或设置分享者的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置直播开始时间。 + /// + [Newtonsoft.Json.JsonProperty("live_start_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.RegularNullableDateTimeOffsetConverter))] + [System.Text.Json.Serialization.JsonPropertyName("live_start_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.RegularNullableDateTimeOffsetConverter))] + public DateTimeOffset? LiveStartTime { get; set; } + } } /// @@ -224,6 +299,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("delivery_detail")] [System.Text.Json.Serialization.JsonPropertyName("delivery_detail")] public Types.Delivery? Delivery { get; set; } + + /// + /// 获取或设置推广信息。 + /// + [Newtonsoft.Json.JsonProperty("promotion_info")] + [System.Text.Json.Serialization.JsonPropertyName("promotion_info")] + public Types.Promotion? Promotion { get; set; } } } diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderRequest.json new file mode 100644 index 00000000..9298bf60 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderRequest.json @@ -0,0 +1,8 @@ +{ + "start_pay_time": "2020-03-25 12:05:25", + "end_pay_time": "2020-04-25 12:05:25", + "finder_username": "FINDER_USERNAME", + "finder_remark": "REMARK", + "page": 1, + "page_size": 10 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderResponse.json new file mode 100644 index 00000000..210244fc --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListByFinderResponse.json @@ -0,0 +1,57 @@ +{ + "errcode": 0, + "errmsg": "ok", + "orders": [ + { + "order_id": 123455, + "out_order_id": "xxxxx", + "status": 20, + "path": "/pages/order.html?out_order_id=xxxxx", + "order_detail": { + "promotion_info": { + "finder_username": "FINDER_USERNAME", + "finder_nickname": "FINDER_NICKNAME", + "finder_remark": "FINDER_REMARK" + }, + "product_infos": [ + { + "out_product_id": "12345", + "out_sku_id": "23456", + "product_cnt": 10, + "sale_price": 200, + "path": "pages/productDetail/productDetail?productId=2176180", + "title": "标题", + "head_image": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg", + "real_price": 200 + } + ], + "pay_info": { + "pay_method": "微信支付", + "prepay_id": "42526234625", + "prepay_time": "2020-03-25 14:04:25", + "transaction_id": "131456479687", + "pay_time": "2020-03-25 14:05:25", + "pay_method_type": 0 + }, + "price_info": { + "order_price": 1600, + "freight": 500, + "discounted_price": 1000, + "additional_price": 100, + "additional_remarks": "税费" + }, + "delivery_detail": { + "delivery_type": 1, + "finish_all_delivery": 1, + "delivery_list": [ + { + "waybill_id": "SFXXXX", + "delivery_id": "SF" + } + ] + } + } + } + ], + "total_num": 20 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerRequest.json new file mode 100644 index 00000000..214392fa --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerRequest.json @@ -0,0 +1,7 @@ +{ + "start_pay_time": "2020-03-25 12:05:25", + "end_pay_time": "2020-04-25 12:05:25", + "sharer_openid": "OPENID", + "page": 1, + "page_size": 10 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerResponse.json new file mode 100644 index 00000000..7e0bfe67 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Shop/Order/ShopOrderGetListBySharerResponse.json @@ -0,0 +1,58 @@ +{ + "errcode": 0, + "errmsg": "ok", + "orders": [ + { + "order_id": 123455, + "out_order_id": "xxxxx", + "status": 20, + "path": "/pages/order.html?out_order_id=xxxxx", + "order_detail": { + "promotion_info": { + "finder_username": "FINDER_USERNAME", + "finder_nickname": "FINDER_NICKNAME", + "sharer_openid": "OPENID", + "live_start_time": "2020-04-25 12:05:25" + }, + "product_infos": [ + { + "out_product_id": "12345", + "out_sku_id": "23456", + "product_cnt": 10, + "sale_price": 200, + "path": "pages/productDetail/productDetail?productId=2176180", + "title": "标题", + "head_image": "http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg", + "real_price": 200 + } + ], + "pay_info": { + "pay_method": "微信支付", + "prepay_id": "42526234625", + "prepay_time": "2020-03-25 14:04:25", + "transaction_id": "131456479687", + "pay_time": "2020-03-25 14:05:25", + "pay_method_type": 0 + }, + "price_info": { + "order_price": 1600, + "freight": 500, + "discounted_price": 1000, + "additional_price": 100, + "additional_remarks": "税费" + }, + "delivery_detail": { + "delivery_type": 1, + "finish_all_delivery": 1, + "delivery_list": [ + { + "waybill_id": "SFXXXX", + "delivery_id": "SF" + } + ] + } + } + } + ], + "total_num": 20 +} \ No newline at end of file