123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class ApUserMailInfoOpenApiResponse(object):
- def __init__(self):
- self._address = None
- self._city = None
- self._country = None
- self._county_district = None
- self._detail_address = None
- self._gmt_create = None
- self._gmt_modified = None
- self._id = None
- self._name = None
- self._pid = None
- self._province = None
- self._street = None
- self._telephone = None
- @property
- def address(self):
- return self._address
- @address.setter
- def address(self, value):
- self._address = value
- @property
- def city(self):
- return self._city
- @city.setter
- def city(self, value):
- self._city = value
- @property
- def country(self):
- return self._country
- @country.setter
- def country(self, value):
- self._country = value
- @property
- def county_district(self):
- return self._county_district
- @county_district.setter
- def county_district(self, value):
- self._county_district = value
- @property
- def detail_address(self):
- return self._detail_address
- @detail_address.setter
- def detail_address(self, value):
- self._detail_address = value
- @property
- def gmt_create(self):
- return self._gmt_create
- @gmt_create.setter
- def gmt_create(self, value):
- self._gmt_create = value
- @property
- def gmt_modified(self):
- return self._gmt_modified
- @gmt_modified.setter
- def gmt_modified(self, value):
- self._gmt_modified = value
- @property
- def id(self):
- return self._id
- @id.setter
- def id(self, value):
- self._id = value
- @property
- def name(self):
- return self._name
- @name.setter
- def name(self, value):
- self._name = value
- @property
- def pid(self):
- return self._pid
- @pid.setter
- def pid(self, value):
- self._pid = value
- @property
- def province(self):
- return self._province
- @province.setter
- def province(self, value):
- self._province = value
- @property
- def street(self):
- return self._street
- @street.setter
- def street(self, value):
- self._street = value
- @property
- def telephone(self):
- return self._telephone
- @telephone.setter
- def telephone(self, value):
- self._telephone = value
- def to_alipay_dict(self):
- params = dict()
- if self.address:
- if hasattr(self.address, 'to_alipay_dict'):
- params['address'] = self.address.to_alipay_dict()
- else:
- params['address'] = self.address
- if self.city:
- if hasattr(self.city, 'to_alipay_dict'):
- params['city'] = self.city.to_alipay_dict()
- else:
- params['city'] = self.city
- if self.country:
- if hasattr(self.country, 'to_alipay_dict'):
- params['country'] = self.country.to_alipay_dict()
- else:
- params['country'] = self.country
- if self.county_district:
- if hasattr(self.county_district, 'to_alipay_dict'):
- params['county_district'] = self.county_district.to_alipay_dict()
- else:
- params['county_district'] = self.county_district
- if self.detail_address:
- if hasattr(self.detail_address, 'to_alipay_dict'):
- params['detail_address'] = self.detail_address.to_alipay_dict()
- else:
- params['detail_address'] = self.detail_address
- if self.gmt_create:
- if hasattr(self.gmt_create, 'to_alipay_dict'):
- params['gmt_create'] = self.gmt_create.to_alipay_dict()
- else:
- params['gmt_create'] = self.gmt_create
- if self.gmt_modified:
- if hasattr(self.gmt_modified, 'to_alipay_dict'):
- params['gmt_modified'] = self.gmt_modified.to_alipay_dict()
- else:
- params['gmt_modified'] = self.gmt_modified
- if self.id:
- if hasattr(self.id, 'to_alipay_dict'):
- params['id'] = self.id.to_alipay_dict()
- else:
- params['id'] = self.id
- if self.name:
- if hasattr(self.name, 'to_alipay_dict'):
- params['name'] = self.name.to_alipay_dict()
- else:
- params['name'] = self.name
- if self.pid:
- if hasattr(self.pid, 'to_alipay_dict'):
- params['pid'] = self.pid.to_alipay_dict()
- else:
- params['pid'] = self.pid
- if self.province:
- if hasattr(self.province, 'to_alipay_dict'):
- params['province'] = self.province.to_alipay_dict()
- else:
- params['province'] = self.province
- if self.street:
- if hasattr(self.street, 'to_alipay_dict'):
- params['street'] = self.street.to_alipay_dict()
- else:
- params['street'] = self.street
- if self.telephone:
- if hasattr(self.telephone, 'to_alipay_dict'):
- params['telephone'] = self.telephone.to_alipay_dict()
- else:
- params['telephone'] = self.telephone
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = ApUserMailInfoOpenApiResponse()
- if 'address' in d:
- o.address = d['address']
- if 'city' in d:
- o.city = d['city']
- if 'country' in d:
- o.country = d['country']
- if 'county_district' in d:
- o.county_district = d['county_district']
- if 'detail_address' in d:
- o.detail_address = d['detail_address']
- if 'gmt_create' in d:
- o.gmt_create = d['gmt_create']
- if 'gmt_modified' in d:
- o.gmt_modified = d['gmt_modified']
- if 'id' in d:
- o.id = d['id']
- if 'name' in d:
- o.name = d['name']
- if 'pid' in d:
- o.pid = d['pid']
- if 'province' in d:
- o.province = d['province']
- if 'street' in d:
- o.street = d['street']
- if 'telephone' in d:
- o.telephone = d['telephone']
- return o
|