KoubeiCateringOrderPayCancelResponse.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiCateringOrderPayCancelResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiCateringOrderPayCancelResponse, self).__init__()
  8. self._action = None
  9. self._out_pay_no = None
  10. self._pay_no = None
  11. self._trade_no = None
  12. @property
  13. def action(self):
  14. return self._action
  15. @action.setter
  16. def action(self, value):
  17. self._action = value
  18. @property
  19. def out_pay_no(self):
  20. return self._out_pay_no
  21. @out_pay_no.setter
  22. def out_pay_no(self, value):
  23. self._out_pay_no = value
  24. @property
  25. def pay_no(self):
  26. return self._pay_no
  27. @pay_no.setter
  28. def pay_no(self, value):
  29. self._pay_no = value
  30. @property
  31. def trade_no(self):
  32. return self._trade_no
  33. @trade_no.setter
  34. def trade_no(self, value):
  35. self._trade_no = value
  36. def parse_response_content(self, response_content):
  37. response = super(KoubeiCateringOrderPayCancelResponse, self).parse_response_content(response_content)
  38. if 'action' in response:
  39. self.action = response['action']
  40. if 'out_pay_no' in response:
  41. self.out_pay_no = response['out_pay_no']
  42. if 'pay_no' in response:
  43. self.pay_no = response['pay_no']
  44. if 'trade_no' in response:
  45. self.trade_no = response['trade_no']