ApUserMailInfoOpenApiResponse.py 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.constant.ParamConstants import *
  5. class ApUserMailInfoOpenApiResponse(object):
  6. def __init__(self):
  7. self._address = None
  8. self._city = None
  9. self._country = None
  10. self._county_district = None
  11. self._detail_address = None
  12. self._gmt_create = None
  13. self._gmt_modified = None
  14. self._id = None
  15. self._name = None
  16. self._pid = None
  17. self._province = None
  18. self._street = None
  19. self._telephone = None
  20. @property
  21. def address(self):
  22. return self._address
  23. @address.setter
  24. def address(self, value):
  25. self._address = value
  26. @property
  27. def city(self):
  28. return self._city
  29. @city.setter
  30. def city(self, value):
  31. self._city = value
  32. @property
  33. def country(self):
  34. return self._country
  35. @country.setter
  36. def country(self, value):
  37. self._country = value
  38. @property
  39. def county_district(self):
  40. return self._county_district
  41. @county_district.setter
  42. def county_district(self, value):
  43. self._county_district = value
  44. @property
  45. def detail_address(self):
  46. return self._detail_address
  47. @detail_address.setter
  48. def detail_address(self, value):
  49. self._detail_address = value
  50. @property
  51. def gmt_create(self):
  52. return self._gmt_create
  53. @gmt_create.setter
  54. def gmt_create(self, value):
  55. self._gmt_create = value
  56. @property
  57. def gmt_modified(self):
  58. return self._gmt_modified
  59. @gmt_modified.setter
  60. def gmt_modified(self, value):
  61. self._gmt_modified = value
  62. @property
  63. def id(self):
  64. return self._id
  65. @id.setter
  66. def id(self, value):
  67. self._id = value
  68. @property
  69. def name(self):
  70. return self._name
  71. @name.setter
  72. def name(self, value):
  73. self._name = value
  74. @property
  75. def pid(self):
  76. return self._pid
  77. @pid.setter
  78. def pid(self, value):
  79. self._pid = value
  80. @property
  81. def province(self):
  82. return self._province
  83. @province.setter
  84. def province(self, value):
  85. self._province = value
  86. @property
  87. def street(self):
  88. return self._street
  89. @street.setter
  90. def street(self, value):
  91. self._street = value
  92. @property
  93. def telephone(self):
  94. return self._telephone
  95. @telephone.setter
  96. def telephone(self, value):
  97. self._telephone = value
  98. def to_alipay_dict(self):
  99. params = dict()
  100. if self.address:
  101. if hasattr(self.address, 'to_alipay_dict'):
  102. params['address'] = self.address.to_alipay_dict()
  103. else:
  104. params['address'] = self.address
  105. if self.city:
  106. if hasattr(self.city, 'to_alipay_dict'):
  107. params['city'] = self.city.to_alipay_dict()
  108. else:
  109. params['city'] = self.city
  110. if self.country:
  111. if hasattr(self.country, 'to_alipay_dict'):
  112. params['country'] = self.country.to_alipay_dict()
  113. else:
  114. params['country'] = self.country
  115. if self.county_district:
  116. if hasattr(self.county_district, 'to_alipay_dict'):
  117. params['county_district'] = self.county_district.to_alipay_dict()
  118. else:
  119. params['county_district'] = self.county_district
  120. if self.detail_address:
  121. if hasattr(self.detail_address, 'to_alipay_dict'):
  122. params['detail_address'] = self.detail_address.to_alipay_dict()
  123. else:
  124. params['detail_address'] = self.detail_address
  125. if self.gmt_create:
  126. if hasattr(self.gmt_create, 'to_alipay_dict'):
  127. params['gmt_create'] = self.gmt_create.to_alipay_dict()
  128. else:
  129. params['gmt_create'] = self.gmt_create
  130. if self.gmt_modified:
  131. if hasattr(self.gmt_modified, 'to_alipay_dict'):
  132. params['gmt_modified'] = self.gmt_modified.to_alipay_dict()
  133. else:
  134. params['gmt_modified'] = self.gmt_modified
  135. if self.id:
  136. if hasattr(self.id, 'to_alipay_dict'):
  137. params['id'] = self.id.to_alipay_dict()
  138. else:
  139. params['id'] = self.id
  140. if self.name:
  141. if hasattr(self.name, 'to_alipay_dict'):
  142. params['name'] = self.name.to_alipay_dict()
  143. else:
  144. params['name'] = self.name
  145. if self.pid:
  146. if hasattr(self.pid, 'to_alipay_dict'):
  147. params['pid'] = self.pid.to_alipay_dict()
  148. else:
  149. params['pid'] = self.pid
  150. if self.province:
  151. if hasattr(self.province, 'to_alipay_dict'):
  152. params['province'] = self.province.to_alipay_dict()
  153. else:
  154. params['province'] = self.province
  155. if self.street:
  156. if hasattr(self.street, 'to_alipay_dict'):
  157. params['street'] = self.street.to_alipay_dict()
  158. else:
  159. params['street'] = self.street
  160. if self.telephone:
  161. if hasattr(self.telephone, 'to_alipay_dict'):
  162. params['telephone'] = self.telephone.to_alipay_dict()
  163. else:
  164. params['telephone'] = self.telephone
  165. return params
  166. @staticmethod
  167. def from_alipay_dict(d):
  168. if not d:
  169. return None
  170. o = ApUserMailInfoOpenApiResponse()
  171. if 'address' in d:
  172. o.address = d['address']
  173. if 'city' in d:
  174. o.city = d['city']
  175. if 'country' in d:
  176. o.country = d['country']
  177. if 'county_district' in d:
  178. o.county_district = d['county_district']
  179. if 'detail_address' in d:
  180. o.detail_address = d['detail_address']
  181. if 'gmt_create' in d:
  182. o.gmt_create = d['gmt_create']
  183. if 'gmt_modified' in d:
  184. o.gmt_modified = d['gmt_modified']
  185. if 'id' in d:
  186. o.id = d['id']
  187. if 'name' in d:
  188. o.name = d['name']
  189. if 'pid' in d:
  190. o.pid = d['pid']
  191. if 'province' in d:
  192. o.province = d['province']
  193. if 'street' in d:
  194. o.street = d['street']
  195. if 'telephone' in d:
  196. o.telephone = d['telephone']
  197. return o