AlipayInsSceneHealthGiftQueryModel.py 2.9 KB

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