Skip to content

Commit 5abf1b0

Browse files
committed
Generated php 2022-08-09 for Cloudauth-intl.
1 parent 7704a75 commit 5abf1b0

File tree

10 files changed

+760
-0
lines changed

10 files changed

+760
-0
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-10-31 Version: 1.3.0
2+
- Generated php 2022-08-09 for Cloudauth-intl.
3+
14
2023-10-20 Version: 1.2.1
25
- Generated php 2022-08-09 for Cloudauth-intl.
36

src/Cloudauthintl.php

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@
4040
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FaceLivenessResponse;
4141
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FraudResultCallBackRequest;
4242
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FraudResultCallBackResponse;
43+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Id2MetaVerifyIntlRequest;
44+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Id2MetaVerifyIntlResponse;
4345
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeRequest;
4446
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeResponse;
47+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile3MetaVerifyIntlRequest;
48+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile3MetaVerifyIntlResponse;
4549
use AlibabaCloud\Tea\Utils\Utils;
4650
use AlibabaCloud\Tea\Utils\Utils\RuntimeOptions;
4751
use Darabonba\OpenApi\Models\OpenApiRequest;
@@ -1033,6 +1037,58 @@ public function fraudResultCallBack($request)
10331037
return $this->fraudResultCallBackWithOptions($request, $runtime);
10341038
}
10351039

