AlipaySecurityProdFingerprintApplyResponse.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 AlipaySecurityProdFingerprintApplyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipaySecurityProdFingerprintApplyResponse, self).__init__()
  8. self._auth_type = None
  9. self._device_id = None
  10. self._token = None
  11. @property
  12. def auth_type(self):
  13. return self._auth_type
  14. @auth_type.setter
  15. def auth_type(self, value):
  16. self._auth_type = value
  17. @property
  18. def device_id(self):
  19. return self._device_id
  20. @device_id.setter
  21. def device_id(self, value):
  22. self._device_id = 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(AlipaySecurityProdFingerprintApplyResponse, self).parse_response_content(response_content)
  31. if 'auth_type' in response:
  32. self.auth_type = response['auth_type']
  33. if 'device_id' in response:
  34. self.device_id = response['device_id']
  35. if 'token' in response:
  36. self.token = response['token']