Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
alipay-sdk-python / alipay / aop / api / response / AlipayOfflineMarketingVoucherModifyResponse.py
Size: Mime:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json

from alipay.aop.api.response.AlipayResponse import AlipayResponse


class AlipayOfflineMarketingVoucherModifyResponse(AlipayResponse):

    def __init__(self):
        super(AlipayOfflineMarketingVoucherModifyResponse, self).__init__()
        self._voucher_id = None
        self._voucher_status = None

    @property
    def voucher_id(self):
        return self._voucher_id

    @voucher_id.setter
    def voucher_id(self, value):
        self._voucher_id = value
    @property
    def voucher_status(self):
        return self._voucher_status

    @voucher_status.setter
    def voucher_status(self, value):
        self._voucher_status = value

    def parse_response_content(self, response_content):
        response = super(AlipayOfflineMarketingVoucherModifyResponse, self).parse_response_content(response_content)
        if 'voucher_id' in response:
            self.voucher_id = response['voucher_id']
        if 'voucher_status' in response:
            self.voucher_status = response['voucher_status']