123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import json
- from alipay.aop.api.constant.ParamConstants import *
- class KoubeiItemExtitemUpdateModel(object):
- def __init__(self):
- self._brand_code = None
- self._category_code = None
- self._count = None
- self._country = None
- self._description = None
- self._id = None
- self._item_code = None
- self._picture = None
- self._price = None
- self._specification = None
- self._title = None
- @property
- def brand_code(self):
- return self._brand_code
- @brand_code.setter
- def brand_code(self, value):
- self._brand_code = value
- @property
- def category_code(self):
- return self._category_code
- @category_code.setter
- def category_code(self, value):
- self._category_code = value
- @property
- def count(self):
- return self._count
- @count.setter
- def count(self, value):
- self._count = value
- @property
- def country(self):
- return self._country
- @country.setter
- def country(self, value):
- self._country = value
- @property
- def description(self):
- return self._description
- @description.setter
- def description(self, value):
- self._description = value
- @property
- def id(self):
- return self._id
- @id.setter
- def id(self, value):
- self._id = value
- @property
- def item_code(self):
- return self._item_code
- @item_code.setter
- def item_code(self, value):
- self._item_code = value
- @property
- def picture(self):
- return self._picture
- @picture.setter
- def picture(self, value):
- self._picture = value
- @property
- def price(self):
- return self._price
- @price.setter
- def price(self, value):
- self._price = value
- @property
- def specification(self):
- return self._specification
- @specification.setter
- def specification(self, value):
- self._specification = value
- @property
- def title(self):
- return self._title
- @title.setter
- def title(self, value):
- self._title = value
- def to_alipay_dict(self):
- params = dict()
- if self.brand_code:
- if hasattr(self.brand_code, 'to_alipay_dict'):
- params['brand_code'] = self.brand_code.to_alipay_dict()
- else:
- params['brand_code'] = self.brand_code
- if self.category_code:
- if hasattr(self.category_code, 'to_alipay_dict'):
- params['category_code'] = self.category_code.to_alipay_dict()
- else:
- params['category_code'] = self.category_code
- if self.count:
- if hasattr(self.count, 'to_alipay_dict'):
- params['count'] = self.count.to_alipay_dict()
- else:
- params['count'] = self.count
- if self.country:
- if hasattr(self.country, 'to_alipay_dict'):
- params['country'] = self.country.to_alipay_dict()
- else:
- params['country'] = self.country
- if self.description:
- if hasattr(self.description, 'to_alipay_dict'):
- params['description'] = self.description.to_alipay_dict()
- else:
- params['description'] = self.description
- if self.id:
- if hasattr(self.id, 'to_alipay_dict'):
- params['id'] = self.id.to_alipay_dict()
- else:
- params['id'] = self.id
- if self.item_code:
- if hasattr(self.item_code, 'to_alipay_dict'):
- params['item_code'] = self.item_code.to_alipay_dict()
- else:
- params['item_code'] = self.item_code
- if self.picture:
- if hasattr(self.picture, 'to_alipay_dict'):
- params['picture'] = self.picture.to_alipay_dict()
- else:
- params['picture'] = self.picture
- if self.price:
- if hasattr(self.price, 'to_alipay_dict'):
- params['price'] = self.price.to_alipay_dict()
- else:
- params['price'] = self.price
- if self.specification:
- if hasattr(self.specification, 'to_alipay_dict'):
- params['specification'] = self.specification.to_alipay_dict()
- else:
- params['specification'] = self.specification
- if self.title:
- if hasattr(self.title, 'to_alipay_dict'):
- params['title'] = self.title.to_alipay_dict()
- else:
- params['title'] = self.title
- return params
- @staticmethod
- def from_alipay_dict(d):
- if not d:
- return None
- o = KoubeiItemExtitemUpdateModel()
- if 'brand_code' in d:
- o.brand_code = d['brand_code']
- if 'category_code' in d:
- o.category_code = d['category_code']
- if 'count' in d:
- o.count = d['count']
- if 'country' in d:
- o.country = d['country']
- if 'description' in d:
- o.description = d['description']
- if 'id' in d:
- o.id = d['id']
- if 'item_code' in d:
- o.item_code = d['item_code']
- if 'picture' in d:
- o.picture = d['picture']
- if 'price' in d:
- o.price = d['price']
- if 'specification' in d:
- o.specification = d['specification']
- if 'title' in d:
- o.title = d['title']
- return o
|