ZhimaCreditEpEntityMonitorUploadModel.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 ZhimaCreditEpEntityMonitorUploadModel(object):
  6. def __init__(self):
  7. self._entity_list = None
  8. self._entity_type = None
  9. self._solution_id = None
  10. self._zhima_pid = None
  11. @property
  12. def entity_list(self):
  13. return self._entity_list
  14. @entity_list.setter
  15. def entity_list(self, value):
  16. self._entity_list = value
  17. @property
  18. def entity_type(self):
  19. return self._entity_type
  20. @entity_type.setter
  21. def entity_type(self, value):
  22. self._entity_type = value
  23. @property
  24. def solution_id(self):
  25. return self._solution_id
  26. @solution_id.setter
  27. def solution_id(self, value):
  28. self._solution_id = value
  29. @property
  30. def zhima_pid(self):
  31. return self._zhima_pid
  32. @zhima_pid.setter
  33. def zhima_pid(self, value):
  34. self._zhima_pid = value
  35. def to_alipay_dict(self):
  36. params = dict()
  37. if self.entity_list:
  38. if hasattr(self.entity_list, 'to_alipay_dict'):
  39. params['entity_list'] = self.entity_list.to_alipay_dict()
  40. else:
  41. params['entity_list'] = self.entity_list
  42. if self.entity_type:
  43. if hasattr(self.entity_type, 'to_alipay_dict'):
  44. params['entity_type'] = self.entity_type.to_alipay_dict()
  45. else:
  46. params['entity_type'] = self.entity_type
  47. if self.solution_id:
  48. if hasattr(self.solution_id, 'to_alipay_dict'):
  49. params['solution_id'] = self.solution_id.to_alipay_dict()
  50. else:
  51. params['solution_id'] = self.solution_id
  52. if self.zhima_pid:
  53. if hasattr(self.zhima_pid, 'to_alipay_dict'):
  54. params['zhima_pid'] = self.zhima_pid.to_alipay_dict()
  55. else:
  56. params['zhima_pid'] = self.zhima_pid
  57. return params
  58. @staticmethod
  59. def from_alipay_dict(d):
  60. if not d:
  61. return None
  62. o = ZhimaCreditEpEntityMonitorUploadModel()
  63. if 'entity_list' in d:
  64. o.entity_list = d['entity_list']
  65. if 'entity_type' in d:
  66. o.entity_type = d['entity_type']
  67. if 'solution_id' in d:
  68. o.solution_id = d['solution_id']
  69. if 'zhima_pid' in d:
  70. o.zhima_pid = d['zhima_pid']
  71. return o