KoubeiSalesLeadsShopleadsCreateModel.py 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class KoubeiSalesLeadsShopleadsCreateModel(object):
  6. def __init__(self):
  7. self._address = None
  8. self._branch_name = None
  9. self._brand_id = None
  10. self._category_id = None
  11. self._city_id = None
  12. self._company_name = None
  13. self._contacts_name = None
  14. self._contacts_no = None
  15. self._country_id = None
  16. self._district_id = None
  17. self._ext_info = None
  18. self._head_shop_name = None
  19. self._latitude = None
  20. self._longitude = None
  21. self._memo = None
  22. self._province_id = None
  23. self._register_date = None
  24. self._request_id = None
  25. @property
  26. def address(self):
  27. return self._address
  28. @address.setter
  29. def address(self, value):
  30. self._address = value
  31. @property
  32. def branch_name(self):
  33. return self._branch_name
  34. @branch_name.setter
  35. def branch_name(self, value):
  36. self._branch_name = value
  37. @property
  38. def brand_id(self):
  39. return self._brand_id
  40. @brand_id.setter
  41. def brand_id(self, value):
  42. self._brand_id = value
  43. @property
  44. def category_id(self):
  45. return self._category_id
  46. @category_id.setter
  47. def category_id(self, value):
  48. self._category_id = value
  49. @property
  50. def city_id(self):
  51. return self._city_id
  52. @city_id.setter
  53. def city_id(self, value):
  54. self._city_id = value
  55. @property
  56. def company_name(self):
  57. return self._company_name
  58. @company_name.setter
  59. def company_name(self, value):
  60. self._company_name = value
  61. @property
  62. def contacts_name(self):
  63. return self._contacts_name
  64. @contacts_name.setter
  65. def contacts_name(self, value):
  66. self._contacts_name = value
  67. @property
  68. def contacts_no(self):
  69. return self._contacts_no
  70. @contacts_no.setter
  71. def contacts_no(self, value):
  72. self._contacts_no = value
  73. @property
  74. def country_id(self):
  75. return self._country_id
  76. @country_id.setter
  77. def country_id(self, value):
  78. self._country_id = value
  79. @property
  80. def district_id(self):
  81. return self._district_id
  82. @district_id.setter
  83. def district_id(self, value):
  84. self._district_id = value
  85. @property
  86. def ext_info(self):
  87. return self._ext_info
  88. @ext_info.setter
  89. def ext_info(self, value):
  90. self._ext_info = value
  91. @property
  92. def head_shop_name(self):
  93. return self._head_shop_name
  94. @head_shop_name.setter
  95. def head_shop_name(self, value):
  96. self._head_shop_name = value
  97. @property
  98. def latitude(self):
  99. return self._latitude
  100. @latitude.setter
  101. def latitude(self, value):
  102. self._latitude = value
  103. @property
  104. def longitude(self):
  105. return self._longitude
  106. @longitude.setter
  107. def longitude(self, value):
  108. self._longitude = value
  109. @property
  110. def memo(self):
  111. return self._memo
  112. @memo.setter
  113. def memo(self, value):
  114. self._memo = value
  115. @property
  116. def province_id(self):
  117. return self._province_id
  118. @province_id.setter
  119. def province_id(self, value):
  120. self._province_id = value
  121. @property
  122. def register_date(self):
  123. return self._register_date
  124. @register_date.setter
  125. def register_date(self, value):
  126. self._register_date = value
  127. @property
  128. def request_id(self):
  129. return self._request_id
  130. @request_id.setter
  131. def request_id(self, value):
  132. self._request_id = value
  133. def to_alipay_dict(self):
  134. params = dict()
  135. if self.address:
  136. if hasattr(self.address, 'to_alipay_dict'):
  137. params['address'] = self.address.to_alipay_dict()
  138. else:
  139. params['address'] = self.address
  140. if self.branch_name:
  141. if hasattr(self.branch_name, 'to_alipay_dict'):
  142. params['branch_name'] = self.branch_name.to_alipay_dict()
  143. else:
  144. params['branch_name'] = self.branch_name
  145. if self.brand_id:
  146. if hasattr(self.brand_id, 'to_alipay_dict'):
  147. params['brand_id'] = self.brand_id.to_alipay_dict()
  148. else:
  149. params['brand_id'] = self.brand_id
  150. if self.category_id:
  151. if hasattr(self.category_id, 'to_alipay_dict'):
  152. params['category_id'] = self.category_id.to_alipay_dict()
  153. else:
  154. params['category_id'] = self.category_id
  155. if self.city_id:
  156. if hasattr(self.city_id, 'to_alipay_dict'):
  157. params['city_id'] = self.city_id.to_alipay_dict()
  158. else:
  159. params['city_id'] = self.city_id
  160. if self.company_name:
  161. if hasattr(self.company_name, 'to_alipay_dict'):
  162. params['company_name'] = self.company_name.to_alipay_dict()
  163. else:
  164. params['company_name'] = self.company_name
  165. if self.contacts_name:
  166. if hasattr(self.contacts_name, 'to_alipay_dict'):
  167. params['contacts_name'] = self.contacts_name.to_alipay_dict()
  168. else:
  169. params['contacts_name'] = self.contacts_name
  170. if self.contacts_no:
  171. if hasattr(self.contacts_no, 'to_alipay_dict'):
  172. params['contacts_no'] = self.contacts_no.to_alipay_dict()
  173. else:
  174. params['contacts_no'] = self.contacts_no
  175. if self.country_id:
  176. if hasattr(self.country_id, 'to_alipay_dict'):
  177. params['country_id'] = self.country_id.to_alipay_dict()
  178. else:
  179. params['country_id'] = self.country_id
  180. if self.district_id:
  181. if hasattr(self.district_id, 'to_alipay_dict'):
  182. params['district_id'] = self.district_id.to_alipay_dict()
  183. else:
  184. params['district_id'] = self.district_id
  185. if self.ext_info:
  186. if hasattr(self.ext_info, 'to_alipay_dict'):
  187. params['ext_info'] = self.ext_info.to_alipay_dict()
  188. else:
  189. params['ext_info'] = self.ext_info
  190. if self.head_shop_name:
  191. if hasattr(self.head_shop_name, 'to_alipay_dict'):
  192. params['head_shop_name'] = self.head_shop_name.to_alipay_dict()
  193. else:
  194. params['head_shop_name'] = self.head_shop_name
  195. if self.latitude:
  196. if hasattr(self.latitude, 'to_alipay_dict'):
  197. params['latitude'] = self.latitude.to_alipay_dict()
  198. else:
  199. params['latitude'] = self.latitude
  200. if self.longitude:
  201. if hasattr(self.longitude, 'to_alipay_dict'):
  202. params['longitude'] = self.longitude.to_alipay_dict()
  203. else:
  204. params['longitude'] = self.longitude
  205. if self.memo:
  206. if hasattr(self.memo, 'to_alipay_dict'):
  207. params['memo'] = self.memo.to_alipay_dict()
  208. else:
  209. params['memo'] = self.memo
  210. if self.province_id:
  211. if hasattr(self.province_id, 'to_alipay_dict'):
  212. params['province_id'] = self.province_id.to_alipay_dict()
  213. else:
  214. params['province_id'] = self.province_id
  215. if self.register_date:
  216. if hasattr(self.register_date, 'to_alipay_dict'):
  217. params['register_date'] = self.register_date.to_alipay_dict()
  218. else:
  219. params['register_date'] = self.register_date
  220. if self.request_id:
  221. if hasattr(self.request_id, 'to_alipay_dict'):
  222. params['request_id'] = self.request_id.to_alipay_dict()
  223. else:
  224. params['request_id'] = self.request_id
  225. return params
  226. @staticmethod
  227. def from_alipay_dict(d):
  228. if not d:
  229. return None
  230. o = KoubeiSalesLeadsShopleadsCreateModel()
  231. if 'address' in d:
  232. o.address = d['address']
  233. if 'branch_name' in d:
  234. o.branch_name = d['branch_name']
  235. if 'brand_id' in d:
  236. o.brand_id = d['brand_id']
  237. if 'category_id' in d:
  238. o.category_id = d['category_id']
  239. if 'city_id' in d:
  240. o.city_id = d['city_id']
  241. if 'company_name' in d:
  242. o.company_name = d['company_name']
  243. if 'contacts_name' in d:
  244. o.contacts_name = d['contacts_name']
  245. if 'contacts_no' in d:
  246. o.contacts_no = d['contacts_no']
  247. if 'country_id' in d:
  248. o.country_id = d['country_id']
  249. if 'district_id' in d:
  250. o.district_id = d['district_id']
  251. if 'ext_info' in d:
  252. o.ext_info = d['ext_info']
  253. if 'head_shop_name' in d:
  254. o.head_shop_name = d['head_shop_name']
  255. if 'latitude' in d:
  256. o.latitude = d['latitude']
  257. if 'longitude' in d:
  258. o.longitude = d['longitude']
  259. if 'memo' in d:
  260. o.memo = d['memo']
  261. if 'province_id' in d:
  262. o.province_id = d['province_id']
  263. if 'register_date' in d:
  264. o.register_date = d['register_date']
  265. if 'request_id' in d:
  266. o.request_id = d['request_id']
  267. return o