ZolozIdentificationCustomerCertifyzhubQueryResponse.py 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.FaceAttrInfo import FaceAttrInfo
  6. class ZolozIdentificationCustomerCertifyzhubQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(ZolozIdentificationCustomerCertifyzhubQueryResponse, self).__init__()
  9. self._attack = None
  10. self._biz_id = None
  11. self._face_attr_info = None
  12. self._img_str = None
  13. self._zim_code = None
  14. self._zim_msg = None
  15. @property
  16. def attack(self):
  17. return self._attack
  18. @attack.setter
  19. def attack(self, value):
  20. self._attack = value
  21. @property
  22. def biz_id(self):
  23. return self._biz_id
  24. @biz_id.setter
  25. def biz_id(self, value):
  26. self._biz_id = value
  27. @property
  28. def face_attr_info(self):
  29. return self._face_attr_info
  30. @face_attr_info.setter
  31. def face_attr_info(self, value):
  32. if isinstance(value, FaceAttrInfo):
  33. self._face_attr_info = value
  34. else:
  35. self._face_attr_info = FaceAttrInfo.from_alipay_dict(value)
  36. @property
  37. def img_str(self):
  38. return self._img_str
  39. @img_str.setter
  40. def img_str(self, value):
  41. self._img_str = value
  42. @property
  43. def zim_code(self):
  44. return self._zim_code
  45. @zim_code.setter
  46. def zim_code(self, value):
  47. self._zim_code = value
  48. @property
  49. def zim_msg(self):
  50. return self._zim_msg
  51. @zim_msg.setter
  52. def zim_msg(self, value):
  53. self._zim_msg = value
  54. def parse_response_content(self, response_content):
  55. response = super(ZolozIdentificationCustomerCertifyzhubQueryResponse, self).parse_response_content(response_content)
  56. if 'attack' in response:
  57. self.attack = response['attack']
  58. if 'biz_id' in response:
  59. self.biz_id = response['biz_id']
  60. if 'face_attr_info' in response:
  61. self.face_attr_info = response['face_attr_info']
  62. if 'img_str' in response:
  63. self.img_str = response['img_str']
  64. if 'zim_code' in response:
  65. self.zim_code = response['zim_code']
  66. if 'zim_msg' in response:
  67. self.zim_msg = response['zim_msg']