InvoiceResultJson.cs 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. /*----------------------------------------------------------------
  2. Copyright (C) 2019 Senparc
  3. 文件名:InvoiceResultJson.cs
  4. 文件功能描述:电子票据返回结果
  5. 创建标识:Senparc - 20180930
  6. ----------------------------------------------------------------*/
  7. using Senparc.Weixin.Entities;
  8. using System.Collections.Generic;
  9. namespace Senparc.Weixin.MP.AdvancedAPIs
  10. {
  11. /// <summary>
  12. /// 查询支付后开票信息返回结果
  13. /// </summary>
  14. public class GetPayMchResultJson : WxJsonResult
  15. {
  16. /// <summary>
  17. /// 授权页字段
  18. /// </summary>
  19. public PayMchInfoData paymch_info { get; set; }
  20. }
  21. /// <summary>
  22. /// 查询授权页字段信息返回结果
  23. /// </summary>
  24. public class AuthFieldResultJson : WxJsonResult
  25. {
  26. /// <summary>
  27. /// 授权页字段
  28. /// </summary>
  29. public AuthFieldData auth_field { get; set; }
  30. }
  31. /// <summary>
  32. /// 查询开票信息返回结果
  33. /// </summary>
  34. public class AuthDataResultJson : WxJsonResult
  35. {
  36. /// <summary>
  37. /// 订单授权状态
  38. /// </summary>
  39. public string invoice_status { get; set; }
  40. /// <summary>
  41. /// 授权时间,为十位时间戳(utc+8)
  42. /// </summary>
  43. public int auth_time { get; set; }
  44. /// <summary>
  45. /// 用户授权信息结构体,仅在type=1时出现
  46. /// </summary>
  47. public UserAuthInfo user_auth_info { get; set; }
  48. }
  49. /// <summary>
  50. /// 获取授权页链接返回结果
  51. /// </summary>
  52. public class AuthUrlResultJson : WxJsonResult
  53. {
  54. /// <summary>
  55. /// 授权链接
  56. /// </summary>
  57. public string auth_url { get; set; }
  58. /// <summary>
  59. /// source为wxa时才有
  60. /// </summary>
  61. public string appid { get; set; }
  62. }
  63. /// <summary>
  64. /// 获取授权页链接返回结果
  65. /// </summary>
  66. public class GetBillAuthUrlResultJson : WxJsonResult
  67. {
  68. /// <summary>
  69. /// 授权链接
  70. /// </summary>
  71. public string auth_url { get; set; }
  72. /// <summary>
  73. /// 过期时间,单位为秒,授权链接会在一段时间之后过期
  74. /// </summary>
  75. public int expire_time { get; set; }
  76. }
  77. /// <summary>
  78. /// 将发票抬头信息录入到用户微信中返回结果
  79. /// </summary>
  80. public class GetUserTitleUrlResultJson : WxJsonResult
  81. {
  82. /// <summary>
  83. /// 添加抬头卡链接
  84. /// </summary>
  85. public string url { get; set; }
  86. }
  87. /// <summary>
  88. /// 获取用户抬头(方式二):商户扫描用户的发票抬头二维码返回结果
  89. /// </summary>
  90. public class ScanTitleResultJson : WxJsonResult
  91. {
  92. /// <summary>
  93. /// 抬头类型
  94. /// </summary>
  95. public int title_type { get; set; }
  96. public string title { get; set; }
  97. public string phone { get; set; }
  98. public string tax_no { get; set; }
  99. public string addr { get; set; }
  100. public string bank_type { get; set; }
  101. public string bank_no { get; set; }
  102. }
  103. /// <summary>
  104. /// 用户授权信息结构体
  105. /// </summary>
  106. public class UserAuthInfo
  107. {
  108. /// <summary>
  109. /// 个人类型发票的授权信息结构体
  110. /// </summary>
  111. public UserFiledInfo user_field { get; set; }
  112. /// <summary>
  113. /// 单位类型发票的授权信息结构体
  114. /// </summary>
  115. public BizFieldInfo biz_field { get; set; }
  116. }
  117. /// <summary>
  118. /// 单位类型发票的授权信息结构体
  119. /// </summary>
  120. public class BizFieldInfo
  121. {
  122. public string title { get; set; }
  123. /// <summary>
  124. /// 单位联系电话
  125. /// </summary>
  126. public string phone { get; set; }
  127. /// <summary>
  128. /// 单位税号
  129. /// </summary>
  130. public string tax_no { get; set; }
  131. /// <summary>
  132. /// 单位注册地址
  133. /// </summary>
  134. public string addr { get; set; }
  135. /// <summary>
  136. /// 单位开户银行
  137. /// </summary>
  138. public string bank_type { get; set; }
  139. /// <summary>
  140. /// 单位开户银行账号
  141. /// </summary>
  142. public string bank_no { get; set; }
  143. /// <summary>
  144. /// 商户自定义信息结构体
  145. /// </summary>
  146. public List<CustomFieldItem> custom_field { get; set; }
  147. }
  148. /// <summary>
  149. /// 个人类型发票的授权信息结构体
  150. /// </summary>
  151. public class UserFiledInfo
  152. {
  153. /// <summary>
  154. /// 个人抬头
  155. /// </summary>
  156. public string title { get; set; }
  157. /// <summary>
  158. /// 个人联系电话
  159. /// </summary>
  160. public string phone { get; set; }
  161. /// <summary>
  162. /// 个人邮箱
  163. /// </summary>
  164. public string email { get; set; }
  165. /// <summary>
  166. /// 商户自定义信息结构体
  167. /// </summary>
  168. public List<CustomFieldItem> custom_field { get; set; }
  169. }
  170. /// <summary>
  171. /// 查询已开发票返回信息
  172. /// </summary>
  173. public class QueryInvoiceResultJson : WxJsonResult
  174. {
  175. /// <summary>
  176. /// 发票详情
  177. /// </summary>
  178. public InvoiceDetail invoicedetail { get; set; }
  179. }
  180. /// <summary>
  181. /// 发票详情
  182. /// </summary>
  183. public class InvoiceDetail
  184. {
  185. /// <summary>
  186. /// 发票请求流水号,唯一查询发票的流水号
  187. /// </summary>
  188. public string fpqqlsh { get; set; }
  189. /// <summary>
  190. /// 校验码,位于电子发票右上方,开票日期下
  191. /// </summary>
  192. public string jym { get; set; }
  193. /// <summary>
  194. /// 校验码
  195. /// </summary>
  196. public string kprq { get; set; }
  197. /// <summary>
  198. /// 发票代码
  199. /// </summary>
  200. public string fpdm { get; set; }
  201. /// <summary>
  202. /// 发票号码
  203. /// </summary>
  204. public string fphm { get; set; }
  205. /// <summary>
  206. /// 发票url
  207. /// </summary>
  208. public string pdfurl { get; set; }
  209. }
  210. /// <summary>
  211. /// 查询商户联系方式返回信息
  212. /// </summary>
  213. public class GetContactResultJson : WxJsonResult
  214. {
  215. /// <summary>
  216. /// 联系方式信息
  217. /// </summary>
  218. public Contact contact { get; set; }
  219. }
  220. /// <summary>
  221. /// 联系方式信息
  222. /// </summary>
  223. public class Contact
  224. {
  225. /// <summary>
  226. /// 联系电话
  227. /// </summary>
  228. public string phone { get; set; }
  229. /// <summary>
  230. /// 开票超时时间
  231. /// </summary>
  232. public int time_out { get; set; }
  233. }
  234. }