| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddGoodsCpsUnitChangeRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Long, "goods_id")
- */
- private $goodsId;
- /**
- * @JsonProperty(Long, "rate")
- */
- private $rate;
- /**
- * @JsonProperty(Long, "coupon_id")
- */
- private $couponId;
- /**
- * @JsonProperty(String, "coupon_start_time")
- */
- private $couponStartTime;
- /**
- * @JsonProperty(String, "coupon_end_time")
- */
- private $couponEndTime;
- /**
- * @JsonProperty(Long, "discount")
- */
- private $discount;
- /**
- * @JsonProperty(Long, "init_quantity")
- */
- private $initQuantity;
- /**
- * @JsonProperty(Long, "remain_quantity")
- */
- private $remainQuantity;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "goods_id", $this->goodsId);
- $this->setUserParam($params, "rate", $this->rate);
- $this->setUserParam($params, "coupon_id", $this->couponId);
- $this->setUserParam($params, "coupon_start_time", $this->couponStartTime);
- $this->setUserParam($params, "coupon_end_time", $this->couponEndTime);
- $this->setUserParam($params, "discount", $this->discount);
- $this->setUserParam($params, "init_quantity", $this->initQuantity);
- $this->setUserParam($params, "remain_quantity", $this->remainQuantity);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.goods.cps.unit.change";
- }
- public function setGoodsId($goodsId)
- {
- $this->goodsId = $goodsId;
- }
- public function setRate($rate)
- {
- $this->rate = $rate;
- }
- public function setCouponId($couponId)
- {
- $this->couponId = $couponId;
- }
- public function setCouponStartTime($couponStartTime)
- {
- $this->couponStartTime = $couponStartTime;
- }
- public function setCouponEndTime($couponEndTime)
- {
- $this->couponEndTime = $couponEndTime;
- }
- public function setDiscount($discount)
- {
- $this->discount = $discount;
- }
- public function setInitQuantity($initQuantity)
- {
- $this->initQuantity = $initQuantity;
- }
- public function setRemainQuantity($remainQuantity)
- {
- $this->remainQuantity = $remainQuantity;
- }
- }
|