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