1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.response.AlipayResponse import AlipayResponse
- class AlipayCommerceTransportWorldVirtualcardApplyResponse(AlipayResponse):
- def __init__(self):
- super(AlipayCommerceTransportWorldVirtualcardApplyResponse, self).__init__()
- self._card_no = None
- self._card_type = None
- self._error_message = None
- self._sub_error_code = None
- self._user_id = None
- @property
- def card_no(self):
- return self._card_no
- @card_no.setter
- def card_no(self, value):
- self._card_no = value
- @property
- def card_type(self):
- return self._card_type
- @card_type.setter
- def card_type(self, value):
- self._card_type = value
- @property
- def error_message(self):
- return self._error_message
- @error_message.setter
- def error_message(self, value):
- self._error_message = value
- @property
- def sub_error_code(self):
- return self._sub_error_code
- @sub_error_code.setter
- def sub_error_code(self, value):
- self._sub_error_code = value
- @property
- def user_id(self):
- return self._user_id
- @user_id.setter
- def user_id(self, value):
- self._user_id = value
- def parse_response_content(self, response_content):
- response = super(AlipayCommerceTransportWorldVirtualcardApplyResponse, self).parse_response_content(response_content)
- if 'card_no' in response:
- self.card_no = response['card_no']
- if 'card_type' in response:
- self.card_type = response['card_type']
- if 'error_message' in response:
- self.error_message = response['error_message']
- if 'sub_error_code' in response:
- self.sub_error_code = response['sub_error_code']
- if 'user_id' in response:
- self.user_id = response['user_id']
|