123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayEcoEprintActionNotifyModel(object):
- def __init__(self):
- self._eprint_sign = None
- self._machine_code = None
- self._oauth_type = None
- self._order_id = None
- self._push_time = None
- self._state = None
- @property
- def eprint_sign(self):
- return self._eprint_sign
- @eprint_sign.setter
- def eprint_sign(self, value):
- self._eprint_sign = value
- @property
- def machine_code(self):
- return self._machine_code
- @machine_code.setter
- def machine_code(self, value):
- self._machine_code = value
- @property
- def oauth_type(self):
- return self._oauth_type
- @oauth_type.setter
- def oauth_type(self, value):
- self._oauth_type = value
- @property
- def order_id(self):
- return self._order_id
- @order_id.setter
- def order_id(self, value):
- self._order_id = value
- @property
- def push_time(self):
- return self._push_time
- @push_time.setter
- def push_time(self, value):
- self._push_time = value
- @property
- def state(self):
- return self._state
- @state.setter
- def state(self, value):
- self._state = value
- def to_alipay_dict(self):
- params = dict()
- if self.eprint_sign:
- if hasattr(self.eprint_sign, 'to_alipay_dict'):
- params['eprint_sign'] = self.eprint_sign.to_alipay_dict()
- else:
- params['eprint_sign'] = self.eprint_sign
- if self.machine_code:
- if hasattr(self.machine_code, 'to_alipay_dict'):
- params['machine_code'] = self.machine_code.to_alipay_dict()
- else:
- params['machine_code'] = self.machine_code
- if self.oauth_type:
- if hasattr(self.oauth_type, 'to_alipay_dict'):
- params['oauth_type'] = self.oauth_type.to_alipay_dict()
- else:
- params['oauth_type'] = self.oauth_type
- if self.order_id:
- if hasattr(self.order_id, 'to_alipay_dict'):
- params['order_id'] = self.order_id.to_alipay_dict()
- else:
- params['order_id'] = self.order_id
- if self.push_time:
- if hasattr(self.push_time, 'to_alipay_dict'):
- params['push_time'] = self.push_time.to_alipay_dict()
- else:
- params['push_time'] = self.push_time
- if self.state:
- if hasattr(self.state, 'to_alipay_dict'):
- params['state'] = self.state.to_alipay_dict()
- else:
- params['state'] = self.state
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayEcoEprintActionNotifyModel()
- if 'eprint_sign' in d:
- o.eprint_sign = d['eprint_sign']
- if 'machine_code' in d:
- o.machine_code = d['machine_code']
- if 'oauth_type' in d:
- o.oauth_type = d['oauth_type']
- if 'order_id' in d:
- o.order_id = d['order_id']
- if 'push_time' in d:
- o.push_time = d['push_time']
- if 'state' in d:
- o.state = d['state']
- return o
|