AlipayFundTransGroupfundsPayauthConsultModel.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class AlipayFundTransGroupfundsPayauthConsultModel(object):
  6. def __init__(self):
  7. self._current_user_id = None
  8. self._ext_param = None
  9. self._fund_type = None
  10. self._source = None
  11. @property
  12. def current_user_id(self):
  13. return self._current_user_id
  14. @current_user_id.setter
  15. def current_user_id(self, value):
  16. self._current_user_id = value
  17. @property
  18. def ext_param(self):
  19. return self._ext_param
  20. @ext_param.setter
  21. def ext_param(self, value):
  22. self._ext_param = value
  23. @property
  24. def fund_type(self):
  25. return self._fund_type
  26. @fund_type.setter
  27. def fund_type(self, value):
  28. self._fund_type = value
  29. @property
  30. def source(self):
  31. return self._source
  32. @source.setter
  33. def source(self, value):
  34. self._source = value
  35. def to_alipay_dict(self):
  36. params = dict()
  37. if self.current_user_id:
  38. if hasattr(self.current_user_id, 'to_alipay_dict'):
  39. params['current_user_id'] = self.current_user_id.to_alipay_dict()
  40. else:
  41. params['current_user_id'] = self.current_user_id
  42. if self.ext_param:
  43. if hasattr(self.ext_param, 'to_alipay_dict'):
  44. params['ext_param'] = self.ext_param.to_alipay_dict()
  45. else:
  46. params['ext_param'] = self.ext_param
  47. if self.fund_type:
  48. if hasattr(self.fund_type, 'to_alipay_dict'):
  49. params['fund_type'] = self.fund_type.to_alipay_dict()
  50. else:
  51. params['fund_type'] = self.fund_type
  52. if self.source:
  53. if hasattr(self.source, 'to_alipay_dict'):
  54. params['source'] = self.source.to_alipay_dict()
  55. else:
  56. params['source'] = self.source
  57. return params
  58. @staticmethod
  59. def from_alipay_dict(d):
  60. if not d:
  61. return None
  62. o = AlipayFundTransGroupfundsPayauthConsultModel()
  63. if 'current_user_id' in d:
  64. o.current_user_id = d['current_user_id']
  65. if 'ext_param' in d:
  66. o.ext_param = d['ext_param']
  67. if 'fund_type' in d:
  68. o.fund_type = d['fund_type']
  69. if 'source' in d:
  70. o.source = d['source']
  71. return o