<?php
class TbkDgMaterialOptionalRequest
{
private $adzoneId;
private $cat;
private $cityCode;
private $deviceEncrypt;
private $deviceType;
private $deviceValue;
private $endKaTkRate;
private $endPrice;
private $endTkRate;
private $hasCoupon;
private $includeGoodRate;
private $includePayRate30;
private $includeRfdRate;
private $ip;
private $isOverseas;
private $isTmall;
private $itemloc;
private $latitude;
private $lockRateEndTime;
private $lockRateStartTime;
private $longitude;
private $materialId;
private $needFreeShipment;
private $needPrepay;
private $npxLevel;
private $pageNo;
private $pageSize;
private $platform;
private $q;
private $relationId;
private $sellerIds;
private $sort;
private $specialId;
private $startDsr;
private $startKaTkRate;
private $startPrice;
private $startTkRate;
private $apiParas = array();
public function setAdzoneId($adzoneId)
{
$this->adzoneId = $adzoneId;
$this->apiParas["adzone_id"] = $adzoneId;
}
public function getAdzoneId()
{
return $this->adzoneId;
}
public function setCat($cat)
{
$this->cat = $cat;
$this->apiParas["cat"] = $cat;
}
public function getCat()
{
return $this->cat;
}
public function setCityCode($cityCode)
{
$this->cityCode = $cityCode;
$this->apiParas["city_code"] = $cityCode;
}
public function getCityCode()
{
return $this->cityCode;
}
public function setDeviceEncrypt($deviceEncrypt)
{
$this->deviceEncrypt = $deviceEncrypt;
$this->apiParas["device_encrypt"] = $deviceEncrypt;
}
public function getDeviceEncrypt()
{
return $this->deviceEncrypt;
}
public function setDeviceType($deviceType)
{
$this->deviceType = $deviceType;
$this->apiParas["device_type"] = $deviceType;
}
public function getDeviceType()
{
return $this->deviceType;
}
public function setDeviceValue($deviceValue)
{
$this->deviceValue = $deviceValue;
$this->apiParas["device_value"] = $deviceValue;
}
public function getDeviceValue()
{
return $this->deviceValue;
}
public function setEndKaTkRate($endKaTkRate)
{
$this->endKaTkRate = $endKaTkRate;
$this->apiParas["end_ka_tk_rate"] = $endKaTkRate;
}
public function getEndKaTkRate()
{
return $this->endKaTkRate;
}
public function setEndPrice($endPrice)
{
$this->endPrice = $endPrice;
$this->apiParas["end_price"] = $endPrice;
}
public function getEndPrice()
{
return $this->endPrice;
}
public function setEndTkRate($endTkRate)
{
$this->endTkRate = $endTkRate;
$this->apiParas["end_tk_rate"] = $endTkRate;
}
public function getEndTkRate()
{
return $this->endTkRate;
}
public function setHasCoupon($hasCoupon)
{
$this->hasCoupon = $hasCoupon;
$this->apiParas["has_coupon"] = $hasCoupon;
}
public function getHasCoupon()
{
return $this->hasCoupon;
}
public function setIncludeGoodRate($includeGoodRate)
{
$this->includeGoodRate = $includeGoodRate;
$this->apiParas["include_good_rate"] = $includeGoodRate;
}
public function getIncludeGoodRate()
{
return $this->includeGoodRate;
}
public function setIncludePayRate30($includePayRate30)
{
$this->includePayRate30 = $includePayRate30;
$this->apiParas["include_pay_rate_30"] = $includePayRate30;
}
public function getIncludePayRate30()
{
return $this->includePayRate30;
}
public function setIncludeRfdRate($includeRfdRate)
{
$this->includeRfdRate = $includeRfdRate;
$this->apiParas["include_rfd_rate"] = $includeRfdRate;
}
public function getIncludeRfdRate()
{
return $this->includeRfdRate;
}
public function setIp($ip)
{
$this->ip = $ip;
$this->apiParas["ip"] = $ip;
}
public function getIp()
{
return $this->ip;
}
public function setIsOverseas($isOverseas)
{
$this->isOverseas = $isOverseas;
$this->apiParas["is_overseas"] = $isOverseas;
}
public function getIsOverseas()
{
return $this->isOverseas;
}
public function setIsTmall($isTmall)
{
$this->isTmall = $isTmall;
$this->apiParas["is_tmall"] = $isTmall;
}
public function getIsTmall()
{
return $this->isTmall;
}
public function setItemloc($itemloc)
{
$this->itemloc = $itemloc;
$this->apiParas["itemloc"] = $itemloc;
}
public function getItemloc()
{
return $this->itemloc;
}
public function setLatitude($latitude)
{
$this->latitude = $latitude;
$this->apiParas["latitude"] = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLockRateEndTime($lockRateEndTime)
{
$this->lockRateEndTime = $lockRateEndTime;
$this->apiParas["lock_rate_end_time"] = $lockRateEndTime;
}
public function getLockRateEndTime()
{
return $this->lockRateEndTime;
}
public function setLockRateStartTime($lockRateStartTime)
{
$this->lockRateStartTime = $lockRateStartTime;
$this->apiParas["lock_rate_start_time"] = $lockRateStartTime;
}
public function getLockRateStartTime()
{
return $this->lockRateStartTime;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
$this->apiParas["longitude"] = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
public function setMaterialId($materialId)
{
$this->materialId = $materialId;
$this->apiParas["material_id"] = $materialId;
}
public function getMaterialId()
{
return $this->materialId;
}
public function setNeedFreeShipment($needFreeShipment)
{
$this->needFreeShipment = $needFreeShipment;
$this->apiParas["need_free_shipment"] = $needFreeShipment;
}
public function getNeedFreeShipment()
{
return $this->needFreeShipment;
}
public function setNeedPrepay($needPrepay)
{
$this->needPrepay = $needPrepay;
$this->apiParas["need_prepay"] = $needPrepay;
}
public function getNeedPrepay()
{
return $this->needPrepay;
}
public function setNpxLevel($npxLevel)
{
$this->npxLevel = $npxLevel;
$this->apiParas["npx_level"] = $npxLevel;
}
public function getNpxLevel()
{
return $this->npxLevel;
}
public function setPageNo($pageNo)
{
$this->pageNo = $pageNo;
$this->apiParas["page_no"] = $pageNo;
}
public function getPageNo()
{
return $this->pageNo;
}
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
$this->apiParas["page_size"] = $pageSize;
}
public function getPageSize()
{
return $this->pageSize;
}
public function setPlatform($platform)
{
$this->platform = $platform;
$this->apiParas["platform"] = $platform;
}
public function getPlatform()
{
return $this->platform;
}
public function setQ($q)
{
$this->q = $q;
$this->apiParas["q"] = $q;
}
public function getQ()
{
return $this->q;
}
public function setRelationId($relationId)
{
$this->relationId = $relationId;
$this->apiParas["relation_id"] = $relationId;
}
public function getRelationId()
{
return $this->relationId;
}
public function setSellerIds($sellerIds)
{
$this->sellerIds = $sellerIds;
$this->apiParas["seller_ids"] = $sellerIds;
}
public function getSellerIds()
{
return $this->sellerIds;
}
public function setSort($sort)
{
$this->sort = $sort;
$this->apiParas["sort"] = $sort;
}
public function getSort()
{
return $this->sort;
}
public function setSpecialId($specialId)
{
$this->specialId = $specialId;
$this->apiParas["special_id"] = $specialId;
}
public function getSpecialId()
{
return $this->specialId;
}
public function setStartDsr($startDsr)
{
$this->startDsr = $startDsr;
$this->apiParas["start_dsr"] = $startDsr;
}
public function getStartDsr()
{
return $this->startDsr;
}
public function setStartKaTkRate($startKaTkRate)
{
$this->startKaTkRate = $startKaTkRate;
$this->apiParas["start_ka_tk_rate"] = $startKaTkRate;
}
public function getStartKaTkRate()
{
return $this->startKaTkRate;
}
public function setStartPrice($startPrice)
{
$this->startPrice = $startPrice;
$this->apiParas["start_price"] = $startPrice;
}
public function getStartPrice()
{
return $this->startPrice;
}
public function setStartTkRate($startTkRate)
{
$this->startTkRate = $startTkRate;
$this->apiParas["start_tk_rate"] = $startTkRate;
}
public function getStartTkRate()
{
return $this->startTkRate;
}
public function getApiMethodName()
{
return "taobao.tbk.dg.material.optional";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
RequestCheckUtil::checkMaxValue($this->startDsr,50000,"startDsr");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}