AlipayPassTplAddResponse.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 AlipayPassTplAddResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayPassTplAddResponse, self).__init__()
  8. self._error_code = None
  9. self._result = None
  10. self._success = None
  11. @property
  12. def error_code(self):
  13. return self._error_code
  14. @error_code.setter
  15. def error_code(self, value):
  16. self._error_code = value
  17. @property
  18. def result(self):
  19. return self._result
  20. @result.setter
  21. def result(self, value):
  22. self._result = value
  23. @property
  24. def success(self):
  25. return self._success
  26. @success.setter
  27. def success(self, value):
  28. self._success = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayPassTplAddResponse, self).parse_response_content(response_content)
  31. if 'error_code' in response:
  32. self.error_code = response['error_code']
  33. if 'result' in response:
  34. self.result = response['result']
  35. if 'success' in response:
  36. self.success = response['success']