ZolozIdentificationCustomerCertifyConsultModel.py 2.7 KB

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