12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class VerifyParams(object):
- def __init__(self):
- self._cert_no = None
- @property
- def cert_no(self):
- return self._cert_no
- @cert_no.setter
- def cert_no(self, value):
- self._cert_no = value
- def to_alipay_dict(self):
- params = dict()
- 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
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = VerifyParams()
- if 'cert_no' in d:
- o.cert_no = d['cert_no']
- return o
|