AlipayPcreditLoanLoanResultQueryResponse.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayPcreditLoanLoanResultQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayPcreditLoanLoanResultQueryResponse, self).__init__()
  8. self._apply_status = None
  9. self._reject_code = None
  10. self._reject_message = None
  11. @property
  12. def apply_status(self):
  13. return self._apply_status
  14. @apply_status.setter
  15. def apply_status(self, value):
  16. self._apply_status = value
  17. @property
  18. def reject_code(self):
  19. return self._reject_code
  20. @reject_code.setter
  21. def reject_code(self, value):
  22. self._reject_code = value
  23. @property
  24. def reject_message(self):
  25. return self._reject_message
  26. @reject_message.setter
  27. def reject_message(self, value):
  28. self._reject_message = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayPcreditLoanLoanResultQueryResponse, self).parse_response_content(response_content)
  31. if 'apply_status' in response:
  32. self.apply_status = response['apply_status']
  33. if 'reject_code' in response:
  34. self.reject_code = response['reject_code']
  35. if 'reject_message' in response:
  36. self.reject_message = response['reject_message']