AlipayMarketingVoucherStockQueryResponse.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayMarketingVoucherStockQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayMarketingVoucherStockQueryResponse, self).__init__()
  8. self._available_count = None
  9. self._total_count = None
  10. @property
  11. def available_count(self):
  12. return self._available_count
  13. @available_count.setter
  14. def available_count(self, value):
  15. self._available_count = value
  16. @property
  17. def total_count(self):
  18. return self._total_count
  19. @total_count.setter
  20. def total_count(self, value):
  21. self._total_count = value
  22. def parse_response_content(self, response_content):
  23. response = super(AlipayMarketingVoucherStockQueryResponse, self).parse_response_content(response_content)
  24. if 'available_count' in response:
  25. self.available_count = response['available_count']
  26. if 'total_count' in response:
  27. self.total_count = response['total_count']