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