AlipayFundAuthOrderAppFreezeResponse.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class AlipayFundAuthOrderAppFreezeResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayFundAuthOrderAppFreezeResponse, self).__init__()
  8. self._amount = None
  9. self._auth_no = None
  10. self._credit_amount = None
  11. self._fund_amount = None
  12. self._gmt_trans = None
  13. self._operation_id = None
  14. self._out_order_no = None
  15. self._out_request_no = None
  16. self._payer_user_id = None
  17. self._pre_auth_type = None
  18. self._status = None
  19. self._trans_currency = None
  20. @property
  21. def amount(self):
  22. return self._amount
  23. @amount.setter
  24. def amount(self, value):
  25. self._amount = value
  26. @property
  27. def auth_no(self):
  28. return self._auth_no
  29. @auth_no.setter
  30. def auth_no(self, value):
  31. self._auth_no = value
  32. @property
  33. def credit_amount(self):
  34. return self._credit_amount
  35. @credit_amount.setter
  36. def credit_amount(self, value):
  37. self._credit_amount = value
  38. @property
  39. def fund_amount(self):
  40. return self._fund_amount
  41. @fund_amount.setter
  42. def fund_amount(self, value):
  43. self._fund_amount = value
  44. @property
  45. def gmt_trans(self):
  46. return self._gmt_trans
  47. @gmt_trans.setter
  48. def gmt_trans(self, value):
  49. self._gmt_trans = value
  50. @property
  51. def operation_id(self):
  52. return self._operation_id
  53. @operation_id.setter
  54. def operation_id(self, value):
  55. self._operation_id = value
  56. @property
  57. def out_order_no(self):
  58. return self._out_order_no
  59. @out_order_no.setter
  60. def out_order_no(self, value):
  61. self._out_order_no = value
  62. @property
  63. def out_request_no(self):
  64. return self._out_request_no
  65. @out_request_no.setter
  66. def out_request_no(self, value):
  67. self._out_request_no = value
  68. @property
  69. def payer_user_id(self):
  70. return self._payer_user_id
  71. @payer_user_id.setter
  72. def payer_user_id(self, value):
  73. self._payer_user_id = value
  74. @property
  75. def pre_auth_type(self):
  76. return self._pre_auth_type
  77. @pre_auth_type.setter
  78. def pre_auth_type(self, value):
  79. self._pre_auth_type = value
  80. @property
  81. def status(self):
  82. return self._status
  83. @status.setter
  84. def status(self, value):
  85. self._status = value
  86. @property
  87. def trans_currency(self):
  88. return self._trans_currency
  89. @trans_currency.setter
  90. def trans_currency(self, value):
  91. self._trans_currency = value
  92. def parse_response_content(self, response_content):
  93. response = super(AlipayFundAuthOrderAppFreezeResponse, self).parse_response_content(response_content)
  94. if 'amount' in response:
  95. self.amount = response['amount']
  96. if 'auth_no' in response:
  97. self.auth_no = response['auth_no']
  98. if 'credit_amount' in response:
  99. self.credit_amount = response['credit_amount']
  100. if 'fund_amount' in response:
  101. self.fund_amount = response['fund_amount']
  102. if 'gmt_trans' in response:
  103. self.gmt_trans = response['gmt_trans']
  104. if 'operation_id' in response:
  105. self.operation_id = response['operation_id']
  106. if 'out_order_no' in response:
  107. self.out_order_no = response['out_order_no']
  108. if 'out_request_no' in response:
  109. self.out_request_no = response['out_request_no']
  110. if 'payer_user_id' in response:
  111. self.payer_user_id = response['payer_user_id']
  112. if 'pre_auth_type' in response:
  113. self.pre_auth_type = response['pre_auth_type']
  114. if 'status' in response:
  115. self.status = response['status']
  116. if 'trans_currency' in response:
  117. self.trans_currency = response['trans_currency']