AlipayEbppIndustryBillNettingRefundResponse.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.IndustryExtendField import IndustryExtendField
  6. class AlipayEbppIndustryBillNettingRefundResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayEbppIndustryBillNettingRefundResponse, self).__init__()
  9. self._alipay_bill_no = None
  10. self._industry_extend_field_list = None
  11. @property
  12. def alipay_bill_no(self):
  13. return self._alipay_bill_no
  14. @alipay_bill_no.setter
  15. def alipay_bill_no(self, value):
  16. self._alipay_bill_no = value
  17. @property
  18. def industry_extend_field_list(self):
  19. return self._industry_extend_field_list
  20. @industry_extend_field_list.setter
  21. def industry_extend_field_list(self, value):
  22. if isinstance(value, list):
  23. self._industry_extend_field_list = list()
  24. for i in value:
  25. if isinstance(i, IndustryExtendField):
  26. self._industry_extend_field_list.append(i)
  27. else:
  28. self._industry_extend_field_list.append(IndustryExtendField.from_alipay_dict(i))
  29. def parse_response_content(self, response_content):
  30. response = super(AlipayEbppIndustryBillNettingRefundResponse, self).parse_response_content(response_content)
  31. if 'alipay_bill_no' in response:
  32. self.alipay_bill_no = response['alipay_bill_no']
  33. if 'industry_extend_field_list' in response:
  34. self.industry_extend_field_list = response['industry_extend_field_list']