AlipayBossFncInvoiceBatchqueryModel.py 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayBossFncInvoiceBatchqueryModel(object):
  6. def __init__(self):
  7. self._apply_order_id = None
  8. self._buyer_invoice_title = None
  9. self._buyer_ipid = None
  10. self._buyer_ipids = None
  11. self._buyer_iprole_id = None
  12. self._buyer_iprole_ids = None
  13. self._inst_id = None
  14. self._invoice_channel = None
  15. self._invoice_code = None
  16. self._invoice_create_date_begin = None
  17. self._invoice_create_date_end = None
  18. self._invoice_ids = None
  19. self._invoice_material = None
  20. self._invoice_no = None
  21. self._invoice_open_date_begin = None
  22. self._invoice_open_date_end = None
  23. self._invoice_status = None
  24. self._invoice_types = None
  25. self._is_online = None
  26. self._is_red = None
  27. self._mail_status = None
  28. self._monthly_bill_no = None
  29. self._page_no = None
  30. self._page_size = None
  31. self._tracking_no = None
  32. @property
  33. def apply_order_id(self):
  34. return self._apply_order_id
  35. @apply_order_id.setter
  36. def apply_order_id(self, value):
  37. self._apply_order_id = value
  38. @property
  39. def buyer_invoice_title(self):
  40. return self._buyer_invoice_title
  41. @buyer_invoice_title.setter
  42. def buyer_invoice_title(self, value):
  43. self._buyer_invoice_title = value
  44. @property
  45. def buyer_ipid(self):
  46. return self._buyer_ipid
  47. @buyer_ipid.setter
  48. def buyer_ipid(self, value):
  49. self._buyer_ipid = value
  50. @property
  51. def buyer_ipids(self):
  52. return self._buyer_ipids
  53. @buyer_ipids.setter
  54. def buyer_ipids(self, value):
  55. if isinstance(value, list):
  56. self._buyer_ipids = list()
  57. for i in value:
  58. self._buyer_ipids.append(i)
  59. @property
  60. def buyer_iprole_id(self):
  61. return self._buyer_iprole_id
  62. @buyer_iprole_id.setter
  63. def buyer_iprole_id(self, value):
  64. self._buyer_iprole_id = value
  65. @property
  66. def buyer_iprole_ids(self):
  67. return self._buyer_iprole_ids
  68. @buyer_iprole_ids.setter
  69. def buyer_iprole_ids(self, value):
  70. if isinstance(value, list):
  71. self._buyer_iprole_ids = list()
  72. for i in value:
  73. self._buyer_iprole_ids.append(i)
  74. @property
  75. def inst_id(self):
  76. return self._inst_id
  77. @inst_id.setter
  78. def inst_id(self, value):
  79. self._inst_id = value
  80. @property
  81. def invoice_channel(self):
  82. return self._invoice_channel
  83. @invoice_channel.setter
  84. def invoice_channel(self, value):
  85. self._invoice_channel = value
  86. @property
  87. def invoice_code(self):
  88. return self._invoice_code
  89. @invoice_code.setter
  90. def invoice_code(self, value):
  91. self._invoice_code = value
  92. @property
  93. def invoice_create_date_begin(self):
  94. return self._invoice_create_date_begin
  95. @invoice_create_date_begin.setter
  96. def invoice_create_date_begin(self, value):
  97. self._invoice_create_date_begin = value
  98. @property
  99. def invoice_create_date_end(self):
  100. return self._invoice_create_date_end
  101. @invoice_create_date_end.setter
  102. def invoice_create_date_end(self, value):
  103. self._invoice_create_date_end = value
  104. @property
  105. def invoice_ids(self):
  106. return self._invoice_ids
  107. @invoice_ids.setter
  108. def invoice_ids(self, value):
  109. if isinstance(value, list):
  110. self._invoice_ids = list()
  111. for i in value:
  112. self._invoice_ids.append(i)
  113. @property
  114. def invoice_material(self):
  115. return self._invoice_material
  116. @invoice_material.setter
  117. def invoice_material(self, value):
  118. self._invoice_material = value
  119. @property
  120. def invoice_no(self):
  121. return self._invoice_no
  122. @invoice_no.setter
  123. def invoice_no(self, value):
  124. self._invoice_no = value
  125. @property
  126. def invoice_open_date_begin(self):
  127. return self._invoice_open_date_begin
  128. @invoice_open_date_begin.setter
  129. def invoice_open_date_begin(self, value):
  130. self._invoice_open_date_begin = value
  131. @property
  132. def invoice_open_date_end(self):
  133. return self._invoice_open_date_end
  134. @invoice_open_date_end.setter
  135. def invoice_open_date_end(self, value):
  136. self._invoice_open_date_end = value
  137. @property
  138. def invoice_status(self):
  139. return self._invoice_status
  140. @invoice_status.setter
  141. def invoice_status(self, value):
  142. if isinstance(value, list):
  143. self._invoice_status = list()
  144. for i in value:
  145. self._invoice_status.append(i)
  146. @property
  147. def invoice_types(self):
  148. return self._invoice_types
  149. @invoice_types.setter
  150. def invoice_types(self, value):
  151. if isinstance(value, list):
  152. self._invoice_types = list()
  153. for i in value:
  154. self._invoice_types.append(i)
  155. @property
  156. def is_online(self):
  157. return self._is_online
  158. @is_online.setter
  159. def is_online(self, value):
  160. self._is_online = value
  161. @property
  162. def is_red(self):
  163. return self._is_red
  164. @is_red.setter
  165. def is_red(self, value):
  166. self._is_red = value
  167. @property
  168. def mail_status(self):
  169. return self._mail_status
  170. @mail_status.setter
  171. def mail_status(self, value):
  172. if isinstance(value, list):
  173. self._mail_status = list()
  174. for i in value:
  175. self._mail_status.append(i)
  176. @property
  177. def monthly_bill_no(self):
  178. return self._monthly_bill_no
  179. @monthly_bill_no.setter
  180. def monthly_bill_no(self, value):
  181. self._monthly_bill_no = value
  182. @property
  183. def page_no(self):
  184. return self._page_no
  185. @page_no.setter
  186. def page_no(self, value):
  187. self._page_no = value
  188. @property
  189. def page_size(self):
  190. return self._page_size
  191. @page_size.setter
  192. def page_size(self, value):
  193. self._page_size = value
  194. @property
  195. def tracking_no(self):
  196. return self._tracking_no
  197. @tracking_no.setter
  198. def tracking_no(self, value):
  199. self._tracking_no = value
  200. def to_alipay_dict(self):
  201. params = dict()
  202. if self.apply_order_id:
  203. if hasattr(self.apply_order_id, 'to_alipay_dict'):
  204. params['apply_order_id'] = self.apply_order_id.to_alipay_dict()
  205. else:
  206. params['apply_order_id'] = self.apply_order_id
  207. if self.buyer_invoice_title:
  208. if hasattr(self.buyer_invoice_title, 'to_alipay_dict'):
  209. params['buyer_invoice_title'] = self.buyer_invoice_title.to_alipay_dict()
  210. else:
  211. params['buyer_invoice_title'] = self.buyer_invoice_title
  212. if self.buyer_ipid:
  213. if hasattr(self.buyer_ipid, 'to_alipay_dict'):
  214. params['buyer_ipid'] = self.buyer_ipid.to_alipay_dict()
  215. else:
  216. params['buyer_ipid'] = self.buyer_ipid
  217. if self.buyer_ipids:
  218. if isinstance(self.buyer_ipids, list):
  219. for i in range(0, len(self.buyer_ipids)):
  220. element = self.buyer_ipids[i]
  221. if hasattr(element, 'to_alipay_dict'):
  222. self.buyer_ipids[i] = element.to_alipay_dict()
  223. if hasattr(self.buyer_ipids, 'to_alipay_dict'):
  224. params['buyer_ipids'] = self.buyer_ipids.to_alipay_dict()
  225. else:
  226. params['buyer_ipids'] = self.buyer_ipids
  227. if self.buyer_iprole_id:
  228. if hasattr(self.buyer_iprole_id, 'to_alipay_dict'):
  229. params['buyer_iprole_id'] = self.buyer_iprole_id.to_alipay_dict()
  230. else:
  231. params['buyer_iprole_id'] = self.buyer_iprole_id
  232. if self.buyer_iprole_ids:
  233. if isinstance(self.buyer_iprole_ids, list):
  234. for i in range(0, len(self.buyer_iprole_ids)):
  235. element = self.buyer_iprole_ids[i]
  236. if hasattr(element, 'to_alipay_dict'):
  237. self.buyer_iprole_ids[i] = element.to_alipay_dict()
  238. if hasattr(self.buyer_iprole_ids, 'to_alipay_dict'):
  239. params['buyer_iprole_ids'] = self.buyer_iprole_ids.to_alipay_dict()
  240. else:
  241. params['buyer_iprole_ids'] = self.buyer_iprole_ids
  242. if self.inst_id:
  243. if hasattr(self.inst_id, 'to_alipay_dict'):
  244. params['inst_id'] = self.inst_id.to_alipay_dict()
  245. else:
  246. params['inst_id'] = self.inst_id
  247. if self.invoice_channel:
  248. if hasattr(self.invoice_channel, 'to_alipay_dict'):
  249. params['invoice_channel'] = self.invoice_channel.to_alipay_dict()
  250. else:
  251. params['invoice_channel'] = self.invoice_channel
  252. if self.invoice_code:
  253. if hasattr(self.invoice_code, 'to_alipay_dict'):
  254. params['invoice_code'] = self.invoice_code.to_alipay_dict()
  255. else:
  256. params['invoice_code'] = self.invoice_code
  257. if self.invoice_create_date_begin:
  258. if hasattr(self.invoice_create_date_begin, 'to_alipay_dict'):
  259. params['invoice_create_date_begin'] = self.invoice_create_date_begin.to_alipay_dict()
  260. else:
  261. params['invoice_create_date_begin'] = self.invoice_create_date_begin
  262. if self.invoice_create_date_end:
  263. if hasattr(self.invoice_create_date_end, 'to_alipay_dict'):
  264. params['invoice_create_date_end'] = self.invoice_create_date_end.to_alipay_dict()
  265. else:
  266. params['invoice_create_date_end'] = self.invoice_create_date_end
  267. if self.invoice_ids:
  268. if isinstance(self.invoice_ids, list):
  269. for i in range(0, len(self.invoice_ids)):
  270. element = self.invoice_ids[i]
  271. if hasattr(element, 'to_alipay_dict'):
  272. self.invoice_ids[i] = element.to_alipay_dict()
  273. if hasattr(self.invoice_ids, 'to_alipay_dict'):
  274. params['invoice_ids'] = self.invoice_ids.to_alipay_dict()
  275. else:
  276. params['invoice_ids'] = self.invoice_ids
  277. if self.invoice_material:
  278. if hasattr(self.invoice_material, 'to_alipay_dict'):
  279. params['invoice_material'] = self.invoice_material.to_alipay_dict()
  280. else:
  281. params['invoice_material'] = self.invoice_material
  282. if self.invoice_no:
  283. if hasattr(self.invoice_no, 'to_alipay_dict'):
  284. params['invoice_no'] = self.invoice_no.to_alipay_dict()
  285. else:
  286. params['invoice_no'] = self.invoice_no
  287. if self.invoice_open_date_begin:
  288. if hasattr(self.invoice_open_date_begin, 'to_alipay_dict'):
  289. params['invoice_open_date_begin'] = self.invoice_open_date_begin.to_alipay_dict()
  290. else:
  291. params['invoice_open_date_begin'] = self.invoice_open_date_begin
  292. if self.invoice_open_date_end:
  293. if hasattr(self.invoice_open_date_end, 'to_alipay_dict'):
  294. params['invoice_open_date_end'] = self.invoice_open_date_end.to_alipay_dict()
  295. else:
  296. params['invoice_open_date_end'] = self.invoice_open_date_end
  297. if self.invoice_status:
  298. if isinstance(self.invoice_status, list):
  299. for i in range(0, len(self.invoice_status)):
  300. element = self.invoice_status[i]
  301. if hasattr(element, 'to_alipay_dict'):
  302. self.invoice_status[i] = element.to_alipay_dict()
  303. if hasattr(self.invoice_status, 'to_alipay_dict'):
  304. params['invoice_status'] = self.invoice_status.to_alipay_dict()
  305. else:
  306. params['invoice_status'] = self.invoice_status
  307. if self.invoice_types:
  308. if isinstance(self.invoice_types, list):
  309. for i in range(0, len(self.invoice_types)):
  310. element = self.invoice_types[i]
  311. if hasattr(element, 'to_alipay_dict'):
  312. self.invoice_types[i] = element.to_alipay_dict()
  313. if hasattr(self.invoice_types, 'to_alipay_dict'):
  314. params['invoice_types'] = self.invoice_types.to_alipay_dict()
  315. else:
  316. params['invoice_types'] = self.invoice_types
  317. if self.is_online:
  318. if hasattr(self.is_online, 'to_alipay_dict'):
  319. params['is_online'] = self.is_online.to_alipay_dict()
  320. else:
  321. params['is_online'] = self.is_online
  322. if self.is_red:
  323. if hasattr(self.is_red, 'to_alipay_dict'):
  324. params['is_red'] = self.is_red.to_alipay_dict()
  325. else:
  326. params['is_red'] = self.is_red
  327. if self.mail_status:
  328. if isinstance(self.mail_status, list):
  329. for i in range(0, len(self.mail_status)):
  330. element = self.mail_status[i]
  331. if hasattr(element, 'to_alipay_dict'):
  332. self.mail_status[i] = element.to_alipay_dict()
  333. if hasattr(self.mail_status, 'to_alipay_dict'):
  334. params['mail_status'] = self.mail_status.to_alipay_dict()
  335. else:
  336. params['mail_status'] = self.mail_status
  337. if self.monthly_bill_no:
  338. if hasattr(self.monthly_bill_no, 'to_alipay_dict'):
  339. params['monthly_bill_no'] = self.monthly_bill_no.to_alipay_dict()
  340. else:
  341. params['monthly_bill_no'] = self.monthly_bill_no
  342. if self.page_no:
  343. if hasattr(self.page_no, 'to_alipay_dict'):
  344. params['page_no'] = self.page_no.to_alipay_dict()
  345. else:
  346. params['page_no'] = self.page_no
  347. if self.page_size:
  348. if hasattr(self.page_size, 'to_alipay_dict'):
  349. params['page_size'] = self.page_size.to_alipay_dict()
  350. else:
  351. params['page_size'] = self.page_size
  352. if self.tracking_no:
  353. if hasattr(self.tracking_no, 'to_alipay_dict'):
  354. params['tracking_no'] = self.tracking_no.to_alipay_dict()
  355. else:
  356. params['tracking_no'] = self.tracking_no
  357. return params
  358. @staticmethod
  359. def from_alipay_dict(d):
  360. if not d:
  361. return None
  362. o = AlipayBossFncInvoiceBatchqueryModel()
  363. if 'apply_order_id' in d:
  364. o.apply_order_id = d['apply_order_id']
  365. if 'buyer_invoice_title' in d:
  366. o.buyer_invoice_title = d['buyer_invoice_title']
  367. if 'buyer_ipid' in d:
  368. o.buyer_ipid = d['buyer_ipid']
  369. if 'buyer_ipids' in d:
  370. o.buyer_ipids = d['buyer_ipids']
  371. if 'buyer_iprole_id' in d:
  372. o.buyer_iprole_id = d['buyer_iprole_id']
  373. if 'buyer_iprole_ids' in d:
  374. o.buyer_iprole_ids = d['buyer_iprole_ids']
  375. if 'inst_id' in d:
  376. o.inst_id = d['inst_id']
  377. if 'invoice_channel' in d:
  378. o.invoice_channel = d['invoice_channel']
  379. if 'invoice_code' in d:
  380. o.invoice_code = d['invoice_code']
  381. if 'invoice_create_date_begin' in d:
  382. o.invoice_create_date_begin = d['invoice_create_date_begin']
  383. if 'invoice_create_date_end' in d:
  384. o.invoice_create_date_end = d['invoice_create_date_end']
  385. if 'invoice_ids' in d:
  386. o.invoice_ids = d['invoice_ids']
  387. if 'invoice_material' in d:
  388. o.invoice_material = d['invoice_material']
  389. if 'invoice_no' in d:
  390. o.invoice_no = d['invoice_no']
  391. if 'invoice_open_date_begin' in d:
  392. o.invoice_open_date_begin = d['invoice_open_date_begin']
  393. if 'invoice_open_date_end' in d:
  394. o.invoice_open_date_end = d['invoice_open_date_end']
  395. if 'invoice_status' in d:
  396. o.invoice_status = d['invoice_status']
  397. if 'invoice_types' in d:
  398. o.invoice_types = d['invoice_types']
  399. if 'is_online' in d:
  400. o.is_online = d['is_online']
  401. if 'is_red' in d:
  402. o.is_red = d['is_red']
  403. if 'mail_status' in d:
  404. o.mail_status = d['mail_status']
  405. if 'monthly_bill_no' in d:
  406. o.monthly_bill_no = d['monthly_bill_no']
  407. if 'page_no' in d:
  408. o.page_no = d['page_no']
  409. if 'page_size' in d:
  410. o.page_size = d['page_size']
  411. if 'tracking_no' in d:
  412. o.tracking_no = d['tracking_no']
  413. return o