PddCloudWaybillUpdateRequest.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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 PddCloudWaybillUpdateRequest extends PopBaseHttpRequest
  6. {
  7. public function __construct()
  8. {
  9. }
  10. /**
  11. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequest, "waybill_cloud_print_update_request")
  12. */
  13. private $waybillCloudPrintUpdateRequest;
  14. protected function setUserParams(&$params)
  15. {
  16. $this->setUserParam($params, "waybill_cloud_print_update_request", $this->waybillCloudPrintUpdateRequest);
  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.cloud.waybill.update";
  29. }
  30. public function setWaybillCloudPrintUpdateRequest($waybillCloudPrintUpdateRequest)
  31. {
  32. $this->waybillCloudPrintUpdateRequest = $waybillCloudPrintUpdateRequest;
  33. }
  34. }
  35. class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequest 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\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfo, "package_info")
  46. */
  47. private $packageInfo;
  48. /**
  49. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipient, "recipient")
  50. */
  51. private $recipient;
  52. /**
  53. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestSender, "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. /**
  69. * @JsonProperty(String, "token")
  70. */
  71. private $token;
  72. /**
  73. * @JsonProperty(Long, "ext_id")
  74. */
  75. private $extId;
  76. /**
  77. * @JsonProperty(String, "ext_fields")
  78. */
  79. private $extFields;
  80. /**
  81. * @JsonProperty(String, "order_sn")
  82. */
  83. private $orderSn;
  84. public function setObjectId($objectId)
  85. {
  86. $this->objectId = $objectId;
  87. }
  88. public function setPackageInfo($packageInfo)
  89. {
  90. $this->packageInfo = $packageInfo;
  91. }
  92. public function setRecipient($recipient)
  93. {
  94. $this->recipient = $recipient;
  95. }
  96. public function setSender($sender)
  97. {
  98. $this->sender = $sender;
  99. }
  100. public function setTemplateUrl($templateUrl)
  101. {
  102. $this->templateUrl = $templateUrl;
  103. }
  104. public function setWaybillCode($waybillCode)
  105. {
  106. $this->waybillCode = $waybillCode;
  107. }
  108. public function setWpCode($wpCode)
  109. {
  110. $this->wpCode = $wpCode;
  111. }
  112. public function setToken($token)
  113. {
  114. $this->token = $token;
  115. }
  116. public function setExtId($extId)
  117. {
  118. $this->extId = $extId;
  119. }
  120. public function setExtFields($extFields)
  121. {
  122. $this->extFields = $extFields;
  123. }
  124. public function setOrderSn($orderSn)
  125. {
  126. $this->orderSn = $orderSn;
  127. }
  128. }
  129. class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity
  130. {
  131. public function __construct()
  132. {
  133. }
  134. /**
  135. * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items")
  136. */
  137. private $items;
  138. /**
  139. * @JsonProperty(Long, "volume")
  140. */
  141. private $volume;
  142. /**
  143. * @JsonProperty(Long, "weight")
  144. */
  145. private $weight;
  146. public function setItems($items)
  147. {
  148. $this->items = $items;
  149. }
  150. public function setVolume($volume)
  151. {
  152. $this->volume = $volume;
  153. }
  154. public function setWeight($weight)
  155. {
  156. $this->weight = $weight;
  157. }
  158. }
  159. class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity
  160. {
  161. public function __construct()
  162. {
  163. }
  164. /**
  165. * @JsonProperty(Integer, "count")
  166. */
  167. private $count;
  168. /**
  169. * @JsonProperty(String, "name")
  170. */
  171. private $name;
  172. /**
  173. * @JsonProperty(String, "ext_json")
  174. */
  175. private $extJson;
  176. public function setCount($count)
  177. {
  178. $this->count = $count;
  179. }
  180. public function setName($name)
  181. {
  182. $this->name = $name;
  183. }
  184. public function setExtJson($extJson)
  185. {
  186. $this->extJson = $extJson;
  187. }
  188. }
  189. class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity
  190. {
  191. public function __construct()
  192. {
  193. }
  194. /**
  195. * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipientAddress, "address")
  196. */
  197. private $address;
  198. /**
  199. * @JsonProperty(String, "mobile")
  200. */
  201. private $mobile;
  202. /**
  203. * @JsonProperty(String, "name")
  204. */
  205. private $name;
  206. /**
  207. * @JsonProperty(String, "phone")
  208. */
  209. private $phone;
  210. public function setAddress($address)
  211. {
  212. $this->address = $address;
  213. }
  214. public function setMobile($mobile)
  215. {
  216. $this->mobile = $mobile;
  217. }
  218. public function setName($name)
  219. {
  220. $this->name = $name;
  221. }
  222. public function setPhone($phone)
  223. {
  224. $this->phone = $phone;
  225. }
  226. }
  227. class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity
  228. {
  229. public function __construct()
  230. {
  231. }
  232. /**
  233. * @JsonProperty(String, "city")
  234. */
  235. private $city;
  236. /**
  237. * @JsonProperty(String, "detail")
  238. */
  239. private $detail;
  240. /**
  241. * @JsonProperty(String, "district")
  242. */
  243. private $district;
  244. /**
  245. * @JsonProperty(String, "province")
  246. */
  247. private $province;
  248. /**
  249. * @JsonProperty(String, "town")
  250. */
  251. private $town;
  252. /**
  253. * @JsonProperty(String, "country")
  254. */
  255. private $country;
  256. public function setCity($city)
  257. {
  258. $this->city = $city;
  259. }
  260. public function setDetail($detail)
  261. {
  262. $this->detail = $detail;
  263. }
  264. public function setDistrict($district)
  265. {
  266. $this->district = $district;
  267. }
  268. public function setProvince($province)
  269. {
  270. $this->province = $province;
  271. }
  272. public function setTown($town)
  273. {
  274. $this->town = $town;
  275. }
  276. public function setCountry($country)
  277. {
  278. $this->country = $country;
  279. }
  280. }
  281. class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity
  282. {
  283. public function __construct()
  284. {
  285. }
  286. /**
  287. * @JsonProperty(String, "mobile")
  288. */
  289. private $mobile;
  290. /**
  291. * @JsonProperty(String, "name")
  292. */
  293. private $name;
  294. /**
  295. * @JsonProperty(String, "phone")
  296. */
  297. private $phone;
  298. public function setMobile($mobile)
  299. {
  300. $this->mobile = $mobile;
  301. }
  302. public function setName($name)
  303. {
  304. $this->name = $name;
  305. }
  306. public function setPhone($phone)
  307. {
  308. $this->phone = $phone;
  309. }
  310. }