AlipayEbppInvoiceTitleDetailQueryResponse.py 2.2 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 AlipayEbppInvoiceTitleDetailQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEbppInvoiceTitleDetailQueryResponse, self).__init__()
  8. self._address = None
  9. self._name = None
  10. self._open_bank_account = None
  11. self._open_bank_name = None
  12. self._tax_register_no = None
  13. self._telephone = 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 name(self):
  22. return self._name
  23. @name.setter
  24. def name(self, value):
  25. self._name = value
  26. @property
  27. def open_bank_account(self):
  28. return self._open_bank_account
  29. @open_bank_account.setter
  30. def open_bank_account(self, value):
  31. self._open_bank_account = value
  32. @property
  33. def open_bank_name(self):
  34. return self._open_bank_name
  35. @open_bank_name.setter
  36. def open_bank_name(self, value):
  37. self._open_bank_name = value
  38. @property
  39. def tax_register_no(self):
  40. return self._tax_register_no
  41. @tax_register_no.setter
  42. def tax_register_no(self, value):
  43. self._tax_register_no = value
  44. @property
  45. def telephone(self):
  46. return self._telephone
  47. @telephone.setter
  48. def telephone(self, value):
  49. self._telephone = value
  50. def parse_response_content(self, response_content):
  51. response = super(AlipayEbppInvoiceTitleDetailQueryResponse, self).parse_response_content(response_content)
  52. if 'address' in response:
  53. self.address = response['address']
  54. if 'name' in response:
  55. self.name = response['name']
  56. if 'open_bank_account' in response:
  57. self.open_bank_account = response['open_bank_account']
  58. if 'open_bank_name' in response:
  59. self.open_bank_name = response['open_bank_name']
  60. if 'tax_register_no' in response:
  61. self.tax_register_no = response['tax_register_no']
  62. if 'telephone' in response:
  63. self.telephone = response['telephone']