AlipayEcoMycarParkingAgreementQueryResponse.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.UserAdvanceInfo import UserAdvanceInfo
  6. class AlipayEcoMycarParkingAgreementQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayEcoMycarParkingAgreementQueryResponse, self).__init__()
  9. self._advance_status = None
  10. self._agreement_status = None
  11. self._expire_time = None
  12. self._user_advance_info = None
  13. @property
  14. def advance_status(self):
  15. return self._advance_status
  16. @advance_status.setter
  17. def advance_status(self, value):
  18. self._advance_status = value
  19. @property
  20. def agreement_status(self):
  21. return self._agreement_status
  22. @agreement_status.setter
  23. def agreement_status(self, value):
  24. self._agreement_status = value
  25. @property
  26. def expire_time(self):
  27. return self._expire_time
  28. @expire_time.setter
  29. def expire_time(self, value):
  30. self._expire_time = value
  31. @property
  32. def user_advance_info(self):
  33. return self._user_advance_info
  34. @user_advance_info.setter
  35. def user_advance_info(self, value):
  36. if isinstance(value, UserAdvanceInfo):
  37. self._user_advance_info = value
  38. else:
  39. self._user_advance_info = UserAdvanceInfo.from_alipay_dict(value)
  40. def parse_response_content(self, response_content):
  41. response = super(AlipayEcoMycarParkingAgreementQueryResponse, self).parse_response_content(response_content)
  42. if 'advance_status' in response:
  43. self.advance_status = response['advance_status']
  44. if 'agreement_status' in response:
  45. self.agreement_status = response['agreement_status']
  46. if 'expire_time' in response:
  47. self.expire_time = response['expire_time']
  48. if 'user_advance_info' in response:
  49. self.user_advance_info = response['user_advance_info']