AlipayPointOrderGetRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.point.order.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayPointOrderGetRequest
  9. {
  10. /**
  11. * isv提供的发放号订单号,由数字和组成,最大长度为32为,需要保证每笔发放的唯一性,支付宝会对该参数做唯一性控制。如果使用同样的订单号,支付宝将返回订单号已经存在的错误
  12. **/
  13. private $merchantOrderNo;
  14. /**
  15. * 用户标识符,用于指定集分宝发放的用户,和user_symbol_type一起使用,确定一个唯一的支付宝用户
  16. **/
  17. private $userSymbol;
  18. /**
  19. * 用户标识符类型,现在支持ALIPAY_USER_ID:表示支付宝用户ID,ALIPAY_LOGON_ID:表示支付宝登陆号
  20. **/
  21. private $userSymbolType;
  22. private $apiParas = array();
  23. private $terminalType;
  24. private $terminalInfo;
  25. private $prodCode;
  26. private $apiVersion="1.0";
  27. private $notifyUrl;
  28. private $returnUrl;
  29. private $needEncrypt=false;
  30. public function setMerchantOrderNo($merchantOrderNo)
  31. {
  32. $this->merchantOrderNo = $merchantOrderNo;
  33. $this->apiParas["merchant_order_no"] = $merchantOrderNo;
  34. }
  35. public function getMerchantOrderNo()
  36. {
  37. return $this->merchantOrderNo;
  38. }
  39. public function setUserSymbol($userSymbol)
  40. {
  41. $this->userSymbol = $userSymbol;
  42. $this->apiParas["user_symbol"] = $userSymbol;
  43. }
  44. public function getUserSymbol()
  45. {
  46. return $this->userSymbol;
  47. }
  48. public function setUserSymbolType($userSymbolType)
  49. {
  50. $this->userSymbolType = $userSymbolType;
  51. $this->apiParas["user_symbol_type"] = $userSymbolType;
  52. }
  53. public function getUserSymbolType()
  54. {
  55. return $this->userSymbolType;
  56. }
  57. public function getApiMethodName()
  58. {
  59. return "alipay.point.order.get";
  60. }
  61. public function setNotifyUrl($notifyUrl)
  62. {
  63. $this->notifyUrl=$notifyUrl;
  64. }
  65. public function getNotifyUrl()
  66. {
  67. return $this->notifyUrl;
  68. }
  69. public function setReturnUrl($returnUrl)
  70. {
  71. $this->returnUrl=$returnUrl;
  72. }
  73. public function getReturnUrl()
  74. {
  75. return $this->returnUrl;
  76. }
  77. public function getApiParas()
  78. {
  79. return $this->apiParas;
  80. }
  81. public function getTerminalType()
  82. {
  83. return $this->terminalType;
  84. }
  85. public function setTerminalType($terminalType)
  86. {
  87. $this->terminalType = $terminalType;
  88. }
  89. public function getTerminalInfo()
  90. {
  91. return $this->terminalInfo;
  92. }
  93. public function setTerminalInfo($terminalInfo)
  94. {
  95. $this->terminalInfo = $terminalInfo;
  96. }
  97. public function getProdCode()
  98. {
  99. return $this->prodCode;
  100. }
  101. public function setProdCode($prodCode)
  102. {
  103. $this->prodCode = $prodCode;
  104. }
  105. public function setApiVersion($apiVersion)
  106. {
  107. $this->apiVersion=$apiVersion;
  108. }
  109. public function getApiVersion()
  110. {
  111. return $this->apiVersion;
  112. }
  113. public function setNeedEncrypt($needEncrypt)
  114. {
  115. $this->needEncrypt=$needEncrypt;
  116. }
  117. public function getNeedEncrypt()
  118. {
  119. return $this->needEncrypt;
  120. }
  121. }