AlipayTradeBuyerCreditCancelResponse.py 3.1 KB

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