AlipayUserGradeQueryResponse.py 921 B

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