AlipayInsDataDsbEstimateQueryResponse.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.InsDataDsbEstimateResultDetail import InsDataDsbEstimateResultDetail
  6. class AlipayInsDataDsbEstimateQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayInsDataDsbEstimateQueryResponse, self).__init__()
  9. self._confidence = None
  10. self._estimate_detail_list = None
  11. self._estimate_no = None
  12. self._frame_no = None
  13. self._license_no = None
  14. self._repair_corp_properties = None
  15. self._total_damage_amount = None
  16. self._total_remain_value = None
  17. @property
  18. def confidence(self):
  19. return self._confidence
  20. @confidence.setter
  21. def confidence(self, value):
  22. self._confidence = value
  23. @property
  24. def estimate_detail_list(self):
  25. return self._estimate_detail_list
  26. @estimate_detail_list.setter
  27. def estimate_detail_list(self, value):
  28. if isinstance(value, list):
  29. self._estimate_detail_list = list()
  30. for i in value:
  31. if isinstance(i, InsDataDsbEstimateResultDetail):
  32. self._estimate_detail_list.append(i)
  33. else:
  34. self._estimate_detail_list.append(InsDataDsbEstimateResultDetail.from_alipay_dict(i))
  35. @property
  36. def estimate_no(self):
  37. return self._estimate_no
  38. @estimate_no.setter
  39. def estimate_no(self, value):
  40. self._estimate_no = value
  41. @property
  42. def frame_no(self):
  43. return self._frame_no
  44. @frame_no.setter
  45. def frame_no(self, value):
  46. self._frame_no = value
  47. @property
  48. def license_no(self):
  49. return self._license_no
  50. @license_no.setter
  51. def license_no(self, value):
  52. self._license_no = value
  53. @property
  54. def repair_corp_properties(self):
  55. return self._repair_corp_properties
  56. @repair_corp_properties.setter
  57. def repair_corp_properties(self, value):
  58. self._repair_corp_properties = value
  59. @property
  60. def total_damage_amount(self):
  61. return self._total_damage_amount
  62. @total_damage_amount.setter
  63. def total_damage_amount(self, value):
  64. self._total_damage_amount = value
  65. @property
  66. def total_remain_value(self):
  67. return self._total_remain_value
  68. @total_remain_value.setter
  69. def total_remain_value(self, value):
  70. self._total_remain_value = value
  71. def parse_response_content(self, response_content):
  72. response = super(AlipayInsDataDsbEstimateQueryResponse, self).parse_response_content(response_content)
  73. if 'confidence' in response:
  74. self.confidence = response['confidence']
  75. if 'estimate_detail_list' in response:
  76. self.estimate_detail_list = response['estimate_detail_list']
  77. if 'estimate_no' in response:
  78. self.estimate_no = response['estimate_no']
  79. if 'frame_no' in response:
  80. self.frame_no = response['frame_no']
  81. if 'license_no' in response:
  82. self.license_no = response['license_no']
  83. if 'repair_corp_properties' in response:
  84. self.repair_corp_properties = response['repair_corp_properties']
  85. if 'total_damage_amount' in response:
  86. self.total_damage_amount = response['total_damage_amount']
  87. if 'total_remain_value' in response:
  88. self.total_remain_value = response['total_remain_value']