AlipayPcreditLoanBeikeaccountInterestfreeModifyResponse.py 1.1 KB

1234567891011121314151617181920212223242526272829
  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.BeikeAccountResponse import BeikeAccountResponse
  6. class AlipayPcreditLoanBeikeaccountInterestfreeModifyResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayPcreditLoanBeikeaccountInterestfreeModifyResponse, self).__init__()
  9. self._beike_account_response = None
  10. @property
  11. def beike_account_response(self):
  12. return self._beike_account_response
  13. @beike_account_response.setter
  14. def beike_account_response(self, value):
  15. if isinstance(value, BeikeAccountResponse):
  16. self._beike_account_response = value
  17. else:
  18. self._beike_account_response = BeikeAccountResponse.from_alipay_dict(value)
  19. def parse_response_content(self, response_content):
  20. response = super(AlipayPcreditLoanBeikeaccountInterestfreeModifyResponse, self).parse_response_content(response_content)
  21. if 'beike_account_response' in response:
  22. self.beike_account_response = response['beike_account_response']