AlipayEcoMycarParkingParkinglotinfoUpdateModel.py 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayEcoMycarParkingParkinglotinfoUpdateModel(object):
  6. def __init__(self):
  7. self._agent_id = None
  8. self._city_id = None
  9. self._contact_alipay = None
  10. self._contact_email = None
  11. self._contact_mobile = None
  12. self._contact_name = None
  13. self._contact_tel = None
  14. self._contact_weixin = None
  15. self._equipment_name = None
  16. self._latitude = None
  17. self._longitude = None
  18. self._mchnt_id = None
  19. self._out_parking_id = None
  20. self._parking_address = None
  21. self._parking_end_time = None
  22. self._parking_fee_description = None
  23. self._parking_id = None
  24. self._parking_lot_type = None
  25. self._parking_mobile = None
  26. self._parking_name = None
  27. self._parking_number = None
  28. self._parking_poiid = None
  29. self._parking_start_time = None
  30. self._parking_type = None
  31. self._pay_type = None
  32. self._payment_mode = None
  33. self._shopingmall_id = None
  34. self._time_out = None
  35. @property
  36. def agent_id(self):
  37. return self._agent_id
  38. @agent_id.setter
  39. def agent_id(self, value):
  40. self._agent_id = value
  41. @property
  42. def city_id(self):
  43. return self._city_id
  44. @city_id.setter
  45. def city_id(self, value):
  46. self._city_id = value
  47. @property
  48. def contact_alipay(self):
  49. return self._contact_alipay
  50. @contact_alipay.setter
  51. def contact_alipay(self, value):
  52. self._contact_alipay = value
  53. @property
  54. def contact_email(self):
  55. return self._contact_email
  56. @contact_email.setter
  57. def contact_email(self, value):
  58. self._contact_email = value
  59. @property
  60. def contact_mobile(self):
  61. return self._contact_mobile
  62. @contact_mobile.setter
  63. def contact_mobile(self, value):
  64. self._contact_mobile = value
  65. @property
  66. def contact_name(self):
  67. return self._contact_name
  68. @contact_name.setter
  69. def contact_name(self, value):
  70. self._contact_name = value
  71. @property
  72. def contact_tel(self):
  73. return self._contact_tel
  74. @contact_tel.setter
  75. def contact_tel(self, value):
  76. self._contact_tel = value
  77. @property
  78. def contact_weixin(self):
  79. return self._contact_weixin
  80. @contact_weixin.setter
  81. def contact_weixin(self, value):
  82. self._contact_weixin = value
  83. @property
  84. def equipment_name(self):
  85. return self._equipment_name
  86. @equipment_name.setter
  87. def equipment_name(self, value):
  88. self._equipment_name = value
  89. @property
  90. def latitude(self):
  91. return self._latitude
  92. @latitude.setter
  93. def latitude(self, value):
  94. self._latitude = value
  95. @property
  96. def longitude(self):
  97. return self._longitude
  98. @longitude.setter
  99. def longitude(self, value):
  100. self._longitude = value
  101. @property
  102. def mchnt_id(self):
  103. return self._mchnt_id
  104. @mchnt_id.setter
  105. def mchnt_id(self, value):
  106. self._mchnt_id = value
  107. @property
  108. def out_parking_id(self):
  109. return self._out_parking_id
  110. @out_parking_id.setter
  111. def out_parking_id(self, value):
  112. self._out_parking_id = value
  113. @property
  114. def parking_address(self):
  115. return self._parking_address
  116. @parking_address.setter
  117. def parking_address(self, value):
  118. self._parking_address = value
  119. @property
  120. def parking_end_time(self):
  121. return self._parking_end_time
  122. @parking_end_time.setter
  123. def parking_end_time(self, value):
  124. self._parking_end_time = value
  125. @property
  126. def parking_fee_description(self):
  127. return self._parking_fee_description
  128. @parking_fee_description.setter
  129. def parking_fee_description(self, value):
  130. self._parking_fee_description = value
  131. @property
  132. def parking_id(self):
  133. return self._parking_id
  134. @parking_id.setter
  135. def parking_id(self, value):
  136. self._parking_id = value
  137. @property
  138. def parking_lot_type(self):
  139. return self._parking_lot_type
  140. @parking_lot_type.setter
  141. def parking_lot_type(self, value):
  142. self._parking_lot_type = value
  143. @property
  144. def parking_mobile(self):
  145. return self._parking_mobile
  146. @parking_mobile.setter
  147. def parking_mobile(self, value):
  148. self._parking_mobile = value
  149. @property
  150. def parking_name(self):
  151. return self._parking_name
  152. @parking_name.setter
  153. def parking_name(self, value):
  154. self._parking_name = value
  155. @property
  156. def parking_number(self):
  157. return self._parking_number
  158. @parking_number.setter
  159. def parking_number(self, value):
  160. self._parking_number = value
  161. @property
  162. def parking_poiid(self):
  163. return self._parking_poiid
  164. @parking_poiid.setter
  165. def parking_poiid(self, value):
  166. self._parking_poiid = value
  167. @property
  168. def parking_start_time(self):
  169. return self._parking_start_time
  170. @parking_start_time.setter
  171. def parking_start_time(self, value):
  172. self._parking_start_time = value
  173. @property
  174. def parking_type(self):
  175. return self._parking_type
  176. @parking_type.setter
  177. def parking_type(self, value):
  178. self._parking_type = value
  179. @property
  180. def pay_type(self):
  181. return self._pay_type
  182. @pay_type.setter
  183. def pay_type(self, value):
  184. self._pay_type = value
  185. @property
  186. def payment_mode(self):
  187. return self._payment_mode
  188. @payment_mode.setter
  189. def payment_mode(self, value):
  190. self._payment_mode = value
  191. @property
  192. def shopingmall_id(self):
  193. return self._shopingmall_id
  194. @shopingmall_id.setter
  195. def shopingmall_id(self, value):
  196. self._shopingmall_id = value
  197. @property
  198. def time_out(self):
  199. return self._time_out
  200. @time_out.setter
  201. def time_out(self, value):
  202. self._time_out = value
  203. def to_alipay_dict(self):
  204. params = dict()
  205. if self.agent_id:
  206. if hasattr(self.agent_id, 'to_alipay_dict'):
  207. params['agent_id'] = self.agent_id.to_alipay_dict()
  208. else:
  209. params['agent_id'] = self.agent_id
  210. if self.city_id:
  211. if hasattr(self.city_id, 'to_alipay_dict'):
  212. params['city_id'] = self.city_id.to_alipay_dict()
  213. else:
  214. params['city_id'] = self.city_id
  215. if self.contact_alipay:
  216. if hasattr(self.contact_alipay, 'to_alipay_dict'):
  217. params['contact_alipay'] = self.contact_alipay.to_alipay_dict()
  218. else:
  219. params['contact_alipay'] = self.contact_alipay
  220. if self.contact_email:
  221. if hasattr(self.contact_email, 'to_alipay_dict'):
  222. params['contact_email'] = self.contact_email.to_alipay_dict()
  223. else:
  224. params['contact_email'] = self.contact_email
  225. if self.contact_mobile:
  226. if hasattr(self.contact_mobile, 'to_alipay_dict'):
  227. params['contact_mobile'] = self.contact_mobile.to_alipay_dict()
  228. else:
  229. params['contact_mobile'] = self.contact_mobile
  230. if self.contact_name:
  231. if hasattr(self.contact_name, 'to_alipay_dict'):
  232. params['contact_name'] = self.contact_name.to_alipay_dict()
  233. else:
  234. params['contact_name'] = self.contact_name
  235. if self.contact_tel:
  236. if hasattr(self.contact_tel, 'to_alipay_dict'):
  237. params['contact_tel'] = self.contact_tel.to_alipay_dict()
  238. else:
  239. params['contact_tel'] = self.contact_tel
  240. if self.contact_weixin:
  241. if hasattr(self.contact_weixin, 'to_alipay_dict'):
  242. params['contact_weixin'] = self.contact_weixin.to_alipay_dict()
  243. else:
  244. params['contact_weixin'] = self.contact_weixin
  245. if self.equipment_name:
  246. if hasattr(self.equipment_name, 'to_alipay_dict'):
  247. params['equipment_name'] = self.equipment_name.to_alipay_dict()
  248. else:
  249. params['equipment_name'] = self.equipment_name
  250. if self.latitude:
  251. if hasattr(self.latitude, 'to_alipay_dict'):
  252. params['latitude'] = self.latitude.to_alipay_dict()
  253. else:
  254. params['latitude'] = self.latitude
  255. if self.longitude:
  256. if hasattr(self.longitude, 'to_alipay_dict'):
  257. params['longitude'] = self.longitude.to_alipay_dict()
  258. else:
  259. params['longitude'] = self.longitude
  260. if self.mchnt_id:
  261. if hasattr(self.mchnt_id, 'to_alipay_dict'):
  262. params['mchnt_id'] = self.mchnt_id.to_alipay_dict()
  263. else:
  264. params['mchnt_id'] = self.mchnt_id
  265. if self.out_parking_id:
  266. if hasattr(self.out_parking_id, 'to_alipay_dict'):
  267. params['out_parking_id'] = self.out_parking_id.to_alipay_dict()
  268. else:
  269. params['out_parking_id'] = self.out_parking_id
  270. if self.parking_address:
  271. if hasattr(self.parking_address, 'to_alipay_dict'):
  272. params['parking_address'] = self.parking_address.to_alipay_dict()
  273. else:
  274. params['parking_address'] = self.parking_address
  275. if self.parking_end_time:
  276. if hasattr(self.parking_end_time, 'to_alipay_dict'):
  277. params['parking_end_time'] = self.parking_end_time.to_alipay_dict()
  278. else:
  279. params['parking_end_time'] = self.parking_end_time
  280. if self.parking_fee_description:
  281. if hasattr(self.parking_fee_description, 'to_alipay_dict'):
  282. params['parking_fee_description'] = self.parking_fee_description.to_alipay_dict()
  283. else:
  284. params['parking_fee_description'] = self.parking_fee_description
  285. if self.parking_id:
  286. if hasattr(self.parking_id, 'to_alipay_dict'):
  287. params['parking_id'] = self.parking_id.to_alipay_dict()
  288. else:
  289. params['parking_id'] = self.parking_id
  290. if self.parking_lot_type:
  291. if hasattr(self.parking_lot_type, 'to_alipay_dict'):
  292. params['parking_lot_type'] = self.parking_lot_type.to_alipay_dict()
  293. else:
  294. params['parking_lot_type'] = self.parking_lot_type
  295. if self.parking_mobile:
  296. if hasattr(self.parking_mobile, 'to_alipay_dict'):
  297. params['parking_mobile'] = self.parking_mobile.to_alipay_dict()
  298. else:
  299. params['parking_mobile'] = self.parking_mobile
  300. if self.parking_name:
  301. if hasattr(self.parking_name, 'to_alipay_dict'):
  302. params['parking_name'] = self.parking_name.to_alipay_dict()
  303. else:
  304. params['parking_name'] = self.parking_name
  305. if self.parking_number:
  306. if hasattr(self.parking_number, 'to_alipay_dict'):
  307. params['parking_number'] = self.parking_number.to_alipay_dict()
  308. else:
  309. params['parking_number'] = self.parking_number
  310. if self.parking_poiid:
  311. if hasattr(self.parking_poiid, 'to_alipay_dict'):
  312. params['parking_poiid'] = self.parking_poiid.to_alipay_dict()
  313. else:
  314. params['parking_poiid'] = self.parking_poiid
  315. if self.parking_start_time:
  316. if hasattr(self.parking_start_time, 'to_alipay_dict'):
  317. params['parking_start_time'] = self.parking_start_time.to_alipay_dict()
  318. else:
  319. params['parking_start_time'] = self.parking_start_time
  320. if self.parking_type:
  321. if hasattr(self.parking_type, 'to_alipay_dict'):
  322. params['parking_type'] = self.parking_type.to_alipay_dict()
  323. else:
  324. params['parking_type'] = self.parking_type
  325. if self.pay_type:
  326. if hasattr(self.pay_type, 'to_alipay_dict'):
  327. params['pay_type'] = self.pay_type.to_alipay_dict()
  328. else:
  329. params['pay_type'] = self.pay_type
  330. if self.payment_mode:
  331. if hasattr(self.payment_mode, 'to_alipay_dict'):
  332. params['payment_mode'] = self.payment_mode.to_alipay_dict()
  333. else:
  334. params['payment_mode'] = self.payment_mode
  335. if self.shopingmall_id:
  336. if hasattr(self.shopingmall_id, 'to_alipay_dict'):
  337. params['shopingmall_id'] = self.shopingmall_id.to_alipay_dict()
  338. else:
  339. params['shopingmall_id'] = self.shopingmall_id
  340. if self.time_out:
  341. if hasattr(self.time_out, 'to_alipay_dict'):
  342. params['time_out'] = self.time_out.to_alipay_dict()
  343. else:
  344. params['time_out'] = self.time_out
  345. return params
  346. @staticmethod
  347. def from_alipay_dict(d):
  348. if not d:
  349. return None
  350. o = AlipayEcoMycarParkingParkinglotinfoUpdateModel()
  351. if 'agent_id' in d:
  352. o.agent_id = d['agent_id']
  353. if 'city_id' in d:
  354. o.city_id = d['city_id']
  355. if 'contact_alipay' in d:
  356. o.contact_alipay = d['contact_alipay']
  357. if 'contact_email' in d:
  358. o.contact_email = d['contact_email']
  359. if 'contact_mobile' in d:
  360. o.contact_mobile = d['contact_mobile']
  361. if 'contact_name' in d:
  362. o.contact_name = d['contact_name']
  363. if 'contact_tel' in d:
  364. o.contact_tel = d['contact_tel']
  365. if 'contact_weixin' in d:
  366. o.contact_weixin = d['contact_weixin']
  367. if 'equipment_name' in d:
  368. o.equipment_name = d['equipment_name']
  369. if 'latitude' in d:
  370. o.latitude = d['latitude']
  371. if 'longitude' in d:
  372. o.longitude = d['longitude']
  373. if 'mchnt_id' in d:
  374. o.mchnt_id = d['mchnt_id']
  375. if 'out_parking_id' in d:
  376. o.out_parking_id = d['out_parking_id']
  377. if 'parking_address' in d:
  378. o.parking_address = d['parking_address']
  379. if 'parking_end_time' in d:
  380. o.parking_end_time = d['parking_end_time']
  381. if 'parking_fee_description' in d:
  382. o.parking_fee_description = d['parking_fee_description']
  383. if 'parking_id' in d:
  384. o.parking_id = d['parking_id']
  385. if 'parking_lot_type' in d:
  386. o.parking_lot_type = d['parking_lot_type']
  387. if 'parking_mobile' in d:
  388. o.parking_mobile = d['parking_mobile']
  389. if 'parking_name' in d:
  390. o.parking_name = d['parking_name']
  391. if 'parking_number' in d:
  392. o.parking_number = d['parking_number']
  393. if 'parking_poiid' in d:
  394. o.parking_poiid = d['parking_poiid']
  395. if 'parking_start_time' in d:
  396. o.parking_start_time = d['parking_start_time']
  397. if 'parking_type' in d:
  398. o.parking_type = d['parking_type']
  399. if 'pay_type' in d:
  400. o.pay_type = d['pay_type']
  401. if 'payment_mode' in d:
  402. o.payment_mode = d['payment_mode']
  403. if 'shopingmall_id' in d:
  404. o.shopingmall_id = d['shopingmall_id']
  405. if 'time_out' in d:
  406. o.time_out = d['time_out']
  407. return o