PddGoodsLogisticsSerTemplateUpdateRequest.php 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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 PddGoodsLogisticsSerTemplateUpdateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(String, "template_id")
  12. */
  13. private $templateId;
  14. /**
  15. * @JsonProperty(Integer, "template_type")
  16. */
  17. private $templateType;
  18. /**
  19. * @JsonProperty(String, "template_name")
  20. */
  21. private $templateName;
  22. /**
  23. * @JsonProperty(Integer, "price_unit")
  24. */
  25. private $priceUnit;
  26. /**
  27. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_ServiceAreaListItem>, "service_area_list")
  28. */
  29. private $serviceAreaList;
  30. /**
  31. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem>, "cat_list")
  32. */
  33. private $catList;
  34. protected function setUserParams(&$params)
  35. {
  36. $this->setUserParam($params, "template_id", $this->templateId);
  37. $this->setUserParam($params, "template_type", $this->templateType);
  38. $this->setUserParam($params, "template_name", $this->templateName);
  39. $this->setUserParam($params, "price_unit", $this->priceUnit);
  40. $this->setUserParam($params, "service_area_list", $this->serviceAreaList);
  41. $this->setUserParam($params, "cat_list", $this->catList);
  42. }
  43. public function getVersion()
  44. {
  45. return "V1";
  46. }
  47. public function getDataType()
  48. {
  49. return "JSON";
  50. }
  51. public function getType()
  52. {
  53. return "pdd.goods.logistics.ser.template.update";
  54. }
  55. public function setTemplateId($templateId)
  56. {
  57. $this->templateId = $templateId;
  58. }
  59. public function setTemplateType($templateType)
  60. {
  61. $this->templateType = $templateType;
  62. }
  63. public function setTemplateName($templateName)
  64. {
  65. $this->templateName = $templateName;
  66. }
  67. public function setPriceUnit($priceUnit)
  68. {
  69. $this->priceUnit = $priceUnit;
  70. }
  71. public function setServiceAreaList($serviceAreaList)
  72. {
  73. $this->serviceAreaList = $serviceAreaList;
  74. }
  75. public function setCatList($catList)
  76. {
  77. $this->catList = $catList;
  78. }
  79. }
  80. class PddGoodsLogisticsSerTemplateUpdateRequest_ServiceAreaListItem extends PopBaseJsonEntity
  81. {
  82. public function __construct()
  83. {
  84. }
  85. /**
  86. * @JsonProperty(String, "value")
  87. */
  88. private $value;
  89. /**
  90. * @JsonProperty(String, "district_id")
  91. */
  92. private $districtId;
  93. /**
  94. * @JsonProperty(String, "city_id")
  95. */
  96. private $cityId;
  97. /**
  98. * @JsonProperty(String, "province_id")
  99. */
  100. private $provinceId;
  101. public function setValue($value)
  102. {
  103. $this->value = $value;
  104. }
  105. public function setDistrictId($districtId)
  106. {
  107. $this->districtId = $districtId;
  108. }
  109. public function setCityId($cityId)
  110. {
  111. $this->cityId = $cityId;
  112. }
  113. public function setProvinceId($provinceId)
  114. {
  115. $this->provinceId = $provinceId;
  116. }
  117. }
  118. class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem extends PopBaseJsonEntity
  119. {
  120. public function __construct()
  121. {
  122. }
  123. /**
  124. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem>, "list")
  125. */
  126. private $list;
  127. /**
  128. * @JsonProperty(Long, "cat_id4")
  129. */
  130. private $catId4;
  131. /**
  132. * @JsonProperty(Long, "cat_id3")
  133. */
  134. private $catId3;
  135. public function setList($list)
  136. {
  137. $this->list = $list;
  138. }
  139. public function setCatId4($catId4)
  140. {
  141. $this->catId4 = $catId4;
  142. }
  143. public function setCatId3($catId3)
  144. {
  145. $this->catId3 = $catId3;
  146. }
  147. }
  148. class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem extends PopBaseJsonEntity
  149. {
  150. public function __construct()
  151. {
  152. }
  153. /**
  154. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem>, "content")
  155. */
  156. private $content;
  157. /**
  158. * @JsonProperty(Long, "value")
  159. */
  160. private $value;
  161. /**
  162. * @JsonProperty(Integer, "limit_type")
  163. */
  164. private $limitType;
  165. public function setContent($content)
  166. {
  167. $this->content = $content;
  168. }
  169. public function setValue($value)
  170. {
  171. $this->value = $value;
  172. }
  173. public function setLimitType($limitType)
  174. {
  175. $this->limitType = $limitType;
  176. }
  177. }
  178. class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem extends PopBaseJsonEntity
  179. {
  180. public function __construct()
  181. {
  182. }
  183. /**
  184. * @JsonProperty(Long, "price")
  185. */
  186. private $price;
  187. /**
  188. * @JsonProperty(Long, "max_pro")
  189. */
  190. private $maxPro;
  191. /**
  192. * @JsonProperty(Long, "min_pro")
  193. */
  194. private $minPro;
  195. public function setPrice($price)
  196. {
  197. $this->price = $price;
  198. }
  199. public function setMaxPro($maxPro)
  200. {
  201. $this->maxPro = $maxPro;
  202. }
  203. public function setMinPro($minPro)
  204. {
  205. $this->minPro = $minPro;
  206. }
  207. }