AlipayOfflineProviderEquipmentAuthRemoveResponse.py 1.0 KB

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