AlipayInsDataAutodamageEstimateQueryResponse.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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.InsDataAutodamageEstimateResultDetailModel import InsDataAutodamageEstimateResultDetailModel
  6. class AlipayInsDataAutodamageEstimateQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayInsDataAutodamageEstimateQueryResponse, self).__init__()
  9. self._commercial_policy_no = None
  10. self._compulsory_policy_no = None
  11. self._engine_no = None
  12. self._estimate_detail_list = None
  13. self._estimate_no = None
  14. self._frame_no = None
  15. self._license_no = None
  16. self._model_brand = None
  17. self._report_no = None
  18. self._survey_no = None
  19. @property
  20. def commercial_policy_no(self):
  21. return self._commercial_policy_no
  22. @commercial_policy_no.setter
  23. def commercial_policy_no(self, value):
  24. self._commercial_policy_no = value
  25. @property
  26. def compulsory_policy_no(self):
  27. return self._compulsory_policy_no
  28. @compulsory_policy_no.setter
  29. def compulsory_policy_no(self, value):
  30. self._compulsory_policy_no = value
  31. @property
  32. def engine_no(self):
  33. return self._engine_no
  34. @engine_no.setter
  35. def engine_no(self, value):
  36. self._engine_no = value
  37. @property
  38. def estimate_detail_list(self):
  39. return self._estimate_detail_list
  40. @estimate_detail_list.setter
  41. def estimate_detail_list(self, value):
  42. if isinstance(value, list):
  43. self._estimate_detail_list = list()
  44. for i in value:
  45. if isinstance(i, InsDataAutodamageEstimateResultDetailModel):
  46. self._estimate_detail_list.append(i)
  47. else:
  48. self._estimate_detail_list.append(InsDataAutodamageEstimateResultDetailModel.from_alipay_dict(i))
  49. @property
  50. def estimate_no(self):
  51. return self._estimate_no
  52. @estimate_no.setter
  53. def estimate_no(self, value):
  54. self._estimate_no = value
  55. @property
  56. def frame_no(self):
  57. return self._frame_no
  58. @frame_no.setter
  59. def frame_no(self, value):
  60. self._frame_no = value
  61. @property
  62. def license_no(self):
  63. return self._license_no
  64. @license_no.setter
  65. def license_no(self, value):
  66. self._license_no = value
  67. @property
  68. def model_brand(self):
  69. return self._model_brand
  70. @model_brand.setter
  71. def model_brand(self, value):
  72. self._model_brand = value
  73. @property
  74. def report_no(self):
  75. return self._report_no
  76. @report_no.setter
  77. def report_no(self, value):
  78. self._report_no = value
  79. @property
  80. def survey_no(self):
  81. return self._survey_no
  82. @survey_no.setter
  83. def survey_no(self, value):
  84. self._survey_no = value
  85. def parse_response_content(self, response_content):
  86. response = super(AlipayInsDataAutodamageEstimateQueryResponse, self).parse_response_content(response_content)
  87. if 'commercial_policy_no' in response:
  88. self.commercial_policy_no = response['commercial_policy_no']
  89. if 'compulsory_policy_no' in response:
  90. self.compulsory_policy_no = response['compulsory_policy_no']
  91. if 'engine_no' in response:
  92. self.engine_no = response['engine_no']
  93. if 'estimate_detail_list' in response:
  94. self.estimate_detail_list = response['estimate_detail_list']
  95. if 'estimate_no' in response:
  96. self.estimate_no = response['estimate_no']
  97. if 'frame_no' in response:
  98. self.frame_no = response['frame_no']
  99. if 'license_no' in response:
  100. self.license_no = response['license_no']
  101. if 'model_brand' in response:
  102. self.model_brand = response['model_brand']
  103. if 'report_no' in response:
  104. self.report_no = response['report_no']
  105. if 'survey_no' in response:
  106. self.survey_no = response['survey_no']