OrderResult.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. #region Apache License Version 2.0
  2. /*----------------------------------------------------------------
  3. Copyright 2019 Jeffrey Su & Suzhou Senparc Network Technology Co.,Ltd.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software distributed under the
  8. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  9. either express or implied. See the License for the specific language governing permissions
  10. and limitations under the License.
  11. Detail: https://github.com/JeffreySu/WeiXinMPSDK/blob/master/license.md
  12. ----------------------------------------------------------------*/
  13. #endregion Apache License Version 2.0
  14. /*----------------------------------------------------------------
  15. Copyright (C) 2019 Senparc
  16. 文件名:OrderResult.cs
  17. 文件功能描述:根据订单ID获取订单详情返回结果
  18. 创建标识:Senparc - 2015828
  19. 修改标识:Senparc - 20160127
  20. 修改描述:v13.5.6 添加receiver_zone属性。感谢@nsoff
  21. ----------------------------------------------------------------*/
  22. using System.Collections.Generic;
  23. using Senparc.Weixin.Entities;
  24. namespace Senparc.Weixin.MP.AdvancedAPIs.MerChant
  25. {
  26. /// <summary>
  27. /// 根据订单ID获取订单详情返回结果
  28. /// </summary>
  29. public class GetByIdOrderResult : WxJsonResult
  30. {
  31. /// <summary>
  32. /// 订单详情
  33. /// </summary>
  34. public Order order { get; set; }
  35. }
  36. public class Order
  37. {
  38. /// <summary>
  39. /// 订单ID
  40. /// </summary>
  41. public string order_id { get; set; }
  42. /// <summary>
  43. /// 订单状态
  44. /// </summary>
  45. public int order_status { get; set; }
  46. /// <summary>
  47. /// 订单总价格(单位 : 分)
  48. /// </summary>
  49. public int order_total_price { get; set; }
  50. /// <summary>
  51. /// 订单创建时间
  52. /// </summary>
  53. public string order_create_time { get; set; }
  54. /// <summary>
  55. /// 订单运费价格(单位 : 分)
  56. /// </summary>
  57. public int order_express_price { get; set; }
  58. /// <summary>
  59. /// 买家微信OPENID
  60. /// </summary>
  61. public string buyer_openid { get; set; }
  62. /// <summary>
  63. /// 买家微信昵称
  64. /// </summary>
  65. public string buyer_nick { get; set; }
  66. /// <summary>
  67. /// 收货人姓名
  68. /// </summary>
  69. public string receiver_name { get; set; }
  70. /// <summary>
  71. /// 收货地址省份
  72. /// </summary>
  73. public string receiver_province { get; set; }
  74. /// <summary>
  75. /// 收货地址城市
  76. /// </summary>
  77. public string receiver_city { get; set; }
  78. /// <summary>
  79. /// 收货详细地址
  80. /// </summary>
  81. public string receiver_address { get; set; }
  82. /// <summary>
  83. /// 收货人移动电话
  84. /// </summary>
  85. public string receiver_mobile { get; set; }
  86. /// <summary>
  87. /// 收货人固定电话
  88. /// </summary>
  89. public string receiver_phone { get; set; }
  90. /// <summary>
  91. /// 商品ID
  92. /// </summary>
  93. public string product_id { get; set; }
  94. /// <summary>
  95. /// 商品名称
  96. /// </summary>
  97. public string product_name { get; set; }
  98. /// <summary>
  99. /// 商品价格(单位 : 分)
  100. /// </summary>
  101. public int product_price { get; set; }
  102. /// <summary>
  103. /// 商品SKU
  104. /// </summary>
  105. public string product_sku { get; set; }
  106. /// <summary>
  107. /// 商品个数
  108. /// </summary>
  109. public int product_count { get; set; }
  110. /// <summary>
  111. /// 商品图片
  112. /// </summary>
  113. public string product_img { get; set; }
  114. /// <summary>
  115. /// 运单ID
  116. /// </summary>
  117. public string delivery_id { get; set; }
  118. /// <summary>
  119. /// 物流公司编码
  120. /// </summary>
  121. public string delivery_company { get; set; }
  122. /// <summary>
  123. /// 交易ID
  124. /// </summary>
  125. public string trans_id { get; set; }
  126. /// <summary>
  127. /// 收货人区
  128. /// </summary>
  129. public string receiver_zone { get; set; }
  130. }
  131. /// <summary>
  132. /// 根据订单状态/创建时间获取订单详情返回结果
  133. /// </summary>
  134. public class GetByFilterResult : WxJsonResult
  135. {
  136. public List<Order> order_list { get; set; }
  137. }
  138. }