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