12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayEcoEprintCodeNotifyModel(object):
- def __init__(self):
- self._code = None
- self._store_id = None
- @property
- def code(self):
- return self._code
- @code.setter
- def code(self, value):
- self._code = value
- @property
- def store_id(self):
- return self._store_id
- @store_id.setter
- def store_id(self, value):
- self._store_id = value
- def to_alipay_dict(self):
- params = dict()
- if self.code:
- if hasattr(self.code, 'to_alipay_dict'):
- params['code'] = self.code.to_alipay_dict()
- else:
- params['code'] = self.code
- if self.store_id:
- if hasattr(self.store_id, 'to_alipay_dict'):
- params['store_id'] = self.store_id.to_alipay_dict()
- else:
- params['store_id'] = self.store_id
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayEcoEprintCodeNotifyModel()
- if 'code' in d:
- o.code = d['code']
- if 'store_id' in d:
- o.store_id = d['store_id']
- return o
|