AlipayInsSceneClaimReportModifyModel.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayInsSceneClaimReportModifyModel(object):
  6. def __init__(self):
  7. self._accident_address = None
  8. self._accident_desc = None
  9. self._accident_time = None
  10. self._biz_data = None
  11. self._claim_report_no = None
  12. @property
  13. def accident_address(self):
  14. return self._accident_address
  15. @accident_address.setter
  16. def accident_address(self, value):
  17. self._accident_address = value
  18. @property
  19. def accident_desc(self):
  20. return self._accident_desc
  21. @accident_desc.setter
  22. def accident_desc(self, value):
  23. self._accident_desc = value
  24. @property
  25. def accident_time(self):
  26. return self._accident_time
  27. @accident_time.setter
  28. def accident_time(self, value):
  29. self._accident_time = value
  30. @property
  31. def biz_data(self):
  32. return self._biz_data
  33. @biz_data.setter
  34. def biz_data(self, value):
  35. self._biz_data = value
  36. @property
  37. def claim_report_no(self):
  38. return self._claim_report_no
  39. @claim_report_no.setter
  40. def claim_report_no(self, value):
  41. self._claim_report_no = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.accident_address:
  45. if hasattr(self.accident_address, 'to_alipay_dict'):
  46. params['accident_address'] = self.accident_address.to_alipay_dict()
  47. else:
  48. params['accident_address'] = self.accident_address
  49. if self.accident_desc:
  50. if hasattr(self.accident_desc, 'to_alipay_dict'):
  51. params['accident_desc'] = self.accident_desc.to_alipay_dict()
  52. else:
  53. params['accident_desc'] = self.accident_desc
  54. if self.accident_time:
  55. if hasattr(self.accident_time, 'to_alipay_dict'):
  56. params['accident_time'] = self.accident_time.to_alipay_dict()
  57. else:
  58. params['accident_time'] = self.accident_time
  59. if self.biz_data:
  60. if hasattr(self.biz_data, 'to_alipay_dict'):
  61. params['biz_data'] = self.biz_data.to_alipay_dict()
  62. else:
  63. params['biz_data'] = self.biz_data
  64. if self.claim_report_no:
  65. if hasattr(self.claim_report_no, 'to_alipay_dict'):
  66. params['claim_report_no'] = self.claim_report_no.to_alipay_dict()
  67. else:
  68. params['claim_report_no'] = self.claim_report_no
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = AlipayInsSceneClaimReportModifyModel()
  75. if 'accident_address' in d:
  76. o.accident_address = d['accident_address']
  77. if 'accident_desc' in d:
  78. o.accident_desc = d['accident_desc']
  79. if 'accident_time' in d:
  80. o.accident_time = d['accident_time']
  81. if 'biz_data' in d:
  82. o.biz_data = d['biz_data']
  83. if 'claim_report_no' in d:
  84. o.claim_report_no = d['claim_report_no']
  85. return o