AlipayPcreditHuabeiAuthAccumulationQueryResponse.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayPcreditHuabeiAuthAccumulationQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayPcreditHuabeiAuthAccumulationQueryResponse, self).__init__()
  8. self._pay_amount = None
  9. self._total_discount_amount = None
  10. self._total_pay_count = None
  11. self._total_real_pay_amount = None
  12. @property
  13. def pay_amount(self):
  14. return self._pay_amount
  15. @pay_amount.setter
  16. def pay_amount(self, value):
  17. self._pay_amount = value
  18. @property
  19. def total_discount_amount(self):
  20. return self._total_discount_amount
  21. @total_discount_amount.setter
  22. def total_discount_amount(self, value):
  23. self._total_discount_amount = value
  24. @property
  25. def total_pay_count(self):
  26. return self._total_pay_count
  27. @total_pay_count.setter
  28. def total_pay_count(self, value):
  29. self._total_pay_count = value
  30. @property
  31. def total_real_pay_amount(self):
  32. return self._total_real_pay_amount
  33. @total_real_pay_amount.setter
  34. def total_real_pay_amount(self, value):
  35. self._total_real_pay_amount = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayPcreditHuabeiAuthAccumulationQueryResponse, self).parse_response_content(response_content)
  38. if 'pay_amount' in response:
  39. self.pay_amount = response['pay_amount']
  40. if 'total_discount_amount' in response:
  41. self.total_discount_amount = response['total_discount_amount']
  42. if 'total_pay_count' in response:
  43. self.total_pay_count = response['total_pay_count']
  44. if 'total_real_pay_amount' in response:
  45. self.total_real_pay_amount = response['total_real_pay_amount']