AlipayEbppInvoiceTitlelibraryDetailQueryResponse.py 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayEbppInvoiceTitlelibraryDetailQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEbppInvoiceTitlelibraryDetailQueryResponse, self).__init__()
  8. self._address = None
  9. self._bank_account = None
  10. self._bank_name = None
  11. self._register_no = None
  12. self._telephone = None
  13. self._title_name = None
  14. @property
  15. def address(self):
  16. return self._address
  17. @address.setter
  18. def address(self, value):
  19. self._address = value
  20. @property
  21. def bank_account(self):
  22. return self._bank_account
  23. @bank_account.setter
  24. def bank_account(self, value):
  25. self._bank_account = value
  26. @property
  27. def bank_name(self):
  28. return self._bank_name
  29. @bank_name.setter
  30. def bank_name(self, value):
  31. self._bank_name = value
  32. @property
  33. def register_no(self):
  34. return self._register_no
  35. @register_no.setter
  36. def register_no(self, value):
  37. self._register_no = value
  38. @property
  39. def telephone(self):
  40. return self._telephone
  41. @telephone.setter
  42. def telephone(self, value):
  43. self._telephone = value
  44. @property
  45. def title_name(self):
  46. return self._title_name
  47. @title_name.setter
  48. def title_name(self, value):
  49. self._title_name = value
  50. def parse_response_content(self, response_content):
  51. response = super(AlipayEbppInvoiceTitlelibraryDetailQueryResponse, self).parse_response_content(response_content)
  52. if 'address' in response:
  53. self.address = response['address']
  54. if 'bank_account' in response:
  55. self.bank_account = response['bank_account']
  56. if 'bank_name' in response:
  57. self.bank_name = response['bank_name']
  58. if 'register_no' in response:
  59. self.register_no = response['register_no']
  60. if 'telephone' in response:
  61. self.telephone = response['telephone']
  62. if 'title_name' in response:
  63. self.title_name = response['title_name']