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