AlipayFinanceZcbEndowmentorderDetailQueryModel.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayFinanceZcbEndowmentorderDetailQueryModel(object):
  6. def __init__(self):
  7. self._end_time = None
  8. self._product_id = None
  9. self._start_time = None
  10. @property
  11. def end_time(self):
  12. return self._end_time
  13. @end_time.setter
  14. def end_time(self, value):
  15. self._end_time = value
  16. @property
  17. def product_id(self):
  18. return self._product_id
  19. @product_id.setter
  20. def product_id(self, value):
  21. self._product_id = value
  22. @property
  23. def start_time(self):
  24. return self._start_time
  25. @start_time.setter
  26. def start_time(self, value):
  27. self._start_time = value
  28. def to_alipay_dict(self):
  29. params = dict()
  30. if self.end_time:
  31. if hasattr(self.end_time, 'to_alipay_dict'):
  32. params['end_time'] = self.end_time.to_alipay_dict()
  33. else:
  34. params['end_time'] = self.end_time
  35. if self.product_id:
  36. if hasattr(self.product_id, 'to_alipay_dict'):
  37. params['product_id'] = self.product_id.to_alipay_dict()
  38. else:
  39. params['product_id'] = self.product_id
  40. if self.start_time:
  41. if hasattr(self.start_time, 'to_alipay_dict'):
  42. params['start_time'] = self.start_time.to_alipay_dict()
  43. else:
  44. params['start_time'] = self.start_time
  45. return params
  46. @staticmethod
  47. def from_alipay_dict(d):
  48. if not d:
  49. return None
  50. o = AlipayFinanceZcbEndowmentorderDetailQueryModel()
  51. if 'end_time' in d:
  52. o.end_time = d['end_time']
  53. if 'product_id' in d:
  54. o.product_id = d['product_id']
  55. if 'start_time' in d:
  56. o.start_time = d['start_time']
  57. return o