AlipayBossFncApbillCustviewBatchqueryModel.py 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayBossFncApbillCustviewBatchqueryModel(object):
  6. def __init__(self):
  7. self._ar_no = None
  8. self._bill_invoice_link_statuses = None
  9. self._bill_types = None
  10. self._biz_type = None
  11. self._ccy = None
  12. self._end_month = None
  13. self._inst_id = None
  14. self._ip_role_id = None
  15. self._page_no = None
  16. self._page_size = None
  17. self._pay_statuses = None
  18. self._pd_codes = None
  19. self._price_id = None
  20. self._price_policy_id = None
  21. self._settle_type = None
  22. self._start_month = None
  23. @property
  24. def ar_no(self):
  25. return self._ar_no
  26. @ar_no.setter
  27. def ar_no(self, value):
  28. self._ar_no = value
  29. @property
  30. def bill_invoice_link_statuses(self):
  31. return self._bill_invoice_link_statuses
  32. @bill_invoice_link_statuses.setter
  33. def bill_invoice_link_statuses(self, value):
  34. if isinstance(value, list):
  35. self._bill_invoice_link_statuses = list()
  36. for i in value:
  37. self._bill_invoice_link_statuses.append(i)
  38. @property
  39. def bill_types(self):
  40. return self._bill_types
  41. @bill_types.setter
  42. def bill_types(self, value):
  43. if isinstance(value, list):
  44. self._bill_types = list()
  45. for i in value:
  46. self._bill_types.append(i)
  47. @property
  48. def biz_type(self):
  49. return self._biz_type
  50. @biz_type.setter
  51. def biz_type(self, value):
  52. self._biz_type = value
  53. @property
  54. def ccy(self):
  55. return self._ccy
  56. @ccy.setter
  57. def ccy(self, value):
  58. self._ccy = value
  59. @property
  60. def end_month(self):
  61. return self._end_month
  62. @end_month.setter
  63. def end_month(self, value):
  64. self._end_month = value
  65. @property
  66. def inst_id(self):
  67. return self._inst_id
  68. @inst_id.setter
  69. def inst_id(self, value):
  70. self._inst_id = value
  71. @property
  72. def ip_role_id(self):
  73. return self._ip_role_id
  74. @ip_role_id.setter
  75. def ip_role_id(self, value):
  76. self._ip_role_id = value
  77. @property
  78. def page_no(self):
  79. return self._page_no
  80. @page_no.setter
  81. def page_no(self, value):
  82. self._page_no = value
  83. @property
  84. def page_size(self):
  85. return self._page_size
  86. @page_size.setter
  87. def page_size(self, value):
  88. self._page_size = value
  89. @property
  90. def pay_statuses(self):
  91. return self._pay_statuses
  92. @pay_statuses.setter
  93. def pay_statuses(self, value):
  94. if isinstance(value, list):
  95. self._pay_statuses = list()
  96. for i in value:
  97. self._pay_statuses.append(i)
  98. @property
  99. def pd_codes(self):
  100. return self._pd_codes
  101. @pd_codes.setter
  102. def pd_codes(self, value):
  103. if isinstance(value, list):
  104. self._pd_codes = list()
  105. for i in value:
  106. self._pd_codes.append(i)
  107. @property
  108. def price_id(self):
  109. return self._price_id
  110. @price_id.setter
  111. def price_id(self, value):
  112. self._price_id = value
  113. @property
  114. def price_policy_id(self):
  115. return self._price_policy_id
  116. @price_policy_id.setter
  117. def price_policy_id(self, value):
  118. self._price_policy_id = value
  119. @property
  120. def settle_type(self):
  121. return self._settle_type
  122. @settle_type.setter
  123. def settle_type(self, value):
  124. if isinstance(value, list):
  125. self._settle_type = list()
  126. for i in value:
  127. self._settle_type.append(i)
  128. @property
  129. def start_month(self):
  130. return self._start_month
  131. @start_month.setter
  132. def start_month(self, value):
  133. self._start_month = value
  134. def to_alipay_dict(self):
  135. params = dict()
  136. if self.ar_no:
  137. if hasattr(self.ar_no, 'to_alipay_dict'):
  138. params['ar_no'] = self.ar_no.to_alipay_dict()
  139. else:
  140. params['ar_no'] = self.ar_no
  141. if self.bill_invoice_link_statuses:
  142. if isinstance(self.bill_invoice_link_statuses, list):
  143. for i in range(0, len(self.bill_invoice_link_statuses)):
  144. element = self.bill_invoice_link_statuses[i]
  145. if hasattr(element, 'to_alipay_dict'):
  146. self.bill_invoice_link_statuses[i] = element.to_alipay_dict()
  147. if hasattr(self.bill_invoice_link_statuses, 'to_alipay_dict'):
  148. params['bill_invoice_link_statuses'] = self.bill_invoice_link_statuses.to_alipay_dict()
  149. else:
  150. params['bill_invoice_link_statuses'] = self.bill_invoice_link_statuses
  151. if self.bill_types:
  152. if isinstance(self.bill_types, list):
  153. for i in range(0, len(self.bill_types)):
  154. element = self.bill_types[i]
  155. if hasattr(element, 'to_alipay_dict'):
  156. self.bill_types[i] = element.to_alipay_dict()
  157. if hasattr(self.bill_types, 'to_alipay_dict'):
  158. params['bill_types'] = self.bill_types.to_alipay_dict()
  159. else:
  160. params['bill_types'] = self.bill_types
  161. if self.biz_type:
  162. if hasattr(self.biz_type, 'to_alipay_dict'):
  163. params['biz_type'] = self.biz_type.to_alipay_dict()
  164. else:
  165. params['biz_type'] = self.biz_type
  166. if self.ccy:
  167. if hasattr(self.ccy, 'to_alipay_dict'):
  168. params['ccy'] = self.ccy.to_alipay_dict()
  169. else:
  170. params['ccy'] = self.ccy
  171. if self.end_month:
  172. if hasattr(self.end_month, 'to_alipay_dict'):
  173. params['end_month'] = self.end_month.to_alipay_dict()
  174. else:
  175. params['end_month'] = self.end_month
  176. if self.inst_id:
  177. if hasattr(self.inst_id, 'to_alipay_dict'):
  178. params['inst_id'] = self.inst_id.to_alipay_dict()
  179. else:
  180. params['inst_id'] = self.inst_id
  181. if self.ip_role_id:
  182. if hasattr(self.ip_role_id, 'to_alipay_dict'):
  183. params['ip_role_id'] = self.ip_role_id.to_alipay_dict()
  184. else:
  185. params['ip_role_id'] = self.ip_role_id
  186. if self.page_no:
  187. if hasattr(self.page_no, 'to_alipay_dict'):
  188. params['page_no'] = self.page_no.to_alipay_dict()
  189. else:
  190. params['page_no'] = self.page_no
  191. if self.page_size:
  192. if hasattr(self.page_size, 'to_alipay_dict'):
  193. params['page_size'] = self.page_size.to_alipay_dict()
  194. else:
  195. params['page_size'] = self.page_size
  196. if self.pay_statuses:
  197. if isinstance(self.pay_statuses, list):
  198. for i in range(0, len(self.pay_statuses)):
  199. element = self.pay_statuses[i]
  200. if hasattr(element, 'to_alipay_dict'):
  201. self.pay_statuses[i] = element.to_alipay_dict()
  202. if hasattr(self.pay_statuses, 'to_alipay_dict'):
  203. params['pay_statuses'] = self.pay_statuses.to_alipay_dict()
  204. else:
  205. params['pay_statuses'] = self.pay_statuses
  206. if self.pd_codes:
  207. if isinstance(self.pd_codes, list):
  208. for i in range(0, len(self.pd_codes)):
  209. element = self.pd_codes[i]
  210. if hasattr(element, 'to_alipay_dict'):
  211. self.pd_codes[i] = element.to_alipay_dict()
  212. if hasattr(self.pd_codes, 'to_alipay_dict'):
  213. params['pd_codes'] = self.pd_codes.to_alipay_dict()
  214. else:
  215. params['pd_codes'] = self.pd_codes
  216. if self.price_id:
  217. if hasattr(self.price_id, 'to_alipay_dict'):
  218. params['price_id'] = self.price_id.to_alipay_dict()
  219. else:
  220. params['price_id'] = self.price_id
  221. if self.price_policy_id:
  222. if hasattr(self.price_policy_id, 'to_alipay_dict'):
  223. params['price_policy_id'] = self.price_policy_id.to_alipay_dict()
  224. else:
  225. params['price_policy_id'] = self.price_policy_id
  226. if self.settle_type:
  227. if isinstance(self.settle_type, list):
  228. for i in range(0, len(self.settle_type)):
  229. element = self.settle_type[i]
  230. if hasattr(element, 'to_alipay_dict'):
  231. self.settle_type[i] = element.to_alipay_dict()
  232. if hasattr(self.settle_type, 'to_alipay_dict'):
  233. params['settle_type'] = self.settle_type.to_alipay_dict()
  234. else:
  235. params['settle_type'] = self.settle_type
  236. if self.start_month:
  237. if hasattr(self.start_month, 'to_alipay_dict'):
  238. params['start_month'] = self.start_month.to_alipay_dict()
  239. else:
  240. params['start_month'] = self.start_month
  241. return params
  242. @staticmethod
  243. def from_alipay_dict(d):
  244. if not d:
  245. return None
  246. o = AlipayBossFncApbillCustviewBatchqueryModel()
  247. if 'ar_no' in d:
  248. o.ar_no = d['ar_no']
  249. if 'bill_invoice_link_statuses' in d:
  250. o.bill_invoice_link_statuses = d['bill_invoice_link_statuses']
  251. if 'bill_types' in d:
  252. o.bill_types = d['bill_types']
  253. if 'biz_type' in d:
  254. o.biz_type = d['biz_type']
  255. if 'ccy' in d:
  256. o.ccy = d['ccy']
  257. if 'end_month' in d:
  258. o.end_month = d['end_month']
  259. if 'inst_id' in d:
  260. o.inst_id = d['inst_id']
  261. if 'ip_role_id' in d:
  262. o.ip_role_id = d['ip_role_id']
  263. if 'page_no' in d:
  264. o.page_no = d['page_no']
  265. if 'page_size' in d:
  266. o.page_size = d['page_size']
  267. if 'pay_statuses' in d:
  268. o.pay_statuses = d['pay_statuses']
  269. if 'pd_codes' in d:
  270. o.pd_codes = d['pd_codes']
  271. if 'price_id' in d:
  272. o.price_id = d['price_id']
  273. if 'price_policy_id' in d:
  274. o.price_policy_id = d['price_policy_id']
  275. if 'settle_type' in d:
  276. o.settle_type = d['settle_type']
  277. if 'start_month' in d:
  278. o.start_month = d['start_month']
  279. return o