V2InvoiceOpenRequest.php 3.9 KB

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