AlipayInsDataDsbEstimateQueryModel.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayInsDataDsbEstimateQueryModel(object):
  6. def __init__(self):
  7. self._estimate_no = None
  8. self._frame_no = None
  9. self._garage_type = None
  10. self._license_no = None
  11. @property
  12. def estimate_no(self):
  13. return self._estimate_no
  14. @estimate_no.setter
  15. def estimate_no(self, value):
  16. self._estimate_no = value
  17. @property
  18. def frame_no(self):
  19. return self._frame_no
  20. @frame_no.setter
  21. def frame_no(self, value):
  22. self._frame_no = value
  23. @property
  24. def garage_type(self):
  25. return self._garage_type
  26. @garage_type.setter
  27. def garage_type(self, value):
  28. self._garage_type = value
  29. @property
  30. def license_no(self):
  31. return self._license_no
  32. @license_no.setter
  33. def license_no(self, value):
  34. self._license_no = value
  35. def to_alipay_dict(self):
  36. params = dict()
  37. if self.estimate_no:
  38. if hasattr(self.estimate_no, 'to_alipay_dict'):
  39. params['estimate_no'] = self.estimate_no.to_alipay_dict()
  40. else:
  41. params['estimate_no'] = self.estimate_no
  42. if self.frame_no:
  43. if hasattr(self.frame_no, 'to_alipay_dict'):
  44. params['frame_no'] = self.frame_no.to_alipay_dict()
  45. else:
  46. params['frame_no'] = self.frame_no
  47. if self.garage_type:
  48. if hasattr(self.garage_type, 'to_alipay_dict'):
  49. params['garage_type'] = self.garage_type.to_alipay_dict()
  50. else:
  51. params['garage_type'] = self.garage_type
  52. if self.license_no:
  53. if hasattr(self.license_no, 'to_alipay_dict'):
  54. params['license_no'] = self.license_no.to_alipay_dict()
  55. else:
  56. params['license_no'] = self.license_no
  57. return params
  58. @staticmethod
  59. def from_alipay_dict(d):
  60. if not d:
  61. return None
  62. o = AlipayInsDataDsbEstimateQueryModel()
  63. if 'estimate_no' in d:
  64. o.estimate_no = d['estimate_no']
  65. if 'frame_no' in d:
  66. o.frame_no = d['frame_no']
  67. if 'garage_type' in d:
  68. o.garage_type = d['garage_type']
  69. if 'license_no' in d:
  70. o.license_no = d['license_no']
  71. return o