AlipayFinancialnetAuthContractMerchantSignResponse.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayFinancialnetAuthContractMerchantSignResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayFinancialnetAuthContractMerchantSignResponse, self).__init__()
  8. self._contract_batch_no = None
  9. self._contract_no_list = None
  10. @property
  11. def contract_batch_no(self):
  12. return self._contract_batch_no
  13. @contract_batch_no.setter
  14. def contract_batch_no(self, value):
  15. self._contract_batch_no = value
  16. @property
  17. def contract_no_list(self):
  18. return self._contract_no_list
  19. @contract_no_list.setter
  20. def contract_no_list(self, value):
  21. if isinstance(value, list):
  22. self._contract_no_list = list()
  23. for i in value:
  24. self._contract_no_list.append(i)
  25. def parse_response_content(self, response_content):
  26. response = super(AlipayFinancialnetAuthContractMerchantSignResponse, self).parse_response_content(response_content)
  27. if 'contract_batch_no' in response:
  28. self.contract_batch_no = response['contract_batch_no']
  29. if 'contract_no_list' in response:
  30. self.contract_no_list = response['contract_no_list']