AlipayPassCodeAddRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.pass.code.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2014-06-12 17:16:12
  7. */
  8. class AlipayPassCodeAddRequest
  9. {
  10. /**
  11. * alipass文件Base64编码后的内容。
  12. **/
  13. private $fileContent;
  14. /**
  15. * 识别信息
  16. 当 recognition_type=1时, recognition_info={“partner_id”:”2088102114633762”,“out_trade_no”:”1234567”}
  17. 当recognition_type=2时, recognition_info={“user_id”:”2088102114633761“ }
  18. **/
  19. private $recognitionInfo;
  20. /**
  21. * 发放对象识别类型
  22. 1- 订单信息
  23. 2- 支付宝userId
  24. **/
  25. private $recognitionType;
  26. /**
  27. * 该pass的核销方式,如果为空,则默认为["wave","qrcode"]
  28. **/
  29. private $verifyType;
  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 setFileContent($fileContent)
  39. {
  40. $this->fileContent = $fileContent;
  41. $this->apiParas["file_content"] = $fileContent;
  42. }
  43. public function getFileContent()
  44. {
  45. return $this->fileContent;
  46. }
  47. public function setRecognitionInfo($recognitionInfo)
  48. {
  49. $this->recognitionInfo = $recognitionInfo;
  50. $this->apiParas["recognition_info"] = $recognitionInfo;
  51. }
  52. public function getRecognitionInfo()
  53. {
  54. return $this->recognitionInfo;
  55. }
  56. public function setRecognitionType($recognitionType)
  57. {
  58. $this->recognitionType = $recognitionType;
  59. $this->apiParas["recognition_type"] = $recognitionType;
  60. }
  61. public function getRecognitionType()
  62. {
  63. return $this->recognitionType;
  64. }
  65. public function setVerifyType($verifyType)
  66. {
  67. $this->verifyType = $verifyType;
  68. $this->apiParas["verify_type"] = $verifyType;
  69. }
  70. public function getVerifyType()
  71. {
  72. return $this->verifyType;
  73. }
  74. public function getApiMethodName()
  75. {
  76. return "alipay.pass.code.add";
  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. }