AlipayFundTransGroupfundsUserbillsQueryModel.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayFundTransGroupfundsUserbillsQueryModel(object):
  6. def __init__(self):
  7. self._batch_nos = None
  8. self._current_user_id = None
  9. @property
  10. def batch_nos(self):
  11. return self._batch_nos
  12. @batch_nos.setter
  13. def batch_nos(self, value):
  14. if isinstance(value, list):
  15. self._batch_nos = list()
  16. for i in value:
  17. self._batch_nos.append(i)
  18. @property
  19. def current_user_id(self):
  20. return self._current_user_id
  21. @current_user_id.setter
  22. def current_user_id(self, value):
  23. self._current_user_id = value
  24. def to_alipay_dict(self):
  25. params = dict()
  26. if self.batch_nos:
  27. if isinstance(self.batch_nos, list):
  28. for i in range(0, len(self.batch_nos)):
  29. element = self.batch_nos[i]
  30. if hasattr(element, 'to_alipay_dict'):
  31. self.batch_nos[i] = element.to_alipay_dict()
  32. if hasattr(self.batch_nos, 'to_alipay_dict'):
  33. params['batch_nos'] = self.batch_nos.to_alipay_dict()
  34. else:
  35. params['batch_nos'] = self.batch_nos
  36. if self.current_user_id:
  37. if hasattr(self.current_user_id, 'to_alipay_dict'):
  38. params['current_user_id'] = self.current_user_id.to_alipay_dict()
  39. else:
  40. params['current_user_id'] = self.current_user_id
  41. return params
  42. @staticmethod
  43. def from_alipay_dict(d):
  44. if not d:
  45. return None
  46. o = AlipayFundTransGroupfundsUserbillsQueryModel()
  47. if 'batch_nos' in d:
  48. o.batch_nos = d['batch_nos']
  49. if 'current_user_id' in d:
  50. o.current_user_id = d['current_user_id']
  51. return o