AlipayPassSyncAddRequest.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.pass.sync.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016-12-16 16:35:12
  7. */
  8. class AlipayPassSyncAddRequest
  9. {
  10. /**
  11. * alipass文件Base64编码后的内容。
  12. **/
  13. private $fileContent;
  14. /**
  15. * 商户外部交易号,由商户生成并确保其唯一性
  16. **/
  17. private $outTradeNo;
  18. /**
  19. * 商户与支付宝签约时,分配的唯一ID。
  20. **/
  21. private $partnerId;
  22. /**
  23. * 支付宝用户ID,即买家用户ID
  24. **/
  25. private $userId;
  26. private $apiParas = array();
  27. private $terminalType;
  28. private $terminalInfo;
  29. private $prodCode;
  30. private $apiVersion="1.0";
  31. private $notifyUrl;
  32. private $returnUrl;
  33. private $needEncrypt=false;
  34. public function setFileContent($fileContent)
  35. {
  36. $this->fileContent = $fileContent;
  37. $this->apiParas["file_content"] = $fileContent;
  38. }
  39. public function getFileContent()
  40. {
  41. return $this->fileContent;
  42. }
  43. public function setOutTradeNo($outTradeNo)
  44. {
  45. $this->outTradeNo = $outTradeNo;
  46. $this->apiParas["out_trade_no"] = $outTradeNo;
  47. }
  48. public function getOutTradeNo()
  49. {
  50. return $this->outTradeNo;
  51. }
  52. public function setPartnerId($partnerId)
  53. {
  54. $this->partnerId = $partnerId;
  55. $this->apiParas["partner_id"] = $partnerId;
  56. }
  57. public function getPartnerId()
  58. {
  59. return $this->partnerId;
  60. }
  61. public function setUserId($userId)
  62. {
  63. $this->userId = $userId;
  64. $this->apiParas["user_id"] = $userId;
  65. }
  66. public function getUserId()
  67. {
  68. return $this->userId;
  69. }
  70. public function getApiMethodName()
  71. {
  72. return "alipay.pass.sync.add";
  73. }
  74. public function setNotifyUrl($notifyUrl)
  75. {
  76. $this->notifyUrl=$notifyUrl;
  77. }
  78. public function getNotifyUrl()
  79. {
  80. return $this->notifyUrl;
  81. }
  82. public function setReturnUrl($returnUrl)
  83. {
  84. $this->returnUrl=$returnUrl;
  85. }
  86. public function getReturnUrl()
  87. {
  88. return $this->returnUrl;
  89. }
  90. public function getApiParas()
  91. {
  92. return $this->apiParas;
  93. }
  94. public function getTerminalType()
  95. {
  96. return $this->terminalType;
  97. }
  98. public function setTerminalType($terminalType)
  99. {
  100. $this->terminalType = $terminalType;
  101. }
  102. public function getTerminalInfo()
  103. {
  104. return $this->terminalInfo;
  105. }
  106. public function setTerminalInfo($terminalInfo)
  107. {
  108. $this->terminalInfo = $terminalInfo;
  109. }
  110. public function getProdCode()
  111. {
  112. return $this->prodCode;
  113. }
  114. public function setProdCode($prodCode)
  115. {
  116. $this->prodCode = $prodCode;
  117. }
  118. public function setApiVersion($apiVersion)
  119. {
  120. $this->apiVersion=$apiVersion;
  121. }
  122. public function getApiVersion()
  123. {
  124. return $this->apiVersion;
  125. }
  126. public function setNeedEncrypt($needEncrypt)
  127. {
  128. $this->needEncrypt=$needEncrypt;
  129. }
  130. public function getNeedEncrypt()
  131. {
  132. return $this->needEncrypt;
  133. }
  134. }