AlipayEbppConfigChargeinstSearchResponse.py 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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.ChargeInstMode import ChargeInstMode
  6. class AlipayEbppConfigChargeinstSearchResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayEbppConfigChargeinstSearchResponse, self).__init__()
  9. self._charge_inst_mode_result = None
  10. @property
  11. def charge_inst_mode_result(self):
  12. return self._charge_inst_mode_result
  13. @charge_inst_mode_result.setter
  14. def charge_inst_mode_result(self, value):
  15. if isinstance(value, list):
  16. self._charge_inst_mode_result = list()
  17. for i in value:
  18. if isinstance(i, ChargeInstMode):
  19. self._charge_inst_mode_result.append(i)
  20. else:
  21. self._charge_inst_mode_result.append(ChargeInstMode.from_alipay_dict(i))
  22. def parse_response_content(self, response_content):
  23. response = super(AlipayEbppConfigChargeinstSearchResponse, self).parse_response_content(response_content)
  24. if 'charge_inst_mode_result' in response:
  25. self.charge_inst_mode_result = response['charge_inst_mode_result']