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