123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?php
- /**
- * TOP API: taobao.tbk.sc.publisher.info.save request
- *
- * @author auto create
- * @since 1.0, 2018.12.14
- */
- class TbkScPublisherInfoSaveRequest
- {
- /**
- * 类型,必选 默认为1:
- **/
- private $infoType;
-
- /**
- * 渠道备案 - 淘宝客邀请渠道的邀请码
- **/
- private $inviterCode;
-
- /**
- * 媒体侧渠道备注
- **/
- private $note;
-
- /**
- * 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他
- **/
- private $offlineScene;
-
- /**
- * 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他
- **/
- private $onlineScene;
-
- /**
- * 渠道备案 - 来源,取链接的来源
- **/
- private $relationFrom;
-
- private $apiParas = array();
-
- public function setInfoType($infoType)
- {
- $this->infoType = $infoType;
- $this->apiParas["info_type"] = $infoType;
- }
- public function getInfoType()
- {
- return $this->infoType;
- }
- public function setInviterCode($inviterCode)
- {
- $this->inviterCode = $inviterCode;
- $this->apiParas["inviter_code"] = $inviterCode;
- }
- public function getInviterCode()
- {
- return $this->inviterCode;
- }
- public function setNote($note)
- {
- $this->note = $note;
- $this->apiParas["note"] = $note;
- }
- public function getNote()
- {
- return $this->note;
- }
- public function setOfflineScene($offlineScene)
- {
- $this->offlineScene = $offlineScene;
- $this->apiParas["offline_scene"] = $offlineScene;
- }
- public function getOfflineScene()
- {
- return $this->offlineScene;
- }
- public function setOnlineScene($onlineScene)
- {
- $this->onlineScene = $onlineScene;
- $this->apiParas["online_scene"] = $onlineScene;
- }
- public function getOnlineScene()
- {
- return $this->onlineScene;
- }
- public function setRelationFrom($relationFrom)
- {
- $this->relationFrom = $relationFrom;
- $this->apiParas["relation_from"] = $relationFrom;
- }
- public function getRelationFrom()
- {
- return $this->relationFrom;
- }
- public function getApiMethodName()
- {
- return "taobao.tbk.sc.publisher.info.save";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->infoType,"infoType");
- RequestCheckUtil::checkNotNull($this->inviterCode,"inviterCode");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|