Ei kuvausta

TbkCouponConvertRequest.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.coupon.convert request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2017.12.06
  7. */
  8. class TbkCouponConvertRequest
  9. {
  10. /**
  11. * 推广位id,mm_xx_xx_xx pid三段式中的第三段
  12. **/
  13. private $adzoneId;
  14. /**
  15. * 淘客商品id
  16. **/
  17. private $itemId;
  18. /**
  19. * 营销计划链接中的me参数
  20. **/
  21. private $me;
  22. /**
  23. * 1:PC,2:无线,默认:1
  24. **/
  25. private $platform;
  26. private $apiParas = array();
  27. public function setAdzoneId($adzoneId)
  28. {
  29. $this->adzoneId = $adzoneId;
  30. $this->apiParas["adzone_id"] = $adzoneId;
  31. }
  32. public function getAdzoneId()
  33. {
  34. return $this->adzoneId;
  35. }
  36. public function setItemId($itemId)
  37. {
  38. $this->itemId = $itemId;
  39. $this->apiParas["item_id"] = $itemId;
  40. }
  41. public function getItemId()
  42. {
  43. return $this->itemId;
  44. }
  45. public function setMe($me)
  46. {
  47. $this->me = $me;
  48. $this->apiParas["me"] = $me;
  49. }
  50. public function getMe()
  51. {
  52. return $this->me;
  53. }
  54. public function setPlatform($platform)
  55. {
  56. $this->platform = $platform;
  57. $this->apiParas["platform"] = $platform;
  58. }
  59. public function getPlatform()
  60. {
  61. return $this->platform;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "taobao.tbk.coupon.convert";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
  74. RequestCheckUtil::checkNotNull($this->itemId,"itemId");
  75. }
  76. public function putOtherTextParam($key, $value) {
  77. $this->apiParas[$key] = $value;
  78. $this->$key = $value;
  79. }
  80. }