From 9b3b7cba82ca6469eec9a0a0c80304bf84764e6a Mon Sep 17 00:00:00 2001 From: "samzong.lu" Date: Mon, 16 Aug 2021 19:53:45 +0800 Subject: [PATCH] add top --- top/__init__.py | 29 ++ top/api/__init__.py | 2 + top/api/base.py | 297 ++++++++++++++++++ top/api/rest/AppipGetRequest.py | 10 + top/api/rest/AppstoreSubscribeGetRequest.py | 12 + top/api/rest/AreasGetRequest.py | 11 + ...CbossWorkplatformBiztypeQueryallRequest.py | 12 + ...bossWorkplatformBiztypeQuerybyidRequest.py | 11 + ...kplatformLogisticsIscainiaoorderRequest.py | 11 + ...oCbossWorkplatformOperationReplyRequest.py | 19 ++ ...CbossWorkplatformWorkorderCreateRequest.py | 25 ++ ...rkplatformWorkorderProcessNotifyRequest.py | 11 + ...sWorkplatformWorkorderTaskNotifyRequest.py | 11 + top/api/rest/DeliveryTemplateAddRequest.py | 20 ++ top/api/rest/DeliveryTemplateDeleteRequest.py | 11 + top/api/rest/DeliveryTemplateGetRequest.py | 13 + top/api/rest/DeliveryTemplateUpdateRequest.py | 19 ++ top/api/rest/DeliveryTemplatesGetRequest.py | 11 + top/api/rest/FilesGetRequest.py | 13 + top/api/rest/FuwuSaleLinkGenRequest.py | 12 + top/api/rest/FuwuScoresGetRequest.py | 13 + top/api/rest/HttpdnsGetRequest.py | 10 + top/api/rest/ItemSkuGetRequest.py | 13 + top/api/rest/ItemSkusGetRequest.py | 12 + top/api/rest/ItemcatsAuthorizeGetRequest.py | 11 + top/api/rest/ItemsCustomGetRequest.py | 12 + top/api/rest/ItemsInventoryGetRequest.py | 24 ++ top/api/rest/ItemsOnsaleGetRequest.py | 26 ++ top/api/rest/JushitaJdpUserAddRequest.py | 15 + top/api/rest/JushitaJdpUserDeleteRequest.py | 12 + top/api/rest/JushitaJdpUsersGetRequest.py | 16 + top/api/rest/KfcKeywordSearchRequest.py | 13 + top/api/rest/LogisticsAddressAddRequest.py | 23 ++ top/api/rest/LogisticsAddressModifyRequest.py | 24 ++ .../rest/LogisticsAddressReachableRequest.py | 15 + ...ogisticsAddressReachablebatchGetRequest.py | 11 + top/api/rest/LogisticsAddressRemoveRequest.py | 11 + top/api/rest/LogisticsAddressSearchRequest.py | 11 + top/api/rest/LogisticsCompaniesGetRequest.py | 13 + top/api/rest/LogisticsConsignResendRequest.py | 17 + .../rest/LogisticsOrdersDetailGetRequest.py | 23 ++ top/api/rest/LogisticsOrdersGetRequest.py | 23 ++ top/api/rest/LogisticsPartnersGetRequest.py | 15 + top/api/rest/LogisticsTraceSearchRequest.py | 13 + top/api/rest/MarketingPromotionKfcRequest.py | 12 + .../MiniappAppSellerConfigCompleteRequest.py | 12 + .../rest/MiniappCloudFunctionInvokeRequest.py | 15 + .../MiniappDistributionItemsBindRequest.py | 13 + ...iniappDistributionMaterialCreateRequest.py | 11 + ...iniappDistributionMaterialDeleteRequest.py | 11 + .../MiniappDistributionMaterialGetRequest.py | 11 + ...iniappDistributionMaterialUpdateRequest.py | 11 + .../MiniappDistributionOrderCreateRequest.py | 11 + .../MiniappDistributionOrderGetRequest.py | 11 + ...appDistributionOrderItemsAllBindRequest.py | 11 + ...iniappDistributionOrderItemsBindRequest.py | 13 + ...iniappDistributionOrderPrecreateRequest.py | 11 + top/api/rest/MiniappShorturlCreateRequest.py | 11 + .../rest/MiniappTemplateInstantiateRequest.py | 18 ++ .../rest/MiniappTemplateOfflineappRequest.py | 14 + .../rest/MiniappTemplateOnlineappRequest.py | 15 + .../rest/MiniappTemplateQueryappRequest.py | 13 + .../rest/MiniappTemplateRollbackRequest.py | 15 + top/api/rest/MiniappTemplateUpdateRequest.py | 15 + .../rest/MiniappTemplateUpdateappRequest.py | 18 ++ top/api/rest/MiniappUserInfoGetRequest.py | 10 + .../MiniapppTemplateInstantiateRequest.py | 17 + top/api/rest/OpenlinkSessionGetRequest.py | 11 + top/api/rest/OpenuidGetBymixnickRequest.py | 11 + top/api/rest/OpenuidGetBytradeRequest.py | 11 + top/api/rest/OpenuidGetRequest.py | 10 + top/api/rest/PromotionActivityGetRequest.py | 11 + top/api/rest/PromotionCouponsGetRequest.py | 15 + .../PromotionLimitdiscountDetailGetRequest.py | 11 + .../rest/PromotionLimitdiscountGetRequest.py | 15 + top/api/rest/PromotionMealGetRequest.py | 12 + top/api/rest/RefundGetRequest.py | 12 + top/api/rest/RefundMessageAddRequest.py | 16 + top/api/rest/RefundMessagesGetRequest.py | 15 + top/api/rest/RefundRefuseRequest.py | 21 ++ top/api/rest/RefundRefusereasonGetRequest.py | 13 + top/api/rest/RefundsApplyGetRequest.py | 16 + top/api/rest/RefundsReceiveGetRequest.py | 19 ++ top/api/rest/RpRefundReviewRequest.py | 16 + top/api/rest/RpRefundsAgreeRequest.py | 12 + top/api/rest/RpReturngoodsAgreeRequest.py | 22 ++ top/api/rest/RpReturngoodsRefillRequest.py | 14 + top/api/rest/RpReturngoodsRefuseRequest.py | 18 ++ top/api/rest/SellercatsListGetRequest.py | 11 + top/api/rest/SellercenterRoleAddRequest.py | 14 + top/api/rest/SellercenterRolesGetRequest.py | 11 + ...centerSubuserPermissionsRolesGetRequest.py | 11 + .../rest/SellercenterSubusersGetRequest.py | 11 + .../SellercenterUserPermissionsGetRequest.py | 11 + top/api/rest/ShopSellerGetRequest.py | 11 + top/api/rest/ShopcatsListGetRequest.py | 11 + top/api/rest/SkusCustomGetRequest.py | 12 + top/api/rest/SpecialRefundGetRequest.py | 12 + .../rest/SpecialRefundsReceiveGetRequest.py | 19 ++ top/api/rest/SubuserDepartmentsGetRequest.py | 11 + top/api/rest/SubuserDutysGetRequest.py | 11 + top/api/rest/SubuserFullinfoGetRequest.py | 13 + top/api/rest/SubuserInfoUpdateRequest.py | 13 + top/api/rest/SubusersGetRequest.py | 11 + top/api/rest/TimeGetRequest.py | 10 + top/api/rest/TmallDisputeReceiveGetRequest.py | 20 ++ top/api/rest/TmallTraderateFeedsGetRequest.py | 11 + .../rest/TmallTraderateItemtagsGetRequest.py | 11 + top/api/rest/TopAuthTokenCreateRequest.py | 12 + top/api/rest/TopAuthTokenRefreshRequest.py | 11 + top/api/rest/TopIpoutGetRequest.py | 10 + top/api/rest/TopSdkFeedbackUploadRequest.py | 12 + top/api/rest/TopSecretGetRequest.py | 13 + top/api/rest/TopSecretRegisterRequest.py | 11 + top/api/rest/TradeAmountGetRequest.py | 12 + top/api/rest/TradeConfirmfeeGetRequest.py | 11 + top/api/rest/TradeFullinfoGetRequest.py | 13 + top/api/rest/TradeMemoAddRequest.py | 13 + top/api/rest/TradeMemoUpdateRequest.py | 14 + top/api/rest/TradeOrderskuUpdateRequest.py | 13 + top/api/rest/TradePostageUpdateRequest.py | 12 + top/api/rest/TradeReceivetimeDelayRequest.py | 12 + .../rest/TradeShippingaddressUpdateRequest.py | 20 ++ top/api/rest/TraderateAddRequest.py | 16 + top/api/rest/TraderateExplainAddRequest.py | 12 + .../rest/TraderateImprImprwordsGetRequest.py | 12 + top/api/rest/TraderateListAddRequest.py | 15 + top/api/rest/TraderatesGetRequest.py | 22 ++ top/api/rest/TradesSoldGetRequest.py | 23 ++ top/api/rest/TradesSoldIncrementGetRequest.py | 22 ++ .../rest/TradesSoldIncrementvGetRequest.py | 20 ++ top/api/rest/UmpPromotionGetRequest.py | 12 + top/api/rest/VasOrderSearchRequest.py | 20 ++ top/api/rest/VasSubscSearchRequest.py | 20 ++ top/api/rest/VasSubscribeGetRequest.py | 12 + top/api/rest/WlbOrderJzConsignRequest.py | 17 + top/api/rest/WlbOrderJzQueryRequest.py | 14 + top/api/rest/__init__.py | 134 ++++++++ 138 files changed, 2341 insertions(+) create mode 100755 top/__init__.py create mode 100755 top/api/__init__.py create mode 100755 top/api/base.py create mode 100755 top/api/rest/AppipGetRequest.py create mode 100755 top/api/rest/AppstoreSubscribeGetRequest.py create mode 100755 top/api/rest/AreasGetRequest.py create mode 100755 top/api/rest/CainiaoCbossWorkplatformBiztypeQueryallRequest.py create mode 100755 top/api/rest/CainiaoCbossWorkplatformBiztypeQuerybyidRequest.py create mode 100755 top/api/rest/CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest.py create mode 100755 top/api/rest/CainiaoCbossWorkplatformOperationReplyRequest.py create mode 100755 top/api/rest/CainiaoCbossWorkplatformWorkorderCreateRequest.py create mode 100755 top/api/rest/CainiaoCbossWorkplatformWorkorderProcessNotifyRequest.py create mode 100755 top/api/rest/CainiaoCbossWorkplatformWorkorderTaskNotifyRequest.py create mode 100755 top/api/rest/DeliveryTemplateAddRequest.py create mode 100755 top/api/rest/DeliveryTemplateDeleteRequest.py create mode 100755 top/api/rest/DeliveryTemplateGetRequest.py create mode 100755 top/api/rest/DeliveryTemplateUpdateRequest.py create mode 100755 top/api/rest/DeliveryTemplatesGetRequest.py create mode 100755 top/api/rest/FilesGetRequest.py create mode 100755 top/api/rest/FuwuSaleLinkGenRequest.py create mode 100755 top/api/rest/FuwuScoresGetRequest.py create mode 100755 top/api/rest/HttpdnsGetRequest.py create mode 100755 top/api/rest/ItemSkuGetRequest.py create mode 100755 top/api/rest/ItemSkusGetRequest.py create mode 100755 top/api/rest/ItemcatsAuthorizeGetRequest.py create mode 100755 top/api/rest/ItemsCustomGetRequest.py create mode 100755 top/api/rest/ItemsInventoryGetRequest.py create mode 100755 top/api/rest/ItemsOnsaleGetRequest.py create mode 100755 top/api/rest/JushitaJdpUserAddRequest.py create mode 100755 top/api/rest/JushitaJdpUserDeleteRequest.py create mode 100755 top/api/rest/JushitaJdpUsersGetRequest.py create mode 100755 top/api/rest/KfcKeywordSearchRequest.py create mode 100755 top/api/rest/LogisticsAddressAddRequest.py create mode 100755 top/api/rest/LogisticsAddressModifyRequest.py create mode 100755 top/api/rest/LogisticsAddressReachableRequest.py create mode 100755 top/api/rest/LogisticsAddressReachablebatchGetRequest.py create mode 100755 top/api/rest/LogisticsAddressRemoveRequest.py create mode 100755 top/api/rest/LogisticsAddressSearchRequest.py create mode 100755 top/api/rest/LogisticsCompaniesGetRequest.py create mode 100755 top/api/rest/LogisticsConsignResendRequest.py create mode 100755 top/api/rest/LogisticsOrdersDetailGetRequest.py create mode 100755 top/api/rest/LogisticsOrdersGetRequest.py create mode 100755 top/api/rest/LogisticsPartnersGetRequest.py create mode 100755 top/api/rest/LogisticsTraceSearchRequest.py create mode 100755 top/api/rest/MarketingPromotionKfcRequest.py create mode 100755 top/api/rest/MiniappAppSellerConfigCompleteRequest.py create mode 100755 top/api/rest/MiniappCloudFunctionInvokeRequest.py create mode 100755 top/api/rest/MiniappDistributionItemsBindRequest.py create mode 100755 top/api/rest/MiniappDistributionMaterialCreateRequest.py create mode 100755 top/api/rest/MiniappDistributionMaterialDeleteRequest.py create mode 100755 top/api/rest/MiniappDistributionMaterialGetRequest.py create mode 100755 top/api/rest/MiniappDistributionMaterialUpdateRequest.py create mode 100755 top/api/rest/MiniappDistributionOrderCreateRequest.py create mode 100755 top/api/rest/MiniappDistributionOrderGetRequest.py create mode 100755 top/api/rest/MiniappDistributionOrderItemsAllBindRequest.py create mode 100755 top/api/rest/MiniappDistributionOrderItemsBindRequest.py create mode 100755 top/api/rest/MiniappDistributionOrderPrecreateRequest.py create mode 100755 top/api/rest/MiniappShorturlCreateRequest.py create mode 100755 top/api/rest/MiniappTemplateInstantiateRequest.py create mode 100755 top/api/rest/MiniappTemplateOfflineappRequest.py create mode 100755 top/api/rest/MiniappTemplateOnlineappRequest.py create mode 100755 top/api/rest/MiniappTemplateQueryappRequest.py create mode 100755 top/api/rest/MiniappTemplateRollbackRequest.py create mode 100755 top/api/rest/MiniappTemplateUpdateRequest.py create mode 100755 top/api/rest/MiniappTemplateUpdateappRequest.py create mode 100755 top/api/rest/MiniappUserInfoGetRequest.py create mode 100755 top/api/rest/MiniapppTemplateInstantiateRequest.py create mode 100755 top/api/rest/OpenlinkSessionGetRequest.py create mode 100755 top/api/rest/OpenuidGetBymixnickRequest.py create mode 100755 top/api/rest/OpenuidGetBytradeRequest.py create mode 100755 top/api/rest/OpenuidGetRequest.py create mode 100755 top/api/rest/PromotionActivityGetRequest.py create mode 100755 top/api/rest/PromotionCouponsGetRequest.py create mode 100755 top/api/rest/PromotionLimitdiscountDetailGetRequest.py create mode 100755 top/api/rest/PromotionLimitdiscountGetRequest.py create mode 100755 top/api/rest/PromotionMealGetRequest.py create mode 100755 top/api/rest/RefundGetRequest.py create mode 100755 top/api/rest/RefundMessageAddRequest.py create mode 100755 top/api/rest/RefundMessagesGetRequest.py create mode 100755 top/api/rest/RefundRefuseRequest.py create mode 100755 top/api/rest/RefundRefusereasonGetRequest.py create mode 100755 top/api/rest/RefundsApplyGetRequest.py create mode 100755 top/api/rest/RefundsReceiveGetRequest.py create mode 100755 top/api/rest/RpRefundReviewRequest.py create mode 100755 top/api/rest/RpRefundsAgreeRequest.py create mode 100755 top/api/rest/RpReturngoodsAgreeRequest.py create mode 100755 top/api/rest/RpReturngoodsRefillRequest.py create mode 100755 top/api/rest/RpReturngoodsRefuseRequest.py create mode 100755 top/api/rest/SellercatsListGetRequest.py create mode 100755 top/api/rest/SellercenterRoleAddRequest.py create mode 100755 top/api/rest/SellercenterRolesGetRequest.py create mode 100755 top/api/rest/SellercenterSubuserPermissionsRolesGetRequest.py create mode 100755 top/api/rest/SellercenterSubusersGetRequest.py create mode 100755 top/api/rest/SellercenterUserPermissionsGetRequest.py create mode 100755 top/api/rest/ShopSellerGetRequest.py create mode 100755 top/api/rest/ShopcatsListGetRequest.py create mode 100755 top/api/rest/SkusCustomGetRequest.py create mode 100755 top/api/rest/SpecialRefundGetRequest.py create mode 100755 top/api/rest/SpecialRefundsReceiveGetRequest.py create mode 100755 top/api/rest/SubuserDepartmentsGetRequest.py create mode 100755 top/api/rest/SubuserDutysGetRequest.py create mode 100755 top/api/rest/SubuserFullinfoGetRequest.py create mode 100755 top/api/rest/SubuserInfoUpdateRequest.py create mode 100755 top/api/rest/SubusersGetRequest.py create mode 100755 top/api/rest/TimeGetRequest.py create mode 100755 top/api/rest/TmallDisputeReceiveGetRequest.py create mode 100755 top/api/rest/TmallTraderateFeedsGetRequest.py create mode 100755 top/api/rest/TmallTraderateItemtagsGetRequest.py create mode 100755 top/api/rest/TopAuthTokenCreateRequest.py create mode 100755 top/api/rest/TopAuthTokenRefreshRequest.py create mode 100755 top/api/rest/TopIpoutGetRequest.py create mode 100755 top/api/rest/TopSdkFeedbackUploadRequest.py create mode 100755 top/api/rest/TopSecretGetRequest.py create mode 100755 top/api/rest/TopSecretRegisterRequest.py create mode 100755 top/api/rest/TradeAmountGetRequest.py create mode 100755 top/api/rest/TradeConfirmfeeGetRequest.py create mode 100755 top/api/rest/TradeFullinfoGetRequest.py create mode 100755 top/api/rest/TradeMemoAddRequest.py create mode 100755 top/api/rest/TradeMemoUpdateRequest.py create mode 100755 top/api/rest/TradeOrderskuUpdateRequest.py create mode 100755 top/api/rest/TradePostageUpdateRequest.py create mode 100755 top/api/rest/TradeReceivetimeDelayRequest.py create mode 100755 top/api/rest/TradeShippingaddressUpdateRequest.py create mode 100755 top/api/rest/TraderateAddRequest.py create mode 100755 top/api/rest/TraderateExplainAddRequest.py create mode 100755 top/api/rest/TraderateImprImprwordsGetRequest.py create mode 100755 top/api/rest/TraderateListAddRequest.py create mode 100755 top/api/rest/TraderatesGetRequest.py create mode 100755 top/api/rest/TradesSoldGetRequest.py create mode 100755 top/api/rest/TradesSoldIncrementGetRequest.py create mode 100755 top/api/rest/TradesSoldIncrementvGetRequest.py create mode 100755 top/api/rest/UmpPromotionGetRequest.py create mode 100755 top/api/rest/VasOrderSearchRequest.py create mode 100755 top/api/rest/VasSubscSearchRequest.py create mode 100755 top/api/rest/VasSubscribeGetRequest.py create mode 100755 top/api/rest/WlbOrderJzConsignRequest.py create mode 100755 top/api/rest/WlbOrderJzQueryRequest.py create mode 100755 top/api/rest/__init__.py diff --git a/top/__init__.py b/top/__init__.py new file mode 100755 index 0000000..1759ea0 --- /dev/null +++ b/top/__init__.py @@ -0,0 +1,29 @@ +''' +Created on 2012-6-29 + +@author: lihao +''' +from top.api.base import sign + + + +class appinfo(object): + def __init__(self,appkey,secret): + self.appkey = appkey + self.secret = secret + +def getDefaultAppInfo(): + pass + + +def setDefaultAppInfo(appkey,secret): + default = appinfo(appkey,secret) + global getDefaultAppInfo + getDefaultAppInfo = lambda: default + + + + + + + diff --git a/top/api/__init__.py b/top/api/__init__.py new file mode 100755 index 0000000..fcb0931 --- /dev/null +++ b/top/api/__init__.py @@ -0,0 +1,2 @@ +from top.api.rest import * +from top.api.base import FileItem \ No newline at end of file diff --git a/top/api/base.py b/top/api/base.py new file mode 100755 index 0000000..d837f50 --- /dev/null +++ b/top/api/base.py @@ -0,0 +1,297 @@ +# -*- coding: utf-8 -*- +''' +Created on 2012-7-3 + +@author: lihao +''' + +try: + import httplib +except ImportError: + import http.client as httplib +import urllib +import time +import hashlib +import json +import top +import itertools +import mimetypes + +''' +定义一些系统变量 +''' + +SYSTEM_GENERATE_VERSION = "taobao-sdk-python-20210816" + +P_APPKEY = "app_key" +P_API = "method" +P_SESSION = "session" +P_ACCESS_TOKEN = "access_token" +P_VERSION = "v" +P_FORMAT = "format" +P_TIMESTAMP = "timestamp" +P_SIGN = "sign" +P_SIGN_METHOD = "sign_method" +P_PARTNER_ID = "partner_id" + +P_CODE = 'code' +P_SUB_CODE = 'sub_code' +P_MSG = 'msg' +P_SUB_MSG = 'sub_msg' + +N_REST = '/router/rest' + + +def sign(secret, parameters): + # =========================================================================== + # '''签名方法 + # @param secret: 签名需要的密钥 + # @param parameters: 支持字典和string两种 + # ''' + # =========================================================================== + # 如果parameters 是字典类的话 + if hasattr(parameters, "items"): + keys = sorted(parameters.keys()) + + parameters = "%s%s%s" % (secret, + str().join('%s%s' % (key, parameters[key]) for key in keys), + secret) + sign = hashlib.md5(parameters.encode('utf-8')).hexdigest().upper() + return sign + + +def mixStr(pstr): + if (isinstance(pstr, str)): + return pstr + elif (isinstance(pstr, bytes)): + return pstr.encode('utf-8') + else: + return str(pstr) + + +class FileItem(object): + def __init__(self, filename=None, content=None): + self.filename = filename + self.content = content + + +class MultiPartForm(object): + """Accumulate the data to be used when posting a form.""" + + def __init__(self): + self.form_fields = [] + self.files = [] + self.boundary = "PYTHON_SDK_BOUNDARY" + return + + def get_content_type(self): + return 'multipart/form-data; boundary=%s' % self.boundary + + def add_field(self, name, value): + """Add a simple field to the form data.""" + self.form_fields.append((name, str(value))) + return + + def add_file(self, fieldname, filename, fileHandle, mimetype=None): + """Add a file to be uploaded.""" + body = fileHandle.read() + if mimetype is None: + mimetype = mimetypes.guess_type(filename)[0] or 'application/octet-stream' + self.files.append((mixStr(fieldname), mixStr(filename), mixStr(mimetype), mixStr(body))) + return + + def __str__(self): + """Return a string representing the form data, including attached files.""" + # Build a list of lists, each containing "lines" of the + # request. Each part is separated by a boundary string. + # Once the list is built, return a string where each + # line is separated by '\r\n'. + parts = [] + part_boundary = '--' + self.boundary + + # Add the form fields + parts.extend( + [part_boundary, + 'Content-Disposition: form-data; name="%s"' % name, + 'Content-Type: text/plain; charset=UTF-8', + '', + value, + ] + for name, value in self.form_fields + ) + + # Add the files to upload + parts.extend( + [part_boundary, + 'Content-Disposition: file; name="%s"; filename="%s"' % \ + (field_name, filename), + 'Content-Type: %s' % content_type, + 'Content-Transfer-Encoding: binary', + '', + body, + ] + for field_name, filename, content_type, body in self.files + ) + + # Flatten the list and add closing boundary marker, + # then return CR+LF separated data + flattened = list(itertools.chain(*parts)) + flattened.append('--' + self.boundary + '--') + flattened.append('') + return '\r\n'.join(flattened) + + +class TopException(Exception): + # =========================================================================== + # 业务异常类 + # =========================================================================== + def __init__(self): + self.errorcode = None + self.message = None + self.subcode = None + self.submsg = None + self.application_host = None + self.service_host = None + + def __str__(self, *args, **kwargs): + sb = "errorcode=" + mixStr(self.errorcode) + \ + " message=" + mixStr(self.message) + \ + " subcode=" + mixStr(self.subcode) + \ + " submsg=" + mixStr(self.submsg) + \ + " application_host=" + mixStr(self.application_host) + \ + " service_host=" + mixStr(self.service_host) + return sb + + +class RequestException(Exception): + # =========================================================================== + # 请求连接异常类 + # =========================================================================== + pass + + +class RestApi(object): + # =========================================================================== + # Rest api的基类 + # =========================================================================== + + def __init__(self, domain='gw.api.taobao.com', port=80): + # ======================================================================= + # 初始化基类 + # Args @param domain: 请求的域名或者ip + # @param port: 请求的端口 + # ======================================================================= + self.__domain = domain + self.__port = port + self.__httpmethod = "POST" + if (top.getDefaultAppInfo()): + self.__app_key = top.getDefaultAppInfo().appkey + self.__secret = top.getDefaultAppInfo().secret + + def get_request_header(self): + return { + 'Content-type': 'application/x-www-form-urlencoded;charset=UTF-8', + "Cache-Control": "no-cache", + "Connection": "Keep-Alive", + } + + def set_app_info(self, appinfo): + # ======================================================================= + # 设置请求的app信息 + # @param appinfo: import top + # appinfo top.appinfo(appkey,secret) + # ======================================================================= + self.__app_key = appinfo.appkey + self.__secret = appinfo.secret + + def getapiname(self): + return "" + + def getMultipartParas(self): + return []; + + def getTranslateParas(self): + return {}; + + def _check_requst(self): + pass + + def getResponse(self, authrize=None, timeout=30): + # ======================================================================= + # 获取response结果 + # ======================================================================= + if (self.__port == 443): + connection = httplib.HTTPSConnection(self.__domain, self.__port, None, None, False, timeout) + else: + connection = httplib.HTTPConnection(self.__domain, self.__port, timeout) + sys_parameters = { + P_FORMAT: 'json', + P_APPKEY: self.__app_key, + P_SIGN_METHOD: "md5", + P_VERSION: '2.0', + P_TIMESTAMP: str(int(time.time() * 1000)), + P_PARTNER_ID: SYSTEM_GENERATE_VERSION, + P_API: self.getapiname(), + } + if authrize is not None: + sys_parameters[P_SESSION] = authrize + application_parameter = self.getApplicationParameters() + sign_parameter = sys_parameters.copy() + sign_parameter.update(application_parameter) + sys_parameters[P_SIGN] = sign(self.__secret, sign_parameter) + connection.connect() + + header = self.get_request_header(); + if (self.getMultipartParas()): + form = MultiPartForm() + for key, value in application_parameter.items(): + form.add_field(key, value) + for key in self.getMultipartParas(): + fileitem = getattr(self, key) + if (fileitem and isinstance(fileitem, FileItem)): + form.add_file(key, fileitem.filename, fileitem.content) + body = str(form) + header['Content-type'] = form.get_content_type() + else: + body = urllib.parse.urlencode(application_parameter) + + url = N_REST + "?" + urllib.parse.urlencode(sys_parameters) + connection.request(self.__httpmethod, url, body=body, headers=header) + response = connection.getresponse(); + if response.status != 200: + raise RequestException('invalid http status ' + str(response.status) + ',detail body:' + response.read()) + result = response.read() + jsonobj = json.loads(result) + if "error_response" in jsonobj: + error = TopException() + if P_CODE in jsonobj["error_response"]: + error.errorcode = jsonobj["error_response"][P_CODE] + if P_MSG in jsonobj["error_response"]: + error.message = jsonobj["error_response"][P_MSG] + if P_SUB_CODE in jsonobj["error_response"]: + error.subcode = jsonobj["error_response"][P_SUB_CODE] + if P_SUB_MSG in jsonobj["error_response"]: + error.submsg = jsonobj["error_response"][P_SUB_MSG] + error.application_host = response.getheader("Application-Host", "") + error.service_host = response.getheader("Location-Host", "") + raise error + return jsonobj + + + def getApplicationParameters(self): + application_parameter = {} + for key, value in self.__dict__.items(): + if not key.startswith("__") and not key in self.getMultipartParas() and not key.startswith( + "_RestApi__" + ) and value is not None: + if (key.startswith("_")): + application_parameter[key[1:]] = value + else: + application_parameter[key] = value + # 查询翻译字典来规避一些关键字属性 + translate_parameter = self.getTranslateParas() + for key, value in application_parameter.items(): + if key in translate_parameter: + application_parameter[translate_parameter[key]] = application_parameter[key] + del application_parameter[key] + return application_parameter diff --git a/top/api/rest/AppipGetRequest.py b/top/api/rest/AppipGetRequest.py new file mode 100755 index 0000000..5946720 --- /dev/null +++ b/top/api/rest/AppipGetRequest.py @@ -0,0 +1,10 @@ +''' +Created by auto_sdk on 2020.08.28 +''' +from top.api.base import RestApi +class AppipGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + + def getapiname(self): + return 'taobao.appip.get' diff --git a/top/api/rest/AppstoreSubscribeGetRequest.py b/top/api/rest/AppstoreSubscribeGetRequest.py new file mode 100755 index 0000000..598c3bc --- /dev/null +++ b/top/api/rest/AppstoreSubscribeGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class AppstoreSubscribeGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.lease_id = None + self.nick = None + + def getapiname(self): + return 'taobao.appstore.subscribe.get' diff --git a/top/api/rest/AreasGetRequest.py b/top/api/rest/AreasGetRequest.py new file mode 100755 index 0000000..37bdb15 --- /dev/null +++ b/top/api/rest/AreasGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2020.12.14 +''' +from top.api.base import RestApi +class AreasGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + + def getapiname(self): + return 'taobao.areas.get' diff --git a/top/api/rest/CainiaoCbossWorkplatformBiztypeQueryallRequest.py b/top/api/rest/CainiaoCbossWorkplatformBiztypeQueryallRequest.py new file mode 100755 index 0000000..8001137 --- /dev/null +++ b/top/api/rest/CainiaoCbossWorkplatformBiztypeQueryallRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class CainiaoCbossWorkplatformBiztypeQueryallRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.level = None + self.trade_id = None + + def getapiname(self): + return 'cainiao.cboss.workplatform.biztype.queryall' diff --git a/top/api/rest/CainiaoCbossWorkplatformBiztypeQuerybyidRequest.py b/top/api/rest/CainiaoCbossWorkplatformBiztypeQuerybyidRequest.py new file mode 100755 index 0000000..7449904 --- /dev/null +++ b/top/api/rest/CainiaoCbossWorkplatformBiztypeQuerybyidRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class CainiaoCbossWorkplatformBiztypeQuerybyidRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.biz_type_id = None + + def getapiname(self): + return 'cainiao.cboss.workplatform.biztype.querybyid' diff --git a/top/api/rest/CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest.py b/top/api/rest/CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest.py new file mode 100755 index 0000000..dd8e7f0 --- /dev/null +++ b/top/api/rest/CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.trade_id = None + + def getapiname(self): + return 'cainiao.cboss.workplatform.logistics.iscainiaoorder' diff --git a/top/api/rest/CainiaoCbossWorkplatformOperationReplyRequest.py b/top/api/rest/CainiaoCbossWorkplatformOperationReplyRequest.py new file mode 100755 index 0000000..33cefe0 --- /dev/null +++ b/top/api/rest/CainiaoCbossWorkplatformOperationReplyRequest.py @@ -0,0 +1,19 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class CainiaoCbossWorkplatformOperationReplyRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.action_time = None + self.action_type = None + self.attach_path = None + self.dealer_contact = None + self.dealer_user_id = None + self.features = None + self.memo = None + self.task_id = None + self.work_order_id = None + + def getapiname(self): + return 'cainiao.cboss.workplatform.operation.reply' diff --git a/top/api/rest/CainiaoCbossWorkplatformWorkorderCreateRequest.py b/top/api/rest/CainiaoCbossWorkplatformWorkorderCreateRequest.py new file mode 100755 index 0000000..ae0328d --- /dev/null +++ b/top/api/rest/CainiaoCbossWorkplatformWorkorderCreateRequest.py @@ -0,0 +1,25 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class CainiaoCbossWorkplatformWorkorderCreateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.attach_path_list = None + self.biz_entity_value = None + self.biz_type = None + self.creator_id = None + self.creator_role = None + self.features = None + self.mail_no = None + self.member_id = None + self.member_role = None + self.memo = None + self.shop_user_id = None + self.source = None + self.source_sign = None + self.trade_id = None + self.work_order_type = None + + def getapiname(self): + return 'cainiao.cboss.workplatform.workorder.create' diff --git a/top/api/rest/CainiaoCbossWorkplatformWorkorderProcessNotifyRequest.py b/top/api/rest/CainiaoCbossWorkplatformWorkorderProcessNotifyRequest.py new file mode 100755 index 0000000..d4c72b4 --- /dev/null +++ b/top/api/rest/CainiaoCbossWorkplatformWorkorderProcessNotifyRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class CainiaoCbossWorkplatformWorkorderProcessNotifyRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.content = None + + def getapiname(self): + return 'cainiao.cboss.workplatform.workorder.process.notify' diff --git a/top/api/rest/CainiaoCbossWorkplatformWorkorderTaskNotifyRequest.py b/top/api/rest/CainiaoCbossWorkplatformWorkorderTaskNotifyRequest.py new file mode 100755 index 0000000..a442df4 --- /dev/null +++ b/top/api/rest/CainiaoCbossWorkplatformWorkorderTaskNotifyRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class CainiaoCbossWorkplatformWorkorderTaskNotifyRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.content = None + + def getapiname(self): + return 'cainiao.cboss.workplatform.workorder.task.notify' diff --git a/top/api/rest/DeliveryTemplateAddRequest.py b/top/api/rest/DeliveryTemplateAddRequest.py new file mode 100755 index 0000000..6e6abca --- /dev/null +++ b/top/api/rest/DeliveryTemplateAddRequest.py @@ -0,0 +1,20 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class DeliveryTemplateAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.assumer = None + self.consign_area_id = None + self.name = None + self.template_add_fees = None + self.template_add_standards = None + self.template_dests = None + self.template_start_fees = None + self.template_start_standards = None + self.template_types = None + self.valuation = None + + def getapiname(self): + return 'taobao.delivery.template.add' diff --git a/top/api/rest/DeliveryTemplateDeleteRequest.py b/top/api/rest/DeliveryTemplateDeleteRequest.py new file mode 100755 index 0000000..2454ce2 --- /dev/null +++ b/top/api/rest/DeliveryTemplateDeleteRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class DeliveryTemplateDeleteRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.template_id = None + + def getapiname(self): + return 'taobao.delivery.template.delete' diff --git a/top/api/rest/DeliveryTemplateGetRequest.py b/top/api/rest/DeliveryTemplateGetRequest.py new file mode 100755 index 0000000..97216ea --- /dev/null +++ b/top/api/rest/DeliveryTemplateGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class DeliveryTemplateGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.template_ids = None + self.user_nick = None + + def getapiname(self): + return 'taobao.delivery.template.get' diff --git a/top/api/rest/DeliveryTemplateUpdateRequest.py b/top/api/rest/DeliveryTemplateUpdateRequest.py new file mode 100755 index 0000000..fb64c96 --- /dev/null +++ b/top/api/rest/DeliveryTemplateUpdateRequest.py @@ -0,0 +1,19 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class DeliveryTemplateUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.assumer = None + self.name = None + self.template_add_fees = None + self.template_add_standards = None + self.template_dests = None + self.template_id = None + self.template_start_fees = None + self.template_start_standards = None + self.template_types = None + + def getapiname(self): + return 'taobao.delivery.template.update' diff --git a/top/api/rest/DeliveryTemplatesGetRequest.py b/top/api/rest/DeliveryTemplatesGetRequest.py new file mode 100755 index 0000000..eef8611 --- /dev/null +++ b/top/api/rest/DeliveryTemplatesGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class DeliveryTemplatesGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + + def getapiname(self): + return 'taobao.delivery.templates.get' diff --git a/top/api/rest/FilesGetRequest.py b/top/api/rest/FilesGetRequest.py new file mode 100755 index 0000000..52fe5eb --- /dev/null +++ b/top/api/rest/FilesGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class FilesGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.end_date = None + self.start_date = None + self.status = None + + def getapiname(self): + return 'taobao.files.get' diff --git a/top/api/rest/FuwuSaleLinkGenRequest.py b/top/api/rest/FuwuSaleLinkGenRequest.py new file mode 100755 index 0000000..77d5eab --- /dev/null +++ b/top/api/rest/FuwuSaleLinkGenRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.09.28 +''' +from top.api.base import RestApi +class FuwuSaleLinkGenRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.nick = None + self.param_str = None + + def getapiname(self): + return 'taobao.fuwu.sale.link.gen' diff --git a/top/api/rest/FuwuScoresGetRequest.py b/top/api/rest/FuwuScoresGetRequest.py new file mode 100755 index 0000000..c82a367 --- /dev/null +++ b/top/api/rest/FuwuScoresGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class FuwuScoresGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.current_page = None + self.date = None + self.page_size = None + + def getapiname(self): + return 'taobao.fuwu.scores.get' diff --git a/top/api/rest/HttpdnsGetRequest.py b/top/api/rest/HttpdnsGetRequest.py new file mode 100755 index 0000000..dc97898 --- /dev/null +++ b/top/api/rest/HttpdnsGetRequest.py @@ -0,0 +1,10 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class HttpdnsGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + + def getapiname(self): + return 'taobao.httpdns.get' diff --git a/top/api/rest/ItemSkuGetRequest.py b/top/api/rest/ItemSkuGetRequest.py new file mode 100755 index 0000000..a43a2df --- /dev/null +++ b/top/api/rest/ItemSkuGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2020.07.21 +''' +from top.api.base import RestApi +class ItemSkuGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.num_iid = None + self.sku_id = None + + def getapiname(self): + return 'taobao.item.sku.get' diff --git a/top/api/rest/ItemSkusGetRequest.py b/top/api/rest/ItemSkusGetRequest.py new file mode 100755 index 0000000..74660e9 --- /dev/null +++ b/top/api/rest/ItemSkusGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.07.21 +''' +from top.api.base import RestApi +class ItemSkusGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.num_iids = None + + def getapiname(self): + return 'taobao.item.skus.get' diff --git a/top/api/rest/ItemcatsAuthorizeGetRequest.py b/top/api/rest/ItemcatsAuthorizeGetRequest.py new file mode 100755 index 0000000..972ad36 --- /dev/null +++ b/top/api/rest/ItemcatsAuthorizeGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.10.15 +''' +from top.api.base import RestApi +class ItemcatsAuthorizeGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + + def getapiname(self): + return 'taobao.itemcats.authorize.get' diff --git a/top/api/rest/ItemsCustomGetRequest.py b/top/api/rest/ItemsCustomGetRequest.py new file mode 100755 index 0000000..f36063e --- /dev/null +++ b/top/api/rest/ItemsCustomGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.07.21 +''' +from top.api.base import RestApi +class ItemsCustomGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.outer_id = None + + def getapiname(self): + return 'taobao.items.custom.get' diff --git a/top/api/rest/ItemsInventoryGetRequest.py b/top/api/rest/ItemsInventoryGetRequest.py new file mode 100755 index 0000000..7774e0b --- /dev/null +++ b/top/api/rest/ItemsInventoryGetRequest.py @@ -0,0 +1,24 @@ +''' +Created by auto_sdk on 2020.07.21 +''' +from top.api.base import RestApi +class ItemsInventoryGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.auction_type = None + self.banner = None + self.cid = None + self.end_modified = None + self.fields = None + self.has_discount = None + self.is_ex = None + self.is_taobao = None + self.order_by = None + self.page_no = None + self.page_size = None + self.q = None + self.seller_cids = None + self.start_modified = None + + def getapiname(self): + return 'taobao.items.inventory.get' diff --git a/top/api/rest/ItemsOnsaleGetRequest.py b/top/api/rest/ItemsOnsaleGetRequest.py new file mode 100755 index 0000000..b8fb188 --- /dev/null +++ b/top/api/rest/ItemsOnsaleGetRequest.py @@ -0,0 +1,26 @@ +''' +Created by auto_sdk on 2020.08.11 +''' +from top.api.base import RestApi +class ItemsOnsaleGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.auction_type = None + self.cid = None + self.end_modified = None + self.fields = None + self.has_discount = None + self.has_showcase = None + self.is_combine = None + self.is_cspu = None + self.is_ex = None + self.is_taobao = None + self.order_by = None + self.page_no = None + self.page_size = None + self.q = None + self.seller_cids = None + self.start_modified = None + + def getapiname(self): + return 'taobao.items.onsale.get' diff --git a/top/api/rest/JushitaJdpUserAddRequest.py b/top/api/rest/JushitaJdpUserAddRequest.py new file mode 100755 index 0000000..94d7eff --- /dev/null +++ b/top/api/rest/JushitaJdpUserAddRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2018.11.13 +''' +from top.api.base import RestApi +class JushitaJdpUserAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.history_days = None + self.host_ip = None + self.host_name = None + self.rds_name = None + self.topics = None + + def getapiname(self): + return 'taobao.jushita.jdp.user.add' diff --git a/top/api/rest/JushitaJdpUserDeleteRequest.py b/top/api/rest/JushitaJdpUserDeleteRequest.py new file mode 100755 index 0000000..b982c85 --- /dev/null +++ b/top/api/rest/JushitaJdpUserDeleteRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class JushitaJdpUserDeleteRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.nick = None + self.user_id = None + + def getapiname(self): + return 'taobao.jushita.jdp.user.delete' diff --git a/top/api/rest/JushitaJdpUsersGetRequest.py b/top/api/rest/JushitaJdpUsersGetRequest.py new file mode 100755 index 0000000..2d2dbb7 --- /dev/null +++ b/top/api/rest/JushitaJdpUsersGetRequest.py @@ -0,0 +1,16 @@ +''' +Created by auto_sdk on 2019.12.17 +''' +from top.api.base import RestApi +class JushitaJdpUsersGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.end_modified = None + self.page_no = None + self.page_size = None + self.start_modified = None + self.target_appkey = None + self.user_id = None + + def getapiname(self): + return 'taobao.jushita.jdp.users.get' diff --git a/top/api/rest/KfcKeywordSearchRequest.py b/top/api/rest/KfcKeywordSearchRequest.py new file mode 100755 index 0000000..9b88ea7 --- /dev/null +++ b/top/api/rest/KfcKeywordSearchRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class KfcKeywordSearchRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.apply = None + self.content = None + self.nick = None + + def getapiname(self): + return 'taobao.kfc.keyword.search' diff --git a/top/api/rest/LogisticsAddressAddRequest.py b/top/api/rest/LogisticsAddressAddRequest.py new file mode 100755 index 0000000..58fec4b --- /dev/null +++ b/top/api/rest/LogisticsAddressAddRequest.py @@ -0,0 +1,23 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class LogisticsAddressAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.addr = None + self.cancel_def = None + self.city = None + self.contact_name = None + self.country = None + self.get_def = None + self.memo = None + self.mobile_phone = None + self.phone = None + self.province = None + self.seller_company = None + self.send_def = None + self.zip_code = None + + def getapiname(self): + return 'taobao.logistics.address.add' diff --git a/top/api/rest/LogisticsAddressModifyRequest.py b/top/api/rest/LogisticsAddressModifyRequest.py new file mode 100755 index 0000000..98cc7e5 --- /dev/null +++ b/top/api/rest/LogisticsAddressModifyRequest.py @@ -0,0 +1,24 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class LogisticsAddressModifyRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.addr = None + self.cancel_def = None + self.city = None + self.contact_id = None + self.contact_name = None + self.country = None + self.get_def = None + self.memo = None + self.mobile_phone = None + self.phone = None + self.province = None + self.seller_company = None + self.send_def = None + self.zip_code = None + + def getapiname(self): + return 'taobao.logistics.address.modify' diff --git a/top/api/rest/LogisticsAddressReachableRequest.py b/top/api/rest/LogisticsAddressReachableRequest.py new file mode 100755 index 0000000..d70f2de --- /dev/null +++ b/top/api/rest/LogisticsAddressReachableRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2021.01.26 +''' +from top.api.base import RestApi +class LogisticsAddressReachableRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.address = None + self.area_code = None + self.partner_ids = None + self.service_type = None + self.source_area_code = None + + def getapiname(self): + return 'taobao.logistics.address.reachable' diff --git a/top/api/rest/LogisticsAddressReachablebatchGetRequest.py b/top/api/rest/LogisticsAddressReachablebatchGetRequest.py new file mode 100755 index 0000000..7c431e3 --- /dev/null +++ b/top/api/rest/LogisticsAddressReachablebatchGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.01.26 +''' +from top.api.base import RestApi +class LogisticsAddressReachablebatchGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.address_list = None + + def getapiname(self): + return 'taobao.logistics.address.reachablebatch.get' diff --git a/top/api/rest/LogisticsAddressRemoveRequest.py b/top/api/rest/LogisticsAddressRemoveRequest.py new file mode 100755 index 0000000..90f538e --- /dev/null +++ b/top/api/rest/LogisticsAddressRemoveRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class LogisticsAddressRemoveRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.contact_id = None + + def getapiname(self): + return 'taobao.logistics.address.remove' diff --git a/top/api/rest/LogisticsAddressSearchRequest.py b/top/api/rest/LogisticsAddressSearchRequest.py new file mode 100755 index 0000000..15e3a60 --- /dev/null +++ b/top/api/rest/LogisticsAddressSearchRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class LogisticsAddressSearchRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.rdef = None + + def getapiname(self): + return 'taobao.logistics.address.search' diff --git a/top/api/rest/LogisticsCompaniesGetRequest.py b/top/api/rest/LogisticsCompaniesGetRequest.py new file mode 100755 index 0000000..8720a40 --- /dev/null +++ b/top/api/rest/LogisticsCompaniesGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.10.18 +''' +from top.api.base import RestApi +class LogisticsCompaniesGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.is_recommended = None + self.order_mode = None + + def getapiname(self): + return 'taobao.logistics.companies.get' diff --git a/top/api/rest/LogisticsConsignResendRequest.py b/top/api/rest/LogisticsConsignResendRequest.py new file mode 100755 index 0000000..b9a1da1 --- /dev/null +++ b/top/api/rest/LogisticsConsignResendRequest.py @@ -0,0 +1,17 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class LogisticsConsignResendRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.company_code = None + self.feature = None + self.is_split = None + self.out_sid = None + self.seller_ip = None + self.sub_tid = None + self.tid = None + + def getapiname(self): + return 'taobao.logistics.consign.resend' diff --git a/top/api/rest/LogisticsOrdersDetailGetRequest.py b/top/api/rest/LogisticsOrdersDetailGetRequest.py new file mode 100755 index 0000000..fb6c04b --- /dev/null +++ b/top/api/rest/LogisticsOrdersDetailGetRequest.py @@ -0,0 +1,23 @@ +''' +Created by auto_sdk on 2021.08.13 +''' +from top.api.base import RestApi +class LogisticsOrdersDetailGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.buyer_nick = None + self.end_created = None + self.fields = None + self.freight_payer = None + self.ouid = None + self.page_no = None + self.page_size = None + self.receiver_name = None + self.seller_confirm = None + self.start_created = None + self.status = None + self.tid = None + self.type = None + + def getapiname(self): + return 'taobao.logistics.orders.detail.get' diff --git a/top/api/rest/LogisticsOrdersGetRequest.py b/top/api/rest/LogisticsOrdersGetRequest.py new file mode 100755 index 0000000..4db6d29 --- /dev/null +++ b/top/api/rest/LogisticsOrdersGetRequest.py @@ -0,0 +1,23 @@ +''' +Created by auto_sdk on 2021.08.13 +''' +from top.api.base import RestApi +class LogisticsOrdersGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.buyer_nick = None + self.end_created = None + self.fields = None + self.freight_payer = None + self.ouid = None + self.page_no = None + self.page_size = None + self.receiver_name = None + self.seller_confirm = None + self.start_created = None + self.status = None + self.tid = None + self.type = None + + def getapiname(self): + return 'taobao.logistics.orders.get' diff --git a/top/api/rest/LogisticsPartnersGetRequest.py b/top/api/rest/LogisticsPartnersGetRequest.py new file mode 100755 index 0000000..e0028c5 --- /dev/null +++ b/top/api/rest/LogisticsPartnersGetRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class LogisticsPartnersGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.goods_value = None + self.is_need_carriage = None + self.service_type = None + self.source_id = None + self.target_id = None + + def getapiname(self): + return 'taobao.logistics.partners.get' diff --git a/top/api/rest/LogisticsTraceSearchRequest.py b/top/api/rest/LogisticsTraceSearchRequest.py new file mode 100755 index 0000000..d03c571 --- /dev/null +++ b/top/api/rest/LogisticsTraceSearchRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2021.07.08 +''' +from top.api.base import RestApi +class LogisticsTraceSearchRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.is_split = None + self.sub_tid = None + self.tid = None + + def getapiname(self): + return 'taobao.logistics.trace.search' diff --git a/top/api/rest/MarketingPromotionKfcRequest.py b/top/api/rest/MarketingPromotionKfcRequest.py new file mode 100755 index 0000000..8243063 --- /dev/null +++ b/top/api/rest/MarketingPromotionKfcRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class MarketingPromotionKfcRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.promotion_desc = None + self.promotion_title = None + + def getapiname(self): + return 'taobao.marketing.promotion.kfc' diff --git a/top/api/rest/MiniappAppSellerConfigCompleteRequest.py b/top/api/rest/MiniappAppSellerConfigCompleteRequest.py new file mode 100755 index 0000000..98d2472 --- /dev/null +++ b/top/api/rest/MiniappAppSellerConfigCompleteRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2021.06.15 +''' +from top.api.base import RestApi +class MiniappAppSellerConfigCompleteRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.app_id = None + self.version = None + + def getapiname(self): + return 'taobao.miniapp.app.seller.config.complete' diff --git a/top/api/rest/MiniappCloudFunctionInvokeRequest.py b/top/api/rest/MiniappCloudFunctionInvokeRequest.py new file mode 100755 index 0000000..687cc8d --- /dev/null +++ b/top/api/rest/MiniappCloudFunctionInvokeRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2021.02.24 +''' +from top.api.base import RestApi +class MiniappCloudFunctionInvokeRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.data = None + self.env = None + self.exts = None + self.handler = None + self.name = None + + def getapiname(self): + return 'taobao.miniapp.cloud.function.invoke' diff --git a/top/api/rest/MiniappDistributionItemsBindRequest.py b/top/api/rest/MiniappDistributionItemsBindRequest.py new file mode 100755 index 0000000..9d81bf8 --- /dev/null +++ b/top/api/rest/MiniappDistributionItemsBindRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2020.10.20 +''' +from top.api.base import RestApi +class MiniappDistributionItemsBindRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.add_bind = None + self.target_entity_list = None + self.url = None + + def getapiname(self): + return 'taobao.miniapp.distribution.items.bind' diff --git a/top/api/rest/MiniappDistributionMaterialCreateRequest.py b/top/api/rest/MiniappDistributionMaterialCreateRequest.py new file mode 100755 index 0000000..87c1e46 --- /dev/null +++ b/top/api/rest/MiniappDistributionMaterialCreateRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.08.09 +''' +from top.api.base import RestApi +class MiniappDistributionMaterialCreateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.material_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.material.create' diff --git a/top/api/rest/MiniappDistributionMaterialDeleteRequest.py b/top/api/rest/MiniappDistributionMaterialDeleteRequest.py new file mode 100755 index 0000000..81258a3 --- /dev/null +++ b/top/api/rest/MiniappDistributionMaterialDeleteRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.08.09 +''' +from top.api.base import RestApi +class MiniappDistributionMaterialDeleteRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.material_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.material.delete' diff --git a/top/api/rest/MiniappDistributionMaterialGetRequest.py b/top/api/rest/MiniappDistributionMaterialGetRequest.py new file mode 100755 index 0000000..e195ead --- /dev/null +++ b/top/api/rest/MiniappDistributionMaterialGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.08.09 +''' +from top.api.base import RestApi +class MiniappDistributionMaterialGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.material_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.material.get' diff --git a/top/api/rest/MiniappDistributionMaterialUpdateRequest.py b/top/api/rest/MiniappDistributionMaterialUpdateRequest.py new file mode 100755 index 0000000..7773e66 --- /dev/null +++ b/top/api/rest/MiniappDistributionMaterialUpdateRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.08.09 +''' +from top.api.base import RestApi +class MiniappDistributionMaterialUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.material_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.material.update' diff --git a/top/api/rest/MiniappDistributionOrderCreateRequest.py b/top/api/rest/MiniappDistributionOrderCreateRequest.py new file mode 100755 index 0000000..a56d0bc --- /dev/null +++ b/top/api/rest/MiniappDistributionOrderCreateRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.07.29 +''' +from top.api.base import RestApi +class MiniappDistributionOrderCreateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.order_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.order.create' diff --git a/top/api/rest/MiniappDistributionOrderGetRequest.py b/top/api/rest/MiniappDistributionOrderGetRequest.py new file mode 100755 index 0000000..3fe7187 --- /dev/null +++ b/top/api/rest/MiniappDistributionOrderGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.05.18 +''' +from top.api.base import RestApi +class MiniappDistributionOrderGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.order_id_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.order.get' diff --git a/top/api/rest/MiniappDistributionOrderItemsAllBindRequest.py b/top/api/rest/MiniappDistributionOrderItemsAllBindRequest.py new file mode 100755 index 0000000..b5854fd --- /dev/null +++ b/top/api/rest/MiniappDistributionOrderItemsAllBindRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.05.18 +''' +from top.api.base import RestApi +class MiniappDistributionOrderItemsAllBindRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.all_item_bind_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.order.items.all.bind' diff --git a/top/api/rest/MiniappDistributionOrderItemsBindRequest.py b/top/api/rest/MiniappDistributionOrderItemsBindRequest.py new file mode 100755 index 0000000..9c8c1b3 --- /dev/null +++ b/top/api/rest/MiniappDistributionOrderItemsBindRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2021.03.17 +''' +from top.api.base import RestApi +class MiniappDistributionOrderItemsBindRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.add_bind = None + self.distribute_id = None + self.target_entity_list = None + + def getapiname(self): + return 'taobao.miniapp.distribution.order.items.bind' diff --git a/top/api/rest/MiniappDistributionOrderPrecreateRequest.py b/top/api/rest/MiniappDistributionOrderPrecreateRequest.py new file mode 100755 index 0000000..a84d743 --- /dev/null +++ b/top/api/rest/MiniappDistributionOrderPrecreateRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.08.10 +''' +from top.api.base import RestApi +class MiniappDistributionOrderPrecreateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.order_request = None + + def getapiname(self): + return 'taobao.miniapp.distribution.order.precreate' diff --git a/top/api/rest/MiniappShorturlCreateRequest.py b/top/api/rest/MiniappShorturlCreateRequest.py new file mode 100755 index 0000000..23ecee3 --- /dev/null +++ b/top/api/rest/MiniappShorturlCreateRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2020.10.12 +''' +from top.api.base import RestApi +class MiniappShorturlCreateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.miniapp_url = None + + def getapiname(self): + return 'taobao.miniapp.shorturl.create' diff --git a/top/api/rest/MiniappTemplateInstantiateRequest.py b/top/api/rest/MiniappTemplateInstantiateRequest.py new file mode 100755 index 0000000..8ba8630 --- /dev/null +++ b/top/api/rest/MiniappTemplateInstantiateRequest.py @@ -0,0 +1,18 @@ +''' +Created by auto_sdk on 2020.11.30 +''' +from top.api.base import RestApi +class MiniappTemplateInstantiateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.alias = None + self.clients = None + self.description = None + self.ext_json = None + self.icon = None + self.name = None + self.template_id = None + self.template_version = None + + def getapiname(self): + return 'taobao.miniapp.template.instantiate' diff --git a/top/api/rest/MiniappTemplateOfflineappRequest.py b/top/api/rest/MiniappTemplateOfflineappRequest.py new file mode 100755 index 0000000..783bb48 --- /dev/null +++ b/top/api/rest/MiniappTemplateOfflineappRequest.py @@ -0,0 +1,14 @@ +''' +Created by auto_sdk on 2020.11.26 +''' +from top.api.base import RestApi +class MiniappTemplateOfflineappRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.app_id = None + self.app_version = None + self.clients = None + self.template_id = None + + def getapiname(self): + return 'taobao.miniapp.template.offlineapp' diff --git a/top/api/rest/MiniappTemplateOnlineappRequest.py b/top/api/rest/MiniappTemplateOnlineappRequest.py new file mode 100755 index 0000000..fac8ad7 --- /dev/null +++ b/top/api/rest/MiniappTemplateOnlineappRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2020.10.27 +''' +from top.api.base import RestApi +class MiniappTemplateOnlineappRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.app_id = None + self.app_version = None + self.clients = None + self.template_id = None + self.template_version = None + + def getapiname(self): + return 'taobao.miniapp.template.onlineapp' diff --git a/top/api/rest/MiniappTemplateQueryappRequest.py b/top/api/rest/MiniappTemplateQueryappRequest.py new file mode 100755 index 0000000..5faccfe --- /dev/null +++ b/top/api/rest/MiniappTemplateQueryappRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2020.05.15 +''' +from top.api.base import RestApi +class MiniappTemplateQueryappRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.page_num = None + self.page_size = None + self.template_id = None + + def getapiname(self): + return 'taobao.miniapp.template.queryapp' diff --git a/top/api/rest/MiniappTemplateRollbackRequest.py b/top/api/rest/MiniappTemplateRollbackRequest.py new file mode 100755 index 0000000..100d97e --- /dev/null +++ b/top/api/rest/MiniappTemplateRollbackRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2020.11.26 +''' +from top.api.base import RestApi +class MiniappTemplateRollbackRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.app_id = None + self.app_version = None + self.clients = None + self.template_id = None + self.template_version = None + + def getapiname(self): + return 'taobao.miniapp.template.rollback' diff --git a/top/api/rest/MiniappTemplateUpdateRequest.py b/top/api/rest/MiniappTemplateUpdateRequest.py new file mode 100755 index 0000000..c9cf00e --- /dev/null +++ b/top/api/rest/MiniappTemplateUpdateRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2020.05.15 +''' +from top.api.base import RestApi +class MiniappTemplateUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.clients = None + self.ext_json = None + self.id = None + self.template_id = None + self.template_version = None + + def getapiname(self): + return 'taobao.miniapp.template.update' diff --git a/top/api/rest/MiniappTemplateUpdateappRequest.py b/top/api/rest/MiniappTemplateUpdateappRequest.py new file mode 100755 index 0000000..2b979fa --- /dev/null +++ b/top/api/rest/MiniappTemplateUpdateappRequest.py @@ -0,0 +1,18 @@ +''' +Created by auto_sdk on 2020.12.17 +''' +from top.api.base import RestApi +class MiniappTemplateUpdateappRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.alias = None + self.app_id = None + self.clients = None + self.desc = None + self.ext_json = None + self.icon = None + self.template_id = None + self.template_version = None + + def getapiname(self): + return 'taobao.miniapp.template.updateapp' diff --git a/top/api/rest/MiniappUserInfoGetRequest.py b/top/api/rest/MiniappUserInfoGetRequest.py new file mode 100755 index 0000000..170e04f --- /dev/null +++ b/top/api/rest/MiniappUserInfoGetRequest.py @@ -0,0 +1,10 @@ +''' +Created by auto_sdk on 2019.01.03 +''' +from top.api.base import RestApi +class MiniappUserInfoGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + + def getapiname(self): + return 'taobao.miniapp.userInfo.get' diff --git a/top/api/rest/MiniapppTemplateInstantiateRequest.py b/top/api/rest/MiniapppTemplateInstantiateRequest.py new file mode 100755 index 0000000..662c4c9 --- /dev/null +++ b/top/api/rest/MiniapppTemplateInstantiateRequest.py @@ -0,0 +1,17 @@ +''' +Created by auto_sdk on 2020.05.15 +''' +from top.api.base import RestApi +class MiniapppTemplateInstantiateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.clients = None + self.description = None + self.ext_json = None + self.icon = None + self.name = None + self.template_id = None + self.template_version = None + + def getapiname(self): + return 'taobao.miniappp.template.instantiate' diff --git a/top/api/rest/OpenlinkSessionGetRequest.py b/top/api/rest/OpenlinkSessionGetRequest.py new file mode 100755 index 0000000..ba5f6b4 --- /dev/null +++ b/top/api/rest/OpenlinkSessionGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.10.12 +''' +from top.api.base import RestApi +class OpenlinkSessionGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.code = None + + def getapiname(self): + return 'taobao.openlink.session.get' diff --git a/top/api/rest/OpenuidGetBymixnickRequest.py b/top/api/rest/OpenuidGetBymixnickRequest.py new file mode 100755 index 0000000..eef29cf --- /dev/null +++ b/top/api/rest/OpenuidGetBymixnickRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2019.10.21 +''' +from top.api.base import RestApi +class OpenuidGetBymixnickRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.mix_nick = None + + def getapiname(self): + return 'taobao.openuid.get.bymixnick' diff --git a/top/api/rest/OpenuidGetBytradeRequest.py b/top/api/rest/OpenuidGetBytradeRequest.py new file mode 100755 index 0000000..b35fd40 --- /dev/null +++ b/top/api/rest/OpenuidGetBytradeRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.10.17 +''' +from top.api.base import RestApi +class OpenuidGetBytradeRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.tid = None + + def getapiname(self): + return 'taobao.openuid.get.bytrade' diff --git a/top/api/rest/OpenuidGetRequest.py b/top/api/rest/OpenuidGetRequest.py new file mode 100755 index 0000000..e430fe6 --- /dev/null +++ b/top/api/rest/OpenuidGetRequest.py @@ -0,0 +1,10 @@ +''' +Created by auto_sdk on 2018.10.17 +''' +from top.api.base import RestApi +class OpenuidGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + + def getapiname(self): + return 'taobao.openuid.get' diff --git a/top/api/rest/PromotionActivityGetRequest.py b/top/api/rest/PromotionActivityGetRequest.py new file mode 100755 index 0000000..74916b8 --- /dev/null +++ b/top/api/rest/PromotionActivityGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class PromotionActivityGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.activity_id = None + + def getapiname(self): + return 'taobao.promotion.activity.get' diff --git a/top/api/rest/PromotionCouponsGetRequest.py b/top/api/rest/PromotionCouponsGetRequest.py new file mode 100755 index 0000000..db7bcaa --- /dev/null +++ b/top/api/rest/PromotionCouponsGetRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class PromotionCouponsGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.coupon_id = None + self.denominations = None + self.end_time = None + self.page_no = None + self.page_size = None + + def getapiname(self): + return 'taobao.promotion.coupons.get' diff --git a/top/api/rest/PromotionLimitdiscountDetailGetRequest.py b/top/api/rest/PromotionLimitdiscountDetailGetRequest.py new file mode 100755 index 0000000..a77fdde --- /dev/null +++ b/top/api/rest/PromotionLimitdiscountDetailGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class PromotionLimitdiscountDetailGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.limit_discount_id = None + + def getapiname(self): + return 'taobao.promotion.limitdiscount.detail.get' diff --git a/top/api/rest/PromotionLimitdiscountGetRequest.py b/top/api/rest/PromotionLimitdiscountGetRequest.py new file mode 100755 index 0000000..4b9ebc2 --- /dev/null +++ b/top/api/rest/PromotionLimitdiscountGetRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class PromotionLimitdiscountGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.end_time = None + self.limit_discount_id = None + self.page_number = None + self.start_time = None + self.status = None + + def getapiname(self): + return 'taobao.promotion.limitdiscount.get' diff --git a/top/api/rest/PromotionMealGetRequest.py b/top/api/rest/PromotionMealGetRequest.py new file mode 100755 index 0000000..2ed40ad --- /dev/null +++ b/top/api/rest/PromotionMealGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class PromotionMealGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.meal_id = None + self.status = None + + def getapiname(self): + return 'taobao.promotion.meal.get' diff --git a/top/api/rest/RefundGetRequest.py b/top/api/rest/RefundGetRequest.py new file mode 100755 index 0000000..ad8dcc3 --- /dev/null +++ b/top/api/rest/RefundGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2021.05.31 +''' +from top.api.base import RestApi +class RefundGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.refund_id = None + + def getapiname(self): + return 'taobao.refund.get' diff --git a/top/api/rest/RefundMessageAddRequest.py b/top/api/rest/RefundMessageAddRequest.py new file mode 100755 index 0000000..2d9be73 --- /dev/null +++ b/top/api/rest/RefundMessageAddRequest.py @@ -0,0 +1,16 @@ +''' +Created by auto_sdk on 2018.07.27 +''' +from top.api.base import RestApi +class RefundMessageAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.content = None + self.image = None + self.refund_id = None + + def getapiname(self): + return 'taobao.refund.message.add' + + def getMultipartParas(self): + return ['image'] diff --git a/top/api/rest/RefundMessagesGetRequest.py b/top/api/rest/RefundMessagesGetRequest.py new file mode 100755 index 0000000..e69881a --- /dev/null +++ b/top/api/rest/RefundMessagesGetRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2018.07.27 +''' +from top.api.base import RestApi +class RefundMessagesGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.page_no = None + self.page_size = None + self.refund_id = None + self.refund_phase = None + + def getapiname(self): + return 'taobao.refund.messages.get' diff --git a/top/api/rest/RefundRefuseRequest.py b/top/api/rest/RefundRefuseRequest.py new file mode 100755 index 0000000..ed33241 --- /dev/null +++ b/top/api/rest/RefundRefuseRequest.py @@ -0,0 +1,21 @@ +''' +Created by auto_sdk on 2018.07.27 +''' +from top.api.base import RestApi +class RefundRefuseRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.oid = None + self.refund_id = None + self.refund_phase = None + self.refund_version = None + self.refuse_message = None + self.refuse_proof = None + self.refuse_reason_id = None + self.tid = None + + def getapiname(self): + return 'taobao.refund.refuse' + + def getMultipartParas(self): + return ['refuse_proof'] diff --git a/top/api/rest/RefundRefusereasonGetRequest.py b/top/api/rest/RefundRefusereasonGetRequest.py new file mode 100755 index 0000000..4dc5ab6 --- /dev/null +++ b/top/api/rest/RefundRefusereasonGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.07.27 +''' +from top.api.base import RestApi +class RefundRefusereasonGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.refund_id = None + self.refund_phase = None + + def getapiname(self): + return 'taobao.refund.refusereason.get' diff --git a/top/api/rest/RefundsApplyGetRequest.py b/top/api/rest/RefundsApplyGetRequest.py new file mode 100755 index 0000000..f014d1b --- /dev/null +++ b/top/api/rest/RefundsApplyGetRequest.py @@ -0,0 +1,16 @@ +''' +Created by auto_sdk on 2020.11.19 +''' +from top.api.base import RestApi +class RefundsApplyGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.page_no = None + self.page_size = None + self.seller_nick = None + self.status = None + self.type = None + + def getapiname(self): + return 'taobao.refunds.apply.get' diff --git a/top/api/rest/RefundsReceiveGetRequest.py b/top/api/rest/RefundsReceiveGetRequest.py new file mode 100755 index 0000000..6777e93 --- /dev/null +++ b/top/api/rest/RefundsReceiveGetRequest.py @@ -0,0 +1,19 @@ +''' +Created by auto_sdk on 2021.06.01 +''' +from top.api.base import RestApi +class RefundsReceiveGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.buyer_nick = None + self.end_modified = None + self.fields = None + self.page_no = None + self.page_size = None + self.start_modified = None + self.status = None + self.type = None + self.use_has_next = None + + def getapiname(self): + return 'taobao.refunds.receive.get' diff --git a/top/api/rest/RpRefundReviewRequest.py b/top/api/rest/RpRefundReviewRequest.py new file mode 100755 index 0000000..c1be13c --- /dev/null +++ b/top/api/rest/RpRefundReviewRequest.py @@ -0,0 +1,16 @@ +''' +Created by auto_sdk on 2018.07.27 +''' +from top.api.base import RestApi +class RpRefundReviewRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.message = None + self.operator = None + self.refund_id = None + self.refund_phase = None + self.refund_version = None + self.result = None + + def getapiname(self): + return 'taobao.rp.refund.review' diff --git a/top/api/rest/RpRefundsAgreeRequest.py b/top/api/rest/RpRefundsAgreeRequest.py new file mode 100755 index 0000000..32852f1 --- /dev/null +++ b/top/api/rest/RpRefundsAgreeRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.11.01 +''' +from top.api.base import RestApi +class RpRefundsAgreeRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.code = None + self.refund_infos = None + + def getapiname(self): + return 'taobao.rp.refunds.agree' diff --git a/top/api/rest/RpReturngoodsAgreeRequest.py b/top/api/rest/RpReturngoodsAgreeRequest.py new file mode 100755 index 0000000..455ad34 --- /dev/null +++ b/top/api/rest/RpReturngoodsAgreeRequest.py @@ -0,0 +1,22 @@ +''' +Created by auto_sdk on 2019.12.24 +''' +from top.api.base import RestApi +class RpReturngoodsAgreeRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.address = None + self.mobile = None + self.name = None + self.post = None + self.post_fee_bear_role = None + self.refund_id = None + self.refund_phase = None + self.refund_version = None + self.remark = None + self.seller_address_id = None + self.tel = None + self.virtual_return_goods = None + + def getapiname(self): + return 'taobao.rp.returngoods.agree' diff --git a/top/api/rest/RpReturngoodsRefillRequest.py b/top/api/rest/RpReturngoodsRefillRequest.py new file mode 100755 index 0000000..3a938d7 --- /dev/null +++ b/top/api/rest/RpReturngoodsRefillRequest.py @@ -0,0 +1,14 @@ +''' +Created by auto_sdk on 2018.07.27 +''' +from top.api.base import RestApi +class RpReturngoodsRefillRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.logistics_company_code = None + self.logistics_waybill_no = None + self.refund_id = None + self.refund_phase = None + + def getapiname(self): + return 'taobao.rp.returngoods.refill' diff --git a/top/api/rest/RpReturngoodsRefuseRequest.py b/top/api/rest/RpReturngoodsRefuseRequest.py new file mode 100755 index 0000000..144b2ae --- /dev/null +++ b/top/api/rest/RpReturngoodsRefuseRequest.py @@ -0,0 +1,18 @@ +''' +Created by auto_sdk on 2018.07.27 +''' +from top.api.base import RestApi +class RpReturngoodsRefuseRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.refund_id = None + self.refund_phase = None + self.refund_version = None + self.refuse_proof = None + self.refuse_reason_id = None + + def getapiname(self): + return 'taobao.rp.returngoods.refuse' + + def getMultipartParas(self): + return ['refuse_proof'] diff --git a/top/api/rest/SellercatsListGetRequest.py b/top/api/rest/SellercatsListGetRequest.py new file mode 100755 index 0000000..2843d0b --- /dev/null +++ b/top/api/rest/SellercatsListGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2019.04.08 +''' +from top.api.base import RestApi +class SellercatsListGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + + def getapiname(self): + return 'taobao.sellercats.list.get' diff --git a/top/api/rest/SellercenterRoleAddRequest.py b/top/api/rest/SellercenterRoleAddRequest.py new file mode 100755 index 0000000..2edf1de --- /dev/null +++ b/top/api/rest/SellercenterRoleAddRequest.py @@ -0,0 +1,14 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SellercenterRoleAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.description = None + self.name = None + self.nick = None + self.permission_codes = None + + def getapiname(self): + return 'taobao.sellercenter.role.add' diff --git a/top/api/rest/SellercenterRolesGetRequest.py b/top/api/rest/SellercenterRolesGetRequest.py new file mode 100755 index 0000000..51aad03 --- /dev/null +++ b/top/api/rest/SellercenterRolesGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SellercenterRolesGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.nick = None + + def getapiname(self): + return 'taobao.sellercenter.roles.get' diff --git a/top/api/rest/SellercenterSubuserPermissionsRolesGetRequest.py b/top/api/rest/SellercenterSubuserPermissionsRolesGetRequest.py new file mode 100755 index 0000000..9e7d412 --- /dev/null +++ b/top/api/rest/SellercenterSubuserPermissionsRolesGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SellercenterSubuserPermissionsRolesGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.nick = None + + def getapiname(self): + return 'taobao.sellercenter.subuser.permissions.roles.get' diff --git a/top/api/rest/SellercenterSubusersGetRequest.py b/top/api/rest/SellercenterSubusersGetRequest.py new file mode 100755 index 0000000..5eac6e3 --- /dev/null +++ b/top/api/rest/SellercenterSubusersGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SellercenterSubusersGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.nick = None + + def getapiname(self): + return 'taobao.sellercenter.subusers.get' diff --git a/top/api/rest/SellercenterUserPermissionsGetRequest.py b/top/api/rest/SellercenterUserPermissionsGetRequest.py new file mode 100755 index 0000000..a3f561d --- /dev/null +++ b/top/api/rest/SellercenterUserPermissionsGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SellercenterUserPermissionsGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.nick = None + + def getapiname(self): + return 'taobao.sellercenter.user.permissions.get' diff --git a/top/api/rest/ShopSellerGetRequest.py b/top/api/rest/ShopSellerGetRequest.py new file mode 100755 index 0000000..5594370 --- /dev/null +++ b/top/api/rest/ShopSellerGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2019.08.07 +''' +from top.api.base import RestApi +class ShopSellerGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + + def getapiname(self): + return 'taobao.shop.seller.get' diff --git a/top/api/rest/ShopcatsListGetRequest.py b/top/api/rest/ShopcatsListGetRequest.py new file mode 100755 index 0000000..b9d0bbe --- /dev/null +++ b/top/api/rest/ShopcatsListGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class ShopcatsListGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + + def getapiname(self): + return 'taobao.shopcats.list.get' diff --git a/top/api/rest/SkusCustomGetRequest.py b/top/api/rest/SkusCustomGetRequest.py new file mode 100755 index 0000000..6b64b87 --- /dev/null +++ b/top/api/rest/SkusCustomGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2019.10.31 +''' +from top.api.base import RestApi +class SkusCustomGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.outer_id = None + + def getapiname(self): + return 'taobao.skus.custom.get' diff --git a/top/api/rest/SpecialRefundGetRequest.py b/top/api/rest/SpecialRefundGetRequest.py new file mode 100755 index 0000000..3cca796 --- /dev/null +++ b/top/api/rest/SpecialRefundGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.06.09 +''' +from top.api.base import RestApi +class SpecialRefundGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.refund_id = None + + def getapiname(self): + return 'taobao.special.refund.get' diff --git a/top/api/rest/SpecialRefundsReceiveGetRequest.py b/top/api/rest/SpecialRefundsReceiveGetRequest.py new file mode 100755 index 0000000..9c5e403 --- /dev/null +++ b/top/api/rest/SpecialRefundsReceiveGetRequest.py @@ -0,0 +1,19 @@ +''' +Created by auto_sdk on 2020.06.09 +''' +from top.api.base import RestApi +class SpecialRefundsReceiveGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.buyer_nick = None + self.end_modified = None + self.fields = None + self.page_no = None + self.page_size = None + self.start_modified = None + self.status = None + self.type = None + self.use_has_next = None + + def getapiname(self): + return 'taobao.special.refunds.receive.get' diff --git a/top/api/rest/SubuserDepartmentsGetRequest.py b/top/api/rest/SubuserDepartmentsGetRequest.py new file mode 100755 index 0000000..0e16e91 --- /dev/null +++ b/top/api/rest/SubuserDepartmentsGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SubuserDepartmentsGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.user_nick = None + + def getapiname(self): + return 'taobao.subuser.departments.get' diff --git a/top/api/rest/SubuserDutysGetRequest.py b/top/api/rest/SubuserDutysGetRequest.py new file mode 100755 index 0000000..5856bf0 --- /dev/null +++ b/top/api/rest/SubuserDutysGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SubuserDutysGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.user_nick = None + + def getapiname(self): + return 'taobao.subuser.dutys.get' diff --git a/top/api/rest/SubuserFullinfoGetRequest.py b/top/api/rest/SubuserFullinfoGetRequest.py new file mode 100755 index 0000000..63e9d58 --- /dev/null +++ b/top/api/rest/SubuserFullinfoGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SubuserFullinfoGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.sub_id = None + self.sub_nick = None + + def getapiname(self): + return 'taobao.subuser.fullinfo.get' diff --git a/top/api/rest/SubuserInfoUpdateRequest.py b/top/api/rest/SubuserInfoUpdateRequest.py new file mode 100755 index 0000000..6175eba --- /dev/null +++ b/top/api/rest/SubuserInfoUpdateRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SubuserInfoUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.is_disable_subaccount = None + self.is_dispatch = None + self.sub_id = None + + def getapiname(self): + return 'taobao.subuser.info.update' diff --git a/top/api/rest/SubusersGetRequest.py b/top/api/rest/SubusersGetRequest.py new file mode 100755 index 0000000..315e037 --- /dev/null +++ b/top/api/rest/SubusersGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class SubusersGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.user_nick = None + + def getapiname(self): + return 'taobao.subusers.get' diff --git a/top/api/rest/TimeGetRequest.py b/top/api/rest/TimeGetRequest.py new file mode 100755 index 0000000..cac3521 --- /dev/null +++ b/top/api/rest/TimeGetRequest.py @@ -0,0 +1,10 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class TimeGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + + def getapiname(self): + return 'taobao.time.get' diff --git a/top/api/rest/TmallDisputeReceiveGetRequest.py b/top/api/rest/TmallDisputeReceiveGetRequest.py new file mode 100755 index 0000000..0faad7e --- /dev/null +++ b/top/api/rest/TmallDisputeReceiveGetRequest.py @@ -0,0 +1,20 @@ +''' +Created by auto_sdk on 2019.07.24 +''' +from top.api.base import RestApi +class TmallDisputeReceiveGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.buyer_nick = None + self.end_modified = None + self.fields = None + self.page_no = None + self.page_size = None + self.refund_id = None + self.start_modified = None + self.status = None + self.type = None + self.use_has_next = None + + def getapiname(self): + return 'tmall.dispute.receive.get' diff --git a/top/api/rest/TmallTraderateFeedsGetRequest.py b/top/api/rest/TmallTraderateFeedsGetRequest.py new file mode 100755 index 0000000..2f11280 --- /dev/null +++ b/top/api/rest/TmallTraderateFeedsGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2021.08.11 +''' +from top.api.base import RestApi +class TmallTraderateFeedsGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.child_trade_id = None + + def getapiname(self): + return 'tmall.traderate.feeds.get' diff --git a/top/api/rest/TmallTraderateItemtagsGetRequest.py b/top/api/rest/TmallTraderateItemtagsGetRequest.py new file mode 100755 index 0000000..7d647a2 --- /dev/null +++ b/top/api/rest/TmallTraderateItemtagsGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class TmallTraderateItemtagsGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.item_id = None + + def getapiname(self): + return 'tmall.traderate.itemtags.get' diff --git a/top/api/rest/TopAuthTokenCreateRequest.py b/top/api/rest/TopAuthTokenCreateRequest.py new file mode 100755 index 0000000..3bf4f1b --- /dev/null +++ b/top/api/rest/TopAuthTokenCreateRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class TopAuthTokenCreateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.code = None + self.uuid = None + + def getapiname(self): + return 'taobao.top.auth.token.create' diff --git a/top/api/rest/TopAuthTokenRefreshRequest.py b/top/api/rest/TopAuthTokenRefreshRequest.py new file mode 100755 index 0000000..c8f0de4 --- /dev/null +++ b/top/api/rest/TopAuthTokenRefreshRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2019.11.26 +''' +from top.api.base import RestApi +class TopAuthTokenRefreshRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.refresh_token = None + + def getapiname(self): + return 'taobao.top.auth.token.refresh' diff --git a/top/api/rest/TopIpoutGetRequest.py b/top/api/rest/TopIpoutGetRequest.py new file mode 100755 index 0000000..a97ab47 --- /dev/null +++ b/top/api/rest/TopIpoutGetRequest.py @@ -0,0 +1,10 @@ +''' +Created by auto_sdk on 2021.03.22 +''' +from top.api.base import RestApi +class TopIpoutGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + + def getapiname(self): + return 'taobao.top.ipout.get' diff --git a/top/api/rest/TopSdkFeedbackUploadRequest.py b/top/api/rest/TopSdkFeedbackUploadRequest.py new file mode 100755 index 0000000..0ba7f4e --- /dev/null +++ b/top/api/rest/TopSdkFeedbackUploadRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.08.19 +''' +from top.api.base import RestApi +class TopSdkFeedbackUploadRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.content = None + self.type = None + + def getapiname(self): + return 'taobao.top.sdk.feedback.upload' diff --git a/top/api/rest/TopSecretGetRequest.py b/top/api/rest/TopSecretGetRequest.py new file mode 100755 index 0000000..ad0326b --- /dev/null +++ b/top/api/rest/TopSecretGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2019.11.07 +''' +from top.api.base import RestApi +class TopSecretGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.customer_user_id = None + self.random_num = None + self.secret_version = None + + def getapiname(self): + return 'taobao.top.secret.get' diff --git a/top/api/rest/TopSecretRegisterRequest.py b/top/api/rest/TopSecretRegisterRequest.py new file mode 100755 index 0000000..f6a839d --- /dev/null +++ b/top/api/rest/TopSecretRegisterRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class TopSecretRegisterRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.user_id = None + + def getapiname(self): + return 'taobao.top.secret.register' diff --git a/top/api/rest/TradeAmountGetRequest.py b/top/api/rest/TradeAmountGetRequest.py new file mode 100755 index 0000000..debdac9 --- /dev/null +++ b/top/api/rest/TradeAmountGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class TradeAmountGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.tid = None + + def getapiname(self): + return 'taobao.trade.amount.get' diff --git a/top/api/rest/TradeConfirmfeeGetRequest.py b/top/api/rest/TradeConfirmfeeGetRequest.py new file mode 100755 index 0000000..da181a4 --- /dev/null +++ b/top/api/rest/TradeConfirmfeeGetRequest.py @@ -0,0 +1,11 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class TradeConfirmfeeGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.tid = None + + def getapiname(self): + return 'taobao.trade.confirmfee.get' diff --git a/top/api/rest/TradeFullinfoGetRequest.py b/top/api/rest/TradeFullinfoGetRequest.py new file mode 100755 index 0000000..b8ed7e4 --- /dev/null +++ b/top/api/rest/TradeFullinfoGetRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2021.07.22 +''' +from top.api.base import RestApi +class TradeFullinfoGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.fields = None + self.include_oaid = None + self.tid = None + + def getapiname(self): + return 'taobao.trade.fullinfo.get' diff --git a/top/api/rest/TradeMemoAddRequest.py b/top/api/rest/TradeMemoAddRequest.py new file mode 100755 index 0000000..6c5c8f4 --- /dev/null +++ b/top/api/rest/TradeMemoAddRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2020.11.26 +''' +from top.api.base import RestApi +class TradeMemoAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.flag = None + self.memo = None + self.tid = None + + def getapiname(self): + return 'taobao.trade.memo.add' diff --git a/top/api/rest/TradeMemoUpdateRequest.py b/top/api/rest/TradeMemoUpdateRequest.py new file mode 100755 index 0000000..8953025 --- /dev/null +++ b/top/api/rest/TradeMemoUpdateRequest.py @@ -0,0 +1,14 @@ +''' +Created by auto_sdk on 2020.11.26 +''' +from top.api.base import RestApi +class TradeMemoUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.flag = None + self.memo = None + self.reset = None + self.tid = None + + def getapiname(self): + return 'taobao.trade.memo.update' diff --git a/top/api/rest/TradeOrderskuUpdateRequest.py b/top/api/rest/TradeOrderskuUpdateRequest.py new file mode 100755 index 0000000..b46d2d5 --- /dev/null +++ b/top/api/rest/TradeOrderskuUpdateRequest.py @@ -0,0 +1,13 @@ +''' +Created by auto_sdk on 2020.11.26 +''' +from top.api.base import RestApi +class TradeOrderskuUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.oid = None + self.sku_id = None + self.sku_props = None + + def getapiname(self): + return 'taobao.trade.ordersku.update' diff --git a/top/api/rest/TradePostageUpdateRequest.py b/top/api/rest/TradePostageUpdateRequest.py new file mode 100755 index 0000000..9994277 --- /dev/null +++ b/top/api/rest/TradePostageUpdateRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.11.26 +''' +from top.api.base import RestApi +class TradePostageUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.post_fee = None + self.tid = None + + def getapiname(self): + return 'taobao.trade.postage.update' diff --git a/top/api/rest/TradeReceivetimeDelayRequest.py b/top/api/rest/TradeReceivetimeDelayRequest.py new file mode 100755 index 0000000..d687b4b --- /dev/null +++ b/top/api/rest/TradeReceivetimeDelayRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.11.26 +''' +from top.api.base import RestApi +class TradeReceivetimeDelayRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.days = None + self.tid = None + + def getapiname(self): + return 'taobao.trade.receivetime.delay' diff --git a/top/api/rest/TradeShippingaddressUpdateRequest.py b/top/api/rest/TradeShippingaddressUpdateRequest.py new file mode 100755 index 0000000..892a21c --- /dev/null +++ b/top/api/rest/TradeShippingaddressUpdateRequest.py @@ -0,0 +1,20 @@ +''' +Created by auto_sdk on 2021.04.25 +''' +from top.api.base import RestApi +class TradeShippingaddressUpdateRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.receiver_address = None + self.receiver_city = None + self.receiver_district = None + self.receiver_mobile = None + self.receiver_name = None + self.receiver_phone = None + self.receiver_state = None + self.receiver_town = None + self.receiver_zip = None + self.tid = None + + def getapiname(self): + return 'taobao.trade.shippingaddress.update' diff --git a/top/api/rest/TraderateAddRequest.py b/top/api/rest/TraderateAddRequest.py new file mode 100755 index 0000000..a64ca66 --- /dev/null +++ b/top/api/rest/TraderateAddRequest.py @@ -0,0 +1,16 @@ +''' +Created by auto_sdk on 2020.08.28 +''' +from top.api.base import RestApi +class TraderateAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.anony = None + self.content = None + self.oid = None + self.result = None + self.role = None + self.tid = None + + def getapiname(self): + return 'taobao.traderate.add' diff --git a/top/api/rest/TraderateExplainAddRequest.py b/top/api/rest/TraderateExplainAddRequest.py new file mode 100755 index 0000000..22ce6b7 --- /dev/null +++ b/top/api/rest/TraderateExplainAddRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2020.08.31 +''' +from top.api.base import RestApi +class TraderateExplainAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.oid = None + self.reply = None + + def getapiname(self): + return 'taobao.traderate.explain.add' diff --git a/top/api/rest/TraderateImprImprwordsGetRequest.py b/top/api/rest/TraderateImprImprwordsGetRequest.py new file mode 100755 index 0000000..3ac74d1 --- /dev/null +++ b/top/api/rest/TraderateImprImprwordsGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class TraderateImprImprwordsGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.cat_leaf_id = None + self.cat_root_id = None + + def getapiname(self): + return 'taobao.traderate.impr.imprwords.get' diff --git a/top/api/rest/TraderateListAddRequest.py b/top/api/rest/TraderateListAddRequest.py new file mode 100755 index 0000000..8f6250d --- /dev/null +++ b/top/api/rest/TraderateListAddRequest.py @@ -0,0 +1,15 @@ +''' +Created by auto_sdk on 2020.08.31 +''' +from top.api.base import RestApi +class TraderateListAddRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.anony = None + self.content = None + self.result = None + self.role = None + self.tid = None + + def getapiname(self): + return 'taobao.traderate.list.add' diff --git a/top/api/rest/TraderatesGetRequest.py b/top/api/rest/TraderatesGetRequest.py new file mode 100755 index 0000000..ef71f12 --- /dev/null +++ b/top/api/rest/TraderatesGetRequest.py @@ -0,0 +1,22 @@ +''' +Created by auto_sdk on 2021.04.16 +''' +from top.api.base import RestApi +class TraderatesGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.end_date = None + self.fields = None + self.num_iid = None + self.page_no = None + self.page_size = None + self.peer_nick = None + self.rate_type = None + self.result = None + self.role = None + self.start_date = None + self.tid = None + self.use_has_next = None + + def getapiname(self): + return 'taobao.traderates.get' diff --git a/top/api/rest/TradesSoldGetRequest.py b/top/api/rest/TradesSoldGetRequest.py new file mode 100755 index 0000000..aa20911 --- /dev/null +++ b/top/api/rest/TradesSoldGetRequest.py @@ -0,0 +1,23 @@ +''' +Created by auto_sdk on 2021.06.22 +''' +from top.api.base import RestApi +class TradesSoldGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.buyer_nick = None + self.buyer_open_id = None + self.end_created = None + self.ext_type = None + self.fields = None + self.page_no = None + self.page_size = None + self.rate_status = None + self.start_created = None + self.status = None + self.tag = None + self.type = None + self.use_has_next = None + + def getapiname(self): + return 'taobao.trades.sold.get' diff --git a/top/api/rest/TradesSoldIncrementGetRequest.py b/top/api/rest/TradesSoldIncrementGetRequest.py new file mode 100755 index 0000000..3ef8684 --- /dev/null +++ b/top/api/rest/TradesSoldIncrementGetRequest.py @@ -0,0 +1,22 @@ +''' +Created by auto_sdk on 2021.05.26 +''' +from top.api.base import RestApi +class TradesSoldIncrementGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.buyer_nick = None + self.end_modified = None + self.ext_type = None + self.fields = None + self.page_no = None + self.page_size = None + self.rate_status = None + self.start_modified = None + self.status = None + self.tag = None + self.type = None + self.use_has_next = None + + def getapiname(self): + return 'taobao.trades.sold.increment.get' diff --git a/top/api/rest/TradesSoldIncrementvGetRequest.py b/top/api/rest/TradesSoldIncrementvGetRequest.py new file mode 100755 index 0000000..56ed291 --- /dev/null +++ b/top/api/rest/TradesSoldIncrementvGetRequest.py @@ -0,0 +1,20 @@ +''' +Created by auto_sdk on 2021.05.26 +''' +from top.api.base import RestApi +class TradesSoldIncrementvGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.end_create = None + self.ext_type = None + self.fields = None + self.page_no = None + self.page_size = None + self.start_create = None + self.status = None + self.tag = None + self.type = None + self.use_has_next = None + + def getapiname(self): + return 'taobao.trades.sold.incrementv.get' diff --git a/top/api/rest/UmpPromotionGetRequest.py b/top/api/rest/UmpPromotionGetRequest.py new file mode 100755 index 0000000..00961d7 --- /dev/null +++ b/top/api/rest/UmpPromotionGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.11.10 +''' +from top.api.base import RestApi +class UmpPromotionGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.channel_key = None + self.item_id = None + + def getapiname(self): + return 'taobao.ump.promotion.get' diff --git a/top/api/rest/VasOrderSearchRequest.py b/top/api/rest/VasOrderSearchRequest.py new file mode 100755 index 0000000..53ad897 --- /dev/null +++ b/top/api/rest/VasOrderSearchRequest.py @@ -0,0 +1,20 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class VasOrderSearchRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.article_code = None + self.biz_order_id = None + self.biz_type = None + self.end_created = None + self.item_code = None + self.nick = None + self.order_id = None + self.page_no = None + self.page_size = None + self.start_created = None + + def getapiname(self): + return 'taobao.vas.order.search' diff --git a/top/api/rest/VasSubscSearchRequest.py b/top/api/rest/VasSubscSearchRequest.py new file mode 100755 index 0000000..67578d9 --- /dev/null +++ b/top/api/rest/VasSubscSearchRequest.py @@ -0,0 +1,20 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class VasSubscSearchRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.article_code = None + self.autosub = None + self.end_deadline = None + self.expire_notice = None + self.item_code = None + self.nick = None + self.page_no = None + self.page_size = None + self.start_deadline = None + self.status = None + + def getapiname(self): + return 'taobao.vas.subsc.search' diff --git a/top/api/rest/VasSubscribeGetRequest.py b/top/api/rest/VasSubscribeGetRequest.py new file mode 100755 index 0000000..ac18d98 --- /dev/null +++ b/top/api/rest/VasSubscribeGetRequest.py @@ -0,0 +1,12 @@ +''' +Created by auto_sdk on 2018.07.25 +''' +from top.api.base import RestApi +class VasSubscribeGetRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.article_code = None + self.nick = None + + def getapiname(self): + return 'taobao.vas.subscribe.get' diff --git a/top/api/rest/WlbOrderJzConsignRequest.py b/top/api/rest/WlbOrderJzConsignRequest.py new file mode 100755 index 0000000..1386948 --- /dev/null +++ b/top/api/rest/WlbOrderJzConsignRequest.py @@ -0,0 +1,17 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class WlbOrderJzConsignRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.ins_receiver_to = None + self.ins_tp_dto = None + self.jz_receiver_to = None + self.jz_top_args = None + self.lg_tp_dto = None + self.sender_id = None + self.tid = None + + def getapiname(self): + return 'taobao.wlb.order.jz.consign' diff --git a/top/api/rest/WlbOrderJzQueryRequest.py b/top/api/rest/WlbOrderJzQueryRequest.py new file mode 100755 index 0000000..ff47a56 --- /dev/null +++ b/top/api/rest/WlbOrderJzQueryRequest.py @@ -0,0 +1,14 @@ +''' +Created by auto_sdk on 2018.07.26 +''' +from top.api.base import RestApi +class WlbOrderJzQueryRequest(RestApi): + def __init__(self,domain='gw.api.taobao.com',port=80): + RestApi.__init__(self,domain, port) + self.ins_jz_receiver_t_o = None + self.jz_receiver_to = None + self.sender_id = None + self.tid = None + + def getapiname(self): + return 'taobao.wlb.order.jz.query' diff --git a/top/api/rest/__init__.py b/top/api/rest/__init__.py new file mode 100755 index 0000000..8eca4ce --- /dev/null +++ b/top/api/rest/__init__.py @@ -0,0 +1,134 @@ +from top.api.rest.TradePostageUpdateRequest import TradePostageUpdateRequest +from top.api.rest.MiniappDistributionMaterialDeleteRequest import MiniappDistributionMaterialDeleteRequest +from top.api.rest.RpReturngoodsRefillRequest import RpReturngoodsRefillRequest +from top.api.rest.TradesSoldGetRequest import TradesSoldGetRequest +from top.api.rest.LogisticsAddressReachableRequest import LogisticsAddressReachableRequest +from top.api.rest.LogisticsConsignResendRequest import LogisticsConsignResendRequest +from top.api.rest.ItemSkusGetRequest import ItemSkusGetRequest +from top.api.rest.ShopSellerGetRequest import ShopSellerGetRequest +from top.api.rest.DeliveryTemplatesGetRequest import DeliveryTemplatesGetRequest +from top.api.rest.RpRefundReviewRequest import RpRefundReviewRequest +from top.api.rest.RefundRefuseRequest import RefundRefuseRequest +from top.api.rest.LogisticsAddressModifyRequest import LogisticsAddressModifyRequest +from top.api.rest.WlbOrderJzQueryRequest import WlbOrderJzQueryRequest +from top.api.rest.SubuserInfoUpdateRequest import SubuserInfoUpdateRequest +from top.api.rest.LogisticsOrdersGetRequest import LogisticsOrdersGetRequest +from top.api.rest.SubusersGetRequest import SubusersGetRequest +from top.api.rest.VasSubscribeGetRequest import VasSubscribeGetRequest +from top.api.rest.SubuserDutysGetRequest import SubuserDutysGetRequest +from top.api.rest.OpenlinkSessionGetRequest import OpenlinkSessionGetRequest +from top.api.rest.TradeConfirmfeeGetRequest import TradeConfirmfeeGetRequest +from top.api.rest.ItemcatsAuthorizeGetRequest import ItemcatsAuthorizeGetRequest +from top.api.rest.ItemsCustomGetRequest import ItemsCustomGetRequest +from top.api.rest.SellercenterUserPermissionsGetRequest import SellercenterUserPermissionsGetRequest +from top.api.rest.TopIpoutGetRequest import TopIpoutGetRequest +from top.api.rest.TraderateListAddRequest import TraderateListAddRequest +from top.api.rest.TopSecretGetRequest import TopSecretGetRequest +from top.api.rest.LogisticsAddressReachablebatchGetRequest import LogisticsAddressReachablebatchGetRequest +from top.api.rest.TradeShippingaddressUpdateRequest import TradeShippingaddressUpdateRequest +from top.api.rest.PromotionLimitdiscountDetailGetRequest import PromotionLimitdiscountDetailGetRequest +from top.api.rest.HttpdnsGetRequest import HttpdnsGetRequest +from top.api.rest.FilesGetRequest import FilesGetRequest +from top.api.rest.LogisticsOrdersDetailGetRequest import LogisticsOrdersDetailGetRequest +from top.api.rest.JushitaJdpUserAddRequest import JushitaJdpUserAddRequest +from top.api.rest.RefundGetRequest import RefundGetRequest +from top.api.rest.LogisticsAddressRemoveRequest import LogisticsAddressRemoveRequest +from top.api.rest.SpecialRefundsReceiveGetRequest import SpecialRefundsReceiveGetRequest +from top.api.rest.RefundMessagesGetRequest import RefundMessagesGetRequest +from top.api.rest.MiniappDistributionOrderItemsBindRequest import MiniappDistributionOrderItemsBindRequest +from top.api.rest.RefundMessageAddRequest import RefundMessageAddRequest +from top.api.rest.TradeAmountGetRequest import TradeAmountGetRequest +from top.api.rest.TraderateImprImprwordsGetRequest import TraderateImprImprwordsGetRequest +from top.api.rest.MiniappDistributionMaterialCreateRequest import MiniappDistributionMaterialCreateRequest +from top.api.rest.MiniappDistributionMaterialGetRequest import MiniappDistributionMaterialGetRequest +from top.api.rest.RpReturngoodsRefuseRequest import RpReturngoodsRefuseRequest +from top.api.rest.RpRefundsAgreeRequest import RpRefundsAgreeRequest +from top.api.rest.MiniappDistributionMaterialUpdateRequest import MiniappDistributionMaterialUpdateRequest +from top.api.rest.TradeOrderskuUpdateRequest import TradeOrderskuUpdateRequest +from top.api.rest.RefundsReceiveGetRequest import RefundsReceiveGetRequest +from top.api.rest.TraderatesGetRequest import TraderatesGetRequest +from top.api.rest.TopSecretRegisterRequest import TopSecretRegisterRequest +from top.api.rest.SpecialRefundGetRequest import SpecialRefundGetRequest +from top.api.rest.CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest import CainiaoCbossWorkplatformLogisticsIscainiaoorderRequest +from top.api.rest.SkusCustomGetRequest import SkusCustomGetRequest +from top.api.rest.RefundsApplyGetRequest import RefundsApplyGetRequest +from top.api.rest.TradesSoldIncrementvGetRequest import TradesSoldIncrementvGetRequest +from top.api.rest.TopAuthTokenRefreshRequest import TopAuthTokenRefreshRequest +from top.api.rest.LogisticsAddressSearchRequest import LogisticsAddressSearchRequest +from top.api.rest.ShopcatsListGetRequest import ShopcatsListGetRequest +from top.api.rest.SellercatsListGetRequest import SellercatsListGetRequest +from top.api.rest.TradeFullinfoGetRequest import TradeFullinfoGetRequest +from top.api.rest.MiniappTemplateUpdateappRequest import MiniappTemplateUpdateappRequest +from top.api.rest.ItemSkuGetRequest import ItemSkuGetRequest +from top.api.rest.RefundRefusereasonGetRequest import RefundRefusereasonGetRequest +from top.api.rest.TradeMemoAddRequest import TradeMemoAddRequest +from top.api.rest.CainiaoCbossWorkplatformWorkorderCreateRequest import CainiaoCbossWorkplatformWorkorderCreateRequest +from top.api.rest.FuwuSaleLinkGenRequest import FuwuSaleLinkGenRequest +from top.api.rest.VasSubscSearchRequest import VasSubscSearchRequest +from top.api.rest.PromotionLimitdiscountGetRequest import PromotionLimitdiscountGetRequest +from top.api.rest.MiniappTemplateQueryappRequest import MiniappTemplateQueryappRequest +from top.api.rest.TradesSoldIncrementGetRequest import TradesSoldIncrementGetRequest +from top.api.rest.TimeGetRequest import TimeGetRequest +from top.api.rest.CainiaoCbossWorkplatformWorkorderTaskNotifyRequest import CainiaoCbossWorkplatformWorkorderTaskNotifyRequest +from top.api.rest.MiniappTemplateRollbackRequest import MiniappTemplateRollbackRequest +from top.api.rest.MiniapppTemplateInstantiateRequest import MiniapppTemplateInstantiateRequest +from top.api.rest.MiniappDistributionOrderItemsAllBindRequest import MiniappDistributionOrderItemsAllBindRequest +from top.api.rest.AreasGetRequest import AreasGetRequest +from top.api.rest.MiniappDistributionOrderPrecreateRequest import MiniappDistributionOrderPrecreateRequest +from top.api.rest.TopSdkFeedbackUploadRequest import TopSdkFeedbackUploadRequest +from top.api.rest.AppipGetRequest import AppipGetRequest +from top.api.rest.SellercenterSubusersGetRequest import SellercenterSubusersGetRequest +from top.api.rest.MiniappTemplateOfflineappRequest import MiniappTemplateOfflineappRequest +from top.api.rest.LogisticsTraceSearchRequest import LogisticsTraceSearchRequest +from top.api.rest.MiniappTemplateUpdateRequest import MiniappTemplateUpdateRequest +from top.api.rest.MiniappUserInfoGetRequest import MiniappUserInfoGetRequest +from top.api.rest.MiniappDistributionOrderGetRequest import MiniappDistributionOrderGetRequest +from top.api.rest.MiniappDistributionOrderCreateRequest import MiniappDistributionOrderCreateRequest +from top.api.rest.JushitaJdpUsersGetRequest import JushitaJdpUsersGetRequest +from top.api.rest.VasOrderSearchRequest import VasOrderSearchRequest +from top.api.rest.KfcKeywordSearchRequest import KfcKeywordSearchRequest +from top.api.rest.PromotionMealGetRequest import PromotionMealGetRequest +from top.api.rest.TmallTraderateItemtagsGetRequest import TmallTraderateItemtagsGetRequest +from top.api.rest.TradeReceivetimeDelayRequest import TradeReceivetimeDelayRequest +from top.api.rest.MiniappAppSellerConfigCompleteRequest import MiniappAppSellerConfigCompleteRequest +from top.api.rest.DeliveryTemplateUpdateRequest import DeliveryTemplateUpdateRequest +from top.api.rest.OpenuidGetBymixnickRequest import OpenuidGetBymixnickRequest +from top.api.rest.PromotionActivityGetRequest import PromotionActivityGetRequest +from top.api.rest.ItemsInventoryGetRequest import ItemsInventoryGetRequest +from top.api.rest.SubuserFullinfoGetRequest import SubuserFullinfoGetRequest +from top.api.rest.AppstoreSubscribeGetRequest import AppstoreSubscribeGetRequest +from top.api.rest.LogisticsAddressAddRequest import LogisticsAddressAddRequest +from top.api.rest.FuwuScoresGetRequest import FuwuScoresGetRequest +from top.api.rest.CainiaoCbossWorkplatformBiztypeQueryallRequest import CainiaoCbossWorkplatformBiztypeQueryallRequest +from top.api.rest.ItemsOnsaleGetRequest import ItemsOnsaleGetRequest +from top.api.rest.TraderateExplainAddRequest import TraderateExplainAddRequest +from top.api.rest.CainiaoCbossWorkplatformOperationReplyRequest import CainiaoCbossWorkplatformOperationReplyRequest +from top.api.rest.LogisticsCompaniesGetRequest import LogisticsCompaniesGetRequest +from top.api.rest.MiniappShorturlCreateRequest import MiniappShorturlCreateRequest +from top.api.rest.SubuserDepartmentsGetRequest import SubuserDepartmentsGetRequest +from top.api.rest.MiniappDistributionItemsBindRequest import MiniappDistributionItemsBindRequest +from top.api.rest.MiniappTemplateOnlineappRequest import MiniappTemplateOnlineappRequest +from top.api.rest.SellercenterRolesGetRequest import SellercenterRolesGetRequest +from top.api.rest.OpenuidGetRequest import OpenuidGetRequest +from top.api.rest.MarketingPromotionKfcRequest import MarketingPromotionKfcRequest +from top.api.rest.CainiaoCbossWorkplatformBiztypeQuerybyidRequest import CainiaoCbossWorkplatformBiztypeQuerybyidRequest +from top.api.rest.MiniappTemplateInstantiateRequest import MiniappTemplateInstantiateRequest +from top.api.rest.JushitaJdpUserDeleteRequest import JushitaJdpUserDeleteRequest +from top.api.rest.DeliveryTemplateAddRequest import DeliveryTemplateAddRequest +from top.api.rest.WlbOrderJzConsignRequest import WlbOrderJzConsignRequest +from top.api.rest.LogisticsPartnersGetRequest import LogisticsPartnersGetRequest +from top.api.rest.TradeMemoUpdateRequest import TradeMemoUpdateRequest +from top.api.rest.PromotionCouponsGetRequest import PromotionCouponsGetRequest +from top.api.rest.DeliveryTemplateGetRequest import DeliveryTemplateGetRequest +from top.api.rest.TraderateAddRequest import TraderateAddRequest +from top.api.rest.OpenuidGetBytradeRequest import OpenuidGetBytradeRequest +from top.api.rest.TmallTraderateFeedsGetRequest import TmallTraderateFeedsGetRequest +from top.api.rest.TmallDisputeReceiveGetRequest import TmallDisputeReceiveGetRequest +from top.api.rest.SellercenterSubuserPermissionsRolesGetRequest import SellercenterSubuserPermissionsRolesGetRequest +from top.api.rest.UmpPromotionGetRequest import UmpPromotionGetRequest +from top.api.rest.MiniappCloudFunctionInvokeRequest import MiniappCloudFunctionInvokeRequest +from top.api.rest.RpReturngoodsAgreeRequest import RpReturngoodsAgreeRequest +from top.api.rest.CainiaoCbossWorkplatformWorkorderProcessNotifyRequest import CainiaoCbossWorkplatformWorkorderProcessNotifyRequest +from top.api.rest.TopAuthTokenCreateRequest import TopAuthTokenCreateRequest +from top.api.rest.DeliveryTemplateDeleteRequest import DeliveryTemplateDeleteRequest +from top.api.rest.SellercenterRoleAddRequest import SellercenterRoleAddRequest