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