AlipayFundTransGroupfundsFundbillsQueryResponse.py 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.GroupFundBill import GroupFundBill
  6. from alipay.aop.api.domain.GroupFundBill import GroupFundBill
  7. class AlipayFundTransGroupfundsFundbillsQueryResponse(AlipayResponse):
  8. def __init__(self):
  9. super(AlipayFundTransGroupfundsFundbillsQueryResponse, self).__init__()
  10. self._batch_status = None
  11. self._current_fund_bill = None
  12. self._fund_bills = None
  13. self._timeout = None
  14. @property
  15. def batch_status(self):
  16. return self._batch_status
  17. @batch_status.setter
  18. def batch_status(self, value):
  19. self._batch_status = value
  20. @property
  21. def current_fund_bill(self):
  22. return self._current_fund_bill
  23. @current_fund_bill.setter
  24. def current_fund_bill(self, value):
  25. if isinstance(value, GroupFundBill):
  26. self._current_fund_bill = value
  27. else:
  28. self._current_fund_bill = GroupFundBill.from_alipay_dict(value)
  29. @property
  30. def fund_bills(self):
  31. return self._fund_bills
  32. @fund_bills.setter
  33. def fund_bills(self, value):
  34. if isinstance(value, list):
  35. self._fund_bills = list()
  36. for i in value:
  37. if isinstance(i, GroupFundBill):
  38. self._fund_bills.append(i)
  39. else:
  40. self._fund_bills.append(GroupFundBill.from_alipay_dict(i))
  41. @property
  42. def timeout(self):
  43. return self._timeout
  44. @timeout.setter
  45. def timeout(self, value):
  46. self._timeout = value
  47. def parse_response_content(self, response_content):
  48. response = super(AlipayFundTransGroupfundsFundbillsQueryResponse, self).parse_response_content(response_content)
  49. if 'batch_status' in response:
  50. self.batch_status = response['batch_status']
  51. if 'current_fund_bill' in response:
  52. self.current_fund_bill = response['current_fund_bill']
  53. if 'fund_bills' in response:
  54. self.fund_bills = response['fund_bills']
  55. if 'timeout' in response:
  56. self.timeout = response['timeout']