ZolozIdentificationCustomerCertifyzhubQueryModel.py 2.2 KB

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