ZhimaCreditEpRoleGetResponse.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.CompanyRole import CompanyRole
  6. class ZhimaCreditEpRoleGetResponse(AlipayResponse):
  7. def __init__(self):
  8. super(ZhimaCreditEpRoleGetResponse, self).__init__()
  9. self._biz_no = None
  10. self._company_role = None
  11. @property
  12. def biz_no(self):
  13. return self._biz_no
  14. @biz_no.setter
  15. def biz_no(self, value):
  16. self._biz_no = value
  17. @property
  18. def company_role(self):
  19. return self._company_role
  20. @company_role.setter
  21. def company_role(self, value):
  22. if isinstance(value, CompanyRole):
  23. self._company_role = value
  24. else:
  25. self._company_role = CompanyRole.from_alipay_dict(value)
  26. def parse_response_content(self, response_content):
  27. response = super(ZhimaCreditEpRoleGetResponse, self).parse_response_content(response_content)
  28. if 'biz_no' in response:
  29. self.biz_no = response['biz_no']
  30. if 'company_role' in response:
  31. self.company_role = response['company_role']