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