AlipayEcoMycarParkingParkinglotinfoCreateModel.py 15 KB

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