AntMerchantExpandMapplyorderQueryResponse.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.MerchantApplyResultRecord import MerchantApplyResultRecord
  6. class AntMerchantExpandMapplyorderQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AntMerchantExpandMapplyorderQueryResponse, self).__init__()
  9. self._order_no = None
  10. self._order_status = None
  11. self._out_biz_no = None
  12. self._result_info = None
  13. @property
  14. def order_no(self):
  15. return self._order_no
  16. @order_no.setter
  17. def order_no(self, value):
  18. self._order_no = value
  19. @property
  20. def order_status(self):
  21. return self._order_status
  22. @order_status.setter
  23. def order_status(self, value):
  24. self._order_status = value
  25. @property
  26. def out_biz_no(self):
  27. return self._out_biz_no
  28. @out_biz_no.setter
  29. def out_biz_no(self, value):
  30. self._out_biz_no = value
  31. @property
  32. def result_info(self):
  33. return self._result_info
  34. @result_info.setter
  35. def result_info(self, value):
  36. if isinstance(value, list):
  37. self._result_info = list()
  38. for i in value:
  39. if isinstance(i, MerchantApplyResultRecord):
  40. self._result_info.append(i)
  41. else:
  42. self._result_info.append(MerchantApplyResultRecord.from_alipay_dict(i))
  43. def parse_response_content(self, response_content):
  44. response = super(AntMerchantExpandMapplyorderQueryResponse, self).parse_response_content(response_content)
  45. if 'order_no' in response:
  46. self.order_no = response['order_no']
  47. if 'order_status' in response:
  48. self.order_status = response['order_status']
  49. if 'out_biz_no' in response:
  50. self.out_biz_no = response['out_biz_no']
  51. if 'result_info' in response:
  52. self.result_info = response['result_info']