#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayUserCertifyActionApplyModel(object): def __init__(self): self._biz_type = None self._partner_id = None @property def biz_type(self): return self._biz_type @biz_type.setter def biz_type(self, value): self._biz_type = value @property def partner_id(self): return self._partner_id @partner_id.setter def partner_id(self, value): self._partner_id = value def to_alipay_dict(self): params = dict() if self.biz_type: if hasattr(self.biz_type, 'to_alipay_dict'): params['biz_type'] = self.biz_type.to_alipay_dict() else: params['biz_type'] = self.biz_type if self.partner_id: if hasattr(self.partner_id, 'to_alipay_dict'): params['partner_id'] = self.partner_id.to_alipay_dict() else: params['partner_id'] = self.partner_id return params @staticmethod def from_alipay_dict(d): if not d: return None o = AlipayUserCertifyActionApplyModel() if 'biz_type' in d: o.biz_type = d['biz_type'] if 'partner_id' in d: o.partner_id = d['partner_id'] return o