AlipayOpenPublicQrcodeCreateResponse.py 1.0 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 AlipayOpenPublicQrcodeCreateResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayOpenPublicQrcodeCreateResponse, self).__init__()
  8. self._code_img = None
  9. self._expire_second = None
  10. @property
  11. def code_img(self):
  12. return self._code_img
  13. @code_img.setter
  14. def code_img(self, value):
  15. self._code_img = value
  16. @property
  17. def expire_second(self):
  18. return self._expire_second
  19. @expire_second.setter
  20. def expire_second(self, value):
  21. self._expire_second = value
  22. def parse_response_content(self, response_content):
  23. response = super(AlipayOpenPublicQrcodeCreateResponse, self).parse_response_content(response_content)
  24. if 'code_img' in response:
  25. self.code_img = response['code_img']
  26. if 'expire_second' in response:
  27. self.expire_second = response['expire_second']