AlipayEbppBillGetResponse.py 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayEbppBillGetResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayEbppBillGetResponse, self).__init__()
  8. self._alipay_order_no = None
  9. self._bill_date = None
  10. self._bill_key = None
  11. self._charge_inst = None
  12. self._charge_inst_name = None
  13. self._merchant_order_no = None
  14. self._order_status = None
  15. self._order_type = None
  16. self._owner_name = None
  17. self._pay_amount = None
  18. self._pay_time = None
  19. self._service_amount = None
  20. self._sub_order_type = None
  21. self._traffic_location = None
  22. self._traffic_regulations = None
  23. @property
  24. def alipay_order_no(self):
  25. return self._alipay_order_no
  26. @alipay_order_no.setter
  27. def alipay_order_no(self, value):
  28. self._alipay_order_no = value
  29. @property
  30. def bill_date(self):
  31. return self._bill_date
  32. @bill_date.setter
  33. def bill_date(self, value):
  34. self._bill_date = value
  35. @property
  36. def bill_key(self):
  37. return self._bill_key
  38. @bill_key.setter
  39. def bill_key(self, value):
  40. self._bill_key = value
  41. @property
  42. def charge_inst(self):
  43. return self._charge_inst
  44. @charge_inst.setter
  45. def charge_inst(self, value):
  46. self._charge_inst = value
  47. @property
  48. def charge_inst_name(self):
  49. return self._charge_inst_name
  50. @charge_inst_name.setter
  51. def charge_inst_name(self, value):
  52. self._charge_inst_name = value
  53. @property
  54. def merchant_order_no(self):
  55. return self._merchant_order_no
  56. @merchant_order_no.setter
  57. def merchant_order_no(self, value):
  58. self._merchant_order_no = value
  59. @property
  60. def order_status(self):
  61. return self._order_status
  62. @order_status.setter
  63. def order_status(self, value):
  64. self._order_status = value
  65. @property
  66. def order_type(self):
  67. return self._order_type
  68. @order_type.setter
  69. def order_type(self, value):
  70. self._order_type = value
  71. @property
  72. def owner_name(self):
  73. return self._owner_name
  74. @owner_name.setter
  75. def owner_name(self, value):
  76. self._owner_name = value
  77. @property
  78. def pay_amount(self):
  79. return self._pay_amount
  80. @pay_amount.setter
  81. def pay_amount(self, value):
  82. self._pay_amount = value
  83. @property
  84. def pay_time(self):
  85. return self._pay_time
  86. @pay_time.setter
  87. def pay_time(self, value):
  88. self._pay_time = value
  89. @property
  90. def service_amount(self):
  91. return self._service_amount
  92. @service_amount.setter
  93. def service_amount(self, value):
  94. self._service_amount = value
  95. @property
  96. def sub_order_type(self):
  97. return self._sub_order_type
  98. @sub_order_type.setter
  99. def sub_order_type(self, value):
  100. self._sub_order_type = value
  101. @property
  102. def traffic_location(self):
  103. return self._traffic_location
  104. @traffic_location.setter
  105. def traffic_location(self, value):
  106. self._traffic_location = value
  107. @property
  108. def traffic_regulations(self):
  109. return self._traffic_regulations
  110. @traffic_regulations.setter
  111. def traffic_regulations(self, value):
  112. self._traffic_regulations = value
  113. def parse_response_content(self, response_content):
  114. response = super(AlipayEbppBillGetResponse, self).parse_response_content(response_content)
  115. if 'alipay_order_no' in response:
  116. self.alipay_order_no = response['alipay_order_no']
  117. if 'bill_date' in response:
  118. self.bill_date = response['bill_date']
  119. if 'bill_key' in response:
  120. self.bill_key = response['bill_key']
  121. if 'charge_inst' in response:
  122. self.charge_inst = response['charge_inst']
  123. if 'charge_inst_name' in response:
  124. self.charge_inst_name = response['charge_inst_name']
  125. if 'merchant_order_no' in response:
  126. self.merchant_order_no = response['merchant_order_no']
  127. if 'order_status' in response:
  128. self.order_status = response['order_status']
  129. if 'order_type' in response:
  130. self.order_type = response['order_type']
  131. if 'owner_name' in response:
  132. self.owner_name = response['owner_name']
  133. if 'pay_amount' in response:
  134. self.pay_amount = response['pay_amount']
  135. if 'pay_time' in response:
  136. self.pay_time = response['pay_time']
  137. if 'service_amount' in response:
  138. self.service_amount = response['service_amount']
  139. if 'sub_order_type' in response:
  140. self.sub_order_type = response['sub_order_type']
  141. if 'traffic_location' in response:
  142. self.traffic_location = response['traffic_location']
  143. if 'traffic_regulations' in response:
  144. self.traffic_regulations = response['traffic_regulations']