AlipayUserElectronicidUserQueryResponse.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayUserElectronicidUserQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserElectronicidUserQueryResponse, self).__init__()
  8. self._address = None
  9. self._birthday = None
  10. self._cert_no = None
  11. self._gender = None
  12. self._name = None
  13. self._nation = None
  14. self._picture = None
  15. self._secret_key = None
  16. self._sign_org = None
  17. self._valid_begin_date = None
  18. self._valid_end_date = None
  19. @property
  20. def address(self):
  21. return self._address
  22. @address.setter
  23. def address(self, value):
  24. self._address = value
  25. @property
  26. def birthday(self):
  27. return self._birthday
  28. @birthday.setter
  29. def birthday(self, value):
  30. self._birthday = value
  31. @property
  32. def cert_no(self):
  33. return self._cert_no
  34. @cert_no.setter
  35. def cert_no(self, value):
  36. self._cert_no = value
  37. @property
  38. def gender(self):
  39. return self._gender
  40. @gender.setter
  41. def gender(self, value):
  42. self._gender = value
  43. @property
  44. def name(self):
  45. return self._name
  46. @name.setter
  47. def name(self, value):
  48. self._name = value
  49. @property
  50. def nation(self):
  51. return self._nation
  52. @nation.setter
  53. def nation(self, value):
  54. self._nation = value
  55. @property
  56. def picture(self):
  57. return self._picture
  58. @picture.setter
  59. def picture(self, value):
  60. self._picture = value
  61. @property
  62. def secret_key(self):
  63. return self._secret_key
  64. @secret_key.setter
  65. def secret_key(self, value):
  66. self._secret_key = value
  67. @property
  68. def sign_org(self):
  69. return self._sign_org
  70. @sign_org.setter
  71. def sign_org(self, value):
  72. self._sign_org = value
  73. @property
  74. def valid_begin_date(self):
  75. return self._valid_begin_date
  76. @valid_begin_date.setter
  77. def valid_begin_date(self, value):
  78. self._valid_begin_date = value
  79. @property
  80. def valid_end_date(self):
  81. return self._valid_end_date
  82. @valid_end_date.setter
  83. def valid_end_date(self, value):
  84. self._valid_end_date = value
  85. def parse_response_content(self, response_content):
  86. response = super(AlipayUserElectronicidUserQueryResponse, self).parse_response_content(response_content)
  87. if 'address' in response:
  88. self.address = response['address']
  89. if 'birthday' in response:
  90. self.birthday = response['birthday']
  91. if 'cert_no' in response:
  92. self.cert_no = response['cert_no']
  93. if 'gender' in response:
  94. self.gender = response['gender']
  95. if 'name' in response:
  96. self.name = response['name']
  97. if 'nation' in response:
  98. self.nation = response['nation']
  99. if 'picture' in response:
  100. self.picture = response['picture']
  101. if 'secret_key' in response:
  102. self.secret_key = response['secret_key']
  103. if 'sign_org' in response:
  104. self.sign_org = response['sign_org']
  105. if 'valid_begin_date' in response:
  106. self.valid_begin_date = response['valid_begin_date']
  107. if 'valid_end_date' in response:
  108. self.valid_end_date = response['valid_end_date']