AlipayOpenAppAuthsubsAddRequest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /**
  3. * ALIPAY API: alipay.open.app.authsubs.add request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019-03-08 15:29:11
  7. */
  8. class AlipayOpenAppAuthsubsAddRequest
  9. {
  10. /**
  11. * 入参主要包含订购授权信息:
  12. account_no:用来标识哪个支付宝账户号发起订购、授权操作
  13. scope:用来标识授权范围;default表示默认授权,pay表示支付类授权
  14. **/
  15. private $bizContent;
  16. private $apiParas = array();
  17. private $terminalType;
  18. private $terminalInfo;
  19. private $prodCode;
  20. private $apiVersion="1.0";
  21. private $notifyUrl;
  22. private $returnUrl;
  23. private $needEncrypt=false;
  24. public function setBizContent($bizContent)
  25. {
  26. $this->bizContent = $bizContent;
  27. $this->apiParas["biz_content"] = $bizContent;
  28. }
  29. public function getBizContent()
  30. {
  31. return $this->bizContent;
  32. }
  33. public function getApiMethodName()
  34. {
  35. return "alipay.open.app.authsubs.add";
  36. }
  37. public function setNotifyUrl($notifyUrl)
  38. {
  39. $this->notifyUrl=$notifyUrl;
  40. }
  41. public function getNotifyUrl()
  42. {
  43. return $this->notifyUrl;
  44. }
  45. public function setReturnUrl($returnUrl)
  46. {
  47. $this->returnUrl=$returnUrl;
  48. }
  49. public function getReturnUrl()
  50. {
  51. return $this->returnUrl;
  52. }
  53. public function getApiParas()
  54. {
  55. return $this->apiParas;
  56. }
  57. public function getTerminalType()
  58. {
  59. return $this->terminalType;
  60. }
  61. public function setTerminalType($terminalType)
  62. {
  63. $this->terminalType = $terminalType;
  64. }
  65. public function getTerminalInfo()
  66. {
  67. return $this->terminalInfo;
  68. }
  69. public function setTerminalInfo($terminalInfo)
  70. {
  71. $this->terminalInfo = $terminalInfo;
  72. }
  73. public function getProdCode()
  74. {
  75. return $this->prodCode;
  76. }
  77. public function setProdCode($prodCode)
  78. {
  79. $this->prodCode = $prodCode;
  80. }
  81. public function setApiVersion($apiVersion)
  82. {
  83. $this->apiVersion=$apiVersion;
  84. }
  85. public function getApiVersion()
  86. {
  87. return $this->apiVersion;
  88. }
  89. public function setNeedEncrypt($needEncrypt)
  90. {
  91. $this->needEncrypt=$needEncrypt;
  92. }
  93. public function getNeedEncrypt()
  94. {
  95. return $this->needEncrypt;
  96. }
  97. }