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