1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?php
- /**
- * TOP API: taobao.tbk.coupon.convert request
- *
- * @author auto create
- * @since 1.0, 2017.12.06
- */
- class TbkCouponConvertRequest
- {
- /**
- * 推广位id,mm_xx_xx_xx pid三段式中的第三段
- **/
- private $adzoneId;
-
- /**
- * 淘客商品id
- **/
- private $itemId;
-
- /**
- * 营销计划链接中的me参数
- **/
- private $me;
-
- /**
- * 1:PC,2:无线,默认:1
- **/
- private $platform;
-
- private $apiParas = array();
-
- public function setAdzoneId($adzoneId)
- {
- $this->adzoneId = $adzoneId;
- $this->apiParas["adzone_id"] = $adzoneId;
- }
- public function getAdzoneId()
- {
- return $this->adzoneId;
- }
- public function setItemId($itemId)
- {
- $this->itemId = $itemId;
- $this->apiParas["item_id"] = $itemId;
- }
- public function getItemId()
- {
- return $this->itemId;
- }
- public function setMe($me)
- {
- $this->me = $me;
- $this->apiParas["me"] = $me;
- }
- public function getMe()
- {
- return $this->me;
- }
- public function setPlatform($platform)
- {
- $this->platform = $platform;
- $this->apiParas["platform"] = $platform;
- }
- public function getPlatform()
- {
- return $this->platform;
- }
- public function getApiMethodName()
- {
- return "taobao.tbk.coupon.convert";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
- RequestCheckUtil::checkNotNull($this->itemId,"itemId");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|