AlipayOpenInviteOrderQueryResponse.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.ProductInviteStatusInfo import ProductInviteStatusInfo
  6. class AlipayOpenInviteOrderQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayOpenInviteOrderQueryResponse, self).__init__()
  9. self._merchant_pid = None
  10. self._sign_status_list = None
  11. @property
  12. def merchant_pid(self):
  13. return self._merchant_pid
  14. @merchant_pid.setter
  15. def merchant_pid(self, value):
  16. self._merchant_pid = value
  17. @property
  18. def sign_status_list(self):
  19. return self._sign_status_list
  20. @sign_status_list.setter
  21. def sign_status_list(self, value):
  22. if isinstance(value, list):
  23. self._sign_status_list = list()
  24. for i in value:
  25. if isinstance(i, ProductInviteStatusInfo):
  26. self._sign_status_list.append(i)
  27. else:
  28. self._sign_status_list.append(ProductInviteStatusInfo.from_alipay_dict(i))
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayOpenInviteOrderQueryResponse, self).parse_response_content(response_content)
  31. if 'merchant_pid' in response:
  32. self.merchant_pid = response['merchant_pid']
  33. if 'sign_status_list' in response:
  34. self.sign_status_list = response['sign_status_list']