KoubeiCateringOrderPayResponse.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiCateringOrderPayResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiCateringOrderPayResponse, self).__init__()
  8. self._biz_type = None
  9. self._merchant_pid = None
  10. self._shop_id = None
  11. self._table_num = None
  12. self._user_id = None
  13. @property
  14. def biz_type(self):
  15. return self._biz_type
  16. @biz_type.setter
  17. def biz_type(self, value):
  18. self._biz_type = value
  19. @property
  20. def merchant_pid(self):
  21. return self._merchant_pid
  22. @merchant_pid.setter
  23. def merchant_pid(self, value):
  24. self._merchant_pid = value
  25. @property
  26. def shop_id(self):
  27. return self._shop_id
  28. @shop_id.setter
  29. def shop_id(self, value):
  30. self._shop_id = value
  31. @property
  32. def table_num(self):
  33. return self._table_num
  34. @table_num.setter
  35. def table_num(self, value):
  36. self._table_num = value
  37. @property
  38. def user_id(self):
  39. return self._user_id
  40. @user_id.setter
  41. def user_id(self, value):
  42. self._user_id = value
  43. def parse_response_content(self, response_content):
  44. response = super(KoubeiCateringOrderPayResponse, self).parse_response_content(response_content)
  45. if 'biz_type' in response:
  46. self.biz_type = response['biz_type']
  47. if 'merchant_pid' in response:
  48. self.merchant_pid = response['merchant_pid']
  49. if 'shop_id' in response:
  50. self.shop_id = response['shop_id']
  51. if 'table_num' in response:
  52. self.table_num = response['table_num']
  53. if 'user_id' in response:
  54. self.user_id = response['user_id']