AlipayAcquireCancelRequest.php 2.9 KB

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