AlipayEbppJfexportInstbillQueryResponse.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. from alipay.aop.api.domain.JfExportInstBillModel import JfExportInstBillModel
  6. class AlipayEbppJfexportInstbillQueryResponse(AlipayResponse):
  7. def __init__(self):
  8. super(AlipayEbppJfexportInstbillQueryResponse, self).__init__()
  9. self._bill_key = None
  10. self._biz_type = None
  11. self._cache_key = None
  12. self._charge_inst = None
  13. self._charge_mode = None
  14. self._extend_field = None
  15. self._inst_bills = None
  16. self._owner_name = None
  17. self._sub_biz_type = None
  18. @property
  19. def bill_key(self):
  20. return self._bill_key
  21. @bill_key.setter
  22. def bill_key(self, value):
  23. self._bill_key = value
  24. @property
  25. def biz_type(self):
  26. return self._biz_type
  27. @biz_type.setter
  28. def biz_type(self, value):
  29. self._biz_type = value
  30. @property
  31. def cache_key(self):
  32. return self._cache_key
  33. @cache_key.setter
  34. def cache_key(self, value):
  35. self._cache_key = value
  36. @property
  37. def charge_inst(self):
  38. return self._charge_inst
  39. @charge_inst.setter
  40. def charge_inst(self, value):
  41. self._charge_inst = value
  42. @property
  43. def charge_mode(self):
  44. return self._charge_mode
  45. @charge_mode.setter
  46. def charge_mode(self, value):
  47. self._charge_mode = value
  48. @property
  49. def extend_field(self):
  50. return self._extend_field
  51. @extend_field.setter
  52. def extend_field(self, value):
  53. self._extend_field = value
  54. @property
  55. def inst_bills(self):
  56. return self._inst_bills
  57. @inst_bills.setter
  58. def inst_bills(self, value):
  59. if isinstance(value, list):
  60. self._inst_bills = list()
  61. for i in value:
  62. if isinstance(i, JfExportInstBillModel):
  63. self._inst_bills.append(i)
  64. else:
  65. self._inst_bills.append(JfExportInstBillModel.from_alipay_dict(i))
  66. @property
  67. def owner_name(self):
  68. return self._owner_name
  69. @owner_name.setter
  70. def owner_name(self, value):
  71. self._owner_name = value
  72. @property
  73. def sub_biz_type(self):
  74. return self._sub_biz_type
  75. @sub_biz_type.setter
  76. def sub_biz_type(self, value):
  77. self._sub_biz_type = value
  78. def parse_response_content(self, response_content):
  79. response = super(AlipayEbppJfexportInstbillQueryResponse, self).parse_response_content(response_content)
  80. if 'bill_key' in response:
  81. self.bill_key = response['bill_key']
  82. if 'biz_type' in response:
  83. self.biz_type = response['biz_type']
  84. if 'cache_key' in response:
  85. self.cache_key = response['cache_key']
  86. if 'charge_inst' in response:
  87. self.charge_inst = response['charge_inst']
  88. if 'charge_mode' in response:
  89. self.charge_mode = response['charge_mode']
  90. if 'extend_field' in response:
  91. self.extend_field = response['extend_field']
  92. if 'inst_bills' in response:
  93. self.inst_bills = response['inst_bills']
  94. if 'owner_name' in response:
  95. self.owner_name = response['owner_name']
  96. if 'sub_biz_type' in response:
  97. self.sub_biz_type = response['sub_biz_type']