AlipayUserAuthZhimaorgIdentityApplyResponse.py 1.4 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 AlipayUserAuthZhimaorgIdentityApplyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserAuthZhimaorgIdentityApplyResponse, self).__init__()
  8. self._access_token = None
  9. self._auth_token_type = None
  10. self._refresh_token = None
  11. @property
  12. def access_token(self):
  13. return self._access_token
  14. @access_token.setter
  15. def access_token(self, value):
  16. self._access_token = value
  17. @property
  18. def auth_token_type(self):
  19. return self._auth_token_type
  20. @auth_token_type.setter
  21. def auth_token_type(self, value):
  22. self._auth_token_type = value
  23. @property
  24. def refresh_token(self):
  25. return self._refresh_token
  26. @refresh_token.setter
  27. def refresh_token(self, value):
  28. self._refresh_token = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayUserAuthZhimaorgIdentityApplyResponse, self).parse_response_content(response_content)
  31. if 'access_token' in response:
  32. self.access_token = response['access_token']
  33. if 'auth_token_type' in response:
  34. self.auth_token_type = response['auth_token_type']
  35. if 'refresh_token' in response:
  36. self.refresh_token = response['refresh_token']