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