AlipayTradeCustomsDeclareResponse.py 2.8 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 AlipayTradeCustomsDeclareResponse(AlipayResponse):
  6. def __init__(self):
  7. super(AlipayTradeCustomsDeclareResponse, self).__init__()
  8. self._alipay_declare_no = None
  9. self._currency = None
  10. self._identity_check = None
  11. self._pay_code = None
  12. self._pay_transaction_id = None
  13. self._total_amount = None
  14. self._trade_no = None
  15. self._ver_dept = None
  16. @property
  17. def alipay_declare_no(self):
  18. return self._alipay_declare_no
  19. @alipay_declare_no.setter
  20. def alipay_declare_no(self, value):
  21. self._alipay_declare_no = value
  22. @property
  23. def currency(self):
  24. return self._currency
  25. @currency.setter
  26. def currency(self, value):
  27. self._currency = value
  28. @property
  29. def identity_check(self):
  30. return self._identity_check
  31. @identity_check.setter
  32. def identity_check(self, value):
  33. self._identity_check = value
  34. @property
  35. def pay_code(self):
  36. return self._pay_code
  37. @pay_code.setter
  38. def pay_code(self, value):
  39. self._pay_code = value
  40. @property
  41. def pay_transaction_id(self):
  42. return self._pay_transaction_id
  43. @pay_transaction_id.setter
  44. def pay_transaction_id(self, value):
  45. self._pay_transaction_id = value
  46. @property
  47. def total_amount(self):
  48. return self._total_amount
  49. @total_amount.setter
  50. def total_amount(self, value):
  51. self._total_amount = value
  52. @property
  53. def trade_no(self):
  54. return self._trade_no
  55. @trade_no.setter
  56. def trade_no(self, value):
  57. self._trade_no = value
  58. @property
  59. def ver_dept(self):
  60. return self._ver_dept
  61. @ver_dept.setter
  62. def ver_dept(self, value):
  63. self._ver_dept = value
  64. def parse_response_content(self, response_content):
  65. response = super(AlipayTradeCustomsDeclareResponse, self).parse_response_content(response_content)
  66. if 'alipay_declare_no' in response:
  67. self.alipay_declare_no = response['alipay_declare_no']
  68. if 'currency' in response:
  69. self.currency = response['currency']
  70. if 'identity_check' in response:
  71. self.identity_check = response['identity_check']
  72. if 'pay_code' in response:
  73. self.pay_code = response['pay_code']
  74. if 'pay_transaction_id' in response:
  75. self.pay_transaction_id = response['pay_transaction_id']
  76. if 'total_amount' in response:
  77. self.total_amount = response['total_amount']
  78. if 'trade_no' in response:
  79. self.trade_no = response['trade_no']
  80. if 'ver_dept' in response:
  81. self.ver_dept = response['ver_dept']