AlipayEcoMycarDataExternalQueryModel.py 2.7 KB

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