ZhimaCreditAntifraudVerifyResponse.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class ZhimaCreditAntifraudVerifyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(ZhimaCreditAntifraudVerifyResponse, self).__init__()
  8. self._biz_no = None
  9. self._decision_result = None
  10. self._solution_id = None
  11. self._verify_code = 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 decision_result(self):
  20. return self._decision_result
  21. @decision_result.setter
  22. def decision_result(self, value):
  23. self._decision_result = value
  24. @property
  25. def solution_id(self):
  26. return self._solution_id
  27. @solution_id.setter
  28. def solution_id(self, value):
  29. self._solution_id = value
  30. @property
  31. def verify_code(self):
  32. return self._verify_code
  33. @verify_code.setter
  34. def verify_code(self, value):
  35. if isinstance(value, list):
  36. self._verify_code = list()
  37. for i in value:
  38. self._verify_code.append(i)
  39. def parse_response_content(self, response_content):
  40. response = super(ZhimaCreditAntifraudVerifyResponse, self).parse_response_content(response_content)
  41. if 'biz_no' in response:
  42. self.biz_no = response['biz_no']
  43. if 'decision_result' in response:
  44. self.decision_result = response['decision_result']
  45. if 'solution_id' in response:
  46. self.solution_id = response['solution_id']
  47. if 'verify_code' in response:
  48. self.verify_code = response['verify_code']