ZhimaCreditPeIndustryLicenseCertifyModel.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 ZhimaCreditPeIndustryLicenseCertifyModel(object):
  6. def __init__(self):
  7. self._biz_scene = None
  8. self._ext_info = None
  9. self._product_code = None
  10. self._status = None
  11. self._user_id = None
  12. @property
  13. def biz_scene(self):
  14. return self._biz_scene
  15. @biz_scene.setter
  16. def biz_scene(self, value):
  17. self._biz_scene = value
  18. @property
  19. def ext_info(self):
  20. return self._ext_info
  21. @ext_info.setter
  22. def ext_info(self, value):
  23. self._ext_info = value
  24. @property
  25. def product_code(self):
  26. return self._product_code
  27. @product_code.setter
  28. def product_code(self, value):
  29. self._product_code = value
  30. @property
  31. def status(self):
  32. return self._status
  33. @status.setter
  34. def status(self, value):
  35. self._status = value
  36. @property
  37. def user_id(self):
  38. return self._user_id
  39. @user_id.setter
  40. def user_id(self, value):
  41. self._user_id = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.biz_scene:
  45. if hasattr(self.biz_scene, 'to_alipay_dict'):
  46. params['biz_scene'] = self.biz_scene.to_alipay_dict()
  47. else:
  48. params['biz_scene'] = self.biz_scene
  49. if self.ext_info:
  50. if hasattr(self.ext_info, 'to_alipay_dict'):
  51. params['ext_info'] = self.ext_info.to_alipay_dict()
  52. else:
  53. params['ext_info'] = self.ext_info
  54. if self.product_code:
  55. if hasattr(self.product_code, 'to_alipay_dict'):
  56. params['product_code'] = self.product_code.to_alipay_dict()
  57. else:
  58. params['product_code'] = self.product_code
  59. if self.status:
  60. if hasattr(self.status, 'to_alipay_dict'):
  61. params['status'] = self.status.to_alipay_dict()
  62. else:
  63. params['status'] = self.status
  64. if self.user_id:
  65. if hasattr(self.user_id, 'to_alipay_dict'):
  66. params['user_id'] = self.user_id.to_alipay_dict()
  67. else:
  68. params['user_id'] = self.user_id
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = ZhimaCreditPeIndustryLicenseCertifyModel()
  75. if 'biz_scene' in d:
  76. o.biz_scene = d['biz_scene']
  77. if 'ext_info' in d:
  78. o.ext_info = d['ext_info']
  79. if 'product_code' in d:
  80. o.product_code = d['product_code']
  81. if 'status' in d:
  82. o.status = d['status']
  83. if 'user_id' in d:
  84. o.user_id = d['user_id']
  85. return o