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