Skip to content

Commit

Permalink
Generated Darabonba for Cloudauth-2022-11-25.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Mar 7, 2025
1 parent fe17d08 commit d2a06aa
Show file tree
Hide file tree
Showing 6 changed files with 738 additions and 15 deletions.
4 changes: 2 additions & 2 deletions cloudauth-20221125/Teafile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"scope": "alibabacloud",
"name": "Cloudauth20221125",
"version": "1.0.10",
"version": "1.0.11",
"main": "./main.tea",
"maintainers": [
{
Expand All @@ -27,7 +27,7 @@
"go": "github.com/alibabacloud-go/cloudauth-20221125/client:v1.1.1",
"csharp": "AlibabaCloud.SDK.Cloudauth20221125:1.1.1",
"ts": "@alicloud/cloudauth20221125:1.1.1",
"php": "alibabacloud/cloudauth-20221125:1.1.1",
"php": "alibabacloud/cloudauth-20221125:1.2.0",
"python": "alibabacloud_cloudauth20221125:1.1.1",
"python2": "alibabacloud_cloudauth20221125_py2:1.0.0",
"swift": "alibabacloud-sdk-swift/cloudauth-20221125:1.0.0"
Expand Down
3 changes: 2 additions & 1 deletion cloudauth-20221125/api-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"apiDoc": {
"hasDoc": [
"EntElementVerify",
"EntVerify",
"EntRiskQuery",
"EntVerify"
"EntElementVerifyV2"
],
"noDoc": []
},
Expand Down
174 changes: 162 additions & 12 deletions cloudauth-20221125/main.tea
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,18 @@ model EntElementVerifyResponseBody = {
}

model EntElementVerifyResponse = {
headers: map[string]string(name='headers'),
statusCode: int32(name='statusCode'),
body: EntElementVerifyResponseBody(name='body'),
headers?: map[string]string(name='headers'),
statusCode?: int32(name='statusCode'),
body?: EntElementVerifyResponseBody(name='body'),
}

/**
* @summary 企业要素核验
*
* @param request EntElementVerifyRequest
* @param runtime runtime options for this request RuntimeOptions
* @return EntElementVerifyResponse
*/
async function entElementVerifyWithOptions(request: EntElementVerifyRequest, runtime: Util.RuntimeOptions): EntElementVerifyResponse {
Util.validateModel(request);
var query = {};
Expand Down Expand Up @@ -103,14 +110,123 @@ async function entElementVerifyWithOptions(request: EntElementVerifyRequest, run
reqBodyType = 'formData',
bodyType = 'json',
};
return callApi(params, req, runtime);
if (Util.isUnset(@signatureVersion) || !Util.equalString(@signatureVersion, 'v4')) {
return callApi(params, req, runtime);
} else {
return execute(params, req, runtime);
}
}

/**
* @summary 企业要素核验
*
* @param request EntElementVerifyRequest
* @return EntElementVerifyResponse
*/
async function entElementVerify(request: EntElementVerifyRequest): EntElementVerifyResponse {
var runtime = new Util.RuntimeOptions{};
return entElementVerifyWithOptions(request, runtime);
}

model EntElementVerifyV2Request {
entName?: string(name='EntName', description='This parameter is required.'),
infoVerifyType?: string(name='InfoVerifyType', description='This parameter is required.', example='ENT_2META'),
legalPersonCertNo?: string(name='LegalPersonCertNo', example='1******************9'),
legalPersonName?: string(name='LegalPersonName'),
licenseNo?: string(name='LicenseNo', description='This parameter is required.', example='91330106673959****'),
merchantBizId?: string(name='MerchantBizId', description='This parameter is required.', example='e0c34a77f5ac40a5aa5e6ed20c35****'),
merchantUserId?: string(name='MerchantUserId', description='This parameter is required.', example='mch7x9a2b4c8d3e5f6g1h2i3j4k5****'),
sceneCode?: string(name='SceneCode', description='This parameter is required.', example='1000000006'),
userAuthorization?: string(name='UserAuthorization', description='This parameter is required.', example='1'),
}

model EntElementVerifyV2ResponseBody = {
code?: string(name='Code', example='Success'),
message?: string(name='Message', example='success'),
requestId?: string(name='RequestId', description='Id of the request', example='473469C7***B-A3DC0DE3C83E'),
result?: {
bizCode?: string(name='BizCode', example='1'),
openTime?: string(name='OpenTime', example='2018-09-25/9999-09-09'),
reasonDetail?: string(name='ReasonDetail', example='LegalPersonNameFlag,LegalPersonCertNoFlag'),
status?: string(name='Status', example='1'),
}(name='Result'),
}

model EntElementVerifyV2Response = {
headers?: map[string]string(name='headers'),
statusCode?: int32(name='statusCode'),
body?: EntElementVerifyV2ResponseBody(name='body'),
}

/**
* @summary 企业要素验证V2
*
* @param request EntElementVerifyV2Request
* @param runtime runtime options for this request RuntimeOptions
* @return EntElementVerifyV2Response
*/
async function entElementVerifyV2WithOptions(request: EntElementVerifyV2Request, runtime: Util.RuntimeOptions): EntElementVerifyV2Response {
Util.validateModel(request);
var query = {};
if (!Util.isUnset(request.entName)) {
query['EntName'] = request.entName;
}
if (!Util.isUnset(request.infoVerifyType)) {
query['InfoVerifyType'] = request.infoVerifyType;
}
if (!Util.isUnset(request.legalPersonCertNo)) {
query['LegalPersonCertNo'] = request.legalPersonCertNo;
}
if (!Util.isUnset(request.legalPersonName)) {
query['LegalPersonName'] = request.legalPersonName;
}
if (!Util.isUnset(request.licenseNo)) {
query['LicenseNo'] = request.licenseNo;
}
if (!Util.isUnset(request.merchantBizId)) {
query['MerchantBizId'] = request.merchantBizId;
}
if (!Util.isUnset(request.merchantUserId)) {
query['MerchantUserId'] = request.merchantUserId;
}
if (!Util.isUnset(request.sceneCode)) {
query['SceneCode'] = request.sceneCode;
}
if (!Util.isUnset(request.userAuthorization)) {
query['UserAuthorization'] = request.userAuthorization;
}
var req = new OpenApi.OpenApiRequest{
query = OpenApiUtil.query(query),
};
var params = new OpenApi.Params{
action = 'EntElementVerifyV2',
version = '2022-11-25',
protocol = 'HTTPS',
pathname = '/',
method = 'POST',
authType = 'AK',
style = 'RPC',
reqBodyType = 'formData',
bodyType = 'json',
};
if (Util.isUnset(@signatureVersion) || !Util.equalString(@signatureVersion, 'v4')) {
return callApi(params, req, runtime);
} else {
return execute(params, req, runtime);
}
}

/**
* @summary 企业要素验证V2
*
* @param request EntElementVerifyV2Request
* @return EntElementVerifyV2Response
*/
async function entElementVerifyV2(request: EntElementVerifyV2Request): EntElementVerifyV2Response {
var runtime = new Util.RuntimeOptions{};
return entElementVerifyV2WithOptions(request, runtime);
}

model EntRiskQueryRequest {
merchantBizId?: string(name='MerchantBizId', example='32198****193000'),
merchantUserId?: string(name='MerchantUserId'),
Expand Down Expand Up @@ -144,11 +260,18 @@ model EntRiskQueryResponseBody = {
}

model EntRiskQueryResponse = {
headers: map[string]string(name='headers'),
statusCode: int32(name='statusCode'),
body: EntRiskQueryResponseBody(name='body'),
headers?: map[string]string(name='headers'),
statusCode?: int32(name='statusCode'),
body?: EntRiskQueryResponseBody(name='body'),
}

/**
* @summary 企业经营异常查询
*
* @param request EntRiskQueryRequest
* @param runtime runtime options for this request RuntimeOptions
* @return EntRiskQueryResponse
*/
async function entRiskQueryWithOptions(request: EntRiskQueryRequest, runtime: Util.RuntimeOptions): EntRiskQueryResponse {
Util.validateModel(request);
var query = {};
Expand Down Expand Up @@ -184,9 +307,19 @@ async function entRiskQueryWithOptions(request: EntRiskQueryRequest, runtime: Ut
reqBodyType = 'formData',
bodyType = 'json',
};
return callApi(params, req, runtime);
if (Util.isUnset(@signatureVersion) || !Util.equalString(@signatureVersion, 'v4')) {
return callApi(params, req, runtime);
} else {
return execute(params, req, runtime);
}
}

/**
* @summary 企业经营异常查询
*
* @param request EntRiskQueryRequest
* @return EntRiskQueryResponse
*/
async function entRiskQuery(request: EntRiskQueryRequest): EntRiskQueryResponse {
var runtime = new Util.RuntimeOptions{};
return entRiskQueryWithOptions(request, runtime);
Expand Down Expand Up @@ -226,11 +359,18 @@ model EntVerifyResponseBody = {
}

model EntVerifyResponse = {
headers: map[string]string(name='headers'),
statusCode: int32(name='statusCode'),
body: EntVerifyResponseBody(name='body'),
headers?: map[string]string(name='headers'),
statusCode?: int32(name='statusCode'),
body?: EntVerifyResponseBody(name='body'),
}

/**
* @summary 企业认证
*
* @param request EntVerifyRequest
* @param runtime runtime options for this request RuntimeOptions
* @return EntVerifyResponse
*/
async function entVerifyWithOptions(request: EntVerifyRequest, runtime: Util.RuntimeOptions): EntVerifyResponse {
Util.validateModel(request);
var query = {};
Expand Down Expand Up @@ -287,9 +427,19 @@ async function entVerifyWithOptions(request: EntVerifyRequest, runtime: Util.Run
reqBodyType = 'formData',
bodyType = 'json',
};
return callApi(params, req, runtime);
if (Util.isUnset(@signatureVersion) || !Util.equalString(@signatureVersion, 'v4')) {
return callApi(params, req, runtime);
} else {
return execute(params, req, runtime);
}
}

/**
* @summary 企业认证
*
* @param request EntVerifyRequest
* @return EntVerifyResponse
*/
async function entVerify(request: EntVerifyRequest): EntVerifyResponse {
var runtime = new Util.RuntimeOptions{};
return entVerifyWithOptions(request, runtime);
Expand Down
112 changes: 112 additions & 0 deletions cloudauth-20221125/v2/Teafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
{
"scope": "alibabacloud",
"name": "Cloudauth20221125",
"version": "0.0.1",
"main": "./main.tea",
"maintainers": [
{
"name": "Alibaba Cloud SDK",
"email": "sdk-team@alibabacloud.com"
}
],
"java": {
"package": "com.aliyun.cloudauth20221125",
"enableMinimizeModelName": false,
"packageInfo": {
"description": "Alibaba Cloud ID Verification (20221125) SDK for Java",
"url": "https://github.com/aliyun/alibabacloud-java-sdk",
"licenseName": "The Apache License, Version 2.0",
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.txt",
"developerId": "aliyunproducts",
"developerName": "Aliyun SDK",
"developerEmail": "aliyunsdk@aliyun.com"
}
},
"releases": {
"java": "com.aliyun:cloudauth20221125:0.0.1",
"go": "github.com/alibabacloud-go/cloudauth-20221125/client:v1.0.0",
"csharp": "AlibabaCloud.SDK.Cloudauth20221125:0.0.1",
"ts": "@alicloud/cloudauth20221125:^1.0.0",
"php": "alibabacloud/cloudauth-20221125:^0.1.0",
"python": "alibabacloud_cloudauth20221125:0.0.1",
"python2": "alibabacloud_cloudauth20221125_py2:0.0.1",
"swift": "alibabacloud-sdk-swift/cloudauth-20221125:1.0.0"
},
"libraries": {
"OpenApi": "alibabacloud:OpenApiV2:*",
"SPI": "alibabacloud:GatewaySPI:*",
"GatewayClient": "alibabacloud:GatewayPOP:*",
"Paginator": "alibabacloud:Paginator:*"
},
"csharp": {
"className": "Client",
"namespace": "AlibabaCloud.SDK.Cloudauth20221125",
"packageInfo": {
"name": "cloudauth",
"title": "alibabacloud-cloudauth",
"description": "Alibaba Cloud ID Verification (20221125) SDK Library for .NET",
"company": "Alibaba Cloud",
"property": {
"PackageTags": "Alibaba Aliyun ID Verification SDK",
"Copyright": "©2009-present Alibaba Cloud",
"PackageProjectUrl": "https://github.com/aliyun/alibabacloud-csharp-sdk",
"PackageIconUrl": "https://www.alibabacloud.com/favicon.ico"
}
}
},
"php": {
"package": "AlibabaCloud.SDK.Cloudauth.V20221125",
"clientName": "Cloudauth",
"packageInfo": {
"name": "alibabacloud/cloudauth-20221125",
"desc": "Alibaba Cloud ID Verification (20221125) SDK Library for PHP",
"github": "https://github.com/aliyun/alibabacloud-php-sdk",
"files": {
"LICENSE": "../LICENSE"
}
}
},
"python": {
"package": "alibabacloud_cloudauth20221125",
"clientName": "client",
"packageInfo": {
"name": "alibabacloud_cloudauth20221125",
"desc": "Alibaba Cloud ID Verification (20221125) SDK Library for Python",
"github": "https://github.com/aliyun/alibabacloud-python-sdk",
"author": "Alibaba Cloud SDK",
"email": "sdk-team@alibabacloud.com"
}
},
"python2": {
"package": "alibabacloud_cloudauth20221125",
"clientName": "client",
"packageInfo": {
"name": "alibabacloud_cloudauth20221125_py2",
"desc": "Alibaba Cloud ID Verification (20221125) SDK Library for Python2",
"github": "https://github.com/aliyun/alibabacloud-python2-sdk",
"author": "Alibaba Cloud SDK",
"email": "sdk-team@alibabacloud.com"
}
},
"cpp": {
"packageInfo": {
"git": {
"scope": "alibabacloud-sdk-cpp",
"project": "cloudauth-20221125"
}
}
},
"swift": {
"clientName": "Client",
"packageInfo": {
"name": "AlibabacloudCloudauth20221125",
"desc": "Alibaba Cloud ID Verification (20221125) SDK Library for Swift",
"github": "https://github.com/alibabacloud-sdk-swift/cloudauth-20221125",
"author": "Alibaba Cloud SDK",
"email": "sdk-team@alibabacloud.com"
}
},
"go": {
"mapAndSliceWithoutOmitempty": false
}
}
15 changes: 15 additions & 0 deletions cloudauth-20221125/v2/api-info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"product": "Cloudauth",
"version": "2022-11-25",
"apiDoc": {
"hasDoc": [
"EntElementVerifyV2",
"EntRiskQuery",
"EntVerify",
"EntElementVerify"
],
"noDoc": []
},
"deprecated": [],
"endpoints": {}
}
Loading

0 comments on commit d2a06aa

Please sign in to comment.