123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class ShopQueryInfo(object):
- def __init__(self):
- self._address = None
- self._is_include_cognate = None
- self._latitude = None
- self._longitude = None
- self._name = None
- self._pid = None
- self._shop_id = None
- self._shop_type = None
- self._store_id = None
- @property
- def address(self):
- return self._address
- @address.setter
- def address(self, value):
- self._address = value
- @property
- def is_include_cognate(self):
- return self._is_include_cognate
- @is_include_cognate.setter
- def is_include_cognate(self, value):
- self._is_include_cognate = value
- @property
- def latitude(self):
- return self._latitude
- @latitude.setter
- def latitude(self, value):
- self._latitude = value
- @property
- def longitude(self):
- return self._longitude
- @longitude.setter
- def longitude(self, value):
- self._longitude = 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 shop_id(self):
- return self._shop_id
- @shop_id.setter
- def shop_id(self, value):
- self._shop_id = value
- @property
- def shop_type(self):
- return self._shop_type
- @shop_type.setter
- def shop_type(self, value):
- self._shop_type = 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.address:
- if hasattr(self.address, 'to_alipay_dict'):
- params['address'] = self.address.to_alipay_dict()
- else:
- params['address'] = self.address
- if self.is_include_cognate:
- if hasattr(self.is_include_cognate, 'to_alipay_dict'):
- params['is_include_cognate'] = self.is_include_cognate.to_alipay_dict()
- else:
- params['is_include_cognate'] = self.is_include_cognate
- if self.latitude:
- if hasattr(self.latitude, 'to_alipay_dict'):
- params['latitude'] = self.latitude.to_alipay_dict()
- else:
- params['latitude'] = self.latitude
- if self.longitude:
- if hasattr(self.longitude, 'to_alipay_dict'):
- params['longitude'] = self.longitude.to_alipay_dict()
- else:
- params['longitude'] = self.longitude
- 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.shop_id:
- if hasattr(self.shop_id, 'to_alipay_dict'):
- params['shop_id'] = self.shop_id.to_alipay_dict()
- else:
- params['shop_id'] = self.shop_id
- if self.shop_type:
- if hasattr(self.shop_type, 'to_alipay_dict'):
- params['shop_type'] = self.shop_type.to_alipay_dict()
- else:
- params['shop_type'] = self.shop_type
- 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 = ShopQueryInfo()
- if 'address' in d:
- o.address = d['address']
- if 'is_include_cognate' in d:
- o.is_include_cognate = d['is_include_cognate']
- if 'latitude' in d:
- o.latitude = d['latitude']
- if 'longitude' in d:
- o.longitude = d['longitude']
- if 'name' in d:
- o.name = d['name']
- if 'pid' in d:
- o.pid = d['pid']
- if 'shop_id' in d:
- o.shop_id = d['shop_id']
- if 'shop_type' in d:
- o.shop_type = d['shop_type']
- if 'store_id' in d:
- o.store_id = d['store_id']
- return o
|