AlipayIserviceCognitiveOcrBusinesslicenseQueryResponse.py 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayIserviceCognitiveOcrBusinesslicenseQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayIserviceCognitiveOcrBusinesslicenseQueryResponse, self).__init__()
  8. self._address = None
  9. self._business = None
  10. self._captial = None
  11. self._error_content = None
  12. self._establish_date = None
  13. self._name = None
  14. self._person = None
  15. self._reg_num = None
  16. self._request_id = None
  17. self._success = None
  18. self._trace_id = None
  19. self._valid_period = 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 business(self):
  28. return self._business
  29. @business.setter
  30. def business(self, value):
  31. self._business = value
  32. @property
  33. def captial(self):
  34. return self._captial
  35. @captial.setter
  36. def captial(self, value):
  37. self._captial = value
  38. @property
  39. def error_content(self):
  40. return self._error_content
  41. @error_content.setter
  42. def error_content(self, value):
  43. self._error_content = value
  44. @property
  45. def establish_date(self):
  46. return self._establish_date
  47. @establish_date.setter
  48. def establish_date(self, value):
  49. self._establish_date = value
  50. @property
  51. def name(self):
  52. return self._name
  53. @name.setter
  54. def name(self, value):
  55. self._name = value
  56. @property
  57. def person(self):
  58. return self._person
  59. @person.setter
  60. def person(self, value):
  61. self._person = value
  62. @property
  63. def reg_num(self):
  64. return self._reg_num
  65. @reg_num.setter
  66. def reg_num(self, value):
  67. self._reg_num = value
  68. @property
  69. def request_id(self):
  70. return self._request_id
  71. @request_id.setter
  72. def request_id(self, value):
  73. self._request_id = value
  74. @property
  75. def success(self):
  76. return self._success
  77. @success.setter
  78. def success(self, value):
  79. self._success = value
  80. @property
  81. def trace_id(self):
  82. return self._trace_id
  83. @trace_id.setter
  84. def trace_id(self, value):
  85. self._trace_id = value
  86. @property
  87. def valid_period(self):
  88. return self._valid_period
  89. @valid_period.setter
  90. def valid_period(self, value):
  91. self._valid_period = value
  92. def parse_response_content(self, response_content):
  93. response = super(AlipayIserviceCognitiveOcrBusinesslicenseQueryResponse, self).parse_response_content(response_content)
  94. if 'address' in response:
  95. self.address = response['address']
  96. if 'business' in response:
  97. self.business = response['business']
  98. if 'captial' in response:
  99. self.captial = response['captial']
  100. if 'error_content' in response:
  101. self.error_content = response['error_content']
  102. if 'establish_date' in response:
  103. self.establish_date = response['establish_date']
  104. if 'name' in response:
  105. self.name = response['name']
  106. if 'person' in response:
  107. self.person = response['person']
  108. if 'reg_num' in response:
  109. self.reg_num = response['reg_num']
  110. if 'request_id' in response:
  111. self.request_id = response['request_id']
  112. if 'success' in response:
  113. self.success = response['success']
  114. if 'trace_id' in response:
  115. self.trace_id = response['trace_id']
  116. if 'valid_period' in response:
  117. self.valid_period = response['valid_period']