AlipayEbppPdeductSignAddResponse.py 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayEbppPdeductSignAddResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEbppPdeductSignAddResponse, self).__init__()
  8. self._agreement_id = None
  9. self._agreement_status = None
  10. self._extend_field = None
  11. self._notify_config = None
  12. self._out_agreement_id = None
  13. self._pay_config = None
  14. self._sign_date = None
  15. @property
  16. def agreement_id(self):
  17. return self._agreement_id
  18. @agreement_id.setter
  19. def agreement_id(self, value):
  20. self._agreement_id = value
  21. @property
  22. def agreement_status(self):
  23. return self._agreement_status
  24. @agreement_status.setter
  25. def agreement_status(self, value):
  26. self._agreement_status = value
  27. @property
  28. def extend_field(self):
  29. return self._extend_field
  30. @extend_field.setter
  31. def extend_field(self, value):
  32. self._extend_field = value
  33. @property
  34. def notify_config(self):
  35. return self._notify_config
  36. @notify_config.setter
  37. def notify_config(self, value):
  38. self._notify_config = value
  39. @property
  40. def out_agreement_id(self):
  41. return self._out_agreement_id
  42. @out_agreement_id.setter
  43. def out_agreement_id(self, value):
  44. self._out_agreement_id = value
  45. @property
  46. def pay_config(self):
  47. return self._pay_config
  48. @pay_config.setter
  49. def pay_config(self, value):
  50. if isinstance(value, list):
  51. self._pay_config = list()
  52. for i in value:
  53. self._pay_config.append(i)
  54. @property
  55. def sign_date(self):
  56. return self._sign_date
  57. @sign_date.setter
  58. def sign_date(self, value):
  59. self._sign_date = value
  60. def parse_response_content(self, response_content):
  61. response = super(AlipayEbppPdeductSignAddResponse, self).parse_response_content(response_content)
  62. if 'agreement_id' in response:
  63. self.agreement_id = response['agreement_id']
  64. if 'agreement_status' in response:
  65. self.agreement_status = response['agreement_status']
  66. if 'extend_field' in response:
  67. self.extend_field = response['extend_field']
  68. if 'notify_config' in response:
  69. self.notify_config = response['notify_config']
  70. if 'out_agreement_id' in response:
  71. self.out_agreement_id = response['out_agreement_id']
  72. if 'pay_config' in response:
  73. self.pay_config = response['pay_config']
  74. if 'sign_date' in response:
  75. self.sign_date = response['sign_date']