ZhimaCustomerCertificationCertifyResponse.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class ZhimaCustomerCertificationCertifyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(ZhimaCustomerCertificationCertifyResponse, self).__init__()
  8. self._biz_no = None
  9. self._failed_reason = None
  10. self._passed = None
  11. @property
  12. def biz_no(self):
  13. return self._biz_no
  14. @biz_no.setter
  15. def biz_no(self, value):
  16. self._biz_no = value
  17. @property
  18. def failed_reason(self):
  19. return self._failed_reason
  20. @failed_reason.setter
  21. def failed_reason(self, value):
  22. self._failed_reason = value
  23. @property
  24. def passed(self):
  25. return self._passed
  26. @passed.setter
  27. def passed(self, value):
  28. self._passed = value
  29. def parse_response_content(self, response_content):
  30. response = super(ZhimaCustomerCertificationCertifyResponse, self).parse_response_content(response_content)
  31. if 'biz_no' in response:
  32. self.biz_no = response['biz_no']
  33. if 'failed_reason' in response:
  34. self.failed_reason = response['failed_reason']
  35. if 'passed' in response:
  36. self.passed = response['passed']