PddAdApiPlanUpdatePlanDiscountRequest.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. namespace Com\Pdd\Pop\Sdk\Api\Request;
  3. use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
  4. use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
  5. class PddAdApiPlanUpdatePlanDiscountRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscount, "planDiscount")
  12. */
  13. private $planDiscount;
  14. /**
  15. * @JsonProperty(Long, "planId")
  16. */
  17. private $planId;
  18. protected function setUserParams(&$params)
  19. {
  20. $this->setUserParam($params, "planDiscount", $this->planDiscount);
  21. $this->setUserParam($params, "planId", $this->planId);
  22. }
  23. public function getVersion()
  24. {
  25. return "V1";
  26. }
  27. public function getDataType()
  28. {
  29. return "JSON";
  30. }
  31. public function getType()
  32. {
  33. return "pdd.ad.api.plan.update.plan.discount";
  34. }
  35. public function setPlanDiscount($planDiscount)
  36. {
  37. $this->planDiscount = $planDiscount;
  38. }
  39. public function setPlanId($planId)
  40. {
  41. $this->planId = $planId;
  42. }
  43. }
  44. class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscount extends PopBaseJsonEntity
  45. {
  46. public function __construct()
  47. {
  48. }
  49. /**
  50. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem>, "discounts")
  51. */
  52. private $discounts;
  53. public function setDiscounts($discounts)
  54. {
  55. $this->discounts = $discounts;
  56. }
  57. }
  58. class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem extends PopBaseJsonEntity
  59. {
  60. public function __construct()
  61. {
  62. }
  63. /**
  64. * @JsonProperty(Integer, "index")
  65. */
  66. private $index;
  67. /**
  68. * @JsonProperty(Integer, "rate")
  69. */
  70. private $rate;
  71. public function setIndex($index)
  72. {
  73. $this->index = $index;
  74. }
  75. public function setRate($rate)
  76. {
  77. $this->rate = $rate;
  78. }
  79. }