ZhimaCreditEpSceneRatingApplyModel.py 2.0 KB

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