KoubeiMerchantInfoSimpleQueryModel.py 910 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class KoubeiMerchantInfoSimpleQueryModel(object):
  6. def __init__(self):
  7. self._auth_code = None
  8. @property
  9. def auth_code(self):
  10. return self._auth_code
  11. @auth_code.setter
  12. def auth_code(self, value):
  13. self._auth_code = value
  14. def to_alipay_dict(self):
  15. params = dict()
  16. if self.auth_code:
  17. if hasattr(self.auth_code, 'to_alipay_dict'):
  18. params['auth_code'] = self.auth_code.to_alipay_dict()
  19. else:
  20. params['auth_code'] = self.auth_code
  21. return params
  22. @staticmethod
  23. def from_alipay_dict(d):
  24. if not d:
  25. return None
  26. o = KoubeiMerchantInfoSimpleQueryModel()
  27. if 'auth_code' in d:
  28. o.auth_code = d['auth_code']
  29. return o