Bez popisu

TbkTpwdConvertRequest.php 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.tpwd.convert request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.12.20
  7. */
  8. class TbkTpwdConvertRequest
  9. {
  10. /**
  11. * 广告位ID
  12. **/
  13. private $adzoneId;
  14. /**
  15. * 1表示商品转通用计划链接,其他值或不传表示优先转营销计划链接
  16. **/
  17. private $dx;
  18. /**
  19. * 需要解析的淘口令
  20. **/
  21. private $passwordContent;
  22. private $apiParas = array();
  23. public function setAdzoneId($adzoneId)
  24. {
  25. $this->adzoneId = $adzoneId;
  26. $this->apiParas["adzone_id"] = $adzoneId;
  27. }
  28. public function getAdzoneId()
  29. {
  30. return $this->adzoneId;
  31. }
  32. public function setDx($dx)
  33. {
  34. $this->dx = $dx;
  35. $this->apiParas["dx"] = $dx;
  36. }
  37. public function getDx()
  38. {
  39. return $this->dx;
  40. }
  41. public function setPasswordContent($passwordContent)
  42. {
  43. $this->passwordContent = $passwordContent;
  44. $this->apiParas["password_content"] = $passwordContent;
  45. }
  46. public function getPasswordContent()
  47. {
  48. return $this->passwordContent;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "taobao.tbk.tpwd.convert";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
  61. RequestCheckUtil::checkNotNull($this->passwordContent,"passwordContent");
  62. }
  63. public function putOtherTextParam($key, $value) {
  64. $this->apiParas[$key] = $value;
  65. $this->$key = $value;
  66. }
  67. }