#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayTradeMerchantCreditQueryResponse(AlipayResponse): def __init__(self): super(AlipayTradeMerchantCreditQueryResponse, self).__init__() self._credit_scene = None self._granted_credit_quota = None self._merchant_credit_source = None self._merchant_user_id = None self._total_credit_quota = None @property def credit_scene(self): return self._credit_scene @credit_scene.setter def credit_scene(self, value): self._credit_scene = value @property def granted_credit_quota(self): return self._granted_credit_quota @granted_credit_quota.setter def granted_credit_quota(self, value): self._granted_credit_quota = value @property def merchant_credit_source(self): return self._merchant_credit_source @merchant_credit_source.setter def merchant_credit_source(self, value): self._merchant_credit_source = value @property def merchant_user_id(self): return self._merchant_user_id @merchant_user_id.setter def merchant_user_id(self, value): self._merchant_user_id = value @property def total_credit_quota(self): return self._total_credit_quota @total_credit_quota.setter def total_credit_quota(self, value): self._total_credit_quota = value def parse_response_content(self, response_content): response = super(AlipayTradeMerchantCreditQueryResponse, self).parse_response_content(response_content) if 'credit_scene' in response: self.credit_scene = response['credit_scene'] if 'granted_credit_quota' in response: self.granted_credit_quota = response['granted_credit_quota'] if 'merchant_credit_source' in response: self.merchant_credit_source = response['merchant_credit_source'] if 'merchant_user_id' in response: self.merchant_user_id = response['merchant_user_id'] if 'total_credit_quota' in response: self.total_credit_quota = response['total_credit_quota']