| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddAdApiPlanUpdatePlanDiscountRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscount, "planDiscount")
- */
- private $planDiscount;
- /**
- * @JsonProperty(Long, "planId")
- */
- private $planId;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "planDiscount", $this->planDiscount);
- $this->setUserParam($params, "planId", $this->planId);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.ad.api.plan.update.plan.discount";
- }
- public function setPlanDiscount($planDiscount)
- {
- $this->planDiscount = $planDiscount;
- }
- public function setPlanId($planId)
- {
- $this->planId = $planId;
- }
- }
- class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscount extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem>, "discounts")
- */
- private $discounts;
- public function setDiscounts($discounts)
- {
- $this->discounts = $discounts;
- }
- }
- class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "index")
- */
- private $index;
- /**
- * @JsonProperty(Integer, "rate")
- */
- private $rate;
- public function setIndex($index)
- {
- $this->index = $index;
- }
- public function setRate($rate)
- {
- $this->rate = $rate;
- }
- }
|