AlipayPayCodecAcodeCertExpireModel.py 1.8 KB

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