AlipayEcoMycarParkingConfigQueryResponse.py 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.InterfaceInfoList import InterfaceInfoList
  6. class AlipayEcoMycarParkingConfigQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayEcoMycarParkingConfigQueryResponse, self).__init__()
  9. self._account_no = None
  10. self._interface_info_list = None
  11. self._merchant_logo = None
  12. self._merchant_name = None
  13. self._merchant_service_phone = None
  14. @property
  15. def account_no(self):
  16. return self._account_no
  17. @account_no.setter
  18. def account_no(self, value):
  19. self._account_no = value
  20. @property
  21. def interface_info_list(self):
  22. return self._interface_info_list
  23. @interface_info_list.setter
  24. def interface_info_list(self, value):
  25. if isinstance(value, InterfaceInfoList):
  26. self._interface_info_list = value
  27. else:
  28. self._interface_info_list = InterfaceInfoList.from_alipay_dict(value)
  29. @property
  30. def merchant_logo(self):
  31. return self._merchant_logo
  32. @merchant_logo.setter
  33. def merchant_logo(self, value):
  34. self._merchant_logo = value
  35. @property
  36. def merchant_name(self):
  37. return self._merchant_name
  38. @merchant_name.setter
  39. def merchant_name(self, value):
  40. self._merchant_name = value
  41. @property
  42. def merchant_service_phone(self):
  43. return self._merchant_service_phone
  44. @merchant_service_phone.setter
  45. def merchant_service_phone(self, value):
  46. self._merchant_service_phone = value
  47. def parse_response_content(self, response_content):
  48. response = super(AlipayEcoMycarParkingConfigQueryResponse, self).parse_response_content(response_content)
  49. if 'account_no' in response:
  50. self.account_no = response['account_no']
  51. if 'interface_info_list' in response:
  52. self.interface_info_list = response['interface_info_list']
  53. if 'merchant_logo' in response:
  54. self.merchant_logo = response['merchant_logo']
  55. if 'merchant_name' in response:
  56. self.merchant_name = response['merchant_name']
  57. if 'merchant_service_phone' in response:
  58. self.merchant_service_phone = response['merchant_service_phone']