Repository URL to install this package:
|
Version:
3.3.202-c2ee258 ▾
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiAdvertDeliveryDiscountBatchqueryModel(object):
def __init__(self):
self._channel = None
self._city_code = None
self._latitude = None
self._longitude = None
self._mobile = None
self._purchase_num = None
self._shop_id = None
self._size = None
self._strategy = None
self._user_id = None
@property
def channel(self):
return self._channel
@channel.setter
def channel(self, value):
self._channel = value
@property
def city_code(self):
return self._city_code
@city_code.setter
def city_code(self, value):
self._city_code = value
@property
def latitude(self):
return self._latitude
@latitude.setter
def latitude(self, value):
self._latitude = value
@property
def longitude(self):
return self._longitude
@longitude.setter
def longitude(self, value):
self._longitude = value
@property
def mobile(self):
return self._mobile
@mobile.setter
def mobile(self, value):
self._mobile = value
@property
def purchase_num(self):
return self._purchase_num
@purchase_num.setter
def purchase_num(self, value):
self._purchase_num = value
@property
def shop_id(self):
return self._shop_id
@shop_id.setter
def shop_id(self, value):
self._shop_id = value
@property
def size(self):
return self._size
@size.setter
def size(self, value):
self._size = value
@property
def strategy(self):
return self._strategy
@strategy.setter
def strategy(self, value):
self._strategy = value
@property
def user_id(self):
return self._user_id
@user_id.setter
def user_id(self, value):
self._user_id = value
def to_alipay_dict(self):
params = dict()
if self.channel:
if hasattr(self.channel, 'to_alipay_dict'):
params['channel'] = self.channel.to_alipay_dict()
else:
params['channel'] = self.channel
if self.city_code:
if hasattr(self.city_code, 'to_alipay_dict'):
params['city_code'] = self.city_code.to_alipay_dict()
else:
params['city_code'] = self.city_code
if self.latitude:
if hasattr(self.latitude, 'to_alipay_dict'):
params['latitude'] = self.latitude.to_alipay_dict()
else:
params['latitude'] = self.latitude
if self.longitude:
if hasattr(self.longitude, 'to_alipay_dict'):
params['longitude'] = self.longitude.to_alipay_dict()
else:
params['longitude'] = self.longitude
if self.mobile:
if hasattr(self.mobile, 'to_alipay_dict'):
params['mobile'] = self.mobile.to_alipay_dict()
else:
params['mobile'] = self.mobile
if self.purchase_num:
if hasattr(self.purchase_num, 'to_alipay_dict'):
params['purchase_num'] = self.purchase_num.to_alipay_dict()
else:
params['purchase_num'] = self.purchase_num
if self.shop_id:
if hasattr(self.shop_id, 'to_alipay_dict'):
params['shop_id'] = self.shop_id.to_alipay_dict()
else:
params['shop_id'] = self.shop_id
if self.size:
if hasattr(self.size, 'to_alipay_dict'):
params['size'] = self.size.to_alipay_dict()
else:
params['size'] = self.size
if self.strategy:
if hasattr(self.strategy, 'to_alipay_dict'):
params['strategy'] = self.strategy.to_alipay_dict()
else:
params['strategy'] = self.strategy
if self.user_id:
if hasattr(self.user_id, 'to_alipay_dict'):
params['user_id'] = self.user_id.to_alipay_dict()
else:
params['user_id'] = self.user_id
return params
@staticmethod
def from_alipay_dict(d):
if not d:
return None
o = KoubeiAdvertDeliveryDiscountBatchqueryModel()
if 'channel' in d:
o.channel = d['channel']
if 'city_code' in d:
o.city_code = d['city_code']
if 'latitude' in d:
o.latitude = d['latitude']
if 'longitude' in d:
o.longitude = d['longitude']
if 'mobile' in d:
o.mobile = d['mobile']
if 'purchase_num' in d:
o.purchase_num = d['purchase_num']
if 'shop_id' in d:
o.shop_id = d['shop_id']
if 'size' in d:
o.size = d['size']
if 'strategy' in d:
o.strategy = d['strategy']
if 'user_id' in d:
o.user_id = d['user_id']
return o