FundItemAOPModel.py 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class FundItemAOPModel(object):
  6. def __init__(self):
  7. self._acctrans_out_biz_no = None
  8. self._amount = None
  9. self._assert_type_code = None
  10. self._bank_card_pay_type = None
  11. self._bank_card_type = None
  12. self._biz_id = None
  13. self._biz_in_no = None
  14. self._biz_out_no = None
  15. self._biz_type = None
  16. self._currency = None
  17. self._dback_amount = None
  18. self._dback_gmt_create = None
  19. self._dback_gmt_est_bk_ack = None
  20. self._dback_gmt_est_bk_into = None
  21. self._dback_inst_account_name = None
  22. self._dback_inst_account_no = None
  23. self._dback_inst_id = None
  24. self._dback_inst_name = None
  25. self._fid = None
  26. self._fund_access_type = None
  27. self._fund_account_no = None
  28. self._fund_biz_type = None
  29. self._fund_create_time = None
  30. self._fund_finish_time = None
  31. self._fund_in_out = None
  32. self._fund_inst_id = None
  33. self._fund_modify_time = None
  34. self._fund_status = None
  35. self._fund_tool_belong_to_crowner = None
  36. self._fund_tool_owner_card_no = None
  37. self._fund_tool_type_for_crowner = None
  38. self._fund_tool_type_for_system = None
  39. self._fund_tool_type_name = None
  40. self._gmt_biz_create = None
  41. self._open_self_slip_type = None
  42. self._opposite_biz_card_alias = None
  43. self._opposite_biz_card_no = None
  44. self._opposite_fund_card_no = None
  45. self._out_request_no = None
  46. self._owner_card_no = None
  47. self._refund_bank_status = None
  48. self._slip_amount = None
  49. self._slip_id = None
  50. self._slip_status = None
  51. self._sub_prepaid_card_type = None
  52. self._uid = None
  53. @property
  54. def acctrans_out_biz_no(self):
  55. return self._acctrans_out_biz_no
  56. @acctrans_out_biz_no.setter
  57. def acctrans_out_biz_no(self, value):
  58. self._acctrans_out_biz_no = value
  59. @property
  60. def amount(self):
  61. return self._amount
  62. @amount.setter
  63. def amount(self, value):
  64. self._amount = value
  65. @property
  66. def assert_type_code(self):
  67. return self._assert_type_code
  68. @assert_type_code.setter
  69. def assert_type_code(self, value):
  70. self._assert_type_code = value
  71. @property
  72. def bank_card_pay_type(self):
  73. return self._bank_card_pay_type
  74. @bank_card_pay_type.setter
  75. def bank_card_pay_type(self, value):
  76. self._bank_card_pay_type = value
  77. @property
  78. def bank_card_type(self):
  79. return self._bank_card_type
  80. @bank_card_type.setter
  81. def bank_card_type(self, value):
  82. self._bank_card_type = value
  83. @property
  84. def biz_id(self):
  85. return self._biz_id
  86. @biz_id.setter
  87. def biz_id(self, value):
  88. self._biz_id = value
  89. @property
  90. def biz_in_no(self):
  91. return self._biz_in_no
  92. @biz_in_no.setter
  93. def biz_in_no(self, value):
  94. self._biz_in_no = value
  95. @property
  96. def biz_out_no(self):
  97. return self._biz_out_no
  98. @biz_out_no.setter
  99. def biz_out_no(self, value):
  100. self._biz_out_no = value
  101. @property
  102. def biz_type(self):
  103. return self._biz_type
  104. @biz_type.setter
  105. def biz_type(self, value):
  106. self._biz_type = value
  107. @property
  108. def currency(self):
  109. return self._currency
  110. @currency.setter
  111. def currency(self, value):
  112. self._currency = value
  113. @property
  114. def dback_amount(self):
  115. return self._dback_amount
  116. @dback_amount.setter
  117. def dback_amount(self, value):
  118. self._dback_amount = value
  119. @property
  120. def dback_gmt_create(self):
  121. return self._dback_gmt_create
  122. @dback_gmt_create.setter
  123. def dback_gmt_create(self, value):
  124. self._dback_gmt_create = value
  125. @property
  126. def dback_gmt_est_bk_ack(self):
  127. return self._dback_gmt_est_bk_ack
  128. @dback_gmt_est_bk_ack.setter
  129. def dback_gmt_est_bk_ack(self, value):
  130. self._dback_gmt_est_bk_ack = value
  131. @property
  132. def dback_gmt_est_bk_into(self):
  133. return self._dback_gmt_est_bk_into
  134. @dback_gmt_est_bk_into.setter
  135. def dback_gmt_est_bk_into(self, value):
  136. self._dback_gmt_est_bk_into = value
  137. @property
  138. def dback_inst_account_name(self):
  139. return self._dback_inst_account_name
  140. @dback_inst_account_name.setter
  141. def dback_inst_account_name(self, value):
  142. self._dback_inst_account_name = value
  143. @property
  144. def dback_inst_account_no(self):
  145. return self._dback_inst_account_no
  146. @dback_inst_account_no.setter
  147. def dback_inst_account_no(self, value):
  148. self._dback_inst_account_no = value
  149. @property
  150. def dback_inst_id(self):
  151. return self._dback_inst_id
  152. @dback_inst_id.setter
  153. def dback_inst_id(self, value):
  154. self._dback_inst_id = value
  155. @property
  156. def dback_inst_name(self):
  157. return self._dback_inst_name
  158. @dback_inst_name.setter
  159. def dback_inst_name(self, value):
  160. self._dback_inst_name = value
  161. @property
  162. def fid(self):
  163. return self._fid
  164. @fid.setter
  165. def fid(self, value):
  166. self._fid = value
  167. @property
  168. def fund_access_type(self):
  169. return self._fund_access_type
  170. @fund_access_type.setter
  171. def fund_access_type(self, value):
  172. self._fund_access_type = value
  173. @property
  174. def fund_account_no(self):
  175. return self._fund_account_no
  176. @fund_account_no.setter
  177. def fund_account_no(self, value):
  178. self._fund_account_no = value
  179. @property
  180. def fund_biz_type(self):
  181. return self._fund_biz_type
  182. @fund_biz_type.setter
  183. def fund_biz_type(self, value):
  184. self._fund_biz_type = value
  185. @property
  186. def fund_create_time(self):
  187. return self._fund_create_time
  188. @fund_create_time.setter
  189. def fund_create_time(self, value):
  190. self._fund_create_time = value
  191. @property
  192. def fund_finish_time(self):
  193. return self._fund_finish_time
  194. @fund_finish_time.setter
  195. def fund_finish_time(self, value):
  196. self._fund_finish_time = value
  197. @property
  198. def fund_in_out(self):
  199. return self._fund_in_out
  200. @fund_in_out.setter
  201. def fund_in_out(self, value):
  202. self._fund_in_out = value
  203. @property
  204. def fund_inst_id(self):
  205. return self._fund_inst_id
  206. @fund_inst_id.setter
  207. def fund_inst_id(self, value):
  208. self._fund_inst_id = value
  209. @property
  210. def fund_modify_time(self):
  211. return self._fund_modify_time
  212. @fund_modify_time.setter
  213. def fund_modify_time(self, value):
  214. self._fund_modify_time = value
  215. @property
  216. def fund_status(self):
  217. return self._fund_status
  218. @fund_status.setter
  219. def fund_status(self, value):
  220. self._fund_status = value
  221. @property
  222. def fund_tool_belong_to_crowner(self):
  223. return self._fund_tool_belong_to_crowner
  224. @fund_tool_belong_to_crowner.setter
  225. def fund_tool_belong_to_crowner(self, value):
  226. self._fund_tool_belong_to_crowner = value
  227. @property
  228. def fund_tool_owner_card_no(self):
  229. return self._fund_tool_owner_card_no
  230. @fund_tool_owner_card_no.setter
  231. def fund_tool_owner_card_no(self, value):
  232. self._fund_tool_owner_card_no = value
  233. @property
  234. def fund_tool_type_for_crowner(self):
  235. return self._fund_tool_type_for_crowner
  236. @fund_tool_type_for_crowner.setter
  237. def fund_tool_type_for_crowner(self, value):
  238. self._fund_tool_type_for_crowner = value
  239. @property
  240. def fund_tool_type_for_system(self):
  241. return self._fund_tool_type_for_system
  242. @fund_tool_type_for_system.setter
  243. def fund_tool_type_for_system(self, value):
  244. self._fund_tool_type_for_system = value
  245. @property
  246. def fund_tool_type_name(self):
  247. return self._fund_tool_type_name
  248. @fund_tool_type_name.setter
  249. def fund_tool_type_name(self, value):
  250. self._fund_tool_type_name = value
  251. @property
  252. def gmt_biz_create(self):
  253. return self._gmt_biz_create
  254. @gmt_biz_create.setter
  255. def gmt_biz_create(self, value):
  256. self._gmt_biz_create = value
  257. @property
  258. def open_self_slip_type(self):
  259. return self._open_self_slip_type
  260. @open_self_slip_type.setter
  261. def open_self_slip_type(self, value):
  262. self._open_self_slip_type = value
  263. @property
  264. def opposite_biz_card_alias(self):
  265. return self._opposite_biz_card_alias
  266. @opposite_biz_card_alias.setter
  267. def opposite_biz_card_alias(self, value):
  268. self._opposite_biz_card_alias = value
  269. @property
  270. def opposite_biz_card_no(self):
  271. return self._opposite_biz_card_no
  272. @opposite_biz_card_no.setter
  273. def opposite_biz_card_no(self, value):
  274. self._opposite_biz_card_no = value
  275. @property
  276. def opposite_fund_card_no(self):
  277. return self._opposite_fund_card_no
  278. @opposite_fund_card_no.setter
  279. def opposite_fund_card_no(self, value):
  280. self._opposite_fund_card_no = value
  281. @property
  282. def out_request_no(self):
  283. return self._out_request_no
  284. @out_request_no.setter
  285. def out_request_no(self, value):
  286. self._out_request_no = value
  287. @property
  288. def owner_card_no(self):
  289. return self._owner_card_no
  290. @owner_card_no.setter
  291. def owner_card_no(self, value):
  292. self._owner_card_no = value
  293. @property
  294. def refund_bank_status(self):
  295. return self._refund_bank_status
  296. @refund_bank_status.setter
  297. def refund_bank_status(self, value):
  298. self._refund_bank_status = value
  299. @property
  300. def slip_amount(self):
  301. return self._slip_amount
  302. @slip_amount.setter
  303. def slip_amount(self, value):
  304. self._slip_amount = value
  305. @property
  306. def slip_id(self):
  307. return self._slip_id
  308. @slip_id.setter
  309. def slip_id(self, value):
  310. self._slip_id = value
  311. @property
  312. def slip_status(self):
  313. return self._slip_status
  314. @slip_status.setter
  315. def slip_status(self, value):
  316. self._slip_status = value
  317. @property
  318. def sub_prepaid_card_type(self):
  319. return self._sub_prepaid_card_type
  320. @sub_prepaid_card_type.setter
  321. def sub_prepaid_card_type(self, value):
  322. self._sub_prepaid_card_type = value
  323. @property
  324. def uid(self):
  325. return self._uid
  326. @uid.setter
  327. def uid(self, value):
  328. self._uid = value
  329. def to_alipay_dict(self):
  330. params = dict()
  331. if self.acctrans_out_biz_no:
  332. if hasattr(self.acctrans_out_biz_no, 'to_alipay_dict'):
  333. params['acctrans_out_biz_no'] = self.acctrans_out_biz_no.to_alipay_dict()
  334. else:
  335. params['acctrans_out_biz_no'] = self.acctrans_out_biz_no
  336. if self.amount:
  337. if hasattr(self.amount, 'to_alipay_dict'):
  338. params['amount'] = self.amount.to_alipay_dict()
  339. else:
  340. params['amount'] = self.amount
  341. if self.assert_type_code:
  342. if hasattr(self.assert_type_code, 'to_alipay_dict'):
  343. params['assert_type_code'] = self.assert_type_code.to_alipay_dict()
  344. else:
  345. params['assert_type_code'] = self.assert_type_code
  346. if self.bank_card_pay_type:
  347. if hasattr(self.bank_card_pay_type, 'to_alipay_dict'):
  348. params['bank_card_pay_type'] = self.bank_card_pay_type.to_alipay_dict()
  349. else:
  350. params['bank_card_pay_type'] = self.bank_card_pay_type
  351. if self.bank_card_type:
  352. if hasattr(self.bank_card_type, 'to_alipay_dict'):
  353. params['bank_card_type'] = self.bank_card_type.to_alipay_dict()
  354. else:
  355. params['bank_card_type'] = self.bank_card_type
  356. if self.biz_id:
  357. if hasattr(self.biz_id, 'to_alipay_dict'):
  358. params['biz_id'] = self.biz_id.to_alipay_dict()
  359. else:
  360. params['biz_id'] = self.biz_id
  361. if self.biz_in_no:
  362. if hasattr(self.biz_in_no, 'to_alipay_dict'):
  363. params['biz_in_no'] = self.biz_in_no.to_alipay_dict()
  364. else:
  365. params['biz_in_no'] = self.biz_in_no
  366. if self.biz_out_no:
  367. if hasattr(self.biz_out_no, 'to_alipay_dict'):
  368. params['biz_out_no'] = self.biz_out_no.to_alipay_dict()
  369. else:
  370. params['biz_out_no'] = self.biz_out_no
  371. if self.biz_type:
  372. if hasattr(self.biz_type, 'to_alipay_dict'):
  373. params['biz_type'] = self.biz_type.to_alipay_dict()
  374. else:
  375. params['biz_type'] = self.biz_type
  376. if self.currency:
  377. if hasattr(self.currency, 'to_alipay_dict'):
  378. params['currency'] = self.currency.to_alipay_dict()
  379. else:
  380. params['currency'] = self.currency
  381. if self.dback_amount:
  382. if hasattr(self.dback_amount, 'to_alipay_dict'):
  383. params['dback_amount'] = self.dback_amount.to_alipay_dict()
  384. else:
  385. params['dback_amount'] = self.dback_amount
  386. if self.dback_gmt_create:
  387. if hasattr(self.dback_gmt_create, 'to_alipay_dict'):
  388. params['dback_gmt_create'] = self.dback_gmt_create.to_alipay_dict()
  389. else:
  390. params['dback_gmt_create'] = self.dback_gmt_create
  391. if self.dback_gmt_est_bk_ack:
  392. if hasattr(self.dback_gmt_est_bk_ack, 'to_alipay_dict'):
  393. params['dback_gmt_est_bk_ack'] = self.dback_gmt_est_bk_ack.to_alipay_dict()
  394. else:
  395. params['dback_gmt_est_bk_ack'] = self.dback_gmt_est_bk_ack
  396. if self.dback_gmt_est_bk_into:
  397. if hasattr(self.dback_gmt_est_bk_into, 'to_alipay_dict'):
  398. params['dback_gmt_est_bk_into'] = self.dback_gmt_est_bk_into.to_alipay_dict()
  399. else:
  400. params['dback_gmt_est_bk_into'] = self.dback_gmt_est_bk_into
  401. if self.dback_inst_account_name:
  402. if hasattr(self.dback_inst_account_name, 'to_alipay_dict'):
  403. params['dback_inst_account_name'] = self.dback_inst_account_name.to_alipay_dict()
  404. else:
  405. params['dback_inst_account_name'] = self.dback_inst_account_name
  406. if self.dback_inst_account_no:
  407. if hasattr(self.dback_inst_account_no, 'to_alipay_dict'):
  408. params['dback_inst_account_no'] = self.dback_inst_account_no.to_alipay_dict()
  409. else:
  410. params['dback_inst_account_no'] = self.dback_inst_account_no
  411. if self.dback_inst_id:
  412. if hasattr(self.dback_inst_id, 'to_alipay_dict'):
  413. params['dback_inst_id'] = self.dback_inst_id.to_alipay_dict()
  414. else:
  415. params['dback_inst_id'] = self.dback_inst_id
  416. if self.dback_inst_name:
  417. if hasattr(self.dback_inst_name, 'to_alipay_dict'):
  418. params['dback_inst_name'] = self.dback_inst_name.to_alipay_dict()
  419. else:
  420. params['dback_inst_name'] = self.dback_inst_name
  421. if self.fid:
  422. if hasattr(self.fid, 'to_alipay_dict'):
  423. params['fid'] = self.fid.to_alipay_dict()
  424. else:
  425. params['fid'] = self.fid
  426. if self.fund_access_type:
  427. if hasattr(self.fund_access_type, 'to_alipay_dict'):
  428. params['fund_access_type'] = self.fund_access_type.to_alipay_dict()
  429. else:
  430. params['fund_access_type'] = self.fund_access_type
  431. if self.fund_account_no:
  432. if hasattr(self.fund_account_no, 'to_alipay_dict'):
  433. params['fund_account_no'] = self.fund_account_no.to_alipay_dict()
  434. else:
  435. params['fund_account_no'] = self.fund_account_no
  436. if self.fund_biz_type:
  437. if hasattr(self.fund_biz_type, 'to_alipay_dict'):
  438. params['fund_biz_type'] = self.fund_biz_type.to_alipay_dict()
  439. else:
  440. params['fund_biz_type'] = self.fund_biz_type
  441. if self.fund_create_time:
  442. if hasattr(self.fund_create_time, 'to_alipay_dict'):
  443. params['fund_create_time'] = self.fund_create_time.to_alipay_dict()
  444. else:
  445. params['fund_create_time'] = self.fund_create_time
  446. if self.fund_finish_time:
  447. if hasattr(self.fund_finish_time, 'to_alipay_dict'):
  448. params['fund_finish_time'] = self.fund_finish_time.to_alipay_dict()
  449. else:
  450. params['fund_finish_time'] = self.fund_finish_time
  451. if self.fund_in_out:
  452. if hasattr(self.fund_in_out, 'to_alipay_dict'):
  453. params['fund_in_out'] = self.fund_in_out.to_alipay_dict()
  454. else:
  455. params['fund_in_out'] = self.fund_in_out
  456. if self.fund_inst_id:
  457. if hasattr(self.fund_inst_id, 'to_alipay_dict'):
  458. params['fund_inst_id'] = self.fund_inst_id.to_alipay_dict()
  459. else:
  460. params['fund_inst_id'] = self.fund_inst_id
  461. if self.fund_modify_time:
  462. if hasattr(self.fund_modify_time, 'to_alipay_dict'):
  463. params['fund_modify_time'] = self.fund_modify_time.to_alipay_dict()
  464. else:
  465. params['fund_modify_time'] = self.fund_modify_time
  466. if self.fund_status:
  467. if hasattr(self.fund_status, 'to_alipay_dict'):
  468. params['fund_status'] = self.fund_status.to_alipay_dict()
  469. else:
  470. params['fund_status'] = self.fund_status
  471. if self.fund_tool_belong_to_crowner:
  472. if hasattr(self.fund_tool_belong_to_crowner, 'to_alipay_dict'):
  473. params['fund_tool_belong_to_crowner'] = self.fund_tool_belong_to_crowner.to_alipay_dict()
  474. else:
  475. params['fund_tool_belong_to_crowner'] = self.fund_tool_belong_to_crowner
  476. if self.fund_tool_owner_card_no:
  477. if hasattr(self.fund_tool_owner_card_no, 'to_alipay_dict'):
  478. params['fund_tool_owner_card_no'] = self.fund_tool_owner_card_no.to_alipay_dict()
  479. else:
  480. params['fund_tool_owner_card_no'] = self.fund_tool_owner_card_no
  481. if self.fund_tool_type_for_crowner:
  482. if hasattr(self.fund_tool_type_for_crowner, 'to_alipay_dict'):
  483. params['fund_tool_type_for_crowner'] = self.fund_tool_type_for_crowner.to_alipay_dict()
  484. else:
  485. params['fund_tool_type_for_crowner'] = self.fund_tool_type_for_crowner
  486. if self.fund_tool_type_for_system:
  487. if hasattr(self.fund_tool_type_for_system, 'to_alipay_dict'):
  488. params['fund_tool_type_for_system'] = self.fund_tool_type_for_system.to_alipay_dict()
  489. else:
  490. params['fund_tool_type_for_system'] = self.fund_tool_type_for_system
  491. if self.fund_tool_type_name:
  492. if hasattr(self.fund_tool_type_name, 'to_alipay_dict'):
  493. params['fund_tool_type_name'] = self.fund_tool_type_name.to_alipay_dict()
  494. else:
  495. params['fund_tool_type_name'] = self.fund_tool_type_name
  496. if self.gmt_biz_create:
  497. if hasattr(self.gmt_biz_create, 'to_alipay_dict'):
  498. params['gmt_biz_create'] = self.gmt_biz_create.to_alipay_dict()
  499. else:
  500. params['gmt_biz_create'] = self.gmt_biz_create
  501. if self.open_self_slip_type:
  502. if hasattr(self.open_self_slip_type, 'to_alipay_dict'):
  503. params['open_self_slip_type'] = self.open_self_slip_type.to_alipay_dict()
  504. else:
  505. params['open_self_slip_type'] = self.open_self_slip_type
  506. if self.opposite_biz_card_alias:
  507. if hasattr(self.opposite_biz_card_alias, 'to_alipay_dict'):
  508. params['opposite_biz_card_alias'] = self.opposite_biz_card_alias.to_alipay_dict()
  509. else:
  510. params['opposite_biz_card_alias'] = self.opposite_biz_card_alias
  511. if self.opposite_biz_card_no:
  512. if hasattr(self.opposite_biz_card_no, 'to_alipay_dict'):
  513. params['opposite_biz_card_no'] = self.opposite_biz_card_no.to_alipay_dict()
  514. else:
  515. params['opposite_biz_card_no'] = self.opposite_biz_card_no
  516. if self.opposite_fund_card_no:
  517. if hasattr(self.opposite_fund_card_no, 'to_alipay_dict'):
  518. params['opposite_fund_card_no'] = self.opposite_fund_card_no.to_alipay_dict()
  519. else:
  520. params['opposite_fund_card_no'] = self.opposite_fund_card_no
  521. if self.out_request_no:
  522. if hasattr(self.out_request_no, 'to_alipay_dict'):
  523. params['out_request_no'] = self.out_request_no.to_alipay_dict()
  524. else:
  525. params['out_request_no'] = self.out_request_no
  526. if self.owner_card_no:
  527. if hasattr(self.owner_card_no, 'to_alipay_dict'):
  528. params['owner_card_no'] = self.owner_card_no.to_alipay_dict()
  529. else:
  530. params['owner_card_no'] = self.owner_card_no
  531. if self.refund_bank_status:
  532. if hasattr(self.refund_bank_status, 'to_alipay_dict'):
  533. params['refund_bank_status'] = self.refund_bank_status.to_alipay_dict()
  534. else:
  535. params['refund_bank_status'] = self.refund_bank_status
  536. if self.slip_amount:
  537. if hasattr(self.slip_amount, 'to_alipay_dict'):
  538. params['slip_amount'] = self.slip_amount.to_alipay_dict()
  539. else:
  540. params['slip_amount'] = self.slip_amount
  541. if self.slip_id:
  542. if hasattr(self.slip_id, 'to_alipay_dict'):
  543. params['slip_id'] = self.slip_id.to_alipay_dict()
  544. else:
  545. params['slip_id'] = self.slip_id
  546. if self.slip_status:
  547. if hasattr(self.slip_status, 'to_alipay_dict'):
  548. params['slip_status'] = self.slip_status.to_alipay_dict()
  549. else:
  550. params['slip_status'] = self.slip_status
  551. if self.sub_prepaid_card_type:
  552. if hasattr(self.sub_prepaid_card_type, 'to_alipay_dict'):
  553. params['sub_prepaid_card_type'] = self.sub_prepaid_card_type.to_alipay_dict()
  554. else:
  555. params['sub_prepaid_card_type'] = self.sub_prepaid_card_type
  556. if self.uid:
  557. if hasattr(self.uid, 'to_alipay_dict'):
  558. params['uid'] = self.uid.to_alipay_dict()
  559. else:
  560. params['uid'] = self.uid
  561. return params
  562. @staticmethod
  563. def from_alipay_dict(d):
  564. if not d:
  565. return None
  566. o = FundItemAOPModel()
  567. if 'acctrans_out_biz_no' in d:
  568. o.acctrans_out_biz_no = d['acctrans_out_biz_no']
  569. if 'amount' in d:
  570. o.amount = d['amount']
  571. if 'assert_type_code' in d:
  572. o.assert_type_code = d['assert_type_code']
  573. if 'bank_card_pay_type' in d:
  574. o.bank_card_pay_type = d['bank_card_pay_type']
  575. if 'bank_card_type' in d:
  576. o.bank_card_type = d['bank_card_type']
  577. if 'biz_id' in d:
  578. o.biz_id = d['biz_id']
  579. if 'biz_in_no' in d:
  580. o.biz_in_no = d['biz_in_no']
  581. if 'biz_out_no' in d:
  582. o.biz_out_no = d['biz_out_no']
  583. if 'biz_type' in d:
  584. o.biz_type = d['biz_type']
  585. if 'currency' in d:
  586. o.currency = d['currency']
  587. if 'dback_amount' in d:
  588. o.dback_amount = d['dback_amount']
  589. if 'dback_gmt_create' in d:
  590. o.dback_gmt_create = d['dback_gmt_create']
  591. if 'dback_gmt_est_bk_ack' in d:
  592. o.dback_gmt_est_bk_ack = d['dback_gmt_est_bk_ack']
  593. if 'dback_gmt_est_bk_into' in d:
  594. o.dback_gmt_est_bk_into = d['dback_gmt_est_bk_into']
  595. if 'dback_inst_account_name' in d:
  596. o.dback_inst_account_name = d['dback_inst_account_name']
  597. if 'dback_inst_account_no' in d:
  598. o.dback_inst_account_no = d['dback_inst_account_no']
  599. if 'dback_inst_id' in d:
  600. o.dback_inst_id = d['dback_inst_id']
  601. if 'dback_inst_name' in d:
  602. o.dback_inst_name = d['dback_inst_name']
  603. if 'fid' in d:
  604. o.fid = d['fid']
  605. if 'fund_access_type' in d:
  606. o.fund_access_type = d['fund_access_type']
  607. if 'fund_account_no' in d:
  608. o.fund_account_no = d['fund_account_no']
  609. if 'fund_biz_type' in d:
  610. o.fund_biz_type = d['fund_biz_type']
  611. if 'fund_create_time' in d:
  612. o.fund_create_time = d['fund_create_time']
  613. if 'fund_finish_time' in d:
  614. o.fund_finish_time = d['fund_finish_time']
  615. if 'fund_in_out' in d:
  616. o.fund_in_out = d['fund_in_out']
  617. if 'fund_inst_id' in d:
  618. o.fund_inst_id = d['fund_inst_id']
  619. if 'fund_modify_time' in d:
  620. o.fund_modify_time = d['fund_modify_time']
  621. if 'fund_status' in d:
  622. o.fund_status = d['fund_status']
  623. if 'fund_tool_belong_to_crowner' in d:
  624. o.fund_tool_belong_to_crowner = d['fund_tool_belong_to_crowner']
  625. if 'fund_tool_owner_card_no' in d:
  626. o.fund_tool_owner_card_no = d['fund_tool_owner_card_no']
  627. if 'fund_tool_type_for_crowner' in d:
  628. o.fund_tool_type_for_crowner = d['fund_tool_type_for_crowner']
  629. if 'fund_tool_type_for_system' in d:
  630. o.fund_tool_type_for_system = d['fund_tool_type_for_system']
  631. if 'fund_tool_type_name' in d:
  632. o.fund_tool_type_name = d['fund_tool_type_name']
  633. if 'gmt_biz_create' in d:
  634. o.gmt_biz_create = d['gmt_biz_create']
  635. if 'open_self_slip_type' in d:
  636. o.open_self_slip_type = d['open_self_slip_type']
  637. if 'opposite_biz_card_alias' in d:
  638. o.opposite_biz_card_alias = d['opposite_biz_card_alias']
  639. if 'opposite_biz_card_no' in d:
  640. o.opposite_biz_card_no = d['opposite_biz_card_no']
  641. if 'opposite_fund_card_no' in d:
  642. o.opposite_fund_card_no = d['opposite_fund_card_no']
  643. if 'out_request_no' in d:
  644. o.out_request_no = d['out_request_no']
  645. if 'owner_card_no' in d:
  646. o.owner_card_no = d['owner_card_no']
  647. if 'refund_bank_status' in d:
  648. o.refund_bank_status = d['refund_bank_status']
  649. if 'slip_amount' in d:
  650. o.slip_amount = d['slip_amount']
  651. if 'slip_id' in d:
  652. o.slip_id = d['slip_id']
  653. if 'slip_status' in d:
  654. o.slip_status = d['slip_status']
  655. if 'sub_prepaid_card_type' in d:
  656. o.sub_prepaid_card_type = d['sub_prepaid_card_type']
  657. if 'uid' in d:
  658. o.uid = d['uid']
  659. return o