KoubeiShopMallMemberIdentifyResponse.py 972 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. import json
  4. from alipay.aop.api.response.AlipayResponse import AlipayResponse
  5. class KoubeiShopMallMemberIdentifyResponse(AlipayResponse):
  6. def __init__(self):
  7. super(KoubeiShopMallMemberIdentifyResponse, self).__init__()
  8. self._card_no = None
  9. self._has_card = None
  10. @property
  11. def card_no(self):
  12. return self._card_no
  13. @card_no.setter
  14. def card_no(self, value):
  15. self._card_no = value
  16. @property
  17. def has_card(self):
  18. return self._has_card
  19. @has_card.setter
  20. def has_card(self, value):
  21. self._has_card = value
  22. def parse_response_content(self, response_content):
  23. response = super(KoubeiShopMallMemberIdentifyResponse, self).parse_response_content(response_content)
  24. if 'card_no' in response:
  25. self.card_no = response['card_no']
  26. if 'has_card' in response:
  27. self.has_card = response['has_card']