AlipayEcoSignflowsDetailQueryResponse.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.AttachmentDetail import AttachmentDetail
  6. from alipay.aop.api.domain.DocInfo import DocInfo
  7. class AlipayEcoSignflowsDetailQueryResponse(AlipayResponse):
  8. def __init__(self):
  9. super(AlipayEcoSignflowsDetailQueryResponse, self).__init__()
  10. self._attachments = None
  11. self._docs = None
  12. @property
  13. def attachments(self):
  14. return self._attachments
  15. @attachments.setter
  16. def attachments(self, value):
  17. if isinstance(value, AttachmentDetail):
  18. self._attachments = value
  19. else:
  20. self._attachments = AttachmentDetail.from_alipay_dict(value)
  21. @property
  22. def docs(self):
  23. return self._docs
  24. @docs.setter
  25. def docs(self, value):
  26. if isinstance(value, DocInfo):
  27. self._docs = value
  28. else:
  29. self._docs = DocInfo.from_alipay_dict(value)
  30. def parse_response_content(self, response_content):
  31. response = super(AlipayEcoSignflowsDetailQueryResponse, self).parse_response_content(response_content)
  32. if 'attachments' in response:
  33. self.attachments = response['attachments']
  34. if 'docs' in response:
  35. self.docs = response['docs']