V2InvoiceOpenRequest.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. using System;
  2. namespace BasePaySdk.Request
  3. {
  4. /**
  5. * 发票开具
  6. *
  7. * @author sdk-generator
  8. * @Description
  9. */
  10. public class V2InvoiceOpenRequest : BaseRequest
  11. {
  12. /**
  13. * 请求流水号
  14. */
  15. private string reqSeqId;
  16. /**
  17. * 请求时间
  18. */
  19. private string reqDate;
  20. /**
  21. * 渠道号汇付商户号为空时,必传;<font color="green">示例值:6666000109812124</font>
  22. */
  23. private string channelId;
  24. /**
  25. * 发票类型
  26. */
  27. private string ivcType;
  28. /**
  29. * 开票类型
  30. */
  31. private string openType;
  32. /**
  33. * 购方单位名称
  34. */
  35. private string buyerName;
  36. /**
  37. * 含税合计金额(元)
  38. */
  39. private string orderAmt;
  40. /**
  41. * 冲红原因open_type=1时必填01:开票有误02:销货退回03:服务终止04:销售转让
  42. */
  43. private string redApplyReason;
  44. /**
  45. * 冲红申请来源open_type=1时必填01:销方02:购方
  46. */
  47. private string redApplySource;
  48. /**
  49. * 原发票代码openType=1时必填;参见[发票右上角](https://paas.huifu.com/open/doc/api/#/fp/api_fp_yanglitu.md);<font color="green">示例值:144032209110</font>
  50. */
  51. private string oriIvcCode;
  52. /**
  53. * 原发票号码openType=1时必填;参见[发票右上角](https://paas.huifu.com/open/doc/api/#/fp/api_fp_yanglitu.md);<font color="green">示例值:20685767</font>
  54. */
  55. private string oriIvcNumber;
  56. /**
  57. * 开票商品信息
  58. */
  59. private string goodsInfos;
  60. /**
  61. * 开票人信息
  62. */
  63. private string payerInfo;
  64. public override string getFunctionCode() {
  65. return FunctionCodeEnum.V2_INVOICE_OPEN;
  66. }
  67. public V2InvoiceOpenRequest() {
  68. }
  69. public V2InvoiceOpenRequest(string reqSeqId, string reqDate, string channelId, string ivcType, string openType, string buyerName, string orderAmt, string redApplyReason, string redApplySource, string oriIvcCode, string oriIvcNumber, string goodsInfos, string payerInfo) {
  70. this.reqSeqId = reqSeqId;
  71. this.reqDate = reqDate;
  72. this.channelId = channelId;
  73. this.ivcType = ivcType;
  74. this.openType = openType;
  75. this.buyerName = buyerName;
  76. this.orderAmt = orderAmt;
  77. this.redApplyReason = redApplyReason;
  78. this.redApplySource = redApplySource;
  79. this.oriIvcCode = oriIvcCode;
  80. this.oriIvcNumber = oriIvcNumber;
  81. this.goodsInfos = goodsInfos;
  82. this.payerInfo = payerInfo;
  83. }
  84. public string getReqSeqId() {
  85. return reqSeqId;
  86. }
  87. public void setReqSeqId(string reqSeqId) {
  88. this.reqSeqId = reqSeqId;
  89. }
  90. public string getReqDate() {
  91. return reqDate;
  92. }
  93. public void setReqDate(string reqDate) {
  94. this.reqDate = reqDate;
  95. }
  96. public string getChannelId() {
  97. return channelId;
  98. }
  99. public void setChannelId(string channelId) {
  100. this.channelId = channelId;
  101. }
  102. public string getIvcType() {
  103. return ivcType;
  104. }
  105. public void setIvcType(string ivcType) {
  106. this.ivcType = ivcType;
  107. }
  108. public string getOpenType() {
  109. return openType;
  110. }
  111. public void setOpenType(string openType) {
  112. this.openType = openType;
  113. }
  114. public string getBuyerName() {
  115. return buyerName;
  116. }
  117. public void setBuyerName(string buyerName) {
  118. this.buyerName = buyerName;
  119. }
  120. public string getOrderAmt() {
  121. return orderAmt;
  122. }
  123. public void setOrderAmt(string orderAmt) {
  124. this.orderAmt = orderAmt;
  125. }
  126. public string getRedApplyReason() {
  127. return redApplyReason;
  128. }
  129. public void setRedApplyReason(string redApplyReason) {
  130. this.redApplyReason = redApplyReason;
  131. }
  132. public string getRedApplySource() {
  133. return redApplySource;
  134. }
  135. public void setRedApplySource(string redApplySource) {
  136. this.redApplySource = redApplySource;
  137. }
  138. public string getOriIvcCode() {
  139. return oriIvcCode;
  140. }
  141. public void setOriIvcCode(string oriIvcCode) {
  142. this.oriIvcCode = oriIvcCode;
  143. }
  144. public string getOriIvcNumber() {
  145. return oriIvcNumber;
  146. }
  147. public void setOriIvcNumber(string oriIvcNumber) {
  148. this.oriIvcNumber = oriIvcNumber;
  149. }
  150. public string getGoodsInfos() {
  151. return goodsInfos;
  152. }
  153. public void setGoodsInfos(string goodsInfos) {
  154. this.goodsInfos = goodsInfos;
  155. }
  156. public string getPayerInfo() {
  157. return payerInfo;
  158. }
  159. public void setPayerInfo(string payerInfo) {
  160. this.payerInfo = payerInfo;
  161. }
  162. }
  163. }