PddWaybillUpdateRequest.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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 PddWaybillUpdateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest, "param_waybill_cloud_print_update_request")
  12. */
  13. private $paramWaybillCloudPrintUpdateRequest;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "param_waybill_cloud_print_update_request", $this->paramWaybillCloudPrintUpdateRequest);
  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.waybill.update";
  29. }
  30. public function setParamWaybillCloudPrintUpdateRequest($paramWaybillCloudPrintUpdateRequest)
  31. {
  32. $this->paramWaybillCloudPrintUpdateRequest = $paramWaybillCloudPrintUpdateRequest;
  33. }
  34. }
  35. class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest extends PopBaseJsonEntity
  36. {
  37. public function __construct()
  38. {
  39. }
  40. /**
  41. * @JsonProperty(String, "object_id")
  42. */
  43. private $objectId;
  44. /**
  45. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo, "package_info")
  46. */
  47. private $packageInfo;
  48. /**
  49. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient, "recipient")
  50. */
  51. private $recipient;
  52. /**
  53. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender, "sender")
  54. */
  55. private $sender;
  56. /**
  57. * @JsonProperty(String, "template_url")
  58. */
  59. private $templateUrl;
  60. /**
  61. * @JsonProperty(String, "waybill_code")
  62. */
  63. private $waybillCode;
  64. /**
  65. * @JsonProperty(String, "wp_code")
  66. */
  67. private $wpCode;
  68. public function setObjectId($objectId)
  69. {
  70. $this->objectId = $objectId;
  71. }
  72. public function setPackageInfo($packageInfo)
  73. {
  74. $this->packageInfo = $packageInfo;
  75. }
  76. public function setRecipient($recipient)
  77. {
  78. $this->recipient = $recipient;
  79. }
  80. public function setSender($sender)
  81. {
  82. $this->sender = $sender;
  83. }
  84. public function setTemplateUrl($templateUrl)
  85. {
  86. $this->templateUrl = $templateUrl;
  87. }
  88. public function setWaybillCode($waybillCode)
  89. {
  90. $this->waybillCode = $waybillCode;
  91. }
  92. public function setWpCode($wpCode)
  93. {
  94. $this->wpCode = $wpCode;
  95. }
  96. }
  97. class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity
  98. {
  99. public function __construct()
  100. {
  101. }
  102. /**
  103. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items")
  104. */
  105. private $items;
  106. /**
  107. * @JsonProperty(Long, "volume")
  108. */
  109. private $volume;
  110. /**
  111. * @JsonProperty(Long, "weight")
  112. */
  113. private $weight;
  114. public function setItems($items)
  115. {
  116. $this->items = $items;
  117. }
  118. public function setVolume($volume)
  119. {
  120. $this->volume = $volume;
  121. }
  122. public function setWeight($weight)
  123. {
  124. $this->weight = $weight;
  125. }
  126. }
  127. class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity
  128. {
  129. public function __construct()
  130. {
  131. }
  132. /**
  133. * @JsonProperty(Integer, "count")
  134. */
  135. private $count;
  136. /**
  137. * @JsonProperty(String, "name")
  138. */
  139. private $name;
  140. public function setCount($count)
  141. {
  142. $this->count = $count;
  143. }
  144. public function setName($name)
  145. {
  146. $this->name = $name;
  147. }
  148. }
  149. class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity
  150. {
  151. public function __construct()
  152. {
  153. }
  154. /**
  155. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress, "address")
  156. */
  157. private $address;
  158. /**
  159. * @JsonProperty(String, "mobile")
  160. */
  161. private $mobile;
  162. /**
  163. * @JsonProperty(String, "name")
  164. */
  165. private $name;
  166. /**
  167. * @JsonProperty(String, "phone")
  168. */
  169. private $phone;
  170. public function setAddress($address)
  171. {
  172. $this->address = $address;
  173. }
  174. public function setMobile($mobile)
  175. {
  176. $this->mobile = $mobile;
  177. }
  178. public function setName($name)
  179. {
  180. $this->name = $name;
  181. }
  182. public function setPhone($phone)
  183. {
  184. $this->phone = $phone;
  185. }
  186. }
  187. class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity
  188. {
  189. public function __construct()
  190. {
  191. }
  192. /**
  193. * @JsonProperty(String, "city")
  194. */
  195. private $city;
  196. /**
  197. * @JsonProperty(String, "detail")
  198. */
  199. private $detail;
  200. /**
  201. * @JsonProperty(String, "district")
  202. */
  203. private $district;
  204. /**
  205. * @JsonProperty(String, "province")
  206. */
  207. private $province;
  208. /**
  209. * @JsonProperty(String, "town")
  210. */
  211. private $town;
  212. /**
  213. * @JsonProperty(String, "country")
  214. */
  215. private $country;
  216. public function setCity($city)
  217. {
  218. $this->city = $city;
  219. }
  220. public function setDetail($detail)
  221. {
  222. $this->detail = $detail;
  223. }
  224. public function setDistrict($district)
  225. {
  226. $this->district = $district;
  227. }
  228. public function setProvince($province)
  229. {
  230. $this->province = $province;
  231. }
  232. public function setTown($town)
  233. {
  234. $this->town = $town;
  235. }
  236. public function setCountry($country)
  237. {
  238. $this->country = $country;
  239. }
  240. }
  241. class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity
  242. {
  243. public function __construct()
  244. {
  245. }
  246. /**
  247. * @JsonProperty(String, "mobile")
  248. */
  249. private $mobile;
  250. /**
  251. * @JsonProperty(String, "name")
  252. */
  253. private $name;
  254. /**
  255. * @JsonProperty(String, "phone")
  256. */
  257. private $phone;
  258. public function setMobile($mobile)
  259. {
  260. $this->mobile = $mobile;
  261. }
  262. public function setName($name)
  263. {
  264. $this->name = $name;
  265. }
  266. public function setPhone($phone)
  267. {
  268. $this->phone = $phone;
  269. }
  270. }