AlipayEbppInvoiceMerchantApplyUploadRequest.php 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.ebpp.invoice.merchant.apply.upload request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2023-04-03 08:41:42
  7. */
  8. class AlipayEbppInvoiceMerchantApplyUploadRequest
  9. {
  10. /**
  11. * 发票申请ID
  12. **/
  13. private $applyId;
  14. /**
  15. * 批次ID
  16. **/
  17. private $batchId;
  18. /**
  19. * 合计含税金额(开票金额),格式为2位小数。
  20. 当开红票时,该字段为负数。
  21. **/
  22. private $invoiceAmount;
  23. /**
  24. * 发票代码
  25. **/
  26. private $invoiceCode;
  27. /**
  28. * 开票日期,格式 yyyy-MM-dd.
  29. **/
  30. private $invoiceDate;
  31. /**
  32. * 发票板式文件数据,字节数据。
  33. 最大20m
  34. **/
  35. private $invoiceFileData;
  36. /**
  37. * 发票板式文件类型,可选址 pdf,ofd
  38. **/
  39. private $invoiceFileType;
  40. /**
  41. * 开票发票类型
  42. 可选值:
  43. 0: 电子普票;
  44. 1:纸质普票(暂不支持)
  45. 2:纸质专票(暂不支持)
  46. 3:电子专票;
  47. **/
  48. private $invoiceKind;
  49. /**
  50. * 发票号码
  51. **/
  52. private $invoiceNo;
  53. /**
  54. * 发票(开票)类型,可选值:
  55. blue: 蓝票;
  56. red: 红票;
  57. **/
  58. private $invoiceType;
  59. /**
  60. * 原发票代码,红票时必传
  61. **/
  62. private $normalInvoiceCode;
  63. /**
  64. * 原发票号码,红票时必传
  65. **/
  66. private $normalInvoiceNo;
  67. /**
  68. * 销方地址
  69. **/
  70. private $payeeAddress;
  71. /**
  72. * 销方银行账号
  73. **/
  74. private $payeeBankAccountId;
  75. /**
  76. * 销方开户行名称
  77. **/
  78. private $payeeBankName;
  79. /**
  80. * 销方名称
  81. **/
  82. private $payeeName;
  83. /**
  84. * 销方联系电话
  85. **/
  86. private $payeePhone;
  87. /**
  88. * 销方税务登记证号。由大写字母或数字组成,长度要求15~20位
  89. **/
  90. private $payeeRegisterNo;
  91. /**
  92. * 购方名称
  93. **/
  94. private $payerName;
  95. /**
  96. * 购方税号
  97. **/
  98. private $payerRegisterNo;
  99. /**
  100. * 合计金额(不含税),格式为2位小数。
  101. 当开红票时,该字段为负数。
  102. **/
  103. private $sumPrice;
  104. /**
  105. * 税额,格式为2位小数。
  106. 当开红票时,该字段为0或负数。
  107. **/
  108. private $sumTax;
  109. private $apiParas = array();
  110. private $terminalType;
  111. private $terminalInfo;
  112. private $prodCode;
  113. private $apiVersion="1.0";
  114. private $notifyUrl;
  115. private $returnUrl;
  116. private $needEncrypt=false;
  117. public function setApplyId($applyId)
  118. {
  119. $this->applyId = $applyId;
  120. $this->apiParas["apply_id"] = $applyId;
  121. }
  122. public function getApplyId()
  123. {
  124. return $this->applyId;
  125. }
  126. public function setBatchId($batchId)
  127. {
  128. $this->batchId = $batchId;
  129. $this->apiParas["batch_id"] = $batchId;
  130. }
  131. public function getBatchId()
  132. {
  133. return $this->batchId;
  134. }
  135. public function setInvoiceAmount($invoiceAmount)
  136. {
  137. $this->invoiceAmount = $invoiceAmount;
  138. $this->apiParas["invoice_amount"] = $invoiceAmount;
  139. }
  140. public function getInvoiceAmount()
  141. {
  142. return $this->invoiceAmount;
  143. }
  144. public function setInvoiceCode($invoiceCode)
  145. {
  146. $this->invoiceCode = $invoiceCode;
  147. $this->apiParas["invoice_type"] = $invoiceCode;
  148. }
  149. public function getInvoiceCode()
  150. {
  151. return $this->invoiceCode;
  152. }
  153. public function setInvoiceDate($invoiceDate)
  154. {
  155. $this->invoiceDate = $invoiceDate;
  156. $this->apiParas["invoice_date"] = $invoiceDate;
  157. }
  158. public function getInvoiceDate()
  159. {
  160. return $this->invoiceDate;
  161. }
  162. public function setInvoiceFileData($invoiceFileData)
  163. {
  164. $this->invoiceFileData = $invoiceFileData;
  165. $this->apiParas["invoice_file_data"] = $invoiceFileData;
  166. }
  167. public function getInvoiceFileData()
  168. {
  169. return $this->invoiceFileData;
  170. }
  171. public function setInvoiceFileType($invoiceFileType)
  172. {
  173. $this->invoiceFileType = $invoiceFileType;
  174. $this->apiParas["invoice_file_type"] = $invoiceFileType;
  175. }
  176. public function getInvoiceFileType()
  177. {
  178. return $this->invoiceFileType;
  179. }
  180. public function setInvoiceKind($invoiceKind)
  181. {
  182. $this->invoiceKind = $invoiceKind;
  183. $this->apiParas["invoice_kind"] = $invoiceKind;
  184. }
  185. public function getInvoiceKind()
  186. {
  187. return $this->invoiceKind;
  188. }
  189. public function setInvoiceNo($invoiceNo)
  190. {
  191. $this->invoiceNo = $invoiceNo;
  192. $this->apiParas["invoice_no"] = $invoiceNo;
  193. }
  194. public function getInvoiceNo()
  195. {
  196. return $this->invoiceNo;
  197. }
  198. public function setInvoiceType($invoiceType)
  199. {
  200. $this->invoiceType = $invoiceType;
  201. $this->apiParas["invoice_type"] = $invoiceType;
  202. }
  203. public function getInvoiceType()
  204. {
  205. return $this->invoiceType;
  206. }
  207. public function setNormalInvoiceCode($normalInvoiceCode)
  208. {
  209. $this->normalInvoiceCode = $normalInvoiceCode;
  210. $this->apiParas["normal_invoice_type"] = $normalInvoiceCode;
  211. }
  212. public function getNormalInvoiceCode()
  213. {
  214. return $this->normalInvoiceCode;
  215. }
  216. public function setNormalInvoiceNo($normalInvoiceNo)
  217. {
  218. $this->normalInvoiceNo = $normalInvoiceNo;
  219. $this->apiParas["normal_invoice_no"] = $normalInvoiceNo;
  220. }
  221. public function getNormalInvoiceNo()
  222. {
  223. return $this->normalInvoiceNo;
  224. }
  225. public function setPayeeAddress($payeeAddress)
  226. {
  227. $this->payeeAddress = $payeeAddress;
  228. $this->apiParas["payee_address"] = $payeeAddress;
  229. }
  230. public function getPayeeAddress()
  231. {
  232. return $this->payeeAddress;
  233. }
  234. public function setPayeeBankAccountId($payeeBankAccountId)
  235. {
  236. $this->payeeBankAccountId = $payeeBankAccountId;
  237. $this->apiParas["payee_bank_account_id"] = $payeeBankAccountId;
  238. }
  239. public function getPayeeBankAccountId()
  240. {
  241. return $this->payeeBankAccountId;
  242. }
  243. public function setPayeeBankName($payeeBankName)
  244. {
  245. $this->payeeBankName = $payeeBankName;
  246. $this->apiParas["payee_bank_name"] = $payeeBankName;
  247. }
  248. public function getPayeeBankName()
  249. {
  250. return $this->payeeBankName;
  251. }
  252. public function setPayeeName($payeeName)
  253. {
  254. $this->payeeName = $payeeName;
  255. $this->apiParas["payee_name"] = $payeeName;
  256. }
  257. public function getPayeeName()
  258. {
  259. return $this->payeeName;
  260. }
  261. public function setPayeePhone($payeePhone)
  262. {
  263. $this->payeePhone = $payeePhone;
  264. $this->apiParas["payee_phone"] = $payeePhone;
  265. }
  266. public function getPayeePhone()
  267. {
  268. return $this->payeePhone;
  269. }
  270. public function setPayeeRegisterNo($payeeRegisterNo)
  271. {
  272. $this->payeeRegisterNo = $payeeRegisterNo;
  273. $this->apiParas["payee_register_no"] = $payeeRegisterNo;
  274. }
  275. public function getPayeeRegisterNo()
  276. {
  277. return $this->payeeRegisterNo;
  278. }
  279. public function setPayerName($payerName)
  280. {
  281. $this->payerName = $payerName;
  282. $this->apiParas["payer_name"] = $payerName;
  283. }
  284. public function getPayerName()
  285. {
  286. return $this->payerName;
  287. }
  288. public function setPayerRegisterNo($payerRegisterNo)
  289. {
  290. $this->payerRegisterNo = $payerRegisterNo;
  291. $this->apiParas["payer_register_no"] = $payerRegisterNo;
  292. }
  293. public function getPayerRegisterNo()
  294. {
  295. return $this->payerRegisterNo;
  296. }
  297. public function setSumPrice($sumPrice)
  298. {
  299. $this->sumPrice = $sumPrice;
  300. $this->apiParas["sum_price"] = $sumPrice;
  301. }
  302. public function getSumPrice()
  303. {
  304. return $this->sumPrice;
  305. }
  306. public function setSumTax($sumTax)
  307. {
  308. $this->sumTax = $sumTax;
  309. $this->apiParas["sum_tax"] = $sumTax;
  310. }
  311. public function getSumTax()
  312. {
  313. return $this->sumTax;
  314. }
  315. public function getApiMethodName()
  316. {
  317. return "alipay.ebpp.invoice.merchant.apply.upload";
  318. }
  319. public function setNotifyUrl($notifyUrl)
  320. {
  321. $this->notifyUrl=$notifyUrl;
  322. }
  323. public function getNotifyUrl()
  324. {
  325. return $this->notifyUrl;
  326. }
  327. public function setReturnUrl($returnUrl)
  328. {
  329. $this->returnUrl=$returnUrl;
  330. }
  331. public function getReturnUrl()
  332. {
  333. return $this->returnUrl;
  334. }
  335. public function getApiParas()
  336. {
  337. return $this->apiParas;
  338. }
  339. public function getTerminalType()
  340. {
  341. return $this->terminalType;
  342. }
  343. public function setTerminalType($terminalType)
  344. {
  345. $this->terminalType = $terminalType;
  346. }
  347. public function getTerminalInfo()
  348. {
  349. return $this->terminalInfo;
  350. }
  351. public function setTerminalInfo($terminalInfo)
  352. {
  353. $this->terminalInfo = $terminalInfo;
  354. }
  355. public function getProdCode()
  356. {
  357. return $this->prodCode;
  358. }
  359. public function setProdCode($prodCode)
  360. {
  361. $this->prodCode = $prodCode;
  362. }
  363. public function setApiVersion($apiVersion)
  364. {
  365. $this->apiVersion=$apiVersion;
  366. }
  367. public function getApiVersion()
  368. {
  369. return $this->apiVersion;
  370. }
  371. public function setNeedEncrypt($needEncrypt)
  372. {
  373. $this->needEncrypt=$needEncrypt;
  374. }
  375. public function getNeedEncrypt()
  376. {
  377. return $this->needEncrypt;
  378. }
  379. }