AlipayEbppIndustryApplyflowQueryModel.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 AlipayEbppIndustryApplyflowQueryModel(object):
  6. def __init__(self):
  7. self._apply_flow_no = None
  8. self._extend_field = None
  9. self._out_apply_no = None
  10. @property
  11. def apply_flow_no(self):
  12. return self._apply_flow_no
  13. @apply_flow_no.setter
  14. def apply_flow_no(self, value):
  15. self._apply_flow_no = value
  16. @property
  17. def extend_field(self):
  18. return self._extend_field
  19. @extend_field.setter
  20. def extend_field(self, value):
  21. self._extend_field = value
  22. @property
  23. def out_apply_no(self):
  24. return self._out_apply_no
  25. @out_apply_no.setter
  26. def out_apply_no(self, value):
  27. self._out_apply_no = value
  28. def to_alipay_dict(self):
  29. params = dict()
  30. if self.apply_flow_no:
  31. if hasattr(self.apply_flow_no, 'to_alipay_dict'):
  32. params['apply_flow_no'] = self.apply_flow_no.to_alipay_dict()
  33. else:
  34. params['apply_flow_no'] = self.apply_flow_no
  35. if self.extend_field:
  36. if hasattr(self.extend_field, 'to_alipay_dict'):
  37. params['extend_field'] = self.extend_field.to_alipay_dict()
  38. else:
  39. params['extend_field'] = self.extend_field
  40. if self.out_apply_no:
  41. if hasattr(self.out_apply_no, 'to_alipay_dict'):
  42. params['out_apply_no'] = self.out_apply_no.to_alipay_dict()
  43. else:
  44. params['out_apply_no'] = self.out_apply_no
  45. return params
  46. @staticmethod
  47. def from_alipay_dict(d):
  48. if not d:
  49. return None
  50. o = AlipayEbppIndustryApplyflowQueryModel()
  51. if 'apply_flow_no' in d:
  52. o.apply_flow_no = d['apply_flow_no']
  53. if 'extend_field' in d:
  54. o.extend_field = d['extend_field']
  55. if 'out_apply_no' in d:
  56. o.out_apply_no = d['out_apply_no']
  57. return o