antchain-bot 1.10.3__tar.gz → 1.10.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/PKG-INFO +1 -1
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/antchain_bot.egg-info/PKG-INFO +1 -1
- antchain_bot-1.10.7/antchain_sdk_bot/__init__.py +1 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/antchain_sdk_bot/client.py +58 -2
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/antchain_sdk_bot/models.py +133 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/setup.py +1 -1
- antchain_bot-1.10.3/antchain_sdk_bot/__init__.py +0 -1
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/LICENSE +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/MANIFEST.in +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/README-CN.md +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/README.md +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/antchain_bot.egg-info/SOURCES.txt +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/antchain_bot.egg-info/dependency_links.txt +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/antchain_bot.egg-info/requires.txt +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/antchain_bot.egg-info/top_level.txt +0 -0
- {antchain_bot-1.10.3 → antchain_bot-1.10.7}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '1.10.7'
|
|
@@ -135,7 +135,7 @@ class Client:
|
|
|
135
135
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
136
136
|
'access_key': self._access_key_id,
|
|
137
137
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
138
|
-
'sdk_version': '1.10.
|
|
138
|
+
'sdk_version': '1.10.7',
|
|
139
139
|
'_prod_code': 'BOT',
|
|
140
140
|
'_prod_channel': 'undefined'
|
|
141
141
|
}
|
|
@@ -239,7 +239,7 @@ class Client:
|
|
|
239
239
|
'req_msg_id': AntchainUtils.get_nonce(),
|
|
240
240
|
'access_key': self._access_key_id,
|
|
241
241
|
'base_sdk_version': 'TeaSDK-2.0',
|
|
242
|
-
'sdk_version': '1.10.
|
|
242
|
+
'sdk_version': '1.10.7',
|
|
243
243
|
'_prod_code': 'BOT',
|
|
244
244
|
'_prod_channel': 'undefined'
|
|
245
245
|
}
|
|
@@ -10781,6 +10781,62 @@ class Client:
|
|
|
10781
10781
|
await self.do_request_async('1.0', 'blockchain.bot.customerentity.service.query', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
10782
10782
|
)
|
|
10783
10783
|
|
|
10784
|
+
def apply_techintegration_skuship(
|
|
10785
|
+
self,
|
|
10786
|
+
request: bot_models.ApplyTechintegrationSkushipRequest,
|
|
10787
|
+
) -> bot_models.ApplyTechintegrationSkushipResponse:
|
|
10788
|
+
"""
|
|
10789
|
+
Description: 支付芯证书申请
|
|
10790
|
+
Summary: 支付芯证书申请
|
|
10791
|
+
"""
|
|
10792
|
+
runtime = util_models.RuntimeOptions()
|
|
10793
|
+
headers = {}
|
|
10794
|
+
return self.apply_techintegration_skuship_ex(request, headers, runtime)
|
|
10795
|
+
|
|
10796
|
+
async def apply_techintegration_skuship_async(
|
|
10797
|
+
self,
|
|
10798
|
+
request: bot_models.ApplyTechintegrationSkushipRequest,
|
|
10799
|
+
) -> bot_models.ApplyTechintegrationSkushipResponse:
|
|
10800
|
+
"""
|
|
10801
|
+
Description: 支付芯证书申请
|
|
10802
|
+
Summary: 支付芯证书申请
|
|
10803
|
+
"""
|
|
10804
|
+
runtime = util_models.RuntimeOptions()
|
|
10805
|
+
headers = {}
|
|
10806
|
+
return await self.apply_techintegration_skuship_ex_async(request, headers, runtime)
|
|
10807
|
+
|
|
10808
|
+
def apply_techintegration_skuship_ex(
|
|
10809
|
+
self,
|
|
10810
|
+
request: bot_models.ApplyTechintegrationSkushipRequest,
|
|
10811
|
+
headers: Dict[str, str],
|
|
10812
|
+
runtime: util_models.RuntimeOptions,
|
|
10813
|
+
) -> bot_models.ApplyTechintegrationSkushipResponse:
|
|
10814
|
+
"""
|
|
10815
|
+
Description: 支付芯证书申请
|
|
10816
|
+
Summary: 支付芯证书申请
|
|
10817
|
+
"""
|
|
10818
|
+
UtilClient.validate_model(request)
|
|
10819
|
+
return TeaCore.from_map(
|
|
10820
|
+
bot_models.ApplyTechintegrationSkushipResponse(),
|
|
10821
|
+
self.do_request('1.0', 'blockchain.bot.techintegration.skuship.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
10822
|
+
)
|
|
10823
|
+
|
|
10824
|
+
async def apply_techintegration_skuship_ex_async(
|
|
10825
|
+
self,
|
|
10826
|
+
request: bot_models.ApplyTechintegrationSkushipRequest,
|
|
10827
|
+
headers: Dict[str, str],
|
|
10828
|
+
runtime: util_models.RuntimeOptions,
|
|
10829
|
+
) -> bot_models.ApplyTechintegrationSkushipResponse:
|
|
10830
|
+
"""
|
|
10831
|
+
Description: 支付芯证书申请
|
|
10832
|
+
Summary: 支付芯证书申请
|
|
10833
|
+
"""
|
|
10834
|
+
UtilClient.validate_model(request)
|
|
10835
|
+
return TeaCore.from_map(
|
|
10836
|
+
bot_models.ApplyTechintegrationSkushipResponse(),
|
|
10837
|
+
await self.do_request_async('1.0', 'blockchain.bot.techintegration.skuship.apply', 'HTTPS', 'POST', f'/gateway.do', TeaCore.to_map(request), headers, runtime)
|
|
10838
|
+
)
|
|
10839
|
+
|
|
10784
10840
|
def exec_thingsdid_oneapi(
|
|
10785
10841
|
self,
|
|
10786
10842
|
request: bot_models.ExecThingsdidOneapiRequest,
|
|
@@ -32901,6 +32901,139 @@ class QueryCustomerentityServiceResponse(TeaModel):
|
|
|
32901
32901
|
return self
|
|
32902
32902
|
|
|
32903
32903
|
|
|
32904
|
+
class ApplyTechintegrationSkushipRequest(TeaModel):
|
|
32905
|
+
def __init__(
|
|
32906
|
+
self,
|
|
32907
|
+
auth_token: str = None,
|
|
32908
|
+
product_instance_id: str = None,
|
|
32909
|
+
device_model: str = None,
|
|
32910
|
+
quota: int = None,
|
|
32911
|
+
product_type: str = None,
|
|
32912
|
+
security_mechanism: str = None,
|
|
32913
|
+
cert_type: str = None,
|
|
32914
|
+
features: List[str] = None,
|
|
32915
|
+
):
|
|
32916
|
+
# OAuth模式下的授权token
|
|
32917
|
+
self.auth_token = auth_token
|
|
32918
|
+
self.product_instance_id = product_instance_id
|
|
32919
|
+
# 产品型号
|
|
32920
|
+
self.device_model = device_model
|
|
32921
|
+
# 出货数量,上限8
|
|
32922
|
+
self.quota = quota
|
|
32923
|
+
# 产品类型
|
|
32924
|
+
self.product_type = product_type
|
|
32925
|
+
# 安全方案
|
|
32926
|
+
self.security_mechanism = security_mechanism
|
|
32927
|
+
# 证书类型
|
|
32928
|
+
self.cert_type = cert_type
|
|
32929
|
+
# 凭证种类
|
|
32930
|
+
self.features = features
|
|
32931
|
+
|
|
32932
|
+
def validate(self):
|
|
32933
|
+
self.validate_required(self.device_model, 'device_model')
|
|
32934
|
+
self.validate_required(self.quota, 'quota')
|
|
32935
|
+
if self.quota is not None:
|
|
32936
|
+
self.validate_maximum(self.quota, 'quota', 8)
|
|
32937
|
+
self.validate_minimum(self.quota, 'quota', 1)
|
|
32938
|
+
self.validate_required(self.product_type, 'product_type')
|
|
32939
|
+
self.validate_required(self.security_mechanism, 'security_mechanism')
|
|
32940
|
+
self.validate_required(self.cert_type, 'cert_type')
|
|
32941
|
+
self.validate_required(self.features, 'features')
|
|
32942
|
+
|
|
32943
|
+
def to_map(self):
|
|
32944
|
+
_map = super().to_map()
|
|
32945
|
+
if _map is not None:
|
|
32946
|
+
return _map
|
|
32947
|
+
|
|
32948
|
+
result = dict()
|
|
32949
|
+
if self.auth_token is not None:
|
|
32950
|
+
result['auth_token'] = self.auth_token
|
|
32951
|
+
if self.product_instance_id is not None:
|
|
32952
|
+
result['product_instance_id'] = self.product_instance_id
|
|
32953
|
+
if self.device_model is not None:
|
|
32954
|
+
result['device_model'] = self.device_model
|
|
32955
|
+
if self.quota is not None:
|
|
32956
|
+
result['quota'] = self.quota
|
|
32957
|
+
if self.product_type is not None:
|
|
32958
|
+
result['product_type'] = self.product_type
|
|
32959
|
+
if self.security_mechanism is not None:
|
|
32960
|
+
result['security_mechanism'] = self.security_mechanism
|
|
32961
|
+
if self.cert_type is not None:
|
|
32962
|
+
result['cert_type'] = self.cert_type
|
|
32963
|
+
if self.features is not None:
|
|
32964
|
+
result['features'] = self.features
|
|
32965
|
+
return result
|
|
32966
|
+
|
|
32967
|
+
def from_map(self, m: dict = None):
|
|
32968
|
+
m = m or dict()
|
|
32969
|
+
if m.get('auth_token') is not None:
|
|
32970
|
+
self.auth_token = m.get('auth_token')
|
|
32971
|
+
if m.get('product_instance_id') is not None:
|
|
32972
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
32973
|
+
if m.get('device_model') is not None:
|
|
32974
|
+
self.device_model = m.get('device_model')
|
|
32975
|
+
if m.get('quota') is not None:
|
|
32976
|
+
self.quota = m.get('quota')
|
|
32977
|
+
if m.get('product_type') is not None:
|
|
32978
|
+
self.product_type = m.get('product_type')
|
|
32979
|
+
if m.get('security_mechanism') is not None:
|
|
32980
|
+
self.security_mechanism = m.get('security_mechanism')
|
|
32981
|
+
if m.get('cert_type') is not None:
|
|
32982
|
+
self.cert_type = m.get('cert_type')
|
|
32983
|
+
if m.get('features') is not None:
|
|
32984
|
+
self.features = m.get('features')
|
|
32985
|
+
return self
|
|
32986
|
+
|
|
32987
|
+
|
|
32988
|
+
class ApplyTechintegrationSkushipResponse(TeaModel):
|
|
32989
|
+
def __init__(
|
|
32990
|
+
self,
|
|
32991
|
+
req_msg_id: str = None,
|
|
32992
|
+
result_code: str = None,
|
|
32993
|
+
result_msg: str = None,
|
|
32994
|
+
data: List[str] = None,
|
|
32995
|
+
):
|
|
32996
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
32997
|
+
self.req_msg_id = req_msg_id
|
|
32998
|
+
# 结果码,一般OK表示调用成功
|
|
32999
|
+
self.result_code = result_code
|
|
33000
|
+
# 异常信息的文本描述
|
|
33001
|
+
self.result_msg = result_msg
|
|
33002
|
+
# 支付芯证书列表
|
|
33003
|
+
self.data = data
|
|
33004
|
+
|
|
33005
|
+
def validate(self):
|
|
33006
|
+
pass
|
|
33007
|
+
|
|
33008
|
+
def to_map(self):
|
|
33009
|
+
_map = super().to_map()
|
|
33010
|
+
if _map is not None:
|
|
33011
|
+
return _map
|
|
33012
|
+
|
|
33013
|
+
result = dict()
|
|
33014
|
+
if self.req_msg_id is not None:
|
|
33015
|
+
result['req_msg_id'] = self.req_msg_id
|
|
33016
|
+
if self.result_code is not None:
|
|
33017
|
+
result['result_code'] = self.result_code
|
|
33018
|
+
if self.result_msg is not None:
|
|
33019
|
+
result['result_msg'] = self.result_msg
|
|
33020
|
+
if self.data is not None:
|
|
33021
|
+
result['data'] = self.data
|
|
33022
|
+
return result
|
|
33023
|
+
|
|
33024
|
+
def from_map(self, m: dict = None):
|
|
33025
|
+
m = m or dict()
|
|
33026
|
+
if m.get('req_msg_id') is not None:
|
|
33027
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
33028
|
+
if m.get('result_code') is not None:
|
|
33029
|
+
self.result_code = m.get('result_code')
|
|
33030
|
+
if m.get('result_msg') is not None:
|
|
33031
|
+
self.result_msg = m.get('result_msg')
|
|
33032
|
+
if m.get('data') is not None:
|
|
33033
|
+
self.data = m.get('data')
|
|
33034
|
+
return self
|
|
33035
|
+
|
|
33036
|
+
|
|
32904
33037
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
32905
33038
|
def __init__(
|
|
32906
33039
|
self,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '1.10.3'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|