AlipayFundTransGroupfundsFundbillsQueryModel.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayFundTransGroupfundsFundbillsQueryModel(object):
  6. def __init__(self):
  7. self._batch_no = None
  8. self._current_user_id = None
  9. self._ext_param = None
  10. self._query_type = None
  11. self._source = None
  12. @property
  13. def batch_no(self):
  14. return self._batch_no
  15. @batch_no.setter
  16. def batch_no(self, value):
  17. self._batch_no = value
  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. @property
  25. def ext_param(self):
  26. return self._ext_param
  27. @ext_param.setter
  28. def ext_param(self, value):
  29. self._ext_param = value
  30. @property
  31. def query_type(self):
  32. return self._query_type
  33. @query_type.setter
  34. def query_type(self, value):
  35. self._query_type = value
  36. @property
  37. def source(self):
  38. return self._source
  39. @source.setter
  40. def source(self, value):
  41. self._source = value
  42. def to_alipay_dict(self):
  43. params = dict()
  44. if self.batch_no:
  45. if hasattr(self.batch_no, 'to_alipay_dict'):
  46. params['batch_no'] = self.batch_no.to_alipay_dict()
  47. else:
  48. params['batch_no'] = self.batch_no
  49. if self.current_user_id:
  50. if hasattr(self.current_user_id, 'to_alipay_dict'):
  51. params['current_user_id'] = self.current_user_id.to_alipay_dict()
  52. else:
  53. params['current_user_id'] = self.current_user_id
  54. if self.ext_param:
  55. if hasattr(self.ext_param, 'to_alipay_dict'):
  56. params['ext_param'] = self.ext_param.to_alipay_dict()
  57. else:
  58. params['ext_param'] = self.ext_param
  59. if self.query_type:
  60. if hasattr(self.query_type, 'to_alipay_dict'):
  61. params['query_type'] = self.query_type.to_alipay_dict()
  62. else:
  63. params['query_type'] = self.query_type
  64. if self.source:
  65. if hasattr(self.source, 'to_alipay_dict'):
  66. params['source'] = self.source.to_alipay_dict()
  67. else:
  68. params['source'] = self.source
  69. return params
  70. @staticmethod
  71. def from_alipay_dict(d):
  72. if not d:
  73. return None
  74. o = AlipayFundTransGroupfundsFundbillsQueryModel()
  75. if 'batch_no' in d:
  76. o.batch_no = d['batch_no']
  77. if 'current_user_id' in d:
  78. o.current_user_id = d['current_user_id']
  79. if 'ext_param' in d:
  80. o.ext_param = d['ext_param']
  81. if 'query_type' in d:
  82. o.query_type = d['query_type']
  83. if 'source' in d:
  84. o.source = d['source']
  85. return o