ArMonthlyBillDTO.py 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  6. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  7. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  8. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  9. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  10. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  11. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  12. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  13. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  14. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  15. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  16. from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
  17. class ArMonthlyBillDTO(object):
  18. def __init__(self):
  19. self._account_day = None
  20. self._accrued_date = None
  21. self._adjust_amt = None
  22. self._analysis_dmsn_1 = None
  23. self._analysis_dmsn_2 = None
  24. self._analysis_dmsn_3 = None
  25. self._analysis_dmsn_4 = None
  26. self._arrangement_no = None
  27. self._bill_amt = None
  28. self._bill_end_date = None
  29. self._bill_month = None
  30. self._bill_no = None
  31. self._bill_start_date = None
  32. self._bill_type = None
  33. self._charge_item_code = None
  34. self._charge_type = None
  35. self._check_status = None
  36. self._checked_amt = None
  37. self._checking_amt = None
  38. self._clcn_basic_amt = None
  39. self._clcn_basic_type = None
  40. self._clcn_method = None
  41. self._freeze_amt = None
  42. self._gmt_create = None
  43. self._gmt_modified = None
  44. self._gmt_pay = None
  45. self._inst_id = None
  46. self._invoice_amt = None
  47. self._invoiced_amt = None
  48. self._ip_id = None
  49. self._ip_name = None
  50. self._ip_role_id = None
  51. self._last_moder = None
  52. self._link_invoice_amt = None
  53. self._pay_original = None
  54. self._pay_status = None
  55. self._pay_way = None
  56. self._payee_account = None
  57. self._payer_account = None
  58. self._payer_ip_role_id = None
  59. self._prod_code = None
  60. self._received_amt = None
  61. self._record_id = None
  62. self._service_amt = None
  63. self._settle_type = None
  64. self._sign_ip_id = None
  65. self._sign_ip_role_id = None
  66. self._stl_ip_role_id = None
  67. self._tax_amt = None
  68. self._tax_rate = None
  69. self._tax_type = None
  70. self._to_writeoff_detail_count = None
  71. self._type = None
  72. self._writeoff_detail_dount = None
  73. self._writingoff_amt = None
  74. @property
  75. def account_day(self):
  76. return self._account_day
  77. @account_day.setter
  78. def account_day(self, value):
  79. self._account_day = value
  80. @property
  81. def accrued_date(self):
  82. return self._accrued_date
  83. @accrued_date.setter
  84. def accrued_date(self, value):
  85. self._accrued_date = value
  86. @property
  87. def adjust_amt(self):
  88. return self._adjust_amt
  89. @adjust_amt.setter
  90. def adjust_amt(self, value):
  91. if isinstance(value, MultiCurrencyMoneyOpenApi):
  92. self._adjust_amt = value
  93. else:
  94. self._adjust_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  95. @property
  96. def analysis_dmsn_1(self):
  97. return self._analysis_dmsn_1
  98. @analysis_dmsn_1.setter
  99. def analysis_dmsn_1(self, value):
  100. self._analysis_dmsn_1 = value
  101. @property
  102. def analysis_dmsn_2(self):
  103. return self._analysis_dmsn_2
  104. @analysis_dmsn_2.setter
  105. def analysis_dmsn_2(self, value):
  106. self._analysis_dmsn_2 = value
  107. @property
  108. def analysis_dmsn_3(self):
  109. return self._analysis_dmsn_3
  110. @analysis_dmsn_3.setter
  111. def analysis_dmsn_3(self, value):
  112. self._analysis_dmsn_3 = value
  113. @property
  114. def analysis_dmsn_4(self):
  115. return self._analysis_dmsn_4
  116. @analysis_dmsn_4.setter
  117. def analysis_dmsn_4(self, value):
  118. self._analysis_dmsn_4 = value
  119. @property
  120. def arrangement_no(self):
  121. return self._arrangement_no
  122. @arrangement_no.setter
  123. def arrangement_no(self, value):
  124. self._arrangement_no = value
  125. @property
  126. def bill_amt(self):
  127. return self._bill_amt
  128. @bill_amt.setter
  129. def bill_amt(self, value):
  130. if isinstance(value, MultiCurrencyMoneyOpenApi):
  131. self._bill_amt = value
  132. else:
  133. self._bill_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  134. @property
  135. def bill_end_date(self):
  136. return self._bill_end_date
  137. @bill_end_date.setter
  138. def bill_end_date(self, value):
  139. self._bill_end_date = value
  140. @property
  141. def bill_month(self):
  142. return self._bill_month
  143. @bill_month.setter
  144. def bill_month(self, value):
  145. self._bill_month = value
  146. @property
  147. def bill_no(self):
  148. return self._bill_no
  149. @bill_no.setter
  150. def bill_no(self, value):
  151. self._bill_no = value
  152. @property
  153. def bill_start_date(self):
  154. return self._bill_start_date
  155. @bill_start_date.setter
  156. def bill_start_date(self, value):
  157. self._bill_start_date = value
  158. @property
  159. def bill_type(self):
  160. return self._bill_type
  161. @bill_type.setter
  162. def bill_type(self, value):
  163. self._bill_type = value
  164. @property
  165. def charge_item_code(self):
  166. return self._charge_item_code
  167. @charge_item_code.setter
  168. def charge_item_code(self, value):
  169. self._charge_item_code = value
  170. @property
  171. def charge_type(self):
  172. return self._charge_type
  173. @charge_type.setter
  174. def charge_type(self, value):
  175. self._charge_type = value
  176. @property
  177. def check_status(self):
  178. return self._check_status
  179. @check_status.setter
  180. def check_status(self, value):
  181. self._check_status = value
  182. @property
  183. def checked_amt(self):
  184. return self._checked_amt
  185. @checked_amt.setter
  186. def checked_amt(self, value):
  187. if isinstance(value, MultiCurrencyMoneyOpenApi):
  188. self._checked_amt = value
  189. else:
  190. self._checked_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  191. @property
  192. def checking_amt(self):
  193. return self._checking_amt
  194. @checking_amt.setter
  195. def checking_amt(self, value):
  196. if isinstance(value, MultiCurrencyMoneyOpenApi):
  197. self._checking_amt = value
  198. else:
  199. self._checking_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  200. @property
  201. def clcn_basic_amt(self):
  202. return self._clcn_basic_amt
  203. @clcn_basic_amt.setter
  204. def clcn_basic_amt(self, value):
  205. self._clcn_basic_amt = value
  206. @property
  207. def clcn_basic_type(self):
  208. return self._clcn_basic_type
  209. @clcn_basic_type.setter
  210. def clcn_basic_type(self, value):
  211. self._clcn_basic_type = value
  212. @property
  213. def clcn_method(self):
  214. return self._clcn_method
  215. @clcn_method.setter
  216. def clcn_method(self, value):
  217. self._clcn_method = value
  218. @property
  219. def freeze_amt(self):
  220. return self._freeze_amt
  221. @freeze_amt.setter
  222. def freeze_amt(self, value):
  223. if isinstance(value, MultiCurrencyMoneyOpenApi):
  224. self._freeze_amt = value
  225. else:
  226. self._freeze_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  227. @property
  228. def gmt_create(self):
  229. return self._gmt_create
  230. @gmt_create.setter
  231. def gmt_create(self, value):
  232. self._gmt_create = value
  233. @property
  234. def gmt_modified(self):
  235. return self._gmt_modified
  236. @gmt_modified.setter
  237. def gmt_modified(self, value):
  238. self._gmt_modified = value
  239. @property
  240. def gmt_pay(self):
  241. return self._gmt_pay
  242. @gmt_pay.setter
  243. def gmt_pay(self, value):
  244. self._gmt_pay = value
  245. @property
  246. def inst_id(self):
  247. return self._inst_id
  248. @inst_id.setter
  249. def inst_id(self, value):
  250. self._inst_id = value
  251. @property
  252. def invoice_amt(self):
  253. return self._invoice_amt
  254. @invoice_amt.setter
  255. def invoice_amt(self, value):
  256. if isinstance(value, MultiCurrencyMoneyOpenApi):
  257. self._invoice_amt = value
  258. else:
  259. self._invoice_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  260. @property
  261. def invoiced_amt(self):
  262. return self._invoiced_amt
  263. @invoiced_amt.setter
  264. def invoiced_amt(self, value):
  265. if isinstance(value, MultiCurrencyMoneyOpenApi):
  266. self._invoiced_amt = value
  267. else:
  268. self._invoiced_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  269. @property
  270. def ip_id(self):
  271. return self._ip_id
  272. @ip_id.setter
  273. def ip_id(self, value):
  274. self._ip_id = value
  275. @property
  276. def ip_name(self):
  277. return self._ip_name
  278. @ip_name.setter
  279. def ip_name(self, value):
  280. self._ip_name = value
  281. @property
  282. def ip_role_id(self):
  283. return self._ip_role_id
  284. @ip_role_id.setter
  285. def ip_role_id(self, value):
  286. self._ip_role_id = value
  287. @property
  288. def last_moder(self):
  289. return self._last_moder
  290. @last_moder.setter
  291. def last_moder(self, value):
  292. self._last_moder = value
  293. @property
  294. def link_invoice_amt(self):
  295. return self._link_invoice_amt
  296. @link_invoice_amt.setter
  297. def link_invoice_amt(self, value):
  298. if isinstance(value, MultiCurrencyMoneyOpenApi):
  299. self._link_invoice_amt = value
  300. else:
  301. self._link_invoice_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  302. @property
  303. def pay_original(self):
  304. return self._pay_original
  305. @pay_original.setter
  306. def pay_original(self, value):
  307. self._pay_original = value
  308. @property
  309. def pay_status(self):
  310. return self._pay_status
  311. @pay_status.setter
  312. def pay_status(self, value):
  313. self._pay_status = value
  314. @property
  315. def pay_way(self):
  316. return self._pay_way
  317. @pay_way.setter
  318. def pay_way(self, value):
  319. self._pay_way = value
  320. @property
  321. def payee_account(self):
  322. return self._payee_account
  323. @payee_account.setter
  324. def payee_account(self, value):
  325. self._payee_account = value
  326. @property
  327. def payer_account(self):
  328. return self._payer_account
  329. @payer_account.setter
  330. def payer_account(self, value):
  331. self._payer_account = value
  332. @property
  333. def payer_ip_role_id(self):
  334. return self._payer_ip_role_id
  335. @payer_ip_role_id.setter
  336. def payer_ip_role_id(self, value):
  337. self._payer_ip_role_id = value
  338. @property
  339. def prod_code(self):
  340. return self._prod_code
  341. @prod_code.setter
  342. def prod_code(self, value):
  343. self._prod_code = value
  344. @property
  345. def received_amt(self):
  346. return self._received_amt
  347. @received_amt.setter
  348. def received_amt(self, value):
  349. if isinstance(value, MultiCurrencyMoneyOpenApi):
  350. self._received_amt = value
  351. else:
  352. self._received_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  353. @property
  354. def record_id(self):
  355. return self._record_id
  356. @record_id.setter
  357. def record_id(self, value):
  358. self._record_id = value
  359. @property
  360. def service_amt(self):
  361. return self._service_amt
  362. @service_amt.setter
  363. def service_amt(self, value):
  364. if isinstance(value, MultiCurrencyMoneyOpenApi):
  365. self._service_amt = value
  366. else:
  367. self._service_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  368. @property
  369. def settle_type(self):
  370. return self._settle_type
  371. @settle_type.setter
  372. def settle_type(self, value):
  373. self._settle_type = value
  374. @property
  375. def sign_ip_id(self):
  376. return self._sign_ip_id
  377. @sign_ip_id.setter
  378. def sign_ip_id(self, value):
  379. self._sign_ip_id = value
  380. @property
  381. def sign_ip_role_id(self):
  382. return self._sign_ip_role_id
  383. @sign_ip_role_id.setter
  384. def sign_ip_role_id(self, value):
  385. self._sign_ip_role_id = value
  386. @property
  387. def stl_ip_role_id(self):
  388. return self._stl_ip_role_id
  389. @stl_ip_role_id.setter
  390. def stl_ip_role_id(self, value):
  391. self._stl_ip_role_id = value
  392. @property
  393. def tax_amt(self):
  394. return self._tax_amt
  395. @tax_amt.setter
  396. def tax_amt(self, value):
  397. if isinstance(value, MultiCurrencyMoneyOpenApi):
  398. self._tax_amt = value
  399. else:
  400. self._tax_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  401. @property
  402. def tax_rate(self):
  403. return self._tax_rate
  404. @tax_rate.setter
  405. def tax_rate(self, value):
  406. self._tax_rate = value
  407. @property
  408. def tax_type(self):
  409. return self._tax_type
  410. @tax_type.setter
  411. def tax_type(self, value):
  412. self._tax_type = value
  413. @property
  414. def to_writeoff_detail_count(self):
  415. return self._to_writeoff_detail_count
  416. @to_writeoff_detail_count.setter
  417. def to_writeoff_detail_count(self, value):
  418. self._to_writeoff_detail_count = value
  419. @property
  420. def type(self):
  421. return self._type
  422. @type.setter
  423. def type(self, value):
  424. self._type = value
  425. @property
  426. def writeoff_detail_dount(self):
  427. return self._writeoff_detail_dount
  428. @writeoff_detail_dount.setter
  429. def writeoff_detail_dount(self, value):
  430. self._writeoff_detail_dount = value
  431. @property
  432. def writingoff_amt(self):
  433. return self._writingoff_amt
  434. @writingoff_amt.setter
  435. def writingoff_amt(self, value):
  436. if isinstance(value, MultiCurrencyMoneyOpenApi):
  437. self._writingoff_amt = value
  438. else:
  439. self._writingoff_amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
  440. def to_alipay_dict(self):
  441. params = dict()
  442. if self.account_day:
  443. if hasattr(self.account_day, 'to_alipay_dict'):
  444. params['account_day'] = self.account_day.to_alipay_dict()
  445. else:
  446. params['account_day'] = self.account_day
  447. if self.accrued_date:
  448. if hasattr(self.accrued_date, 'to_alipay_dict'):
  449. params['accrued_date'] = self.accrued_date.to_alipay_dict()
  450. else:
  451. params['accrued_date'] = self.accrued_date
  452. if self.adjust_amt:
  453. if hasattr(self.adjust_amt, 'to_alipay_dict'):
  454. params['adjust_amt'] = self.adjust_amt.to_alipay_dict()
  455. else:
  456. params['adjust_amt'] = self.adjust_amt
  457. if self.analysis_dmsn_1:
  458. if hasattr(self.analysis_dmsn_1, 'to_alipay_dict'):
  459. params['analysis_dmsn_1'] = self.analysis_dmsn_1.to_alipay_dict()
  460. else:
  461. params['analysis_dmsn_1'] = self.analysis_dmsn_1
  462. if self.analysis_dmsn_2:
  463. if hasattr(self.analysis_dmsn_2, 'to_alipay_dict'):
  464. params['analysis_dmsn_2'] = self.analysis_dmsn_2.to_alipay_dict()
  465. else:
  466. params['analysis_dmsn_2'] = self.analysis_dmsn_2
  467. if self.analysis_dmsn_3:
  468. if hasattr(self.analysis_dmsn_3, 'to_alipay_dict'):
  469. params['analysis_dmsn_3'] = self.analysis_dmsn_3.to_alipay_dict()
  470. else:
  471. params['analysis_dmsn_3'] = self.analysis_dmsn_3
  472. if self.analysis_dmsn_4:
  473. if hasattr(self.analysis_dmsn_4, 'to_alipay_dict'):
  474. params['analysis_dmsn_4'] = self.analysis_dmsn_4.to_alipay_dict()
  475. else:
  476. params['analysis_dmsn_4'] = self.analysis_dmsn_4
  477. if self.arrangement_no:
  478. if hasattr(self.arrangement_no, 'to_alipay_dict'):
  479. params['arrangement_no'] = self.arrangement_no.to_alipay_dict()
  480. else:
  481. params['arrangement_no'] = self.arrangement_no
  482. if self.bill_amt:
  483. if hasattr(self.bill_amt, 'to_alipay_dict'):
  484. params['bill_amt'] = self.bill_amt.to_alipay_dict()
  485. else:
  486. params['bill_amt'] = self.bill_amt
  487. if self.bill_end_date:
  488. if hasattr(self.bill_end_date, 'to_alipay_dict'):
  489. params['bill_end_date'] = self.bill_end_date.to_alipay_dict()
  490. else:
  491. params['bill_end_date'] = self.bill_end_date
  492. if self.bill_month:
  493. if hasattr(self.bill_month, 'to_alipay_dict'):
  494. params['bill_month'] = self.bill_month.to_alipay_dict()
  495. else:
  496. params['bill_month'] = self.bill_month
  497. if self.bill_no:
  498. if hasattr(self.bill_no, 'to_alipay_dict'):
  499. params['bill_no'] = self.bill_no.to_alipay_dict()
  500. else:
  501. params['bill_no'] = self.bill_no
  502. if self.bill_start_date:
  503. if hasattr(self.bill_start_date, 'to_alipay_dict'):
  504. params['bill_start_date'] = self.bill_start_date.to_alipay_dict()
  505. else:
  506. params['bill_start_date'] = self.bill_start_date
  507. if self.bill_type:
  508. if hasattr(self.bill_type, 'to_alipay_dict'):
  509. params['bill_type'] = self.bill_type.to_alipay_dict()
  510. else:
  511. params['bill_type'] = self.bill_type
  512. if self.charge_item_code:
  513. if hasattr(self.charge_item_code, 'to_alipay_dict'):
  514. params['charge_item_code'] = self.charge_item_code.to_alipay_dict()
  515. else:
  516. params['charge_item_code'] = self.charge_item_code
  517. if self.charge_type:
  518. if hasattr(self.charge_type, 'to_alipay_dict'):
  519. params['charge_type'] = self.charge_type.to_alipay_dict()
  520. else:
  521. params['charge_type'] = self.charge_type
  522. if self.check_status:
  523. if hasattr(self.check_status, 'to_alipay_dict'):
  524. params['check_status'] = self.check_status.to_alipay_dict()
  525. else:
  526. params['check_status'] = self.check_status
  527. if self.checked_amt:
  528. if hasattr(self.checked_amt, 'to_alipay_dict'):
  529. params['checked_amt'] = self.checked_amt.to_alipay_dict()
  530. else:
  531. params['checked_amt'] = self.checked_amt
  532. if self.checking_amt:
  533. if hasattr(self.checking_amt, 'to_alipay_dict'):
  534. params['checking_amt'] = self.checking_amt.to_alipay_dict()
  535. else:
  536. params['checking_amt'] = self.checking_amt
  537. if self.clcn_basic_amt:
  538. if hasattr(self.clcn_basic_amt, 'to_alipay_dict'):
  539. params['clcn_basic_amt'] = self.clcn_basic_amt.to_alipay_dict()
  540. else:
  541. params['clcn_basic_amt'] = self.clcn_basic_amt
  542. if self.clcn_basic_type:
  543. if hasattr(self.clcn_basic_type, 'to_alipay_dict'):
  544. params['clcn_basic_type'] = self.clcn_basic_type.to_alipay_dict()
  545. else:
  546. params['clcn_basic_type'] = self.clcn_basic_type
  547. if self.clcn_method:
  548. if hasattr(self.clcn_method, 'to_alipay_dict'):
  549. params['clcn_method'] = self.clcn_method.to_alipay_dict()
  550. else:
  551. params['clcn_method'] = self.clcn_method
  552. if self.freeze_amt:
  553. if hasattr(self.freeze_amt, 'to_alipay_dict'):
  554. params['freeze_amt'] = self.freeze_amt.to_alipay_dict()
  555. else:
  556. params['freeze_amt'] = self.freeze_amt
  557. if self.gmt_create:
  558. if hasattr(self.gmt_create, 'to_alipay_dict'):
  559. params['gmt_create'] = self.gmt_create.to_alipay_dict()
  560. else:
  561. params['gmt_create'] = self.gmt_create
  562. if self.gmt_modified:
  563. if hasattr(self.gmt_modified, 'to_alipay_dict'):
  564. params['gmt_modified'] = self.gmt_modified.to_alipay_dict()
  565. else:
  566. params['gmt_modified'] = self.gmt_modified
  567. if self.gmt_pay:
  568. if hasattr(self.gmt_pay, 'to_alipay_dict'):
  569. params['gmt_pay'] = self.gmt_pay.to_alipay_dict()
  570. else:
  571. params['gmt_pay'] = self.gmt_pay
  572. if self.inst_id:
  573. if hasattr(self.inst_id, 'to_alipay_dict'):
  574. params['inst_id'] = self.inst_id.to_alipay_dict()
  575. else:
  576. params['inst_id'] = self.inst_id
  577. if self.invoice_amt:
  578. if hasattr(self.invoice_amt, 'to_alipay_dict'):
  579. params['invoice_amt'] = self.invoice_amt.to_alipay_dict()
  580. else:
  581. params['invoice_amt'] = self.invoice_amt
  582. if self.invoiced_amt:
  583. if hasattr(self.invoiced_amt, 'to_alipay_dict'):
  584. params['invoiced_amt'] = self.invoiced_amt.to_alipay_dict()
  585. else:
  586. params['invoiced_amt'] = self.invoiced_amt
  587. if self.ip_id:
  588. if hasattr(self.ip_id, 'to_alipay_dict'):
  589. params['ip_id'] = self.ip_id.to_alipay_dict()
  590. else:
  591. params['ip_id'] = self.ip_id
  592. if self.ip_name:
  593. if hasattr(self.ip_name, 'to_alipay_dict'):
  594. params['ip_name'] = self.ip_name.to_alipay_dict()
  595. else:
  596. params['ip_name'] = self.ip_name
  597. if self.ip_role_id:
  598. if hasattr(self.ip_role_id, 'to_alipay_dict'):
  599. params['ip_role_id'] = self.ip_role_id.to_alipay_dict()
  600. else:
  601. params['ip_role_id'] = self.ip_role_id
  602. if self.last_moder:
  603. if hasattr(self.last_moder, 'to_alipay_dict'):
  604. params['last_moder'] = self.last_moder.to_alipay_dict()
  605. else:
  606. params['last_moder'] = self.last_moder
  607. if self.link_invoice_amt:
  608. if hasattr(self.link_invoice_amt, 'to_alipay_dict'):
  609. params['link_invoice_amt'] = self.link_invoice_amt.to_alipay_dict()
  610. else:
  611. params['link_invoice_amt'] = self.link_invoice_amt
  612. if self.pay_original:
  613. if hasattr(self.pay_original, 'to_alipay_dict'):
  614. params['pay_original'] = self.pay_original.to_alipay_dict()
  615. else:
  616. params['pay_original'] = self.pay_original
  617. if self.pay_status:
  618. if hasattr(self.pay_status, 'to_alipay_dict'):
  619. params['pay_status'] = self.pay_status.to_alipay_dict()
  620. else:
  621. params['pay_status'] = self.pay_status
  622. if self.pay_way:
  623. if hasattr(self.pay_way, 'to_alipay_dict'):
  624. params['pay_way'] = self.pay_way.to_alipay_dict()
  625. else:
  626. params['pay_way'] = self.pay_way
  627. if self.payee_account:
  628. if hasattr(self.payee_account, 'to_alipay_dict'):
  629. params['payee_account'] = self.payee_account.to_alipay_dict()
  630. else:
  631. params['payee_account'] = self.payee_account
  632. if self.payer_account:
  633. if hasattr(self.payer_account, 'to_alipay_dict'):
  634. params['payer_account'] = self.payer_account.to_alipay_dict()
  635. else:
  636. params['payer_account'] = self.payer_account
  637. if self.payer_ip_role_id:
  638. if hasattr(self.payer_ip_role_id, 'to_alipay_dict'):
  639. params['payer_ip_role_id'] = self.payer_ip_role_id.to_alipay_dict()
  640. else:
  641. params['payer_ip_role_id'] = self.payer_ip_role_id
  642. if self.prod_code:
  643. if hasattr(self.prod_code, 'to_alipay_dict'):
  644. params['prod_code'] = self.prod_code.to_alipay_dict()
  645. else:
  646. params['prod_code'] = self.prod_code
  647. if self.received_amt:
  648. if hasattr(self.received_amt, 'to_alipay_dict'):
  649. params['received_amt'] = self.received_amt.to_alipay_dict()
  650. else:
  651. params['received_amt'] = self.received_amt
  652. if self.record_id:
  653. if hasattr(self.record_id, 'to_alipay_dict'):
  654. params['record_id'] = self.record_id.to_alipay_dict()
  655. else:
  656. params['record_id'] = self.record_id
  657. if self.service_amt:
  658. if hasattr(self.service_amt, 'to_alipay_dict'):
  659. params['service_amt'] = self.service_amt.to_alipay_dict()
  660. else:
  661. params['service_amt'] = self.service_amt
  662. if self.settle_type:
  663. if hasattr(self.settle_type, 'to_alipay_dict'):
  664. params['settle_type'] = self.settle_type.to_alipay_dict()
  665. else:
  666. params['settle_type'] = self.settle_type
  667. if self.sign_ip_id:
  668. if hasattr(self.sign_ip_id, 'to_alipay_dict'):
  669. params['sign_ip_id'] = self.sign_ip_id.to_alipay_dict()
  670. else:
  671. params['sign_ip_id'] = self.sign_ip_id
  672. if self.sign_ip_role_id:
  673. if hasattr(self.sign_ip_role_id, 'to_alipay_dict'):
  674. params['sign_ip_role_id'] = self.sign_ip_role_id.to_alipay_dict()
  675. else:
  676. params['sign_ip_role_id'] = self.sign_ip_role_id
  677. if self.stl_ip_role_id:
  678. if hasattr(self.stl_ip_role_id, 'to_alipay_dict'):
  679. params['stl_ip_role_id'] = self.stl_ip_role_id.to_alipay_dict()
  680. else:
  681. params['stl_ip_role_id'] = self.stl_ip_role_id
  682. if self.tax_amt:
  683. if hasattr(self.tax_amt, 'to_alipay_dict'):
  684. params['tax_amt'] = self.tax_amt.to_alipay_dict()
  685. else:
  686. params['tax_amt'] = self.tax_amt
  687. if self.tax_rate:
  688. if hasattr(self.tax_rate, 'to_alipay_dict'):
  689. params['tax_rate'] = self.tax_rate.to_alipay_dict()
  690. else:
  691. params['tax_rate'] = self.tax_rate
  692. if self.tax_type:
  693. if hasattr(self.tax_type, 'to_alipay_dict'):
  694. params['tax_type'] = self.tax_type.to_alipay_dict()
  695. else:
  696. params['tax_type'] = self.tax_type
  697. if self.to_writeoff_detail_count:
  698. if hasattr(self.to_writeoff_detail_count, 'to_alipay_dict'):
  699. params['to_writeoff_detail_count'] = self.to_writeoff_detail_count.to_alipay_dict()
  700. else:
  701. params['to_writeoff_detail_count'] = self.to_writeoff_detail_count
  702. if self.type:
  703. if hasattr(self.type, 'to_alipay_dict'):
  704. params['type'] = self.type.to_alipay_dict()
  705. else:
  706. params['type'] = self.type
  707. if self.writeoff_detail_dount:
  708. if hasattr(self.writeoff_detail_dount, 'to_alipay_dict'):
  709. params['writeoff_detail_dount'] = self.writeoff_detail_dount.to_alipay_dict()
  710. else:
  711. params['writeoff_detail_dount'] = self.writeoff_detail_dount
  712. if self.writingoff_amt:
  713. if hasattr(self.writingoff_amt, 'to_alipay_dict'):
  714. params['writingoff_amt'] = self.writingoff_amt.to_alipay_dict()
  715. else:
  716. params['writingoff_amt'] = self.writingoff_amt
  717. return params
  718. @staticmethod
  719. def from_alipay_dict(d):
  720. if not d:
  721. return None
  722. o = ArMonthlyBillDTO()
  723. if 'account_day' in d:
  724. o.account_day = d['account_day']
  725. if 'accrued_date' in d:
  726. o.accrued_date = d['accrued_date']
  727. if 'adjust_amt' in d:
  728. o.adjust_amt = d['adjust_amt']
  729. if 'analysis_dmsn_1' in d:
  730. o.analysis_dmsn_1 = d['analysis_dmsn_1']
  731. if 'analysis_dmsn_2' in d:
  732. o.analysis_dmsn_2 = d['analysis_dmsn_2']
  733. if 'analysis_dmsn_3' in d:
  734. o.analysis_dmsn_3 = d['analysis_dmsn_3']
  735. if 'analysis_dmsn_4' in d:
  736. o.analysis_dmsn_4 = d['analysis_dmsn_4']
  737. if 'arrangement_no' in d:
  738. o.arrangement_no = d['arrangement_no']
  739. if 'bill_amt' in d:
  740. o.bill_amt = d['bill_amt']
  741. if 'bill_end_date' in d:
  742. o.bill_end_date = d['bill_end_date']
  743. if 'bill_month' in d:
  744. o.bill_month = d['bill_month']
  745. if 'bill_no' in d:
  746. o.bill_no = d['bill_no']
  747. if 'bill_start_date' in d:
  748. o.bill_start_date = d['bill_start_date']
  749. if 'bill_type' in d:
  750. o.bill_type = d['bill_type']
  751. if 'charge_item_code' in d:
  752. o.charge_item_code = d['charge_item_code']
  753. if 'charge_type' in d:
  754. o.charge_type = d['charge_type']
  755. if 'check_status' in d:
  756. o.check_status = d['check_status']
  757. if 'checked_amt' in d:
  758. o.checked_amt = d['checked_amt']
  759. if 'checking_amt' in d:
  760. o.checking_amt = d['checking_amt']
  761. if 'clcn_basic_amt' in d:
  762. o.clcn_basic_amt = d['clcn_basic_amt']
  763. if 'clcn_basic_type' in d:
  764. o.clcn_basic_type = d['clcn_basic_type']
  765. if 'clcn_method' in d:
  766. o.clcn_method = d['clcn_method']
  767. if 'freeze_amt' in d:
  768. o.freeze_amt = d['freeze_amt']
  769. if 'gmt_create' in d:
  770. o.gmt_create = d['gmt_create']
  771. if 'gmt_modified' in d:
  772. o.gmt_modified = d['gmt_modified']
  773. if 'gmt_pay' in d:
  774. o.gmt_pay = d['gmt_pay']
  775. if 'inst_id' in d:
  776. o.inst_id = d['inst_id']
  777. if 'invoice_amt' in d:
  778. o.invoice_amt = d['invoice_amt']
  779. if 'invoiced_amt' in d:
  780. o.invoiced_amt = d['invoiced_amt']
  781. if 'ip_id' in d:
  782. o.ip_id = d['ip_id']
  783. if 'ip_name' in d:
  784. o.ip_name = d['ip_name']
  785. if 'ip_role_id' in d:
  786. o.ip_role_id = d['ip_role_id']
  787. if 'last_moder' in d:
  788. o.last_moder = d['last_moder']
  789. if 'link_invoice_amt' in d:
  790. o.link_invoice_amt = d['link_invoice_amt']
  791. if 'pay_original' in d:
  792. o.pay_original = d['pay_original']
  793. if 'pay_status' in d:
  794. o.pay_status = d['pay_status']
  795. if 'pay_way' in d:
  796. o.pay_way = d['pay_way']
  797. if 'payee_account' in d:
  798. o.payee_account = d['payee_account']
  799. if 'payer_account' in d:
  800. o.payer_account = d['payer_account']
  801. if 'payer_ip_role_id' in d:
  802. o.payer_ip_role_id = d['payer_ip_role_id']
  803. if 'prod_code' in d:
  804. o.prod_code = d['prod_code']
  805. if 'received_amt' in d:
  806. o.received_amt = d['received_amt']
  807. if 'record_id' in d:
  808. o.record_id = d['record_id']
  809. if 'service_amt' in d:
  810. o.service_amt = d['service_amt']
  811. if 'settle_type' in d:
  812. o.settle_type = d['settle_type']
  813. if 'sign_ip_id' in d:
  814. o.sign_ip_id = d['sign_ip_id']
  815. if 'sign_ip_role_id' in d:
  816. o.sign_ip_role_id = d['sign_ip_role_id']
  817. if 'stl_ip_role_id' in d:
  818. o.stl_ip_role_id = d['stl_ip_role_id']
  819. if 'tax_amt' in d:
  820. o.tax_amt = d['tax_amt']
  821. if 'tax_rate' in d:
  822. o.tax_rate = d['tax_rate']
  823. if 'tax_type' in d:
  824. o.tax_type = d['tax_type']
  825. if 'to_writeoff_detail_count' in d:
  826. o.to_writeoff_detail_count = d['to_writeoff_detail_count']
  827. if 'type' in d:
  828. o.type = d['type']
  829. if 'writeoff_detail_dount' in d:
  830. o.writeoff_detail_dount = d['writeoff_detail_dount']
  831. if 'writingoff_amt' in d:
  832. o.writingoff_amt = d['writingoff_amt']
  833. return o