AlipayEcoEduKtParentQueryModel.py 3.9 KB

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