AlipayFundAccountBillQueryResponse.py 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.TrusteeshipAccountBillQueryResponse import TrusteeshipAccountBillQueryResponse
  6. class AlipayFundAccountBillQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayFundAccountBillQueryResponse, self).__init__()
  9. self._acc_detail_list = None
  10. self._page_num = None
  11. self._page_size = None
  12. self._total_item_count = None
  13. @property
  14. def acc_detail_list(self):
  15. return self._acc_detail_list
  16. @acc_detail_list.setter
  17. def acc_detail_list(self, value):
  18. if isinstance(value, list):
  19. self._acc_detail_list = list()
  20. for i in value:
  21. if isinstance(i, TrusteeshipAccountBillQueryResponse):
  22. self._acc_detail_list.append(i)
  23. else:
  24. self._acc_detail_list.append(TrusteeshipAccountBillQueryResponse.from_alipay_dict(i))
  25. @property
  26. def page_num(self):
  27. return self._page_num
  28. @page_num.setter
  29. def page_num(self, value):
  30. self._page_num = value
  31. @property
  32. def page_size(self):
  33. return self._page_size
  34. @page_size.setter
  35. def page_size(self, value):
  36. self._page_size = value
  37. @property
  38. def total_item_count(self):
  39. return self._total_item_count
  40. @total_item_count.setter
  41. def total_item_count(self, value):
  42. self._total_item_count = value
  43. def parse_response_content(self, response_content):
  44. response = super(AlipayFundAccountBillQueryResponse, self).parse_response_content(response_content)
  45. if 'acc_detail_list' in response:
  46. self.acc_detail_list = response['acc_detail_list']
  47. if 'page_num' in response:
  48. self.page_num = response['page_num']
  49. if 'page_size' in response:
  50. self.page_size = response['page_size']
  51. if 'total_item_count' in response:
  52. self.total_item_count = response['total_item_count']