AlipaySecurityProdFingerprintApplyInitializeModel.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipaySecurityProdFingerprintApplyInitializeModel(object):
  6. def __init__(self):
  7. self._auth_type = None
  8. self._ifaa_version = None
  9. self._sec_data = None
  10. @property
  11. def auth_type(self):
  12. return self._auth_type
  13. @auth_type.setter
  14. def auth_type(self, value):
  15. self._auth_type = value
  16. @property
  17. def ifaa_version(self):
  18. return self._ifaa_version
  19. @ifaa_version.setter
  20. def ifaa_version(self, value):
  21. self._ifaa_version = value
  22. @property
  23. def sec_data(self):
  24. return self._sec_data
  25. @sec_data.setter
  26. def sec_data(self, value):
  27. self._sec_data = value
  28. def to_alipay_dict(self):
  29. params = dict()
  30. if self.auth_type:
  31. if hasattr(self.auth_type, 'to_alipay_dict'):
  32. params['auth_type'] = self.auth_type.to_alipay_dict()
  33. else:
  34. params['auth_type'] = self.auth_type
  35. if self.ifaa_version:
  36. if hasattr(self.ifaa_version, 'to_alipay_dict'):
  37. params['ifaa_version'] = self.ifaa_version.to_alipay_dict()
  38. else:
  39. params['ifaa_version'] = self.ifaa_version
  40. if self.sec_data:
  41. if hasattr(self.sec_data, 'to_alipay_dict'):
  42. params['sec_data'] = self.sec_data.to_alipay_dict()
  43. else:
  44. params['sec_data'] = self.sec_data
  45. return params
  46. @staticmethod
  47. def from_alipay_dict(d):
  48. if not d:
  49. return None
  50. o = AlipaySecurityProdFingerprintApplyInitializeModel()
  51. if 'auth_type' in d:
  52. o.auth_type = d['auth_type']
  53. if 'ifaa_version' in d:
  54. o.ifaa_version = d['ifaa_version']
  55. if 'sec_data' in d:
  56. o.sec_data = d['sec_data']
  57. return o