AlipayTradeCreditApplyQueryResponse.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayTradeCreditApplyQueryResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayTradeCreditApplyQueryResponse, self).__init__()
  8. self._buyer_credit_source = None
  9. self._buyer_user_id = None
  10. self._credit_scene = None
  11. self._grant_credit_quota = None
  12. self._grant_operation_no = None
  13. self._grant_status = None
  14. self._merchant_credit_source = None
  15. self._merchant_user_id = None
  16. self._out_request_no = None
  17. @property
  18. def buyer_credit_source(self):
  19. return self._buyer_credit_source
  20. @buyer_credit_source.setter
  21. def buyer_credit_source(self, value):
  22. self._buyer_credit_source = value
  23. @property
  24. def buyer_user_id(self):
  25. return self._buyer_user_id
  26. @buyer_user_id.setter
  27. def buyer_user_id(self, value):
  28. self._buyer_user_id = value
  29. @property
  30. def credit_scene(self):
  31. return self._credit_scene
  32. @credit_scene.setter
  33. def credit_scene(self, value):
  34. self._credit_scene = value
  35. @property
  36. def grant_credit_quota(self):
  37. return self._grant_credit_quota
  38. @grant_credit_quota.setter
  39. def grant_credit_quota(self, value):
  40. self._grant_credit_quota = value
  41. @property
  42. def grant_operation_no(self):
  43. return self._grant_operation_no
  44. @grant_operation_no.setter
  45. def grant_operation_no(self, value):
  46. self._grant_operation_no = value
  47. @property
  48. def grant_status(self):
  49. return self._grant_status
  50. @grant_status.setter
  51. def grant_status(self, value):
  52. self._grant_status = value
  53. @property
  54. def merchant_credit_source(self):
  55. return self._merchant_credit_source
  56. @merchant_credit_source.setter
  57. def merchant_credit_source(self, value):
  58. self._merchant_credit_source = value
  59. @property
  60. def merchant_user_id(self):
  61. return self._merchant_user_id
  62. @merchant_user_id.setter
  63. def merchant_user_id(self, value):
  64. self._merchant_user_id = value
  65. @property
  66. def out_request_no(self):
  67. return self._out_request_no
  68. @out_request_no.setter
  69. def out_request_no(self, value):
  70. self._out_request_no = value
  71. def parse_response_content(self, response_content):
  72. response = super(AlipayTradeCreditApplyQueryResponse, self).parse_response_content(response_content)
  73. if 'buyer_credit_source' in response:
  74. self.buyer_credit_source = response['buyer_credit_source']
  75. if 'buyer_user_id' in response:
  76. self.buyer_user_id = response['buyer_user_id']
  77. if 'credit_scene' in response:
  78. self.credit_scene = response['credit_scene']
  79. if 'grant_credit_quota' in response:
  80. self.grant_credit_quota = response['grant_credit_quota']
  81. if 'grant_operation_no' in response:
  82. self.grant_operation_no = response['grant_operation_no']
  83. if 'grant_status' in response:
  84. self.grant_status = response['grant_status']
  85. if 'merchant_credit_source' in response:
  86. self.merchant_credit_source = response['merchant_credit_source']
  87. if 'merchant_user_id' in response:
  88. self.merchant_user_id = response['merchant_user_id']
  89. if 'out_request_no' in response:
  90. self.out_request_no = response['out_request_no']