AlipayOpenTestQueryResponse.py 697 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayOpenTestQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayOpenTestQueryResponse, self).__init__()
  8. self._user_type = None
  9. @property
  10. def user_type(self):
  11. return self._user_type
  12. @user_type.setter
  13. def user_type(self, value):
  14. self._user_type = value
  15. def parse_response_content(self, response_content):
  16. response = super(AlipayOpenTestQueryResponse, self).parse_response_content(response_content)
  17. if 'user_type' in response:
  18. self.user_type = response['user_type']