AlipaySecurityProdSeAppletQueryResponse.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipaySecurityProdSeAppletQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipaySecurityProdSeAppletQueryResponse, self).__init__()
  8. self._apdu_commands = None
  9. self._opt_type = None
  10. self._result_code = None
  11. self._step = None
  12. self._step_code = None
  13. self._sub_opt_type = None
  14. self._total_step = None
  15. @property
  16. def apdu_commands(self):
  17. return self._apdu_commands
  18. @apdu_commands.setter
  19. def apdu_commands(self, value):
  20. self._apdu_commands = value
  21. @property
  22. def opt_type(self):
  23. return self._opt_type
  24. @opt_type.setter
  25. def opt_type(self, value):
  26. self._opt_type = value
  27. @property
  28. def result_code(self):
  29. return self._result_code
  30. @result_code.setter
  31. def result_code(self, value):
  32. self._result_code = value
  33. @property
  34. def step(self):
  35. return self._step
  36. @step.setter
  37. def step(self, value):
  38. self._step = value
  39. @property
  40. def step_code(self):
  41. return self._step_code
  42. @step_code.setter
  43. def step_code(self, value):
  44. self._step_code = value
  45. @property
  46. def sub_opt_type(self):
  47. return self._sub_opt_type
  48. @sub_opt_type.setter
  49. def sub_opt_type(self, value):
  50. self._sub_opt_type = value
  51. @property
  52. def total_step(self):
  53. return self._total_step
  54. @total_step.setter
  55. def total_step(self, value):
  56. self._total_step = value
  57. def parse_response_content(self, response_content):
  58. response = super(AlipaySecurityProdSeAppletQueryResponse, self).parse_response_content(response_content)
  59. if 'apdu_commands' in response:
  60. self.apdu_commands = response['apdu_commands']
  61. if 'opt_type' in response:
  62. self.opt_type = response['opt_type']
  63. if 'result_code' in response:
  64. self.result_code = response['result_code']
  65. if 'step' in response:
  66. self.step = response['step']
  67. if 'step_code' in response:
  68. self.step_code = response['step_code']
  69. if 'sub_opt_type' in response:
  70. self.sub_opt_type = response['sub_opt_type']
  71. if 'total_step' in response:
  72. self.total_step = response['total_step']