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