PddStockWareUpdateRequest.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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 PddStockWareUpdateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(Long, "id")
  12. */
  13. private $id;
  14. /**
  15. * @JsonProperty(Integer, "ware_type")
  16. */
  17. private $wareType;
  18. /**
  19. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddStockWareUpdateRequest_WareInfosItem>, "ware_infos")
  20. */
  21. private $wareInfos;
  22. /**
  23. * @JsonProperty(String, "ware_sn")
  24. */
  25. private $wareSn;
  26. /**
  27. * @JsonProperty(String, "ware_name")
  28. */
  29. private $wareName;
  30. /**
  31. * @JsonProperty(String, "note")
  32. */
  33. private $note;
  34. /**
  35. * @JsonProperty(Integer, "service_quality")
  36. */
  37. private $serviceQuality;
  38. /**
  39. * @JsonProperty(Integer, "volume")
  40. */
  41. private $volume;
  42. /**
  43. * @JsonProperty(Integer, "length")
  44. */
  45. private $length;
  46. /**
  47. * @JsonProperty(Integer, "width")
  48. */
  49. private $width;
  50. /**
  51. * @JsonProperty(Integer, "height")
  52. */
  53. private $height;
  54. /**
  55. * @JsonProperty(Integer, "weight")
  56. */
  57. private $weight;
  58. /**
  59. * @JsonProperty(Integer, "gross_weight")
  60. */
  61. private $grossWeight;
  62. /**
  63. * @JsonProperty(Integer, "net_weight")
  64. */
  65. private $netWeight;
  66. /**
  67. * @JsonProperty(Integer, "tare_weight")
  68. */
  69. private $tareWeight;
  70. /**
  71. * @JsonProperty(Integer, "price")
  72. */
  73. private $price;
  74. /**
  75. * @JsonProperty(String, "color")
  76. */
  77. private $color;
  78. /**
  79. * @JsonProperty(String, "packing")
  80. */
  81. private $packing;
  82. protected function setUserParams(&$params)
  83. {
  84. $this->setUserParam($params, "id", $this->id);
  85. $this->setUserParam($params, "ware_type", $this->wareType);
  86. $this->setUserParam($params, "ware_infos", $this->wareInfos);
  87. $this->setUserParam($params, "ware_sn", $this->wareSn);
  88. $this->setUserParam($params, "ware_name", $this->wareName);
  89. $this->setUserParam($params, "note", $this->note);
  90. $this->setUserParam($params, "service_quality", $this->serviceQuality);
  91. $this->setUserParam($params, "volume", $this->volume);
  92. $this->setUserParam($params, "length", $this->length);
  93. $this->setUserParam($params, "width", $this->width);
  94. $this->setUserParam($params, "height", $this->height);
  95. $this->setUserParam($params, "weight", $this->weight);
  96. $this->setUserParam($params, "gross_weight", $this->grossWeight);
  97. $this->setUserParam($params, "net_weight", $this->netWeight);
  98. $this->setUserParam($params, "tare_weight", $this->tareWeight);
  99. $this->setUserParam($params, "price", $this->price);
  100. $this->setUserParam($params, "color", $this->color);
  101. $this->setUserParam($params, "packing", $this->packing);
  102. }
  103. public function getVersion()
  104. {
  105. return "V1";
  106. }
  107. public function getDataType()
  108. {
  109. return "JSON";
  110. }
  111. public function getType()
  112. {
  113. return "pdd.stock.ware.update";
  114. }
  115. public function setId($id)
  116. {
  117. $this->id = $id;
  118. }
  119. public function setWareType($wareType)
  120. {
  121. $this->wareType = $wareType;
  122. }
  123. public function setWareInfos($wareInfos)
  124. {
  125. $this->wareInfos = $wareInfos;
  126. }
  127. public function setWareSn($wareSn)
  128. {
  129. $this->wareSn = $wareSn;
  130. }
  131. public function setWareName($wareName)
  132. {
  133. $this->wareName = $wareName;
  134. }
  135. public function setNote($note)
  136. {
  137. $this->note = $note;
  138. }
  139. public function setServiceQuality($serviceQuality)
  140. {
  141. $this->serviceQuality = $serviceQuality;
  142. }
  143. public function setVolume($volume)
  144. {
  145. $this->volume = $volume;
  146. }
  147. public function setLength($length)
  148. {
  149. $this->length = $length;
  150. }
  151. public function setWidth($width)
  152. {
  153. $this->width = $width;
  154. }
  155. public function setHeight($height)
  156. {
  157. $this->height = $height;
  158. }
  159. public function setWeight($weight)
  160. {
  161. $this->weight = $weight;
  162. }
  163. public function setGrossWeight($grossWeight)
  164. {
  165. $this->grossWeight = $grossWeight;
  166. }
  167. public function setNetWeight($netWeight)
  168. {
  169. $this->netWeight = $netWeight;
  170. }
  171. public function setTareWeight($tareWeight)
  172. {
  173. $this->tareWeight = $tareWeight;
  174. }
  175. public function setPrice($price)
  176. {
  177. $this->price = $price;
  178. }
  179. public function setColor($color)
  180. {
  181. $this->color = $color;
  182. }
  183. public function setPacking($packing)
  184. {
  185. $this->packing = $packing;
  186. }
  187. }
  188. class PddStockWareUpdateRequest_WareInfosItem extends PopBaseJsonEntity
  189. {
  190. public function __construct()
  191. {
  192. }
  193. /**
  194. * @JsonProperty(Long, "ware_id")
  195. */
  196. private $wareId;
  197. /**
  198. * @JsonProperty(Integer, "ware_quantity")
  199. */
  200. private $wareQuantity;
  201. public function setWareId($wareId)
  202. {
  203. $this->wareId = $wareId;
  204. }
  205. public function setWareQuantity($wareQuantity)
  206. {
  207. $this->wareQuantity = $wareQuantity;
  208. }
  209. }