PddWmsWareSynchronizeRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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 PddWmsWareSynchronizeRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareSynchronizeRequest_Request, "request")
  12. */
  13. private $request;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "request", $this->request);
  17. }
  18. public function getVersion()
  19. {
  20. return "V1";
  21. }
  22. public function getDataType()
  23. {
  24. return "JSON";
  25. }
  26. public function getType()
  27. {
  28. return "pdd.wms.ware.synchronize";
  29. }
  30. public function setRequest($request)
  31. {
  32. $this->request = $request;
  33. }
  34. }
  35. class PddWmsWareSynchronizeRequest_Request extends PopBaseJsonEntity
  36. {
  37. public function __construct()
  38. {
  39. }
  40. /**
  41. * @JsonProperty(String, "actionType")
  42. */
  43. private $actionType;
  44. /**
  45. * @JsonProperty(String, "ownerCode")
  46. */
  47. private $ownerCode;
  48. /**
  49. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareSynchronizeRequest_RequestWare, "ware")
  50. */
  51. private $ware;
  52. public function setActionType($actionType)
  53. {
  54. $this->actionType = $actionType;
  55. }
  56. public function setOwnerCode($ownerCode)
  57. {
  58. $this->ownerCode = $ownerCode;
  59. }
  60. public function setWare($ware)
  61. {
  62. $this->ware = $ware;
  63. }
  64. }
  65. class PddWmsWareSynchronizeRequest_RequestWare extends PopBaseJsonEntity
  66. {
  67. public function __construct()
  68. {
  69. }
  70. /**
  71. * @JsonProperty(String, "barCode")
  72. */
  73. private $barCode;
  74. /**
  75. * @JsonProperty(String, "brandName")
  76. */
  77. private $brandName;
  78. /**
  79. * @JsonProperty(String, "categoryId")
  80. */
  81. private $categoryId;
  82. /**
  83. * @JsonProperty(String, "categoryName")
  84. */
  85. private $categoryName;
  86. /**
  87. * @JsonProperty(String, "color")
  88. */
  89. private $color;
  90. /**
  91. * @JsonProperty(String, "height")
  92. */
  93. private $height;
  94. /**
  95. * @JsonProperty(String, "length")
  96. */
  97. private $length;
  98. /**
  99. * @JsonProperty(String, "size")
  100. */
  101. private $size;
  102. /**
  103. * @JsonProperty(String, "volume")
  104. */
  105. private $volume;
  106. /**
  107. * @JsonProperty(String, "wareName")
  108. */
  109. private $wareName;
  110. /**
  111. * @JsonProperty(String, "wareSn")
  112. */
  113. private $wareSn;
  114. /**
  115. * @JsonProperty(String, "wareType")
  116. */
  117. private $wareType;
  118. /**
  119. * @JsonProperty(String, "weight")
  120. */
  121. private $weight;
  122. /**
  123. * @JsonProperty(String, "width")
  124. */
  125. private $width;
  126. public function setBarCode($barCode)
  127. {
  128. $this->barCode = $barCode;
  129. }
  130. public function setBrandName($brandName)
  131. {
  132. $this->brandName = $brandName;
  133. }
  134. public function setCategoryId($categoryId)
  135. {
  136. $this->categoryId = $categoryId;
  137. }
  138. public function setCategoryName($categoryName)
  139. {
  140. $this->categoryName = $categoryName;
  141. }
  142. public function setColor($color)
  143. {
  144. $this->color = $color;
  145. }
  146. public function setHeight($height)
  147. {
  148. $this->height = $height;
  149. }
  150. public function setLength($length)
  151. {
  152. $this->length = $length;
  153. }
  154. public function setSize($size)
  155. {
  156. $this->size = $size;
  157. }
  158. public function setVolume($volume)
  159. {
  160. $this->volume = $volume;
  161. }
  162. public function setWareName($wareName)
  163. {
  164. $this->wareName = $wareName;
  165. }
  166. public function setWareSn($wareSn)
  167. {
  168. $this->wareSn = $wareSn;
  169. }
  170. public function setWareType($wareType)
  171. {
  172. $this->wareType = $wareType;
  173. }
  174. public function setWeight($weight)
  175. {
  176. $this->weight = $weight;
  177. }
  178. public function setWidth($width)
  179. {
  180. $this->width = $width;
  181. }
  182. }