AlipayPassCodeAddResponse.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayPassCodeAddResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayPassCodeAddResponse, self).__init__()
  8. self._biz_result = None
  9. self._error_code = None
  10. self._success = None
  11. @property
  12. def biz_result(self):
  13. return self._biz_result
  14. @biz_result.setter
  15. def biz_result(self, value):
  16. if isinstance(value, list):
  17. self._biz_result = list()
  18. for i in value:
  19. self._biz_result.append(i)
  20. @property
  21. def error_code(self):
  22. return self._error_code
  23. @error_code.setter
  24. def error_code(self, value):
  25. self._error_code = value
  26. @property
  27. def success(self):
  28. return self._success
  29. @success.setter
  30. def success(self, value):
  31. self._success = value
  32. def parse_response_content(self, response_content):
  33. response = super(AlipayPassCodeAddResponse, self).parse_response_content(response_content)
  34. if 'biz_result' in response:
  35. self.biz_result = response['biz_result']
  36. if 'error_code' in response:
  37. self.error_code = response['error_code']
  38. if 'success' in response:
  39. self.success = response['success']