123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class AssetInfoItem(object):
- def __init__(self):
- self._assign_item_id = None
- self._batch_no = None
- self._logistics_code = None
- self._logistics_no = None
- self._sub_type = None
- self._type = None
- self._value = None
- @property
- def assign_item_id(self):
- return self._assign_item_id
- @assign_item_id.setter
- def assign_item_id(self, value):
- self._assign_item_id = value
- @property
- def batch_no(self):
- return self._batch_no
- @batch_no.setter
- def batch_no(self, value):
- self._batch_no = value
- @property
- def logistics_code(self):
- return self._logistics_code
- @logistics_code.setter
- def logistics_code(self, value):
- self._logistics_code = value
- @property
- def logistics_no(self):
- return self._logistics_no
- @logistics_no.setter
- def logistics_no(self, value):
- self._logistics_no = value
- @property
- def sub_type(self):
- return self._sub_type
- @sub_type.setter
- def sub_type(self, value):
- self._sub_type = value
- @property
- def type(self):
- return self._type
- @type.setter
- def type(self, value):
- self._type = value
- @property
- def value(self):
- return self._value
- @value.setter
- def value(self, value):
- self._value = value
- def to_alipay_dict(self):
- params = dict()
- if self.assign_item_id:
- if hasattr(self.assign_item_id, 'to_alipay_dict'):
- params['assign_item_id'] = self.assign_item_id.to_alipay_dict()
- else:
- params['assign_item_id'] = self.assign_item_id
- if self.batch_no:
- if hasattr(self.batch_no, 'to_alipay_dict'):
- params['batch_no'] = self.batch_no.to_alipay_dict()
- else:
- params['batch_no'] = self.batch_no
- if self.logistics_code:
- if hasattr(self.logistics_code, 'to_alipay_dict'):
- params['logistics_code'] = self.logistics_code.to_alipay_dict()
- else:
- params['logistics_code'] = self.logistics_code
- if self.logistics_no:
- if hasattr(self.logistics_no, 'to_alipay_dict'):
- params['logistics_no'] = self.logistics_no.to_alipay_dict()
- else:
- params['logistics_no'] = self.logistics_no
- if self.sub_type:
- if hasattr(self.sub_type, 'to_alipay_dict'):
- params['sub_type'] = self.sub_type.to_alipay_dict()
- else:
- params['sub_type'] = self.sub_type
- if self.type:
- if hasattr(self.type, 'to_alipay_dict'):
- params['type'] = self.type.to_alipay_dict()
- else:
- params['type'] = self.type
- if self.value:
- if hasattr(self.value, 'to_alipay_dict'):
- params['value'] = self.value.to_alipay_dict()
- else:
- params['value'] = self.value
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = AssetInfoItem()
- if 'assign_item_id' in d:
- o.assign_item_id = d['assign_item_id']
- if 'batch_no' in d:
- o.batch_no = d['batch_no']
- if 'logistics_code' in d:
- o.logistics_code = d['logistics_code']
- if 'logistics_no' in d:
- o.logistics_no = d['logistics_no']
- if 'sub_type' in d:
- o.sub_type = d['sub_type']
- if 'type' in d:
- o.type = d['type']
- if 'value' in d:
- o.value = d['value']
- return o
|