ZhimaCreditEpDataRatingQueryResponse.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 ZhimaCreditEpDataRatingQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(ZhimaCreditEpDataRatingQueryResponse, self).__init__()
  8. self._amount = None
  9. self._biz_code = None
  10. self._credit_level = None
  11. self._decision = None
  12. self._ext_info = None
  13. self._relation_order_no = None
  14. self._transaction_id = None
  15. @property
  16. def amount(self):
  17. return self._amount
  18. @amount.setter
  19. def amount(self, value):
  20. self._amount = value
  21. @property
  22. def biz_code(self):
  23. return self._biz_code
  24. @biz_code.setter
  25. def biz_code(self, value):
  26. self._biz_code = value
  27. @property
  28. def credit_level(self):
  29. return self._credit_level
  30. @credit_level.setter
  31. def credit_level(self, value):
  32. self._credit_level = value
  33. @property
  34. def decision(self):
  35. return self._decision
  36. @decision.setter
  37. def decision(self, value):
  38. self._decision = value
  39. @property
  40. def ext_info(self):
  41. return self._ext_info
  42. @ext_info.setter
  43. def ext_info(self, value):
  44. self._ext_info = value
  45. @property
  46. def relation_order_no(self):
  47. return self._relation_order_no
  48. @relation_order_no.setter
  49. def relation_order_no(self, value):
  50. self._relation_order_no = value
  51. @property
  52. def transaction_id(self):
  53. return self._transaction_id
  54. @transaction_id.setter
  55. def transaction_id(self, value):
  56. self._transaction_id = value
  57. def parse_response_content(self, response_content):
  58. response = super(ZhimaCreditEpDataRatingQueryResponse, self).parse_response_content(response_content)
  59. if 'amount' in response:
  60. self.amount = response['amount']
  61. if 'biz_code' in response:
  62. self.biz_code = response['biz_code']
  63. if 'credit_level' in response:
  64. self.credit_level = response['credit_level']
  65. if 'decision' in response:
  66. self.decision = response['decision']
  67. if 'ext_info' in response:
  68. self.ext_info = response['ext_info']
  69. if 'relation_order_no' in response:
  70. self.relation_order_no = response['relation_order_no']
  71. if 'transaction_id' in response:
  72. self.transaction_id = response['transaction_id']