#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class ZhimaCreditEpDataRatingQueryModel(object): def __init__(self): self._biz_ext_param = None self._cert_name = None self._cert_no = None self._cert_type = None self._ep_cert_no = None self._ep_cert_type = None self._ep_name = None self._product_code = None self._transaction_id = None @property def biz_ext_param(self): return self._biz_ext_param @biz_ext_param.setter def biz_ext_param(self, value): self._biz_ext_param = value @property def cert_name(self): return self._cert_name @cert_name.setter def cert_name(self, value): self._cert_name = value @property def cert_no(self): return self._cert_no @cert_no.setter def cert_no(self, value): self._cert_no = value @property def cert_type(self): return self._cert_type @cert_type.setter def cert_type(self, value): self._cert_type = value @property def ep_cert_no(self): return self._ep_cert_no @ep_cert_no.setter def ep_cert_no(self, value): self._ep_cert_no = value @property def ep_cert_type(self): return self._ep_cert_type @ep_cert_type.setter def ep_cert_type(self, value): self._ep_cert_type = value @property def ep_name(self): return self._ep_name @ep_name.setter def ep_name(self, value): self._ep_name = value @property def product_code(self): return self._product_code @product_code.setter def product_code(self, value): self._product_code = value @property def transaction_id(self): return self._transaction_id @transaction_id.setter def transaction_id(self, value): self._transaction_id = value def to_alipay_dict(self): params = dict() if self.biz_ext_param: if hasattr(self.biz_ext_param, 'to_alipay_dict'): params['biz_ext_param'] = self.biz_ext_param.to_alipay_dict() else: params['biz_ext_param'] = self.biz_ext_param if self.cert_name: if hasattr(self.cert_name, 'to_alipay_dict'): params['cert_name'] = self.cert_name.to_alipay_dict() else: params['cert_name'] = self.cert_name if self.cert_no: if hasattr(self.cert_no, 'to_alipay_dict'): params['cert_no'] = self.cert_no.to_alipay_dict() else: params['cert_no'] = self.cert_no if self.cert_type: if hasattr(self.cert_type, 'to_alipay_dict'): params['cert_type'] = self.cert_type.to_alipay_dict() else: params['cert_type'] = self.cert_type if self.ep_cert_no: if hasattr(self.ep_cert_no, 'to_alipay_dict'): params['ep_cert_no'] = self.ep_cert_no.to_alipay_dict() else: params['ep_cert_no'] = self.ep_cert_no if self.ep_cert_type: if hasattr(self.ep_cert_type, 'to_alipay_dict'): params['ep_cert_type'] = self.ep_cert_type.to_alipay_dict() else: params['ep_cert_type'] = self.ep_cert_type if self.ep_name: if hasattr(self.ep_name, 'to_alipay_dict'): params['ep_name'] = self.ep_name.to_alipay_dict() else: params['ep_name'] = self.ep_name if self.product_code: if hasattr(self.product_code, 'to_alipay_dict'): params['product_code'] = self.product_code.to_alipay_dict() else: params['product_code'] = self.product_code if self.transaction_id: if hasattr(self.transaction_id, 'to_alipay_dict'): params['transaction_id'] = self.transaction_id.to_alipay_dict() else: params['transaction_id'] = self.transaction_id return params @staticmethod def from_alipay_dict(d): if not d: return None o = ZhimaCreditEpDataRatingQueryModel() if 'biz_ext_param' in d: o.biz_ext_param = d['biz_ext_param'] if 'cert_name' in d: o.cert_name = d['cert_name'] if 'cert_no' in d: o.cert_no = d['cert_no'] if 'cert_type' in d: o.cert_type = d['cert_type'] if 'ep_cert_no' in d: o.ep_cert_no = d['ep_cert_no'] if 'ep_cert_type' in d: o.ep_cert_type = d['ep_cert_type'] if 'ep_name' in d: o.ep_name = d['ep_name'] if 'product_code' in d: o.product_code = d['product_code'] if 'transaction_id' in d: o.transaction_id = d['transaction_id'] return o