AlipayUserUnicomDataQueryResponse.py 742 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayUserUnicomDataQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserUnicomDataQueryResponse, self).__init__()
  8. self._data_balance = None
  9. @property
  10. def data_balance(self):
  11. return self._data_balance
  12. @data_balance.setter
  13. def data_balance(self, value):
  14. self._data_balance = value
  15. def parse_response_content(self, response_content):
  16. response = super(AlipayUserUnicomDataQueryResponse, self).parse_response_content(response_content)
  17. if 'data_balance' in response:
  18. self.data_balance = response['data_balance']