MakeOutInvoiceData.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /*----------------------------------------------------------------
  2. Copyright (C) 2019 Senparc
  3. 文件名:MakeOutInvoiceData.cs
  4. 文件功能描述:统一开票post数据
  5. 创建标识:Senparc - 20180930
  6. ----------------------------------------------------------------*/
  7. using System.Collections.Generic;
  8. using Senparc.Weixin.MP.AdvancedAPIs.GroupMessage;
  9. namespace Senparc.Weixin.MP.AdvancedAPIs
  10. {
  11. /// <summary>
  12. /// 统一开票接口-开具蓝票数据
  13. /// </summary>
  14. public class MakeOutInvoiceData
  15. {
  16. /// <summary>
  17. /// 用户的openid 用户知道是谁在开票
  18. /// </summary>
  19. public string wxopenid { get; set; }
  20. /// <summary>
  21. /// 订单号,企业自己内部的订单号码
  22. /// </summary>
  23. public string ddh { get; set; }
  24. /// <summary>
  25. /// 发票请求流水号,唯一识别开票请求的流水号
  26. /// </summary>
  27. public string fpqqlsh { get; set; }
  28. /// <summary>
  29. /// 纳税人识别码
  30. /// </summary>
  31. public string nsrsbh { get; set; }
  32. /// <summary>
  33. /// 纳税人名称
  34. /// </summary>
  35. public string nsrmc { get; set; }
  36. /// <summary>
  37. /// 纳税人地址
  38. /// </summary>
  39. public string nsrdz { get; set; }
  40. /// <summary>
  41. /// 纳税人电话
  42. /// </summary>
  43. public string nsrdh { get; set; }
  44. /// <summary>
  45. /// 纳税人开户行
  46. /// </summary>
  47. public string nsrbank { get; set; }
  48. /// <summary>
  49. /// 纳税人银行账号
  50. /// </summary>
  51. public string nsrbankid { get; set; }
  52. /// <summary>
  53. /// 购货方名称
  54. /// </summary>
  55. public string ghfmc { get; set; }
  56. /// <summary>
  57. /// 购货方识别号
  58. /// </summary>
  59. public string ghfnsrsbh { get; set; }
  60. /// <summary>
  61. /// 购货方地址
  62. /// </summary>
  63. public string ghfdz { get; set; }
  64. /// <summary>
  65. /// 购货方电话
  66. /// </summary>
  67. public string ghfdh { get; set; }
  68. /// <summary>
  69. /// 购货方开户行
  70. /// </summary>
  71. public string ghfbank { get; set; }
  72. /// <summary>
  73. /// 购货方银行帐号
  74. /// </summary>
  75. public string ghfbankid { get; set; }
  76. /// <summary>
  77. /// 开票人
  78. /// </summary>
  79. public string kpr { get; set; }
  80. /// <summary>
  81. /// 收款人
  82. /// </summary>
  83. public string skr { get; set; }
  84. /// <summary>
  85. /// 复核人
  86. /// </summary>
  87. public string fhr { get; set; }
  88. /// <summary>
  89. /// 价税合计
  90. /// </summary>
  91. public string jshj { get; set; }
  92. /// <summary>
  93. /// 合计金额
  94. /// </summary>
  95. public string hjse { get; set; }
  96. /// <summary>
  97. /// 备注
  98. /// </summary>
  99. public string bz { get; set; }
  100. /// <summary>
  101. /// 行业类型 0 商业 1其它
  102. /// </summary>
  103. public string hylx { get; set; }
  104. /// <summary>
  105. /// 发票行项目数据
  106. /// </summary>
  107. public List<string> invoicedetail_list { get; set; }
  108. }
  109. /// <summary>
  110. /// 发票行项目数据
  111. /// </summary>
  112. public class InvoiceDetailItem
  113. {
  114. /// <summary>
  115. /// 发票行性质 0 正常 1折扣 2 被折扣
  116. /// </summary>
  117. public Fphxz fphxz { get; set; }
  118. /// <summary>
  119. /// 19位税收分类编码
  120. /// </summary>
  121. public string spbm { get; set; }
  122. /// <summary>
  123. /// 项目名称
  124. /// </summary>
  125. public string xmmc { get; set; }
  126. /// <summary>
  127. /// 计量单位
  128. /// </summary>
  129. public string dw { get; set; }
  130. /// <summary>
  131. /// 规格型号
  132. /// </summary>
  133. public string ggxh { get; set; }
  134. /// <summary>
  135. /// 项目数量
  136. /// </summary>
  137. public string xmsl { get; set; }
  138. /// <summary>
  139. /// 项目单价
  140. /// </summary>
  141. public string xmdj { get; set; }
  142. /// <summary>
  143. /// 项目金额 不含税,单位元 两位小数
  144. /// </summary>
  145. public string xmje { get; set; }
  146. /// <summary>
  147. /// 税率 精确到两位小数 如0.01
  148. /// </summary>
  149. public string sl { get; set; }
  150. /// <summary>
  151. /// 税额 单位元 两位小数
  152. /// </summary>
  153. public string se { get; set; }
  154. }
  155. /// <summary>
  156. /// 统一开票接口-发票冲红数据
  157. /// </summary>
  158. public class ClearOutInvoiceData
  159. {
  160. /// <summary>
  161. /// 用户的openid 用户知道是谁在开票
  162. /// </summary>
  163. public string wxopenid { get; set; }
  164. /// <summary>
  165. /// 发票请求流水号,唯一识别开票请求的流水号
  166. /// </summary>
  167. public string fpqqlsh { get; set; }
  168. /// <summary>
  169. /// 纳税人识别码
  170. /// </summary>
  171. public string nsrsbh { get; set; }
  172. /// <summary>
  173. /// 纳税人名称
  174. /// </summary>
  175. public string nsrmc { get; set; }
  176. /// <summary>
  177. /// 原发票代码
  178. /// </summary>
  179. public string yfpdm { get; set; }
  180. /// <summary>
  181. /// 原发票号码
  182. /// </summary>
  183. public string yfphm { get; set; }
  184. }
  185. /// <summary>
  186. /// 将发票抬头信息录入到用户微信中数据
  187. /// </summary>
  188. public class GetUserTitleUrlData
  189. {
  190. public string title { get; set; }
  191. public string phone { get; set; }
  192. public string tax_no { get; set; }
  193. public string addr { get; set; }
  194. public string bank_type { get; set; }
  195. public string bank_no { get; set; }
  196. public int user_fill { get; set; }
  197. public string out_title_id { get; set; }
  198. }
  199. }