TbkScPublisherInfoSaveRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.sc.publisher.info.save request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.11.03
  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. * 线下备案注册信息,字段包含: 电话号码(phoneNumber,必填),省(province,必填),市(city,必填),区县街道(location,必填),详细地址(detailAddress,必填),经营类型(career,线下个人必填),店铺类型(shopType,线下店铺必填),店铺名称(shopName,线下店铺必填),店铺证书类型(shopCertifyType,线下店铺选填),店铺证书编号(certifyNumber,线下店铺选填)
  32. **/
  33. private $registerInfo;
  34. /**
  35. * 渠道备案 - 来源,取链接的来源
  36. **/
  37. private $relationFrom;
  38. private $apiParas = array();
  39. public function setInfoType($infoType)
  40. {
  41. $this->infoType = $infoType;
  42. $this->apiParas["info_type"] = $infoType;
  43. }
  44. public function getInfoType()
  45. {
  46. return $this->infoType;
  47. }
  48. public function setInviterCode($inviterCode)
  49. {
  50. $this->inviterCode = $inviterCode;
  51. $this->apiParas["inviter_code"] = $inviterCode;
  52. }
  53. public function getInviterCode()
  54. {
  55. return $this->inviterCode;
  56. }
  57. public function setNote($note)
  58. {
  59. $this->note = $note;
  60. $this->apiParas["note"] = $note;
  61. }
  62. public function getNote()
  63. {
  64. return $this->note;
  65. }
  66. public function setOfflineScene($offlineScene)
  67. {
  68. $this->offlineScene = $offlineScene;
  69. $this->apiParas["offline_scene"] = $offlineScene;
  70. }
  71. public function getOfflineScene()
  72. {
  73. return $this->offlineScene;
  74. }
  75. public function setOnlineScene($onlineScene)
  76. {
  77. $this->onlineScene = $onlineScene;
  78. $this->apiParas["online_scene"] = $onlineScene;
  79. }
  80. public function getOnlineScene()
  81. {
  82. return $this->onlineScene;
  83. }
  84. public function setRegisterInfo($registerInfo)
  85. {
  86. $this->registerInfo = $registerInfo;
  87. $this->apiParas["register_info"] = $registerInfo;
  88. }
  89. public function getRegisterInfo()
  90. {
  91. return $this->registerInfo;
  92. }
  93. public function setRelationFrom($relationFrom)
  94. {
  95. $this->relationFrom = $relationFrom;
  96. $this->apiParas["relation_from"] = $relationFrom;
  97. }
  98. public function getRelationFrom()
  99. {
  100. return $this->relationFrom;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "taobao.tbk.sc.publisher.info.save";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->infoType,"infoType");
  113. RequestCheckUtil::checkNotNull($this->inviterCode,"inviterCode");
  114. }
  115. public function putOtherTextParam($key, $value) {
  116. $this->apiParas[$key] = $value;
  117. $this->$key = $value;
  118. }
  119. }