| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddDdkOauthRpPromUrlGenerateRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "channel_type")
- */
- private $channelType;
- /**
- * @JsonProperty(String, "custom_parameters")
- */
- private $customParameters;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParam, "diy_lottery_param")
- */
- private $diyLotteryParam;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParam, "diy_red_packet_param")
- */
- private $diyRedPacketParam;
- /**
- * @JsonProperty(Boolean, "generate_qq_app")
- */
- private $generateQqApp;
- /**
- * @JsonProperty(Boolean, "generate_schema_url")
- */
- private $generateSchemaUrl;
- /**
- * @JsonProperty(Boolean, "generate_short_url")
- */
- private $generateShortUrl;
- /**
- * @JsonProperty(Boolean, "generate_we_app")
- */
- private $generateWeApp;
- /**
- * @JsonProperty(List<String>, "p_id_list")
- */
- private $pIdList;
- /**
- * @JsonProperty(Long, "amount")
- */
- private $amount;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "channel_type", $this->channelType);
- $this->setUserParam($params, "custom_parameters", $this->customParameters);
- $this->setUserParam($params, "diy_lottery_param", $this->diyLotteryParam);
- $this->setUserParam($params, "diy_red_packet_param", $this->diyRedPacketParam);
- $this->setUserParam($params, "generate_qq_app", $this->generateQqApp);
- $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl);
- $this->setUserParam($params, "generate_short_url", $this->generateShortUrl);
- $this->setUserParam($params, "generate_we_app", $this->generateWeApp);
- $this->setUserParam($params, "p_id_list", $this->pIdList);
- $this->setUserParam($params, "amount", $this->amount);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.ddk.oauth.rp.prom.url.generate";
- }
- public function setChannelType($channelType)
- {
- $this->channelType = $channelType;
- }
- public function setCustomParameters($customParameters)
- {
- $this->customParameters = $customParameters;
- }
- public function setDiyLotteryParam($diyLotteryParam)
- {
- $this->diyLotteryParam = $diyLotteryParam;
- }
- public function setDiyRedPacketParam($diyRedPacketParam)
- {
- $this->diyRedPacketParam = $diyRedPacketParam;
- }
- public function setGenerateQqApp($generateQqApp)
- {
- $this->generateQqApp = $generateQqApp;
- }
- public function setGenerateSchemaUrl($generateSchemaUrl)
- {
- $this->generateSchemaUrl = $generateSchemaUrl;
- }
- public function setGenerateShortUrl($generateShortUrl)
- {
- $this->generateShortUrl = $generateShortUrl;
- }
- public function setGenerateWeApp($generateWeApp)
- {
- $this->generateWeApp = $generateWeApp;
- }
- public function setPIdList($pIdList)
- {
- $this->pIdList = $pIdList;
- }
- public function setAmount($amount)
- {
- $this->amount = $amount;
- }
- }
- class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParam extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "opt_id")
- */
- private $optId;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem>, "range_items")
- */
- private $rangeItems;
- public function setOptId($optId)
- {
- $this->optId = $optId;
- }
- public function setRangeItems($rangeItems)
- {
- $this->rangeItems = $rangeItems;
- }
- }
- class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "range_from")
- */
- private $rangeFrom;
- /**
- * @JsonProperty(Integer, "range_id")
- */
- private $rangeId;
- /**
- * @JsonProperty(Long, "range_to")
- */
- private $rangeTo;
- public function setRangeFrom($rangeFrom)
- {
- $this->rangeFrom = $rangeFrom;
- }
- public function setRangeId($rangeId)
- {
- $this->rangeId = $rangeId;
- }
- public function setRangeTo($rangeTo)
- {
- $this->rangeTo = $rangeTo;
- }
- }
- class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParam extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<Long>, "amount_probability")
- */
- private $amountProbability;
- /**
- * @JsonProperty(Boolean, "dis_text")
- */
- private $disText;
- /**
- * @JsonProperty(Boolean, "not_show_background")
- */
- private $notShowBackground;
- /**
- * @JsonProperty(Integer, "opt_id")
- */
- private $optId;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem>, "range_items")
- */
- private $rangeItems;
- public function setAmountProbability($amountProbability)
- {
- $this->amountProbability = $amountProbability;
- }
- public function setDisText($disText)
- {
- $this->disText = $disText;
- }
- public function setNotShowBackground($notShowBackground)
- {
- $this->notShowBackground = $notShowBackground;
- }
- public function setOptId($optId)
- {
- $this->optId = $optId;
- }
- public function setRangeItems($rangeItems)
- {
- $this->rangeItems = $rangeItems;
- }
- }
- class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "range_from")
- */
- private $rangeFrom;
- /**
- * @JsonProperty(Integer, "range_id")
- */
- private $rangeId;
- /**
- * @JsonProperty(Long, "range_to")
- */
- private $rangeTo;
- public function setRangeFrom($rangeFrom)
- {
- $this->rangeFrom = $rangeFrom;
- }
- public function setRangeId($rangeId)
- {
- $this->rangeId = $rangeId;
- }
- public function setRangeTo($rangeTo)
- {
- $this->rangeTo = $rangeTo;
- }
- }
|