AntMerchantExpandShopQueryResponse.py 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.AddressInfo import AddressInfo
  6. from alipay.aop.api.domain.ShopBusinessTime import ShopBusinessTime
  7. from alipay.aop.api.domain.ContactInfo import ContactInfo
  8. from alipay.aop.api.domain.ShopExtInfo import ShopExtInfo
  9. from alipay.aop.api.domain.IndustryQualificationInfo import IndustryQualificationInfo
  10. class AntMerchantExpandShopQueryResponse(AlipayResponse):
  11. def __init__(self):
  12. super(AntMerchantExpandShopQueryResponse, self).__init__()
  13. self._brand_id = None
  14. self._business_address = None
  15. self._business_time = None
  16. self._cert_image = None
  17. self._cert_name = None
  18. self._cert_no = None
  19. self._cert_type = None
  20. self._contact_infos = None
  21. self._contact_mobile = None
  22. self._contact_phone = None
  23. self._ext_infos = None
  24. self._ip_role_id = None
  25. self._legal_cert_no = None
  26. self._legal_name = None
  27. self._license_auth_letter_image = None
  28. self._memo = None
  29. self._out_door_images = None
  30. self._qualifications = None
  31. self._scene = None
  32. self._settle_alipay_logon_id = None
  33. self._shop_category = None
  34. self._shop_id = None
  35. self._shop_name = None
  36. self._shop_type = None
  37. self._store_id = None
  38. @property
  39. def brand_id(self):
  40. return self._brand_id
  41. @brand_id.setter
  42. def brand_id(self, value):
  43. self._brand_id = value
  44. @property
  45. def business_address(self):
  46. return self._business_address
  47. @business_address.setter
  48. def business_address(self, value):
  49. if isinstance(value, AddressInfo):
  50. self._business_address = value
  51. else:
  52. self._business_address = AddressInfo.from_alipay_dict(value)
  53. @property
  54. def business_time(self):
  55. return self._business_time
  56. @business_time.setter
  57. def business_time(self, value):
  58. if isinstance(value, list):
  59. self._business_time = list()
  60. for i in value:
  61. if isinstance(i, ShopBusinessTime):
  62. self._business_time.append(i)
  63. else:
  64. self._business_time.append(ShopBusinessTime.from_alipay_dict(i))
  65. @property
  66. def cert_image(self):
  67. return self._cert_image
  68. @cert_image.setter
  69. def cert_image(self, value):
  70. self._cert_image = value
  71. @property
  72. def cert_name(self):
  73. return self._cert_name
  74. @cert_name.setter
  75. def cert_name(self, value):
  76. self._cert_name = value
  77. @property
  78. def cert_no(self):
  79. return self._cert_no
  80. @cert_no.setter
  81. def cert_no(self, value):
  82. self._cert_no = value
  83. @property
  84. def cert_type(self):
  85. return self._cert_type
  86. @cert_type.setter
  87. def cert_type(self, value):
  88. self._cert_type = value
  89. @property
  90. def contact_infos(self):
  91. return self._contact_infos
  92. @contact_infos.setter
  93. def contact_infos(self, value):
  94. if isinstance(value, list):
  95. self._contact_infos = list()
  96. for i in value:
  97. if isinstance(i, ContactInfo):
  98. self._contact_infos.append(i)
  99. else:
  100. self._contact_infos.append(ContactInfo.from_alipay_dict(i))
  101. @property
  102. def contact_mobile(self):
  103. return self._contact_mobile
  104. @contact_mobile.setter
  105. def contact_mobile(self, value):
  106. self._contact_mobile = value
  107. @property
  108. def contact_phone(self):
  109. return self._contact_phone
  110. @contact_phone.setter
  111. def contact_phone(self, value):
  112. self._contact_phone = value
  113. @property
  114. def ext_infos(self):
  115. return self._ext_infos
  116. @ext_infos.setter
  117. def ext_infos(self, value):
  118. if isinstance(value, list):
  119. self._ext_infos = list()
  120. for i in value:
  121. if isinstance(i, ShopExtInfo):
  122. self._ext_infos.append(i)
  123. else:
  124. self._ext_infos.append(ShopExtInfo.from_alipay_dict(i))
  125. @property
  126. def ip_role_id(self):
  127. return self._ip_role_id
  128. @ip_role_id.setter
  129. def ip_role_id(self, value):
  130. self._ip_role_id = value
  131. @property
  132. def legal_cert_no(self):
  133. return self._legal_cert_no
  134. @legal_cert_no.setter
  135. def legal_cert_no(self, value):
  136. self._legal_cert_no = value
  137. @property
  138. def legal_name(self):
  139. return self._legal_name
  140. @legal_name.setter
  141. def legal_name(self, value):
  142. self._legal_name = value
  143. @property
  144. def license_auth_letter_image(self):
  145. return self._license_auth_letter_image
  146. @license_auth_letter_image.setter
  147. def license_auth_letter_image(self, value):
  148. self._license_auth_letter_image = value
  149. @property
  150. def memo(self):
  151. return self._memo
  152. @memo.setter
  153. def memo(self, value):
  154. self._memo = value
  155. @property
  156. def out_door_images(self):
  157. return self._out_door_images
  158. @out_door_images.setter
  159. def out_door_images(self, value):
  160. if isinstance(value, list):
  161. self._out_door_images = list()
  162. for i in value:
  163. self._out_door_images.append(i)
  164. @property
  165. def qualifications(self):
  166. return self._qualifications
  167. @qualifications.setter
  168. def qualifications(self, value):
  169. if isinstance(value, list):
  170. self._qualifications = list()
  171. for i in value:
  172. if isinstance(i, IndustryQualificationInfo):
  173. self._qualifications.append(i)
  174. else:
  175. self._qualifications.append(IndustryQualificationInfo.from_alipay_dict(i))
  176. @property
  177. def scene(self):
  178. return self._scene
  179. @scene.setter
  180. def scene(self, value):
  181. self._scene = value
  182. @property
  183. def settle_alipay_logon_id(self):
  184. return self._settle_alipay_logon_id
  185. @settle_alipay_logon_id.setter
  186. def settle_alipay_logon_id(self, value):
  187. self._settle_alipay_logon_id = value
  188. @property
  189. def shop_category(self):
  190. return self._shop_category
  191. @shop_category.setter
  192. def shop_category(self, value):
  193. self._shop_category = value
  194. @property
  195. def shop_id(self):
  196. return self._shop_id
  197. @shop_id.setter
  198. def shop_id(self, value):
  199. self._shop_id = value
  200. @property
  201. def shop_name(self):
  202. return self._shop_name
  203. @shop_name.setter
  204. def shop_name(self, value):
  205. self._shop_name = value
  206. @property
  207. def shop_type(self):
  208. return self._shop_type
  209. @shop_type.setter
  210. def shop_type(self, value):
  211. self._shop_type = value
  212. @property
  213. def store_id(self):
  214. return self._store_id
  215. @store_id.setter
  216. def store_id(self, value):
  217. self._store_id = value
  218. def parse_response_content(self, response_content):
  219. response = super(AntMerchantExpandShopQueryResponse, self).parse_response_content(response_content)
  220. if 'brand_id' in response:
  221. self.brand_id = response['brand_id']
  222. if 'business_address' in response:
  223. self.business_address = response['business_address']
  224. if 'business_time' in response:
  225. self.business_time = response['business_time']
  226. if 'cert_image' in response:
  227. self.cert_image = response['cert_image']
  228. if 'cert_name' in response:
  229. self.cert_name = response['cert_name']
  230. if 'cert_no' in response:
  231. self.cert_no = response['cert_no']
  232. if 'cert_type' in response:
  233. self.cert_type = response['cert_type']
  234. if 'contact_infos' in response:
  235. self.contact_infos = response['contact_infos']
  236. if 'contact_mobile' in response:
  237. self.contact_mobile = response['contact_mobile']
  238. if 'contact_phone' in response:
  239. self.contact_phone = response['contact_phone']
  240. if 'ext_infos' in response:
  241. self.ext_infos = response['ext_infos']
  242. if 'ip_role_id' in response:
  243. self.ip_role_id = response['ip_role_id']
  244. if 'legal_cert_no' in response:
  245. self.legal_cert_no = response['legal_cert_no']
  246. if 'legal_name' in response:
  247. self.legal_name = response['legal_name']
  248. if 'license_auth_letter_image' in response:
  249. self.license_auth_letter_image = response['license_auth_letter_image']
  250. if 'memo' in response:
  251. self.memo = response['memo']
  252. if 'out_door_images' in response:
  253. self.out_door_images = response['out_door_images']
  254. if 'qualifications' in response:
  255. self.qualifications = response['qualifications']
  256. if 'scene' in response:
  257. self.scene = response['scene']
  258. if 'settle_alipay_logon_id' in response:
  259. self.settle_alipay_logon_id = response['settle_alipay_logon_id']
  260. if 'shop_category' in response:
  261. self.shop_category = response['shop_category']
  262. if 'shop_id' in response:
  263. self.shop_id = response['shop_id']
  264. if 'shop_name' in response:
  265. self.shop_name = response['shop_name']
  266. if 'shop_type' in response:
  267. self.shop_type = response['shop_type']
  268. if 'store_id' in response:
  269. self.store_id = response['store_id']