PddGoodsLogisticsSerTemplateCreateRequest.php 4.2 KB

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