AlipayPassFileAddRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.pass.file.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayPassFileAddRequest
  9. {
  10. /**
  11. * 支付宝pass文件二进制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. 当recognition_type=3时,recognition_info={“mobile”:”136XXXXXXXX“}
  19. **/
  20. private $recognitionInfo;
  21. /**
  22. * Alipass添加对象识别类型【1--订单信息;2--支付宝userId;3--支付宝绑定手机号】
  23. **/
  24. private $recognitionType;
  25. private $apiParas = array();
  26. private $terminalType;
  27. private $terminalInfo;
  28. private $prodCode;
  29. private $apiVersion="1.0";
  30. private $notifyUrl;
  31. private $returnUrl;
  32. private $needEncrypt=false;
  33. public function setFileContent($fileContent)
  34. {
  35. $this->fileContent = $fileContent;
  36. $this->apiParas["file_content"] = $fileContent;
  37. }
  38. public function getFileContent()
  39. {
  40. return $this->fileContent;
  41. }
  42. public function setRecognitionInfo($recognitionInfo)
  43. {
  44. $this->recognitionInfo = $recognitionInfo;
  45. $this->apiParas["recognition_info"] = $recognitionInfo;
  46. }
  47. public function getRecognitionInfo()
  48. {
  49. return $this->recognitionInfo;
  50. }
  51. public function setRecognitionType($recognitionType)
  52. {
  53. $this->recognitionType = $recognitionType;
  54. $this->apiParas["recognition_type"] = $recognitionType;
  55. }
  56. public function getRecognitionType()
  57. {
  58. return $this->recognitionType;
  59. }
  60. public function getApiMethodName()
  61. {
  62. return "alipay.pass.file.add";
  63. }
  64. public function setNotifyUrl($notifyUrl)
  65. {
  66. $this->notifyUrl=$notifyUrl;
  67. }
  68. public function getNotifyUrl()
  69. {
  70. return $this->notifyUrl;
  71. }
  72. public function setReturnUrl($returnUrl)
  73. {
  74. $this->returnUrl=$returnUrl;
  75. }
  76. public function getReturnUrl()
  77. {
  78. return $this->returnUrl;
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function getTerminalType()
  85. {
  86. return $this->terminalType;
  87. }
  88. public function setTerminalType($terminalType)
  89. {
  90. $this->terminalType = $terminalType;
  91. }
  92. public function getTerminalInfo()
  93. {
  94. return $this->terminalInfo;
  95. }
  96. public function setTerminalInfo($terminalInfo)
  97. {
  98. $this->terminalInfo = $terminalInfo;
  99. }
  100. public function getProdCode()
  101. {
  102. return $this->prodCode;
  103. }
  104. public function setProdCode($prodCode)
  105. {
  106. $this->prodCode = $prodCode;
  107. }
  108. public function setApiVersion($apiVersion)
  109. {
  110. $this->apiVersion=$apiVersion;
  111. }
  112. public function getApiVersion()
  113. {
  114. return $this->apiVersion;
  115. }
  116. public function setNeedEncrypt($needEncrypt)
  117. {
  118. $this->needEncrypt=$needEncrypt;
  119. }
  120. public function getNeedEncrypt()
  121. {
  122. return $this->needEncrypt;
  123. }
  124. }