1040+
/**
1041+
* @param Id2MetaVerifyIntlRequest $request
1042+
* @param RuntimeOptions $runtime
1043+
*
1044+
* @return Id2MetaVerifyIntlResponse
1045+
*/
1046+
public function id2MetaVerifyIntlWithOptions($request, $runtime)
1047+
{
1048+
Utils::validateModel($request);
1049+
$query = [];
1050+
if (!Utils::isUnset($request->identifyNum)) {
1051+
$query['IdentifyNum'] = $request->identifyNum;
1052+
}
1053+
if (!Utils::isUnset($request->paramType)) {
1054+
$query['ParamType'] = $request->paramType;
1055+
}
1056+
if (!Utils::isUnset($request->productCode)) {
1057+
$query['ProductCode'] = $request->productCode;
1058+
}
1059+
if (!Utils::isUnset($request->userName)) {
1060+
$query['UserName'] = $request->userName;
1061+
}
1062+
$req = new OpenApiRequest([
1063+
'query' => OpenApiUtilClient::query($query),
1064+
]);
1065+
$params = new Params([
1066+
'action' => 'Id2MetaVerifyIntl',
1067+
'version' => '2022-08-09',
1068+
'protocol' => 'HTTPS',
1069+
'pathname' => '/',
1070+
'method' => 'POST',
1071+
'authType' => 'AK',
1072+
'style' => 'RPC',
1073+
'reqBodyType' => 'formData',
1074+
'bodyType' => 'json',
1075+
]);
1076+
1077+
return Id2MetaVerifyIntlResponse::fromMap($this->callApi($params, $req, $runtime));
1078+
}
1079+
1080+
/**
1081+
* @param Id2MetaVerifyIntlRequest $request
1082+
*
1083+
* @return Id2MetaVerifyIntlResponse
1084+
*/
1085+
public function id2MetaVerifyIntl($request)
1086+
{
1087+
$runtime = new RuntimeOptions([]);
1088+
1089+
return $this->id2MetaVerifyIntlWithOptions($request, $runtime);
1090+
}
1091+
10361092
/**
10371093
* @param InitializeRequest $request
10381094
* @param RuntimeOptions $runtime
@@ -1141,4 +1197,59 @@ public function initialize($request)
11411197

11421198
return $this->initializeWithOptions($request, $runtime);
11431199
}
1200+
1201+
/**
1202+
* @param Mobile3MetaVerifyIntlRequest $request
1203+
* @param RuntimeOptions $runtime
1204+
*
1205+
* @return Mobile3MetaVerifyIntlResponse
1206+
*/
1207+
public function mobile3MetaVerifyIntlWithOptions($request, $runtime)
1208+
{
1209+
Utils::validateModel($request);
1210+
$query = [];
1211+
if (!Utils::isUnset($request->identifyNum)) {
1212+
$query['IdentifyNum'] = $request->identifyNum;
1213+
}
1214+
if (!Utils::isUnset($request->mobile)) {
1215+
$query['Mobile'] = $request->mobile;
1216+
}
1217+
if (!Utils::isUnset($request->paramType)) {
1218+
$query['ParamType'] = $request->paramType;
1219+
}
1220+
if (!Utils::isUnset($request->productCode)) {
1221+
$query['ProductCode'] = $request->productCode;
1222+
}
1223+
if (!Utils::isUnset($request->userName)) {
1224+
$query['UserName'] = $request->userName;
1225+
}
1226+
$req = new OpenApiRequest([
1227+
'query' => OpenApiUtilClient::query($query),
1228+
]);
1229+
$params = new Params([
1230+
'action' => 'Mobile3MetaVerifyIntl',
1231+
'version' => '2022-08-09',
1232+
'protocol' => 'HTTPS',
1233+
'pathname' => '/',
1234+
'method' => 'POST',
1235+
'authType' => 'AK',
1236+
'style' => 'RPC',
1237+
'reqBodyType' => 'formData',
1238+
'bodyType' => 'json',
1239+
]);
1240+
1241+
return Mobile3MetaVerifyIntlResponse::fromMap($this->callApi($params, $req, $runtime));
1242+
}
1243+
1244+
/**
1245+
* @param Mobile3MetaVerifyIntlRequest $request
1246+
*
1247+
* @return Mobile3MetaVerifyIntlResponse
1248+
*/
1249+
public function mobile3MetaVerifyIntl($request)
1250+
{
1251+
$runtime = new RuntimeOptions([]);
1252+
1253+
return $this->mobile3MetaVerifyIntlWithOptions($request, $runtime);
1254+
}
11441255
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\Cloudauthintl\V20220809\Models;
6+
7+
use AlibabaCloud\Tea\Model;
8+
9+
class Id2MetaVerifyIntlRequest extends Model
10+
{
11+
/**
12+
* @example 429001********8211
13+
*
14+
* @var string
15+
*/
16+
public $identifyNum;
17+
18+
/**
19+
* @example normal
20+
*
21+
* @var string
22+
*/
23+
public $paramType;
24+
25+
/**
26+
* @example ID_2META
27+
*
28+
* @var string
29+
*/
30+
public $productCode;
31+
32+
/**
33+
* @var string
34+
*/
35+
public $userName;
36+
protected $_name = [
37+
'identifyNum' => 'IdentifyNum',
38+
'paramType' => 'ParamType',
39+
'productCode' => 'ProductCode',
40+
'userName' => 'UserName',
41+
];
42+
43+
public function validate()
44+
{
45+
}
46+
47+
public function toMap()
48+
{
49+
$res = [];
50+
if (null !== $this->identifyNum) {
51+
$res['IdentifyNum'] = $this->identifyNum;
52+
}
53+
if (null !== $this->paramType) {
54+
$res['ParamType'] = $this->paramType;
55+
}
56+
if (null !== $this->productCode) {
57+
$res['ProductCode'] = $this->productCode;
58+
}
59+
if (null !== $this->userName) {
60+
$res['UserName'] = $this->userName;
61+
}
62+
63+
return $res;
64+
}
65+
66+
/**
67+
* @param array $map
68+
*
69+
* @return Id2MetaVerifyIntlRequest
70+
*/
71+
public static function fromMap($map = [])
72+
{
73+
$model = new self();
74+
if (isset($map['IdentifyNum'])) {
75+
$model->identifyNum = $map['IdentifyNum'];
76+
}
77+
if (isset($map['ParamType'])) {
78+
$model->paramType = $map['ParamType'];
79+
}
80+
if (isset($map['ProductCode'])) {
81+
$model->productCode = $map['ProductCode'];
82+
}
83+
if (isset($map['UserName'])) {
84+
$model->userName = $map['UserName'];
85+
}
86+
87+
return $model;
88+
}
89+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\Cloudauthintl\V20220809\Models;
6+
7+
use AlibabaCloud\Tea\Model;
8+
9+
class Id2MetaVerifyIntlResponse extends Model
10+
{
11+
/**
12+
* @var string[]
13+
*/
14+
public $headers;
15+
16+
/**
17+
* @var int
18+
*/
19+
public $statusCode;
20+
21+
/**
22+
* @var Id2MetaVerifyIntlResponseBody
23+
*/
24+
public $body;
25+
protected $_name = [
26+
'headers' => 'headers',
27+
'statusCode' => 'statusCode',
28+
'body' => 'body',
29+
];
30+
31+
public function validate()
32+
{
33+
Model::validateRequired('headers', $this->headers, true);
34+
Model::validateRequired('statusCode', $this->statusCode, true);
35+
Model::validateRequired('body', $this->body, true);
36+
}
37+
38+
public function toMap()
39+
{
40+
$res = [];
41+
if (null !== $this->headers) {
42+
$res['headers'] = $this->headers;
43+
}
44+
if (null !== $this->statusCode) {
45+
$res['statusCode'] = $this->statusCode;
46+
}
47+
if (null !== $this->body) {
48+
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
49+
}
50+
51+
return $res;
52+
}
53+
54+
/**
55+
* @param array $map
56+
*
57+
* @return Id2MetaVerifyIntlResponse
58+
*/
59+
public static function fromMap($map = [])
60+
{
61+
$model = new self();
62+
if (isset($map['headers'])) {
63+
$model->headers = $map['headers'];
64+
}
65+
if (isset($map['statusCode'])) {
66+
$model->statusCode = $map['statusCode'];
67+
}
68+
if (isset($map['body'])) {
69+
$model->body = Id2MetaVerifyIntlResponseBody::fromMap($map['body']);
70+
}
71+
72+
return $model;
73+
}
74+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\Cloudauthintl\V20220809\Models;
6+
7+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Id2MetaVerifyIntlResponseBody\result;
8+
use AlibabaCloud\Tea\Model;
9+
10+
class Id2MetaVerifyIntlResponseBody extends Model
11+
{
12+
/**
13+
* @example Success
14+
*
15+
* @var string
16+
*/
17+
public $code;
18+
19+
/**
20+
* @example success
21+
*
22+
* @var string
23+
*/
24+
public $message;
25+
26+
/**
27+
* @example EFA11401-C961-5E89-A2D3-BF9883E5CC3D
28+
*
29+
* @var string
30+
*/
31+
public $requestId;
32+
33+
/**
34+
* @var result
35+
*/
36+
public $result;
37+
protected $_name = [
38+
'code' => 'Code',
39+
'message' => 'Message',
40+
'requestId' => 'RequestId',
41+
'result' => 'Result',
42+
];
43+
44+
public function validate()
45+
{
46+
}
47+
48+
public function toMap()
49+
{
50+
$res = [];
51+
if (null !== $this->code) {
52+
$res['Code'] = $this->code;
53+
}
54+
if (null !== $this->message) {
55+
$res['Message'] = $this->message;
56+
}
57+
if (null !== $this->requestId) {
58+
$res['RequestId'] = $this->requestId;
59+
}
60+
if (null !== $this->result) {
61+
$res['Result'] = null !== $this->result ? $this->result->toMap() : null;
62+
}
63+
64+
return $res;
65+
}
66+
67+
/**
68+
* @param array $map
69+
*
70+
* @return Id2MetaVerifyIntlResponseBody
71+
*/
72+
public static function fromMap($map = [])
73+
{
74+
$model = new self();
75+
if (isset($map['Code'])) {
76+
$model->code = $map['Code'];
77+
}
78+
if (isset($map['Message'])) {
79+
$model->message = $map['Message'];
80+
}
81+
if (isset($map['RequestId'])) {
82+
$model->requestId = $map['RequestId'];
83+
}
84+
if (isset($map['Result'])) {
85+
$model->result = result::fromMap($map['Result']);
86+
}
87+
88+
return $model;
89+
}
90+
}

0 commit comments

Comments
 (0)