AlipayCommerceCityfacilitatorVoucherQueryResponse.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayCommerceCityfacilitatorVoucherQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayCommerceCityfacilitatorVoucherQueryResponse, self).__init__()
  8. self._amount = None
  9. self._end_station = None
  10. self._end_station_name = None
  11. self._quantity = None
  12. self._start_station = None
  13. self._start_station_name = None
  14. self._status = None
  15. self._ticket_price = None
  16. self._ticket_type = None
  17. self._trade_no = None
  18. @property
  19. def amount(self):
  20. return self._amount
  21. @amount.setter
  22. def amount(self, value):
  23. self._amount = value
  24. @property
  25. def end_station(self):
  26. return self._end_station
  27. @end_station.setter
  28. def end_station(self, value):
  29. self._end_station = value
  30. @property
  31. def end_station_name(self):
  32. return self._end_station_name
  33. @end_station_name.setter
  34. def end_station_name(self, value):
  35. self._end_station_name = value
  36. @property
  37. def quantity(self):
  38. return self._quantity
  39. @quantity.setter
  40. def quantity(self, value):
  41. self._quantity = value
  42. @property
  43. def start_station(self):
  44. return self._start_station
  45. @start_station.setter
  46. def start_station(self, value):
  47. self._start_station = value
  48. @property
  49. def start_station_name(self):
  50. return self._start_station_name
  51. @start_station_name.setter
  52. def start_station_name(self, value):
  53. self._start_station_name = value
  54. @property
  55. def status(self):
  56. return self._status
  57. @status.setter
  58. def status(self, value):
  59. self._status = value
  60. @property
  61. def ticket_price(self):
  62. return self._ticket_price
  63. @ticket_price.setter
  64. def ticket_price(self, value):
  65. self._ticket_price = value
  66. @property
  67. def ticket_type(self):
  68. return self._ticket_type
  69. @ticket_type.setter
  70. def ticket_type(self, value):
  71. self._ticket_type = value
  72. @property
  73. def trade_no(self):
  74. return self._trade_no
  75. @trade_no.setter
  76. def trade_no(self, value):
  77. self._trade_no = value
  78. def parse_response_content(self, response_content):
  79. response = super(AlipayCommerceCityfacilitatorVoucherQueryResponse, self).parse_response_content(response_content)
  80. if 'amount' in response:
  81. self.amount = response['amount']
  82. if 'end_station' in response:
  83. self.end_station = response['end_station']
  84. if 'end_station_name' in response:
  85. self.end_station_name = response['end_station_name']
  86. if 'quantity' in response:
  87. self.quantity = response['quantity']
  88. if 'start_station' in response:
  89. self.start_station = response['start_station']
  90. if 'start_station_name' in response:
  91. self.start_station_name = response['start_station_name']
  92. if 'status' in response:
  93. self.status = response['status']
  94. if 'ticket_price' in response:
  95. self.ticket_price = response['ticket_price']
  96. if 'ticket_type' in response:
  97. self.ticket_type = response['ticket_type']
  98. if 'trade_no' in response:
  99. self.trade_no = response['trade_no']