123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class KoubeiMarketingCampaignCrowdModifyModel(object):
- def __init__(self):
- self._conditions = None
- self._crowd_group_id = None
- self._operator_id = None
- self._operator_type = None
- self._out_biz_no = None
- @property
- def conditions(self):
- return self._conditions
- @conditions.setter
- def conditions(self, value):
- self._conditions = value
- @property
- def crowd_group_id(self):
- return self._crowd_group_id
- @crowd_group_id.setter
- def crowd_group_id(self, value):
- self._crowd_group_id = value
- @property
- def operator_id(self):
- return self._operator_id
- @operator_id.setter
- def operator_id(self, value):
- self._operator_id = value
- @property
- def operator_type(self):
- return self._operator_type
- @operator_type.setter
- def operator_type(self, value):
- self._operator_type = value
- @property
- def out_biz_no(self):
- return self._out_biz_no
- @out_biz_no.setter
- def out_biz_no(self, value):
- self._out_biz_no = value
- def to_alipay_dict(self):
- params = dict()
- if self.conditions:
- if hasattr(self.conditions, 'to_alipay_dict'):
- params['conditions'] = self.conditions.to_alipay_dict()
- else:
- params['conditions'] = self.conditions
- if self.crowd_group_id:
- if hasattr(self.crowd_group_id, 'to_alipay_dict'):
- params['crowd_group_id'] = self.crowd_group_id.to_alipay_dict()
- else:
- params['crowd_group_id'] = self.crowd_group_id
- 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
- if self.operator_type:
- if hasattr(self.operator_type, 'to_alipay_dict'):
- params['operator_type'] = self.operator_type.to_alipay_dict()
- else:
- params['operator_type'] = self.operator_type
- if self.out_biz_no:
- if hasattr(self.out_biz_no, 'to_alipay_dict'):
- params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
- else:
- params['out_biz_no'] = self.out_biz_no
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = KoubeiMarketingCampaignCrowdModifyModel()
- if 'conditions' in d:
- o.conditions = d['conditions']
- if 'crowd_group_id' in d:
- o.crowd_group_id = d['crowd_group_id']
- if 'operator_id' in d:
- o.operator_id = d['operator_id']
- if 'operator_type' in d:
- o.operator_type = d['operator_type']
- if 'out_biz_no' in d:
- o.out_biz_no = d['out_biz_no']
- return o
|