AlipayTrustUserRiskidentifyGetResponse.py 1.1 KB

1234567891011121314151617181920212223242526272829
  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.AliTrustRiskIdentify import AliTrustRiskIdentify
  6. class AlipayTrustUserRiskidentifyGetResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayTrustUserRiskidentifyGetResponse, self).__init__()
  9. self._ali_trust_risk_identify = None
  10. @property
  11. def ali_trust_risk_identify(self):
  12. return self._ali_trust_risk_identify
  13. @ali_trust_risk_identify.setter
  14. def ali_trust_risk_identify(self, value):
  15. if isinstance(value, AliTrustRiskIdentify):
  16. self._ali_trust_risk_identify = value
  17. else:
  18. self._ali_trust_risk_identify = AliTrustRiskIdentify.from_alipay_dict(value)
  19. def parse_response_content(self, response_content):
  20. response = super(AlipayTrustUserRiskidentifyGetResponse, self).parse_response_content(response_content)
  21. if 'ali_trust_risk_identify' in response:
  22. self.ali_trust_risk_identify = response['ali_trust_risk_identify']