AlipaySecurityRiskHufuAuthCreateResponse.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 AlipaySecurityRiskHufuAuthCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipaySecurityRiskHufuAuthCreateResponse, self).__init__()
  8. self._info = None
  9. self._serial = None
  10. self._token = None
  11. @property
  12. def info(self):
  13. return self._info
  14. @info.setter
  15. def info(self, value):
  16. self._info = value
  17. @property
  18. def serial(self):
  19. return self._serial
  20. @serial.setter
  21. def serial(self, value):
  22. self._serial = value
  23. @property
  24. def token(self):
  25. return self._token
  26. @token.setter
  27. def token(self, value):
  28. self._token = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipaySecurityRiskHufuAuthCreateResponse, self).parse_response_content(response_content)
  31. if 'info' in response:
  32. self.info = response['info']
  33. if 'serial' in response:
  34. self.serial = response['serial']
  35. if 'token' in response:
  36. self.token = response['token']