ZhimaCreditWatchlistiiGetResponse.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.ZmWatchListDetail import ZmWatchListDetail
  6. class ZhimaCreditWatchlistiiGetResponse(AlipayResponse):
  7. def __init__(self):
  8. super(ZhimaCreditWatchlistiiGetResponse, self).__init__()
  9. self._biz_no = None
  10. self._details = None
  11. self._is_matched = None
  12. @property
  13. def biz_no(self):
  14. return self._biz_no
  15. @biz_no.setter
  16. def biz_no(self, value):
  17. self._biz_no = value
  18. @property
  19. def details(self):
  20. return self._details
  21. @details.setter
  22. def details(self, value):
  23. if isinstance(value, list):
  24. self._details = list()
  25. for i in value:
  26. if isinstance(i, ZmWatchListDetail):
  27. self._details.append(i)
  28. else:
  29. self._details.append(ZmWatchListDetail.from_alipay_dict(i))
  30. @property
  31. def is_matched(self):
  32. return self._is_matched
  33. @is_matched.setter
  34. def is_matched(self, value):
  35. self._is_matched = value
  36. def parse_response_content(self, response_content):
  37. response = super(ZhimaCreditWatchlistiiGetResponse, self).parse_response_content(response_content)
  38. if 'biz_no' in response:
  39. self.biz_no = response['biz_no']
  40. if 'details' in response:
  41. self.details = response['details']
  42. if 'is_matched' in response:
  43. self.is_matched = response['is_matched']