AlipayOpenAuthAppAesSetModel.py 988 B

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