AlipayMarketingVoucherStockMatchResponse.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMarketingVoucherStockMatchResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMarketingVoucherStockMatchResponse, self).__init__()
  8. self._exist_list = None
  9. self._not_exist_list = None
  10. @property
  11. def exist_list(self):
  12. return self._exist_list
  13. @exist_list.setter
  14. def exist_list(self, value):
  15. if isinstance(value, list):
  16. self._exist_list = list()
  17. for i in value:
  18. self._exist_list.append(i)
  19. @property
  20. def not_exist_list(self):
  21. return self._not_exist_list
  22. @not_exist_list.setter
  23. def not_exist_list(self, value):
  24. if isinstance(value, list):
  25. self._not_exist_list = list()
  26. for i in value:
  27. self._not_exist_list.append(i)
  28. def parse_response_content(self, response_content):
  29. response = super(AlipayMarketingVoucherStockMatchResponse, self).parse_response_content(response_content)
  30. if 'exist_list' in response:
  31. self.exist_list = response['exist_list']
  32. if 'not_exist_list' in response:
  33. self.not_exist_list = response['not_exist_list']