KoubeiCateringOrderPayApplyResponse.py 1.2 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 KoubeiCateringOrderPayApplyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiCateringOrderPayApplyResponse, self).__init__()
  8. self._out_pay_no = None
  9. self._pay_no = None
  10. self._trade_no = None
  11. @property
  12. def out_pay_no(self):
  13. return self._out_pay_no
  14. @out_pay_no.setter
  15. def out_pay_no(self, value):
  16. self._out_pay_no = value
  17. @property
  18. def pay_no(self):
  19. return self._pay_no
  20. @pay_no.setter
  21. def pay_no(self, value):
  22. self._pay_no = value
  23. @property
  24. def trade_no(self):
  25. return self._trade_no
  26. @trade_no.setter
  27. def trade_no(self, value):
  28. self._trade_no = value
  29. def parse_response_content(self, response_content):
  30. response = super(KoubeiCateringOrderPayApplyResponse, self).parse_response_content(response_content)
  31. if 'out_pay_no' in response:
  32. self.out_pay_no = response['out_pay_no']
  33. if 'pay_no' in response:
  34. self.pay_no = response['pay_no']
  35. if 'trade_no' in response:
  36. self.trade_no = response['trade_no']