OpenAccountTokenApplyRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. /**
  3. * TOP API: taobao.open.account.token.apply request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.07.31
  7. */
  8. class OpenAccountTokenApplyRequest
  9. {
  10. /**
  11. * 用于透传一些业务附加参数
  12. **/
  13. private $ext;
  14. /**
  15. * isv自己账号的唯一id
  16. **/
  17. private $isvAccountId;
  18. /**
  19. * ISV APP的登录态时长单位是秒
  20. **/
  21. private $loginStateExpireIn;
  22. /**
  23. * open account id
  24. **/
  25. private $openAccountId;
  26. /**
  27. * 时间戳单位是毫秒
  28. **/
  29. private $tokenTimestamp;
  30. /**
  31. * 用于防重放的唯一id
  32. **/
  33. private $uuid;
  34. private $apiParas = array();
  35. public function setExt($ext)
  36. {
  37. $this->ext = $ext;
  38. $this->apiParas["ext"] = $ext;
  39. }
  40. public function getExt()
  41. {
  42. return $this->ext;
  43. }
  44. public function setIsvAccountId($isvAccountId)
  45. {
  46. $this->isvAccountId = $isvAccountId;
  47. $this->apiParas["isv_account_id"] = $isvAccountId;
  48. }
  49. public function getIsvAccountId()
  50. {
  51. return $this->isvAccountId;
  52. }
  53. public function setLoginStateExpireIn($loginStateExpireIn)
  54. {
  55. $this->loginStateExpireIn = $loginStateExpireIn;
  56. $this->apiParas["login_state_expire_in"] = $loginStateExpireIn;
  57. }
  58. public function getLoginStateExpireIn()
  59. {
  60. return $this->loginStateExpireIn;
  61. }
  62. public function setOpenAccountId($openAccountId)
  63. {
  64. $this->openAccountId = $openAccountId;
  65. $this->apiParas["open_account_id"] = $openAccountId;
  66. }
  67. public function getOpenAccountId()
  68. {
  69. return $this->openAccountId;
  70. }
  71. public function setTokenTimestamp($tokenTimestamp)
  72. {
  73. $this->tokenTimestamp = $tokenTimestamp;
  74. $this->apiParas["token_timestamp"] = $tokenTimestamp;
  75. }
  76. public function getTokenTimestamp()
  77. {
  78. return $this->tokenTimestamp;
  79. }
  80. public function setUuid($uuid)
  81. {
  82. $this->uuid = $uuid;
  83. $this->apiParas["uuid"] = $uuid;
  84. }
  85. public function getUuid()
  86. {
  87. return $this->uuid;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "taobao.open.account.token.apply";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. }
  100. public function putOtherTextParam($key, $value) {
  101. $this->apiParas[$key] = $value;
  102. $this->$key = $value;
  103. }
  104. }