AlipayEcoCplifeCommunityDetailsQueryResponse.py 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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.CPCommServices import CPCommServices
  6. class AlipayEcoCplifeCommunityDetailsQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayEcoCplifeCommunityDetailsQueryResponse, self).__init__()
  9. self._associated_pois = None
  10. self._audit_status = None
  11. self._city_code = None
  12. self._community_address = None
  13. self._community_locations = None
  14. self._community_name = None
  15. self._community_services = None
  16. self._community_status = None
  17. self._district_code = None
  18. self._gmt_created = None
  19. self._gmt_modified = None
  20. self._hotline = None
  21. self._isv_pid = None
  22. self._merchant_firm_name = None
  23. self._merchant_pid = None
  24. self._next_action = None
  25. self._out_community_id = None
  26. self._province_code = None
  27. self._qr_code_image = None
  28. @property
  29. def associated_pois(self):
  30. return self._associated_pois
  31. @associated_pois.setter
  32. def associated_pois(self, value):
  33. if isinstance(value, list):
  34. self._associated_pois = list()
  35. for i in value:
  36. self._associated_pois.append(i)
  37. @property
  38. def audit_status(self):
  39. return self._audit_status
  40. @audit_status.setter
  41. def audit_status(self, value):
  42. self._audit_status = value
  43. @property
  44. def city_code(self):
  45. return self._city_code
  46. @city_code.setter
  47. def city_code(self, value):
  48. self._city_code = value
  49. @property
  50. def community_address(self):
  51. return self._community_address
  52. @community_address.setter
  53. def community_address(self, value):
  54. self._community_address = value
  55. @property
  56. def community_locations(self):
  57. return self._community_locations
  58. @community_locations.setter
  59. def community_locations(self, value):
  60. if isinstance(value, list):
  61. self._community_locations = list()
  62. for i in value:
  63. self._community_locations.append(i)
  64. @property
  65. def community_name(self):
  66. return self._community_name
  67. @community_name.setter
  68. def community_name(self, value):
  69. self._community_name = value
  70. @property
  71. def community_services(self):
  72. return self._community_services
  73. @community_services.setter
  74. def community_services(self, value):
  75. if isinstance(value, list):
  76. self._community_services = list()
  77. for i in value:
  78. if isinstance(i, CPCommServices):
  79. self._community_services.append(i)
  80. else:
  81. self._community_services.append(CPCommServices.from_alipay_dict(i))
  82. @property
  83. def community_status(self):
  84. return self._community_status
  85. @community_status.setter
  86. def community_status(self, value):
  87. self._community_status = value
  88. @property
  89. def district_code(self):
  90. return self._district_code
  91. @district_code.setter
  92. def district_code(self, value):
  93. self._district_code = value
  94. @property
  95. def gmt_created(self):
  96. return self._gmt_created
  97. @gmt_created.setter
  98. def gmt_created(self, value):
  99. self._gmt_created = value
  100. @property
  101. def gmt_modified(self):
  102. return self._gmt_modified
  103. @gmt_modified.setter
  104. def gmt_modified(self, value):
  105. self._gmt_modified = value
  106. @property
  107. def hotline(self):
  108. return self._hotline
  109. @hotline.setter
  110. def hotline(self, value):
  111. self._hotline = value
  112. @property
  113. def isv_pid(self):
  114. return self._isv_pid
  115. @isv_pid.setter
  116. def isv_pid(self, value):
  117. self._isv_pid = value
  118. @property
  119. def merchant_firm_name(self):
  120. return self._merchant_firm_name
  121. @merchant_firm_name.setter
  122. def merchant_firm_name(self, value):
  123. self._merchant_firm_name = value
  124. @property
  125. def merchant_pid(self):
  126. return self._merchant_pid
  127. @merchant_pid.setter
  128. def merchant_pid(self, value):
  129. self._merchant_pid = value
  130. @property
  131. def next_action(self):
  132. return self._next_action
  133. @next_action.setter
  134. def next_action(self, value):
  135. self._next_action = value
  136. @property
  137. def out_community_id(self):
  138. return self._out_community_id
  139. @out_community_id.setter
  140. def out_community_id(self, value):
  141. self._out_community_id = value
  142. @property
  143. def province_code(self):
  144. return self._province_code
  145. @province_code.setter
  146. def province_code(self, value):
  147. self._province_code = value
  148. @property
  149. def qr_code_image(self):
  150. return self._qr_code_image
  151. @qr_code_image.setter
  152. def qr_code_image(self, value):
  153. self._qr_code_image = value
  154. def parse_response_content(self, response_content):
  155. response = super(AlipayEcoCplifeCommunityDetailsQueryResponse, self).parse_response_content(response_content)
  156. if 'associated_pois' in response:
  157. self.associated_pois = response['associated_pois']
  158. if 'audit_status' in response:
  159. self.audit_status = response['audit_status']
  160. if 'city_code' in response:
  161. self.city_code = response['city_code']
  162. if 'community_address' in response:
  163. self.community_address = response['community_address']
  164. if 'community_locations' in response:
  165. self.community_locations = response['community_locations']
  166. if 'community_name' in response:
  167. self.community_name = response['community_name']
  168. if 'community_services' in response:
  169. self.community_services = response['community_services']
  170. if 'community_status' in response:
  171. self.community_status = response['community_status']
  172. if 'district_code' in response:
  173. self.district_code = response['district_code']
  174. if 'gmt_created' in response:
  175. self.gmt_created = response['gmt_created']
  176. if 'gmt_modified' in response:
  177. self.gmt_modified = response['gmt_modified']
  178. if 'hotline' in response:
  179. self.hotline = response['hotline']
  180. if 'isv_pid' in response:
  181. self.isv_pid = response['isv_pid']
  182. if 'merchant_firm_name' in response:
  183. self.merchant_firm_name = response['merchant_firm_name']
  184. if 'merchant_pid' in response:
  185. self.merchant_pid = response['merchant_pid']
  186. if 'next_action' in response:
  187. self.next_action = response['next_action']
  188. if 'out_community_id' in response:
  189. self.out_community_id = response['out_community_id']
  190. if 'province_code' in response:
  191. self.province_code = response['province_code']
  192. if 'qr_code_image' in response:
  193. self.qr_code_image = response['qr_code_image']