AlipayUserAgreementSignConfirmResponse.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayUserAgreementSignConfirmResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserAgreementSignConfirmResponse, self).__init__()
  8. self._agreement_no = None
  9. self._forex_eligible = None
  10. self._status = None
  11. @property
  12. def agreement_no(self):
  13. return self._agreement_no
  14. @agreement_no.setter
  15. def agreement_no(self, value):
  16. self._agreement_no = value
  17. @property
  18. def forex_eligible(self):
  19. return self._forex_eligible
  20. @forex_eligible.setter
  21. def forex_eligible(self, value):
  22. self._forex_eligible = value
  23. @property
  24. def status(self):
  25. return self._status
  26. @status.setter
  27. def status(self, value):
  28. self._status = value
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayUserAgreementSignConfirmResponse, self).parse_response_content(response_content)
  31. if 'agreement_no' in response:
  32. self.agreement_no = response['agreement_no']
  33. if 'forex_eligible' in response:
  34. self.forex_eligible = response['forex_eligible']
  35. if 'status' in response:
  36. self.status = response['status']