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