ZhimaCreditEpSceneTradeConsultResponse.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 ZhimaCreditEpSceneTradeConsultResponse(AlipayResponse):
  6. def __init__(self):
  7. super(ZhimaCreditEpSceneTradeConsultResponse, self).__init__()
  8. self._decision = None
  9. self._order_no = None
  10. self._reject_reason = None
  11. @property
  12. def decision(self):
  13. return self._decision
  14. @decision.setter
  15. def decision(self, value):
  16. self._decision = value
  17. @property
  18. def order_no(self):
  19. return self._order_no
  20. @order_no.setter
  21. def order_no(self, value):
  22. self._order_no = value
  23. @property
  24. def reject_reason(self):
  25. return self._reject_reason
  26. @reject_reason.setter
  27. def reject_reason(self, value):
  28. self._reject_reason = value
  29. def parse_response_content(self, response_content):
  30. response = super(ZhimaCreditEpSceneTradeConsultResponse, self).parse_response_content(response_content)
  31. if 'decision' in response:
  32. self.decision = response['decision']
  33. if 'order_no' in response:
  34. self.order_no = response['order_no']
  35. if 'reject_reason' in response:
  36. self.reject_reason = response['reject_reason']