ZhimaCustomerCertificationQueryResponse.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class ZhimaCustomerCertificationQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(ZhimaCustomerCertificationQueryResponse, self).__init__()
  8. self._attribute_info = None
  9. self._channel_statuses = None
  10. self._failed_reason = None
  11. self._identity_info = None
  12. self._passed = None
  13. @property
  14. def attribute_info(self):
  15. return self._attribute_info
  16. @attribute_info.setter
  17. def attribute_info(self, value):
  18. self._attribute_info = value
  19. @property
  20. def channel_statuses(self):
  21. return self._channel_statuses
  22. @channel_statuses.setter
  23. def channel_statuses(self, value):
  24. self._channel_statuses = value
  25. @property
  26. def failed_reason(self):
  27. return self._failed_reason
  28. @failed_reason.setter
  29. def failed_reason(self, value):
  30. self._failed_reason = value
  31. @property
  32. def identity_info(self):
  33. return self._identity_info
  34. @identity_info.setter
  35. def identity_info(self, value):
  36. self._identity_info = value
  37. @property
  38. def passed(self):
  39. return self._passed
  40. @passed.setter
  41. def passed(self, value):
  42. self._passed = value
  43. def parse_response_content(self, response_content):
  44. response = super(ZhimaCustomerCertificationQueryResponse, self).parse_response_content(response_content)
  45. if 'attribute_info' in response:
  46. self.attribute_info = response['attribute_info']
  47. if 'channel_statuses' in response:
  48. self.channel_statuses = response['channel_statuses']
  49. if 'failed_reason' in response:
  50. self.failed_reason = response['failed_reason']
  51. if 'identity_info' in response:
  52. self.identity_info = response['identity_info']
  53. if 'passed' in response:
  54. self.passed = response['passed']