AlipayPcreditLoanApplyUserCertifyModel.py 2.3 KB

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