AlipayAcquireQueryRequest.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.acquire.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayAcquireQueryRequest
  9. {
  10. /**
  11. * 支付宝合作商户网站唯一订单号
  12. **/
  13. private $outTradeNo;
  14. /**
  15. * 该交易在支付宝系统中的交易流水号。
  16. 最短16位,最长64位。
  17. 如果同时传了out_trade_no和trade_no,则以trade_no为准。
  18. **/
  19. private $tradeNo;
  20. private $apiParas = array();
  21. private $terminalType;
  22. private $terminalInfo;
  23. private $prodCode;
  24. private $apiVersion="1.0";
  25. private $notifyUrl;
  26. private $returnUrl;
  27. private $needEncrypt=false;
  28. public function setOutTradeNo($outTradeNo)
  29. {
  30. $this->outTradeNo = $outTradeNo;
  31. $this->apiParas["out_trade_no"] = $outTradeNo;
  32. }
  33. public function getOutTradeNo()
  34. {
  35. return $this->outTradeNo;
  36. }
  37. public function setTradeNo($tradeNo)
  38. {
  39. $this->tradeNo = $tradeNo;
  40. $this->apiParas["trade_no"] = $tradeNo;
  41. }
  42. public function getTradeNo()
  43. {
  44. return $this->tradeNo;
  45. }
  46. public function getApiMethodName()
  47. {
  48. return "alipay.acquire.query";
  49. }
  50. public function setNotifyUrl($notifyUrl)
  51. {
  52. $this->notifyUrl=$notifyUrl;
  53. }
  54. public function getNotifyUrl()
  55. {
  56. return $this->notifyUrl;
  57. }
  58. public function setReturnUrl($returnUrl)
  59. {
  60. $this->returnUrl=$returnUrl;
  61. }
  62. public function getReturnUrl()
  63. {
  64. return $this->returnUrl;
  65. }
  66. public function getApiParas()
  67. {
  68. return $this->apiParas;
  69. }
  70. public function getTerminalType()
  71. {
  72. return $this->terminalType;
  73. }
  74. public function setTerminalType($terminalType)
  75. {
  76. $this->terminalType = $terminalType;
  77. }
  78. public function getTerminalInfo()
  79. {
  80. return $this->terminalInfo;
  81. }
  82. public function setTerminalInfo($terminalInfo)
  83. {
  84. $this->terminalInfo = $terminalInfo;
  85. }
  86. public function getProdCode()
  87. {
  88. return $this->prodCode;
  89. }
  90. public function setProdCode($prodCode)
  91. {
  92. $this->prodCode = $prodCode;
  93. }
  94. public function setApiVersion($apiVersion)
  95. {
  96. $this->apiVersion=$apiVersion;
  97. }
  98. public function getApiVersion()
  99. {
  100. return $this->apiVersion;
  101. }
  102. public function setNeedEncrypt($needEncrypt)
  103. {
  104. $this->needEncrypt=$needEncrypt;
  105. }
  106. public function getNeedEncrypt()
  107. {
  108. return $this->needEncrypt;
  109. }
  110. }