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