AlipayIserviceCognitiveOcrIdcardQueryResponse.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayIserviceCognitiveOcrIdcardQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayIserviceCognitiveOcrIdcardQueryResponse, self).__init__()
  8. self._address = None
  9. self._birth = None
  10. self._end_date = None
  11. self._error_content = None
  12. self._issue = None
  13. self._name = None
  14. self._nationality = None
  15. self._num = None
  16. self._request_id = None
  17. self._sex = None
  18. self._start_date = None
  19. self._success = None
  20. self._trace_id = None
  21. @property
  22. def address(self):
  23. return self._address
  24. @address.setter
  25. def address(self, value):
  26. self._address = value
  27. @property
  28. def birth(self):
  29. return self._birth
  30. @birth.setter
  31. def birth(self, value):
  32. self._birth = value
  33. @property
  34. def end_date(self):
  35. return self._end_date
  36. @end_date.setter
  37. def end_date(self, value):
  38. self._end_date = value
  39. @property
  40. def error_content(self):
  41. return self._error_content
  42. @error_content.setter
  43. def error_content(self, value):
  44. self._error_content = value
  45. @property
  46. def issue(self):
  47. return self._issue
  48. @issue.setter
  49. def issue(self, value):
  50. self._issue = value
  51. @property
  52. def name(self):
  53. return self._name
  54. @name.setter
  55. def name(self, value):
  56. self._name = value
  57. @property
  58. def nationality(self):
  59. return self._nationality
  60. @nationality.setter
  61. def nationality(self, value):
  62. self._nationality = value
  63. @property
  64. def num(self):
  65. return self._num
  66. @num.setter
  67. def num(self, value):
  68. self._num = value
  69. @property
  70. def request_id(self):
  71. return self._request_id
  72. @request_id.setter
  73. def request_id(self, value):
  74. self._request_id = value
  75. @property
  76. def sex(self):
  77. return self._sex
  78. @sex.setter
  79. def sex(self, value):
  80. self._sex = value
  81. @property
  82. def start_date(self):
  83. return self._start_date
  84. @start_date.setter
  85. def start_date(self, value):
  86. self._start_date = value
  87. @property
  88. def success(self):
  89. return self._success
  90. @success.setter
  91. def success(self, value):
  92. self._success = value
  93. @property
  94. def trace_id(self):
  95. return self._trace_id
  96. @trace_id.setter
  97. def trace_id(self, value):
  98. self._trace_id = value
  99. def parse_response_content(self, response_content):
  100. response = super(AlipayIserviceCognitiveOcrIdcardQueryResponse, self).parse_response_content(response_content)
  101. if 'address' in response:
  102. self.address = response['address']
  103. if 'birth' in response:
  104. self.birth = response['birth']
  105. if 'end_date' in response:
  106. self.end_date = response['end_date']
  107. if 'error_content' in response:
  108. self.error_content = response['error_content']
  109. if 'issue' in response:
  110. self.issue = response['issue']
  111. if 'name' in response:
  112. self.name = response['name']
  113. if 'nationality' in response:
  114. self.nationality = response['nationality']
  115. if 'num' in response:
  116. self.num = response['num']
  117. if 'request_id' in response:
  118. self.request_id = response['request_id']
  119. if 'sex' in response:
  120. self.sex = response['sex']
  121. if 'start_date' in response:
  122. self.start_date = response['start_date']
  123. if 'success' in response:
  124. self.success = response['success']
  125. if 'trace_id' in response:
  126. self.trace_id = response['trace_id']