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; } }