12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AlipayEbppInvoiceAuthUnsignModel(object):
- def __init__(self):
- self._authorization_type = None
- self._extend_fields = None
- self._m_short_name = None
- self._user_id = None
- @property
- def authorization_type(self):
- return self._authorization_type
- @authorization_type.setter
- def authorization_type(self, value):
- self._authorization_type = value
- @property
- def extend_fields(self):
- return self._extend_fields
- @extend_fields.setter
- def extend_fields(self, value):
- self._extend_fields = value
- @property
- def m_short_name(self):
- return self._m_short_name
- @m_short_name.setter
- def m_short_name(self, value):
- self._m_short_name = value
- @property
- def user_id(self):
- return self._user_id
- @user_id.setter
- def user_id(self, value):
- self._user_id = value
- def to_alipay_dict(self):
- params = dict()
- if self.authorization_type:
- if hasattr(self.authorization_type, 'to_alipay_dict'):
- params['authorization_type'] = self.authorization_type.to_alipay_dict()
- else:
- params['authorization_type'] = self.authorization_type
- if self.extend_fields:
- if hasattr(self.extend_fields, 'to_alipay_dict'):
- params['extend_fields'] = self.extend_fields.to_alipay_dict()
- else:
- params['extend_fields'] = self.extend_fields
- if self.m_short_name:
- if hasattr(self.m_short_name, 'to_alipay_dict'):
- params['m_short_name'] = self.m_short_name.to_alipay_dict()
- else:
- params['m_short_name'] = self.m_short_name
- if self.user_id:
- if hasattr(self.user_id, 'to_alipay_dict'):
- params['user_id'] = self.user_id.to_alipay_dict()
- else:
- params['user_id'] = self.user_id
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AlipayEbppInvoiceAuthUnsignModel()
- if 'authorization_type' in d:
- o.authorization_type = d['authorization_type']
- if 'extend_fields' in d:
- o.extend_fields = d['extend_fields']
- if 'm_short_name' in d:
- o.m_short_name = d['m_short_name']
- if 'user_id' in d:
- o.user_id = d['user_id']
- return o
|