AlipayAcquireCloseRequest.php 2.5 KB

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