AlipayEbppBillAddResponse.py 4.3 KB

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