优惠券订单及其他脚本

TbkCouponConvertRequest.php 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.coupon.convert request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.01.18
  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. /**
  27. * 淘宝客推广链接(测试中请勿使用)
  28. **/
  29. private $url;
  30. /**
  31. * 物料块id(测试中请勿使用)
  32. **/
  33. private $xId;
  34. private $apiParas = array();
  35. public function setAdzoneId($adzoneId)
  36. {
  37. $this->adzoneId = $adzoneId;
  38. $this->apiParas["adzone_id"] = $adzoneId;
  39. }
  40. public function getAdzoneId()
  41. {
  42. return $this->adzoneId;
  43. }
  44. public function setItemId($itemId)
  45. {
  46. $this->itemId = $itemId;
  47. $this->apiParas["item_id"] = $itemId;
  48. }
  49. public function getItemId()
  50. {
  51. return $this->itemId;
  52. }
  53. public function setMe($me)
  54. {
  55. $this->me = $me;
  56. $this->apiParas["me"] = $me;
  57. }
  58. public function getMe()
  59. {
  60. return $this->me;
  61. }
  62. public function setPlatform($platform)
  63. {
  64. $this->platform = $platform;
  65. $this->apiParas["platform"] = $platform;
  66. }
  67. public function getPlatform()
  68. {
  69. return $this->platform;
  70. }
  71. public function setUrl($url)
  72. {
  73. $this->url = $url;
  74. $this->apiParas["url"] = $url;
  75. }
  76. public function getUrl()
  77. {
  78. return $this->url;
  79. }
  80. public function setxId($xId)
  81. {
  82. $this->xId = $xId;
  83. $this->apiParas["x_id"] = $xId;
  84. }
  85. public function getxId()
  86. {
  87. return $this->xId;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "taobao.tbk.coupon.convert";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
  100. }
  101. public function putOtherTextParam($key, $value) {
  102. $this->apiParas[$key] = $value;
  103. $this->$key = $value;
  104. }
  105. }