AlipayPassCodeVerifyRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.pass.code.verify request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayPassCodeVerifyRequest
  9. {
  10. /**
  11. * 商户核销操作扩展信息
  12. **/
  13. private $extInfo;
  14. /**
  15. * 操作员id
  16. 如果operator_type为1,则此id代表核销人员id
  17. 如果operator_type为2,则此id代表核销机具id
  18. **/
  19. private $operatorId;
  20. /**
  21. * 操作员类型
  22. 1 核销人员
  23. 2 核销机具
  24. **/
  25. private $operatorType;
  26. /**
  27. * Alipass对应的核销码串
  28. **/
  29. private $verifyCode;
  30. private $apiParas = array();
  31. private $terminalType;
  32. private $terminalInfo;
  33. private $prodCode;
  34. private $apiVersion="1.0";
  35. private $notifyUrl;
  36. private $returnUrl;
  37. private $needEncrypt=false;
  38. public function setExtInfo($extInfo)
  39. {
  40. $this->extInfo = $extInfo;
  41. $this->apiParas["ext_info"] = $extInfo;
  42. }
  43. public function getExtInfo()
  44. {
  45. return $this->extInfo;
  46. }
  47. public function setOperatorId($operatorId)
  48. {
  49. $this->operatorId = $operatorId;
  50. $this->apiParas["operator_id"] = $operatorId;
  51. }
  52. public function getOperatorId()
  53. {
  54. return $this->operatorId;
  55. }
  56. public function setOperatorType($operatorType)
  57. {
  58. $this->operatorType = $operatorType;
  59. $this->apiParas["operator_type"] = $operatorType;
  60. }
  61. public function getOperatorType()
  62. {
  63. return $this->operatorType;
  64. }
  65. public function setVerifyCode($verifyCode)
  66. {
  67. $this->verifyCode = $verifyCode;
  68. $this->apiParas["verify_code"] = $verifyCode;
  69. }
  70. public function getVerifyCode()
  71. {
  72. return $this->verifyCode;
  73. }
  74. public function getApiMethodName()
  75. {
  76. return "alipay.pass.code.verify";
  77. }
  78. public function setNotifyUrl($notifyUrl)
  79. {
  80. $this->notifyUrl=$notifyUrl;
  81. }
  82. public function getNotifyUrl()
  83. {
  84. return $this->notifyUrl;
  85. }
  86. public function setReturnUrl($returnUrl)
  87. {
  88. $this->returnUrl=$returnUrl;
  89. }
  90. public function getReturnUrl()
  91. {
  92. return $this->returnUrl;
  93. }
  94. public function getApiParas()
  95. {
  96. return $this->apiParas;
  97. }
  98. public function getTerminalType()
  99. {
  100. return $this->terminalType;
  101. }
  102. public function setTerminalType($terminalType)
  103. {
  104. $this->terminalType = $terminalType;
  105. }
  106. public function getTerminalInfo()
  107. {
  108. return $this->terminalInfo;
  109. }
  110. public function setTerminalInfo($terminalInfo)
  111. {
  112. $this->terminalInfo = $terminalInfo;
  113. }
  114. public function getProdCode()
  115. {
  116. return $this->prodCode;
  117. }
  118. public function setProdCode($prodCode)
  119. {
  120. $this->prodCode = $prodCode;
  121. }
  122. public function setApiVersion($apiVersion)
  123. {
  124. $this->apiVersion=$apiVersion;
  125. }
  126. public function getApiVersion()
  127. {
  128. return $this->apiVersion;
  129. }
  130. public function setNeedEncrypt($needEncrypt)
  131. {
  132. $this->needEncrypt=$needEncrypt;
  133. }
  134. public function getNeedEncrypt()
  135. {
  136. return $this->needEncrypt;
  137. }
  138. }