AlipayIserviceCognitiveOcrCarvinQueryResponse.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayIserviceCognitiveOcrCarvinQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayIserviceCognitiveOcrCarvinQueryResponse, self).__init__()
  8. self._request_id = None
  9. self._trace_id = None
  10. self._vin = None
  11. @property
  12. def request_id(self):
  13. return self._request_id
  14. @request_id.setter
  15. def request_id(self, value):
  16. self._request_id = value
  17. @property
  18. def trace_id(self):
  19. return self._trace_id
  20. @trace_id.setter
  21. def trace_id(self, value):
  22. self._trace_id = value
  23. @property
  24. def vin(self):
  25. return self._vin
  26. @vin.setter
  27. def vin(self, value):
  28. self._vin = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayIserviceCognitiveOcrCarvinQueryResponse, self).parse_response_content(response_content)
  31. if 'request_id' in response:
  32. self.request_id = response['request_id']
  33. if 'trace_id' in response:
  34. self.trace_id = response['trace_id']
  35. if 'vin' in response:
  36. self.vin = response['vin']