Nav apraksta

TbkScPublisherInfoSaveRequest.php 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.sc.publisher.info.save request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.12.14
  7. */
  8. class TbkScPublisherInfoSaveRequest
  9. {
  10. /**
  11. * 类型,必选 默认为1:
  12. **/
  13. private $infoType;
  14. /**
  15. * 渠道备案 - 淘宝客邀请渠道的邀请码
  16. **/
  17. private $inviterCode;
  18. /**
  19. * 媒体侧渠道备注
  20. **/
  21. private $note;
  22. /**
  23. * 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他
  24. **/
  25. private $offlineScene;
  26. /**
  27. * 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他
  28. **/
  29. private $onlineScene;
  30. /**
  31. * 渠道备案 - 来源,取链接的来源
  32. **/
  33. private $relationFrom;
  34. private $apiParas = array();
  35. public function setInfoType($infoType)
  36. {
  37. $this->infoType = $infoType;
  38. $this->apiParas["info_type"] = $infoType;
  39. }
  40. public function getInfoType()
  41. {
  42. return $this->infoType;
  43. }
  44. public function setInviterCode($inviterCode)
  45. {
  46. $this->inviterCode = $inviterCode;
  47. $this->apiParas["inviter_code"] = $inviterCode;
  48. }
  49. public function getInviterCode()
  50. {
  51. return $this->inviterCode;
  52. }
  53. public function setNote($note)
  54. {
  55. $this->note = $note;
  56. $this->apiParas["note"] = $note;
  57. }
  58. public function getNote()
  59. {
  60. return $this->note;
  61. }
  62. public function setOfflineScene($offlineScene)
  63. {
  64. $this->offlineScene = $offlineScene;
  65. $this->apiParas["offline_scene"] = $offlineScene;
  66. }
  67. public function getOfflineScene()
  68. {
  69. return $this->offlineScene;
  70. }
  71. public function setOnlineScene($onlineScene)
  72. {
  73. $this->onlineScene = $onlineScene;
  74. $this->apiParas["online_scene"] = $onlineScene;
  75. }
  76. public function getOnlineScene()
  77. {
  78. return $this->onlineScene;
  79. }
  80. public function setRelationFrom($relationFrom)
  81. {
  82. $this->relationFrom = $relationFrom;
  83. $this->apiParas["relation_from"] = $relationFrom;
  84. }
  85. public function getRelationFrom()
  86. {
  87. return $this->relationFrom;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "taobao.tbk.sc.publisher.info.save";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->infoType,"infoType");
  100. RequestCheckUtil::checkNotNull($this->inviterCode,"inviterCode");
  101. }
  102. public function putOtherTextParam($key, $value) {
  103. $this->apiParas[$key] = $value;
  104. $this->$key = $value;
  105. }
  106. }