InvoicePlatformResultJson.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. /*----------------------------------------------------------------
  2. Copyright (C) 2019 Senparc
  3. 文件名:InvoicePlatformResultJson.cs
  4. 文件功能描述:开票平台返回结果
  5. 创建标识:Senparc - 20180930
  6. 修改标识:Senparc - 20181030
  7. 修改描述:更新User_Info
  8. ----------------------------------------------------------------*/
  9. using Senparc.Weixin.Entities;
  10. using System.Collections.Generic;
  11. namespace Senparc.Weixin.MP.AdvancedAPIs
  12. {
  13. /// <summary>
  14. /// 获取自身的开票平台识别码返回信息
  15. /// </summary>
  16. public class SetUrlResultJson : WxJsonResult
  17. {
  18. /// <summary>
  19. /// 该开票平台专用的授权链接
  20. /// </summary>
  21. public string invoice_url { get; set; }
  22. }
  23. /// <summary>
  24. /// 创建发票卡券模板返回信息
  25. /// </summary>
  26. public class CreateCardResultJson : WxJsonResult
  27. {
  28. /// <summary>
  29. /// 当错误码为 0 时,返回发票卡券模板的编号,用于后续该商户发票生成后,作为必填参数在调用插卡接口时传入
  30. /// </summary>
  31. public string card_id { get; set; }
  32. }
  33. /// <summary>
  34. /// 上传PDF返回信息
  35. /// </summary>
  36. public class SetPDFResultJson : WxJsonResult
  37. {
  38. /// <summary>
  39. /// 64位整数,在 将发票卡券插入用户卡包 时使用用于关联pdf和发票卡券,s_media_id有效期有3天,3天内若未将s_media_id关联到发票卡券,pdf将自动销毁
  40. /// </summary>
  41. public string s_media_id { get; set; }
  42. }
  43. /// <summary>
  44. /// 查询已上传的PDF文件返回信息
  45. /// </summary>
  46. public class GetPDFResultJson : WxJsonResult
  47. {
  48. /// <summary>
  49. /// pdf 的 url ,两个小时有效期
  50. /// </summary>
  51. public string pdf_url { get; set; }
  52. /// <summary>
  53. /// pdf_url 过期时间, 7200 秒
  54. /// </summary>
  55. public int pdf_url_expire_time { get; set; }
  56. }
  57. /// <summary>
  58. /// 将电子发票卡券插入用户卡包返回信息
  59. /// </summary>
  60. public class InsertCardResultJson : WxJsonResult
  61. {
  62. /// <summary>
  63. /// 发票code
  64. /// </summary>
  65. public string code { get; set; }
  66. /// <summary>
  67. /// 获得发票用户的openid
  68. /// </summary>
  69. public string openid { get; set; }
  70. /// <summary>
  71. /// 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段
  72. /// </summary>
  73. public string unionid { get; set; }
  74. }
  75. /// <summary>
  76. /// 查询报销发票信息返回信息
  77. /// </summary>
  78. public class GetInvoiceInfoResultJson : WxJsonResult
  79. {
  80. /// <summary>
  81. /// 发票 id
  82. /// </summary>
  83. public string card_id { get; set; }
  84. /// <summary>
  85. /// 发票的有效期起始时间
  86. /// </summary>
  87. public int begin_time { get; set; }
  88. /// <summary>
  89. /// 发票的有效期截止时间
  90. /// </summary>
  91. public int end_time { get; set; }
  92. /// <summary>
  93. /// 用户标识
  94. /// </summary>
  95. public string openid { get; set; }
  96. /// <summary>
  97. /// 发票的类型
  98. /// </summary>
  99. public string type { get; set; }
  100. /// <summary>
  101. /// 发票的收款方
  102. /// </summary>
  103. public string payee { get; set; }
  104. /// <summary>
  105. /// 发票详情
  106. /// </summary>
  107. public string detail { get; set; }
  108. /// <summary>
  109. /// 用户可在发票票面看到的主要信息
  110. /// </summary>
  111. public User_Info user_info { get; set; }
  112. }
  113. /// <summary>
  114. /// 批量查询报销发票信息返回信息
  115. /// </summary>
  116. public class GetInvoiceListResultJson : WxJsonResult
  117. {
  118. /// <summary>
  119. /// 发票信息列表
  120. /// </summary>
  121. public List<InvoiceItemInfo> item_list { get; set; }
  122. }
  123. /// <summary>
  124. /// 发票信息
  125. /// </summary>
  126. public class InvoiceItemInfo
  127. {
  128. /// <summary>
  129. /// 发票 id
  130. /// </summary>
  131. public string card_id { get; set; }
  132. /// <summary>
  133. /// 发票的有效期起始时间
  134. /// </summary>
  135. public int begin_time { get; set; }
  136. /// <summary>
  137. /// 发票的有效期截止时间
  138. /// </summary>
  139. public int end_time { get; set; }
  140. /// <summary>
  141. /// 用户标识
  142. /// </summary>
  143. public string openid { get; set; }
  144. /// <summary>
  145. /// 发票的类型
  146. /// </summary>
  147. public string type { get; set; }
  148. /// <summary>
  149. /// 发票的收款方
  150. /// </summary>
  151. public string payee { get; set; }
  152. /// <summary>
  153. /// 发票详情
  154. /// </summary>
  155. public string detail { get; set; }
  156. /// <summary>
  157. /// 用户可在发票票面看到的主要信息
  158. /// </summary>
  159. public User_Info user_info { get; set; }
  160. }
  161. public class User_Info
  162. {
  163. public int fee { get; set; }
  164. public string title { get; set; }
  165. public int billing_time { get; set; }
  166. public string billing_no { get; set; }
  167. public string billing_code { get; set; }
  168. public Info[] info { get; set; }
  169. public bool accept { get; set; }
  170. public int fee_without_tax { get; set; }
  171. public int tax { get; set; }
  172. public string pdf_url { get; set; }
  173. public string trip_pdf_url { get; set; }
  174. public Reimburse_Status reimburse_status { get; set; }
  175. public string check_code { get; set; }
  176. public string buyer_number { get; set; }
  177. /// <summary>
  178. /// 购买方地址、电话
  179. /// </summary>
  180. public string buyer_address_and_phone { get; set; }
  181. /// <summary>
  182. /// 购买方开户行及账号
  183. /// </summary>
  184. public string buyer_bank_account { get; set; }
  185. /// <summary>
  186. /// 销售方纳税人识别号
  187. /// </summary>
  188. public string seller_number { get; set; }
  189. /// <summary>
  190. /// 销售方地址、电话
  191. /// </summary>
  192. public string seller_address_and_phone { get; set; }
  193. /// <summary>
  194. /// 销售方开户行及账号
  195. /// </summary>
  196. public string seller_bank_account { get; set; }
  197. /// <summary>
  198. /// 备注,发票右下角处
  199. /// </summary>
  200. public string remarks { get; set; }
  201. /// <summary>
  202. /// 收款人,发票左下角处
  203. /// </summary>
  204. public string cashier { get; set; }
  205. /// <summary>
  206. /// 开票人,发票下方处
  207. /// </summary>
  208. public string maker { get; set; }
  209. }
  210. public class Info
  211. {
  212. public string name { get; set; }
  213. public int num { get; set; }
  214. public string unit { get; set; }
  215. public int price { get; set; }
  216. }
  217. }