| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <?php
- /**
- * TOP API: taobao.open.account.token.apply request
- *
- * @author auto create
- * @since 1.0, 2017.07.31
- */
- class OpenAccountTokenApplyRequest
- {
- /**
- * 用于透传一些业务附加参数
- **/
- private $ext;
-
- /**
- * isv自己账号的唯一id
- **/
- private $isvAccountId;
-
- /**
- * ISV APP的登录态时长单位是秒
- **/
- private $loginStateExpireIn;
-
- /**
- * open account id
- **/
- private $openAccountId;
-
- /**
- * 时间戳单位是毫秒
- **/
- private $tokenTimestamp;
-
- /**
- * 用于防重放的唯一id
- **/
- private $uuid;
-
- private $apiParas = array();
-
- public function setExt($ext)
- {
- $this->ext = $ext;
- $this->apiParas["ext"] = $ext;
- }
- public function getExt()
- {
- return $this->ext;
- }
- public function setIsvAccountId($isvAccountId)
- {
- $this->isvAccountId = $isvAccountId;
- $this->apiParas["isv_account_id"] = $isvAccountId;
- }
- public function getIsvAccountId()
- {
- return $this->isvAccountId;
- }
- public function setLoginStateExpireIn($loginStateExpireIn)
- {
- $this->loginStateExpireIn = $loginStateExpireIn;
- $this->apiParas["login_state_expire_in"] = $loginStateExpireIn;
- }
- public function getLoginStateExpireIn()
- {
- return $this->loginStateExpireIn;
- }
- public function setOpenAccountId($openAccountId)
- {
- $this->openAccountId = $openAccountId;
- $this->apiParas["open_account_id"] = $openAccountId;
- }
- public function getOpenAccountId()
- {
- return $this->openAccountId;
- }
- public function setTokenTimestamp($tokenTimestamp)
- {
- $this->tokenTimestamp = $tokenTimestamp;
- $this->apiParas["token_timestamp"] = $tokenTimestamp;
- }
- public function getTokenTimestamp()
- {
- return $this->tokenTimestamp;
- }
- public function setUuid($uuid)
- {
- $this->uuid = $uuid;
- $this->apiParas["uuid"] = $uuid;
- }
- public function getUuid()
- {
- return $this->uuid;
- }
- public function getApiMethodName()
- {
- return "taobao.open.account.token.apply";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|