AlipayCommerceTransportWorldCarddataApplyResponse.py 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.WorldBaseRPCResponseInfo import WorldBaseRPCResponseInfo
  6. from alipay.aop.api.domain.WorldOfflineDataInfo import WorldOfflineDataInfo
  7. class AlipayCommerceTransportWorldCarddataApplyResponse(AlipayResponse):
  8. def __init__(self):
  9. super(AlipayCommerceTransportWorldCarddataApplyResponse, self).__init__()
  10. self._card_no = None
  11. self._card_timestamp = None
  12. self._card_type = None
  13. self._error_message = None
  14. self._first_use_time = None
  15. self._sub_error_code = None
  16. self._user_id = None
  17. self._world_base_rpc_response_info = None
  18. self._world_offline_data_info = None
  19. @property
  20. def card_no(self):
  21. return self._card_no
  22. @card_no.setter
  23. def card_no(self, value):
  24. self._card_no = value
  25. @property
  26. def card_timestamp(self):
  27. return self._card_timestamp
  28. @card_timestamp.setter
  29. def card_timestamp(self, value):
  30. self._card_timestamp = value
  31. @property
  32. def card_type(self):
  33. return self._card_type
  34. @card_type.setter
  35. def card_type(self, value):
  36. self._card_type = value
  37. @property
  38. def error_message(self):
  39. return self._error_message
  40. @error_message.setter
  41. def error_message(self, value):
  42. self._error_message = value
  43. @property
  44. def first_use_time(self):
  45. return self._first_use_time
  46. @first_use_time.setter
  47. def first_use_time(self, value):
  48. self._first_use_time = value
  49. @property
  50. def sub_error_code(self):
  51. return self._sub_error_code
  52. @sub_error_code.setter
  53. def sub_error_code(self, value):
  54. self._sub_error_code = value
  55. @property
  56. def user_id(self):
  57. return self._user_id
  58. @user_id.setter
  59. def user_id(self, value):
  60. self._user_id = value
  61. @property
  62. def world_base_rpc_response_info(self):
  63. return self._world_base_rpc_response_info
  64. @world_base_rpc_response_info.setter
  65. def world_base_rpc_response_info(self, value):
  66. if isinstance(value, WorldBaseRPCResponseInfo):
  67. self._world_base_rpc_response_info = value
  68. else:
  69. self._world_base_rpc_response_info = WorldBaseRPCResponseInfo.from_alipay_dict(value)
  70. @property
  71. def world_offline_data_info(self):
  72. return self._world_offline_data_info
  73. @world_offline_data_info.setter
  74. def world_offline_data_info(self, value):
  75. if isinstance(value, WorldOfflineDataInfo):
  76. self._world_offline_data_info = value
  77. else:
  78. self._world_offline_data_info = WorldOfflineDataInfo.from_alipay_dict(value)
  79. def parse_response_content(self, response_content):
  80. response = super(AlipayCommerceTransportWorldCarddataApplyResponse, self).parse_response_content(response_content)
  81. if 'card_no' in response:
  82. self.card_no = response['card_no']
  83. if 'card_timestamp' in response:
  84. self.card_timestamp = response['card_timestamp']
  85. if 'card_type' in response:
  86. self.card_type = response['card_type']
  87. if 'error_message' in response:
  88. self.error_message = response['error_message']
  89. if 'first_use_time' in response:
  90. self.first_use_time = response['first_use_time']
  91. if 'sub_error_code' in response:
  92. self.sub_error_code = response['sub_error_code']
  93. if 'user_id' in response:
  94. self.user_id = response['user_id']
  95. if 'world_base_rpc_response_info' in response:
  96. self.world_base_rpc_response_info = response['world_base_rpc_response_info']
  97. if 'world_offline_data_info' in response:
  98. self.world_offline_data_info = response['world_offline_data_info']