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