PddGoodsLogisticsTemplateCreateRequest.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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 PddGoodsLogisticsTemplateCreateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItem>, "cost_template_list")
  12. */
  13. private $costTemplateList;
  14. /**
  15. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsTemplateCreateRequest_FreeProvinceListItem>, "free_province_list")
  16. */
  17. private $freeProvinceList;
  18. /**
  19. * @JsonProperty(Integer, "cost_type")
  20. */
  21. private $costType;
  22. /**
  23. * @JsonProperty(String, "template_name")
  24. */
  25. private $templateName;
  26. /**
  27. * @JsonProperty(Integer, "province_id")
  28. */
  29. private $provinceId;
  30. /**
  31. * @JsonProperty(Integer, "city_id")
  32. */
  33. private $cityId;
  34. /**
  35. * @JsonProperty(Integer, "district_id")
  36. */
  37. private $districtId;
  38. protected function setUserParams(&$params)
  39. {
  40. $this->setUserParam($params, "cost_template_list", $this->costTemplateList);
  41. $this->setUserParam($params, "free_province_list", $this->freeProvinceList);
  42. $this->setUserParam($params, "cost_type", $this->costType);
  43. $this->setUserParam($params, "template_name", $this->templateName);
  44. $this->setUserParam($params, "province_id", $this->provinceId);
  45. $this->setUserParam($params, "city_id", $this->cityId);
  46. $this->setUserParam($params, "district_id", $this->districtId);
  47. }
  48. public function getVersion()
  49. {
  50. return "V1";
  51. }
  52. public function getDataType()
  53. {
  54. return "JSON";
  55. }
  56. public function getType()
  57. {
  58. return "pdd.goods.logistics.template.create";
  59. }
  60. public function setCostTemplateList($costTemplateList)
  61. {
  62. $this->costTemplateList = $costTemplateList;
  63. }
  64. public function setFreeProvinceList($freeProvinceList)
  65. {
  66. $this->freeProvinceList = $freeProvinceList;
  67. }
  68. public function setCostType($costType)
  69. {
  70. $this->costType = $costType;
  71. }
  72. public function setTemplateName($templateName)
  73. {
  74. $this->templateName = $templateName;
  75. }
  76. public function setProvinceId($provinceId)
  77. {
  78. $this->provinceId = $provinceId;
  79. }
  80. public function setCityId($cityId)
  81. {
  82. $this->cityId = $cityId;
  83. }
  84. public function setDistrictId($districtId)
  85. {
  86. $this->districtId = $districtId;
  87. }
  88. }
  89. class PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItem extends PopBaseJsonEntity
  90. {
  91. public function __construct()
  92. {
  93. }
  94. /**
  95. * @JsonProperty(Long, "first_standard")
  96. */
  97. private $firstStandard;
  98. /**
  99. * @JsonProperty(Long, "first_cost")
  100. */
  101. private $firstCost;
  102. /**
  103. * @JsonProperty(Long, "add_standard")
  104. */
  105. private $addStandard;
  106. /**
  107. * @JsonProperty(Long, "add_cost")
  108. */
  109. private $addCost;
  110. /**
  111. * @JsonProperty(Boolean, "is_have_free_min_count")
  112. */
  113. private $isHaveFreeMinCount;
  114. /**
  115. * @JsonProperty(Integer, "have_free_min_count")
  116. */
  117. private $haveFreeMinCount;
  118. /**
  119. * @JsonProperty(Boolean, "is_have_free_min_amount")
  120. */
  121. private $isHaveFreeMinAmount;
  122. /**
  123. * @JsonProperty(Long, "have_free_min_amount")
  124. */
  125. private $haveFreeMinAmount;
  126. /**
  127. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItemCostProvinceListItem>, "cost_province_list")
  128. */
  129. private $costProvinceList;
  130. public function setFirstStandard($firstStandard)
  131. {
  132. $this->firstStandard = $firstStandard;
  133. }
  134. public function setFirstCost($firstCost)
  135. {
  136. $this->firstCost = $firstCost;
  137. }
  138. public function setAddStandard($addStandard)
  139. {
  140. $this->addStandard = $addStandard;
  141. }
  142. public function setAddCost($addCost)
  143. {
  144. $this->addCost = $addCost;
  145. }
  146. public function setIsHaveFreeMinCount($isHaveFreeMinCount)
  147. {
  148. $this->isHaveFreeMinCount = $isHaveFreeMinCount;
  149. }
  150. public function setHaveFreeMinCount($haveFreeMinCount)
  151. {
  152. $this->haveFreeMinCount = $haveFreeMinCount;
  153. }
  154. public function setIsHaveFreeMinAmount($isHaveFreeMinAmount)
  155. {
  156. $this->isHaveFreeMinAmount = $isHaveFreeMinAmount;
  157. }
  158. public function setHaveFreeMinAmount($haveFreeMinAmount)
  159. {
  160. $this->haveFreeMinAmount = $haveFreeMinAmount;
  161. }
  162. public function setCostProvinceList($costProvinceList)
  163. {
  164. $this->costProvinceList = $costProvinceList;
  165. }
  166. }
  167. class PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItemCostProvinceListItem extends PopBaseJsonEntity
  168. {
  169. public function __construct()
  170. {
  171. }
  172. /**
  173. * @JsonProperty(Integer, "province_id")
  174. */
  175. private $provinceId;
  176. public function setProvinceId($provinceId)
  177. {
  178. $this->provinceId = $provinceId;
  179. }
  180. }
  181. class PddGoodsLogisticsTemplateCreateRequest_FreeProvinceListItem extends PopBaseJsonEntity
  182. {
  183. public function __construct()
  184. {
  185. }
  186. /**
  187. * @JsonProperty(Integer, "province_id")
  188. */
  189. private $provinceId;
  190. public function setProvinceId($provinceId)
  191. {
  192. $this->provinceId = $provinceId;
  193. }
  194. }