AlipayUserAgreementTransferResponse.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 AlipayUserAgreementTransferResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayUserAgreementTransferResponse, self).__init__()
  8. self._amount = None
  9. self._execute_time = None
  10. self._period = None
  11. self._period_type = None
  12. self._total_amount = None
  13. self._total_payments = None
  14. @property
  15. def amount(self):
  16. return self._amount
  17. @amount.setter
  18. def amount(self, value):
  19. self._amount = value
  20. @property
  21. def execute_time(self):
  22. return self._execute_time
  23. @execute_time.setter
  24. def execute_time(self, value):
  25. self._execute_time = value
  26. @property
  27. def period(self):
  28. return self._period
  29. @period.setter
  30. def period(self, value):
  31. self._period = value
  32. @property
  33. def period_type(self):
  34. return self._period_type
  35. @period_type.setter
  36. def period_type(self, value):
  37. self._period_type = value
  38. @property
  39. def total_amount(self):
  40. return self._total_amount
  41. @total_amount.setter
  42. def total_amount(self, value):
  43. self._total_amount = value
  44. @property
  45. def total_payments(self):
  46. return self._total_payments
  47. @total_payments.setter
  48. def total_payments(self, value):
  49. self._total_payments = value
  50. def parse_response_content(self, response_content):
  51. response = super(AlipayUserAgreementTransferResponse, self).parse_response_content(response_content)
  52. if 'amount' in response:
  53. self.amount = response['amount']
  54. if 'execute_time' in response:
  55. self.execute_time = response['execute_time']
  56. if 'period' in response:
  57. self.period = response['period']
  58. if 'period_type' in response:
  59. self.period_type = response['period_type']
  60. if 'total_amount' in response:
  61. self.total_amount = response['total_amount']
  62. if 'total_payments' in response:
  63. self.total_payments = response['total_payments']