AlipayUserCertifyStudentinfoSyncModel.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayUserCertifyStudentinfoSyncModel(object):
  6. def __init__(self):
  7. self._cert_no = None
  8. self._education_level = None
  9. self._entry_date = None
  10. self._graduation_date = None
  11. self._name = None
  12. self._school_name = None
  13. self._user_id = None
  14. @property
  15. def cert_no(self):
  16. return self._cert_no
  17. @cert_no.setter
  18. def cert_no(self, value):
  19. self._cert_no = value
  20. @property
  21. def education_level(self):
  22. return self._education_level
  23. @education_level.setter
  24. def education_level(self, value):
  25. self._education_level = value
  26. @property
  27. def entry_date(self):
  28. return self._entry_date
  29. @entry_date.setter
  30. def entry_date(self, value):
  31. self._entry_date = value
  32. @property
  33. def graduation_date(self):
  34. return self._graduation_date
  35. @graduation_date.setter
  36. def graduation_date(self, value):
  37. self._graduation_date = value
  38. @property
  39. def name(self):
  40. return self._name
  41. @name.setter
  42. def name(self, value):
  43. self._name = value
  44. @property
  45. def school_name(self):
  46. return self._school_name
  47. @school_name.setter
  48. def school_name(self, value):
  49. self._school_name = value
  50. @property
  51. def user_id(self):
  52. return self._user_id
  53. @user_id.setter
  54. def user_id(self, value):
  55. self._user_id = value
  56. def to_alipay_dict(self):
  57. params = dict()
  58. if self.cert_no:
  59. if hasattr(self.cert_no, 'to_alipay_dict'):
  60. params['cert_no'] = self.cert_no.to_alipay_dict()
  61. else:
  62. params['cert_no'] = self.cert_no
  63. if self.education_level:
  64. if hasattr(self.education_level, 'to_alipay_dict'):
  65. params['education_level'] = self.education_level.to_alipay_dict()
  66. else:
  67. params['education_level'] = self.education_level
  68. if self.entry_date:
  69. if hasattr(self.entry_date, 'to_alipay_dict'):
  70. params['entry_date'] = self.entry_date.to_alipay_dict()
  71. else:
  72. params['entry_date'] = self.entry_date
  73. if self.graduation_date:
  74. if hasattr(self.graduation_date, 'to_alipay_dict'):
  75. params['graduation_date'] = self.graduation_date.to_alipay_dict()
  76. else:
  77. params['graduation_date'] = self.graduation_date
  78. if self.name:
  79. if hasattr(self.name, 'to_alipay_dict'):
  80. params['name'] = self.name.to_alipay_dict()
  81. else:
  82. params['name'] = self.name
  83. if self.school_name:
  84. if hasattr(self.school_name, 'to_alipay_dict'):
  85. params['school_name'] = self.school_name.to_alipay_dict()
  86. else:
  87. params['school_name'] = self.school_name
  88. if self.user_id:
  89. if hasattr(self.user_id, 'to_alipay_dict'):
  90. params['user_id'] = self.user_id.to_alipay_dict()
  91. else:
  92. params['user_id'] = self.user_id
  93. return params
  94. @staticmethod
  95. def from_alipay_dict(d):
  96. if not d:
  97. return None
  98. o = AlipayUserCertifyStudentinfoSyncModel()
  99. if 'cert_no' in d:
  100. o.cert_no = d['cert_no']
  101. if 'education_level' in d:
  102. o.education_level = d['education_level']
  103. if 'entry_date' in d:
  104. o.entry_date = d['entry_date']
  105. if 'graduation_date' in d:
  106. o.graduation_date = d['graduation_date']
  107. if 'name' in d:
  108. o.name = d['name']
  109. if 'school_name' in d:
  110. o.school_name = d['school_name']
  111. if 'user_id' in d:
  112. o.user_id = d['user_id']
  113. return o