| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296 |
- <?php
- /**
- * TOP API: taobao.tbk.dg.vegas.tlj.create request
- *
- * @author auto create
- * @since 1.0, 2025.01.16
- */
- class TbkDgVegasTljCreateRequest
- {
- /**
- * 妈妈广告位Id
- **/
- private $adzoneId;
-
- /**
- * 淘礼金皮肤模版ID,1、日常模板(长期可用) 2、弹窗模板(长期可用) 3、近期大促活动模版
- **/
- private $awardImgTemplateId;
-
- /**
- * 已下线,后续不需要填写
- **/
- private $campaignType;
-
- /**
- * 宝贝ID或营销ID
- **/
- private $itemId;
-
- /**
- * 淘礼金名称,最大10个字符
- **/
- private $name;
-
- /**
- * 单个淘礼金面额,支持两位小数,单位元
- **/
- private $perFace;
-
- /**
- * 必须传入0
- **/
- private $securityLevel;
-
- /**
- * 必须设置为true,默认开启安全
- **/
- private $securitySwitch;
-
- /**
- * 发放截止时间
- **/
- private $sendEndTime;
-
- /**
- * 发放开始时间
- **/
- private $sendStartTime;
-
- /**
- * 淘礼金总个数
- **/
- private $totalNum;
-
- /**
- * 使用结束日期。如果是结束时间模式为相对时间,时间格式为1-7直接的整数, 例如,1(相对领取时间1天); 如果是绝对时间,格式为yyyy-MM-dd,例如,2019-01-29,表示到2019-01-29 23:59:59结束,格式 yyyy-MM-dd HH:mm:ss,例如,2019-01-29 20:00:10,表示从2019-01-29 20:00:10 开始
- **/
- private $useEndTime;
-
- /**
- * 结束日期的模式,1:相对时间,2:绝对时间
- **/
- private $useEndTimeMode;
-
- /**
- * 使用开始日期。相对时间,无需填写,以用户领取时间作为使用开始时间。绝对时间,格式 yyyy-MM-dd,例如,2019-01-29,表示从2019-01-29 00:00:00 开始,格式 yyyy-MM-dd HH:mm:ss,例如,2019-01-29 20:00:10,表示从2019-01-2920:00:10 开始
- **/
- private $useStartTime;
-
- /**
- * 淘礼金使用门槛,实付款大于等于门槛面额时才可使用此淘礼金;门槛值不能小于淘礼金面额
- **/
- private $useThreshold;
-
- /**
- * 单用户累计中奖次数上限
- **/
- private $userTotalWinNumLimit;
-
- private $apiParas = array();
-
- public function setAdzoneId($adzoneId)
- {
- $this->adzoneId = $adzoneId;
- $this->apiParas["adzone_id"] = $adzoneId;
- }
- public function getAdzoneId()
- {
- return $this->adzoneId;
- }
- public function setAwardImgTemplateId($awardImgTemplateId)
- {
- $this->awardImgTemplateId = $awardImgTemplateId;
- $this->apiParas["award_img_template_id"] = $awardImgTemplateId;
- }
- public function getAwardImgTemplateId()
- {
- return $this->awardImgTemplateId;
- }
- public function setCampaignType($campaignType)
- {
- $this->campaignType = $campaignType;
- $this->apiParas["campaign_type"] = $campaignType;
- }
- public function getCampaignType()
- {
- return $this->campaignType;
- }
- public function setItemId($itemId)
- {
- $this->itemId = $itemId;
- $this->apiParas["item_id"] = $itemId;
- }
- public function getItemId()
- {
- return $this->itemId;
- }
- public function setName($name)
- {
- $this->name = $name;
- $this->apiParas["name"] = $name;
- }
- public function getName()
- {
- return $this->name;
- }
- public function setPerFace($perFace)
- {
- $this->perFace = $perFace;
- $this->apiParas["per_face"] = $perFace;
- }
- public function getPerFace()
- {
- return $this->perFace;
- }
- public function setSecurityLevel($securityLevel)
- {
- $this->securityLevel = $securityLevel;
- $this->apiParas["security_level"] = $securityLevel;
- }
- public function getSecurityLevel()
- {
- return $this->securityLevel;
- }
- public function setSecuritySwitch($securitySwitch)
- {
- $this->securitySwitch = $securitySwitch;
- $this->apiParas["security_switch"] = $securitySwitch;
- }
- public function getSecuritySwitch()
- {
- return $this->securitySwitch;
- }
- public function setSendEndTime($sendEndTime)
- {
- $this->sendEndTime = $sendEndTime;
- $this->apiParas["send_end_time"] = $sendEndTime;
- }
- public function getSendEndTime()
- {
- return $this->sendEndTime;
- }
- public function setSendStartTime($sendStartTime)
- {
- $this->sendStartTime = $sendStartTime;
- $this->apiParas["send_start_time"] = $sendStartTime;
- }
- public function getSendStartTime()
- {
- return $this->sendStartTime;
- }
- public function setTotalNum($totalNum)
- {
- $this->totalNum = $totalNum;
- $this->apiParas["total_num"] = $totalNum;
- }
- public function getTotalNum()
- {
- return $this->totalNum;
- }
- public function setUseEndTime($useEndTime)
- {
- $this->useEndTime = $useEndTime;
- $this->apiParas["use_end_time"] = $useEndTime;
- }
- public function getUseEndTime()
- {
- return $this->useEndTime;
- }
- public function setUseEndTimeMode($useEndTimeMode)
- {
- $this->useEndTimeMode = $useEndTimeMode;
- $this->apiParas["use_end_time_mode"] = $useEndTimeMode;
- }
- public function getUseEndTimeMode()
- {
- return $this->useEndTimeMode;
- }
- public function setUseStartTime($useStartTime)
- {
- $this->useStartTime = $useStartTime;
- $this->apiParas["use_start_time"] = $useStartTime;
- }
- public function getUseStartTime()
- {
- return $this->useStartTime;
- }
- public function setUseThreshold($useThreshold)
- {
- $this->useThreshold = $useThreshold;
- $this->apiParas["use_threshold"] = $useThreshold;
- }
- public function getUseThreshold()
- {
- return $this->useThreshold;
- }
- public function setUserTotalWinNumLimit($userTotalWinNumLimit)
- {
- $this->userTotalWinNumLimit = $userTotalWinNumLimit;
- $this->apiParas["user_total_win_num_limit"] = $userTotalWinNumLimit;
- }
- public function getUserTotalWinNumLimit()
- {
- return $this->userTotalWinNumLimit;
- }
- public function getApiMethodName()
- {
- return "taobao.tbk.dg.vegas.tlj.create";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
- RequestCheckUtil::checkNotNull($this->itemId,"itemId");
- RequestCheckUtil::checkNotNull($this->name,"name");
- RequestCheckUtil::checkNotNull($this->perFace,"perFace");
- RequestCheckUtil::checkNotNull($this->securitySwitch,"securitySwitch");
- RequestCheckUtil::checkNotNull($this->sendStartTime,"sendStartTime");
- RequestCheckUtil::checkNotNull($this->totalNum,"totalNum");
- RequestCheckUtil::checkNotNull($this->userTotalWinNumLimit,"userTotalWinNumLimit");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|