AntMerchantExpandOrderQueryResponse.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AntMerchantExpandOrderQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AntMerchantExpandOrderQueryResponse, self).__init__()
  8. self._apply_time = None
  9. self._ext_info = None
  10. self._ip_role_id = None
  11. self._merchant_name = None
  12. self._status = None
  13. @property
  14. def apply_time(self):
  15. return self._apply_time
  16. @apply_time.setter
  17. def apply_time(self, value):
  18. self._apply_time = value
  19. @property
  20. def ext_info(self):
  21. return self._ext_info
  22. @ext_info.setter
  23. def ext_info(self, value):
  24. self._ext_info = value
  25. @property
  26. def ip_role_id(self):
  27. return self._ip_role_id
  28. @ip_role_id.setter
  29. def ip_role_id(self, value):
  30. if isinstance(value, list):
  31. self._ip_role_id = list()
  32. for i in value:
  33. self._ip_role_id.append(i)
  34. @property
  35. def merchant_name(self):
  36. return self._merchant_name
  37. @merchant_name.setter
  38. def merchant_name(self, value):
  39. self._merchant_name = value
  40. @property
  41. def status(self):
  42. return self._status
  43. @status.setter
  44. def status(self, value):
  45. self._status = value
  46. def parse_response_content(self, response_content):
  47. response = super(AntMerchantExpandOrderQueryResponse, self).parse_response_content(response_content)
  48. if 'apply_time' in response:
  49. self.apply_time = response['apply_time']
  50. if 'ext_info' in response:
  51. self.ext_info = response['ext_info']
  52. if 'ip_role_id' in response:
  53. self.ip_role_id = response['ip_role_id']
  54. if 'merchant_name' in response:
  55. self.merchant_name = response['merchant_name']
  56. if 'status' in response:
  57. self.status = response['status']