AlipayEcoLogisticsExpressPriceQueryResponse.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 AlipayEcoLogisticsExpressPriceQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEcoLogisticsExpressPriceQueryResponse, self).__init__()
  8. self._extra_weight_price = None
  9. self._extra_weight_unit = None
  10. self._preset_weight = None
  11. self._preset_weight_price = None
  12. @property
  13. def extra_weight_price(self):
  14. return self._extra_weight_price
  15. @extra_weight_price.setter
  16. def extra_weight_price(self, value):
  17. self._extra_weight_price = value
  18. @property
  19. def extra_weight_unit(self):
  20. return self._extra_weight_unit
  21. @extra_weight_unit.setter
  22. def extra_weight_unit(self, value):
  23. self._extra_weight_unit = value
  24. @property
  25. def preset_weight(self):
  26. return self._preset_weight
  27. @preset_weight.setter
  28. def preset_weight(self, value):
  29. self._preset_weight = value
  30. @property
  31. def preset_weight_price(self):
  32. return self._preset_weight_price
  33. @preset_weight_price.setter
  34. def preset_weight_price(self, value):
  35. self._preset_weight_price = value
  36. def parse_response_content(self, response_content):
  37. response = super(AlipayEcoLogisticsExpressPriceQueryResponse, self).parse_response_content(response_content)
  38. if 'extra_weight_price' in response:
  39. self.extra_weight_price = response['extra_weight_price']
  40. if 'extra_weight_unit' in response:
  41. self.extra_weight_unit = response['extra_weight_unit']
  42. if 'preset_weight' in response:
  43. self.preset_weight = response['preset_weight']
  44. if 'preset_weight_price' in response:
  45. self.preset_weight_price = response['preset_weight_price']