ZhimaCreditEpInfoGetResponse.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.CompanyInfo import CompanyInfo
  6. class ZhimaCreditEpInfoGetResponse(AlipayResponse):
  7. def __init__(self):
  8. super(ZhimaCreditEpInfoGetResponse, self).__init__()
  9. self._biz_no = None
  10. self._company_info = 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_info(self):
  19. return self._company_info
  20. @company_info.setter
  21. def company_info(self, value):
  22. if isinstance(value, CompanyInfo):
  23. self._company_info = value
  24. else:
  25. self._company_info = CompanyInfo.from_alipay_dict(value)
  26. def parse_response_content(self, response_content):
  27. response = super(ZhimaCreditEpInfoGetResponse, self).parse_response_content(response_content)
  28. if 'biz_no' in response:
  29. self.biz_no = response['biz_no']
  30. if 'company_info' in response:
  31. self.company_info = response['company_info']