KoubeiCateringPosQrcodeSyncResponse.py 822 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiCateringPosQrcodeSyncResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiCateringPosQrcodeSyncResponse, self).__init__()
  8. self._desk_ids = None
  9. @property
  10. def desk_ids(self):
  11. return self._desk_ids
  12. @desk_ids.setter
  13. def desk_ids(self, value):
  14. if isinstance(value, list):
  15. self._desk_ids = list()
  16. for i in value:
  17. self._desk_ids.append(i)
  18. def parse_response_content(self, response_content):
  19. response = super(KoubeiCateringPosQrcodeSyncResponse, self).parse_response_content(response_content)
  20. if 'desk_ids' in response:
  21. self.desk_ids = response['desk_ids']