Skip to content

Commit 50cea63

Browse files
committed
Support API Id2MetaPeriodVerifyIntl.
1 parent cc90298 commit 50cea63

File tree

6 files changed

+474
-0
lines changed

6 files changed

+474
-0
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-01-09 Version: 3.2.0
2+
- Support API Id2MetaPeriodVerifyIntl.
3+
4+
15
2025-01-09 Version: 3.1.3
26
- Generated php 2022-08-09 for Cloudauth-intl.
37

src/Cloudauthintl.php

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FaceLivenessResponse;
2525
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FraudResultCallBackRequest;
2626
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FraudResultCallBackResponse;
27+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Id2MetaPeriodVerifyIntlRequest;
28+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Id2MetaPeriodVerifyIntlResponse;
2729
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Id2MetaVerifyIntlRequest;
2830
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Id2MetaVerifyIntlResponse;
2931
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeRequest;
@@ -669,6 +671,77 @@ public function fraudResultCallBack($request)
669671
return $this->fraudResultCallBackWithOptions($request, $runtime);
670672
}
671673

674+
/**
675+
* @summary 身份二要素有效期核验
676+
* *
677+
* @param Id2MetaPeriodVerifyIntlRequest $request Id2MetaPeriodVerifyIntlRequest
678+
* @param RuntimeOptions $runtime runtime options for this request RuntimeOptions
679+
*
680+
* @return Id2MetaPeriodVerifyIntlResponse Id2MetaPeriodVerifyIntlResponse
681+
*/
682+
public function id2MetaPeriodVerifyIntlWithOptions($request, $runtime)
683+
{
684+
Utils::validateModel($request);
685+
$body = [];
686+
if (!Utils::isUnset($request->docName)) {
687+
$body['DocName'] = $request->docName;
688+
}
689+
if (!Utils::isUnset($request->docNo)) {
690+
$body['DocNo'] = $request->docNo;
691+
}
692+
if (!Utils::isUnset($request->docType)) {
693+
$body['DocType'] = $request->docType;
694+
}
695+
if (!Utils::isUnset($request->merchantBizId)) {
696+
$body['MerchantBizId'] = $request->merchantBizId;
697+
}
698+
if (!Utils::isUnset($request->merchantUserId)) {
699+
$body['MerchantUserId'] = $request->merchantUserId;
700+
}
701+
if (!Utils::isUnset($request->productCode)) {
702+
$body['ProductCode'] = $request->productCode;
703+
}
704+
if (!Utils::isUnset($request->sceneCode)) {
705+
$body['SceneCode'] = $request->sceneCode;
706+
}
707+
if (!Utils::isUnset($request->validityEndDate)) {
708+
$body['ValidityEndDate'] = $request->validityEndDate;
709+
}
710+
if (!Utils::isUnset($request->validityStartDate)) {
711+
$body['ValidityStartDate'] = $request->validityStartDate;
712+
}
713+
$req = new OpenApiRequest([
714+
'body' => OpenApiUtilClient::parseToMap($body),
715+
]);
716+
$params = new Params([
717+
'action' => 'Id2MetaPeriodVerifyIntl',
718+
'version' => '2022-08-09',
719+
'protocol' => 'HTTPS',
720+
'pathname' => '/',
721+
'method' => 'POST',
722+
'authType' => 'AK',
723+
'style' => 'RPC',
724+
'reqBodyType' => 'formData',
725+
'bodyType' => 'json',
726+
]);
727+
728+
return Id2MetaPeriodVerifyIntlResponse::fromMap($this->callApi($params, $req, $runtime));
729+
}
730+
731+
/**
732+
* @summary 身份二要素有效期核验
733+
* *
734+
* @param Id2MetaPeriodVerifyIntlRequest $request Id2MetaPeriodVerifyIntlRequest
735+
*
736+
* @return Id2MetaPeriodVerifyIntlResponse Id2MetaPeriodVerifyIntlResponse
737+
*/
738+
public function id2MetaPeriodVerifyIntl($request)
739+
{
740+
$runtime = new RuntimeOptions([]);
741+
742+
return $this->id2MetaPeriodVerifyIntlWithOptions($request, $runtime);
743+
}
744+
672745
/**
673746
* @summary 身份二要素国际版接口
674747
* *
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
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 Id2MetaPeriodVerifyIntlRequest extends Model
10+
{
11+
/**
12+
* @description This parameter is required.
13+
*
14+
* @var string
15+
*/
16+
public $docName;
17+
18+
/**
19+
* @description This parameter is required.
20+
*
21+
* @example 411xxxxxxxxxxx0001
22+
*
23+
* @var string
24+
*/
25+
public $docNo;
26+
27+
/**
28+
* @description This parameter is required.
29+
*
30+
* @example 00000001
31+
*
32+
* @var string
33+
*/
34+
public $docType;
35+
36+
/**
37+
* @description This parameter is required.
38+
*
39+
* @example e0c34a77f5ac40a5aa5e6ed20c35****
40+
*
41+
* @var string
42+
*/
43+
public $merchantBizId;
44+
45+
/**
46+
* @example 1234567890
47+
*
48+
* @var string
49+
*/
50+
public $merchantUserId;
51+
52+
/**
53+
* @description This parameter is required.
54+
*
55+
* @example eKYC_Date_MIN
56+
*
57+
* @var string
58+
*/
59+
public $productCode;
60+
61+
/**
62+
* @example 1234567890
63+
*
64+
* @var string
65+
*/
66+
public $sceneCode;
67+
68+
/**
69+
* @description This parameter is required.
70+
*
71+
* @example 20301001
72+
*
73+
* @var string
74+
*/
75+
public $validityEndDate;
76+
77+
/**
78+
* @description This parameter is required.
79+
*
80+
* @example 20201001
81+
*
82+
* @var string
83+
*/
84+
public $validityStartDate;
85+
protected $_name = [
86+
'docName' => 'DocName',
87+
'docNo' => 'DocNo',
88+
'docType' => 'DocType',
89+
'merchantBizId' => 'MerchantBizId',
90+
'merchantUserId' => 'MerchantUserId',
91+
'productCode' => 'ProductCode',
92+
'sceneCode' => 'SceneCode',
93+
'validityEndDate' => 'ValidityEndDate',
94+
'validityStartDate' => 'ValidityStartDate',
95+
];
96+
97+
public function validate()
98+
{
99+
}
100+
101+
public function toMap()
102+
{
103+
$res = [];
104+
if (null !== $this->docName) {
105+
$res['DocName'] = $this->docName;
106+
}
107+
if (null !== $this->docNo) {
108+
$res['DocNo'] = $this->docNo;
109+
}
110+
if (null !== $this->docType) {
111+
$res['DocType'] = $this->docType;
112+
}
113+
if (null !== $this->merchantBizId) {
114+
$res['MerchantBizId'] = $this->merchantBizId;
115+
}
116+
if (null !== $this->merchantUserId) {
117+
$res['MerchantUserId'] = $this->merchantUserId;
118+
}
119+
if (null !== $this->productCode) {
120+
$res['ProductCode'] = $this->productCode;
121+
}
122+
if (null !== $this->sceneCode) {
123+
$res['SceneCode'] = $this->sceneCode;
124+
}
125+
if (null !== $this->validityEndDate) {
126+
$res['ValidityEndDate'] = $this->validityEndDate;
127+
}
128+
if (null !== $this->validityStartDate) {
129+
$res['ValidityStartDate'] = $this->validityStartDate;
130+
}
131+
132+
return $res;
133+
}
134+
135+
/**
136+
* @param array $map
137+
*
138+
* @return Id2MetaPeriodVerifyIntlRequest
139+
*/
140+
public static function fromMap($map = [])
141+
{
142+
$model = new self();
143+
if (isset($map['DocName'])) {
144+
$model->docName = $map['DocName'];
145+
}
146+
if (isset($map['DocNo'])) {
147+
$model->docNo = $map['DocNo'];
148+
}
149+
if (isset($map['DocType'])) {
150+
$model->docType = $map['DocType'];
151+
}
152+
if (isset($map['MerchantBizId'])) {
153+
$model->merchantBizId = $map['MerchantBizId'];
154+
}
155+
if (isset($map['MerchantUserId'])) {
156+
$model->merchantUserId = $map['MerchantUserId'];
157+
}
158+
if (isset($map['ProductCode'])) {
159+
$model->productCode = $map['ProductCode'];
160+
}
161+
if (isset($map['SceneCode'])) {
162+
$model->sceneCode = $map['SceneCode'];
163+
}
164+
if (isset($map['ValidityEndDate'])) {
165+
$model->validityEndDate = $map['ValidityEndDate'];
166+
}
167+
if (isset($map['ValidityStartDate'])) {
168+
$model->validityStartDate = $map['ValidityStartDate'];
169+
}
170+
171+
return $model;
172+
}
173+
}
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 Id2MetaPeriodVerifyIntlResponse extends Model
10+
{
11+
/**
12+
* @var string[]
13+
*/
14+
public $headers;
15+
16+
/**
17+
* @var int
18+
*/
19+
public $statusCode;
20+
21+
/**
22+
* @var Id2MetaPeriodVerifyIntlResponseBody
23+
*/
24+
public $body;
25+
protected $_name = [
26+
'headers' => 'headers',
27+
'statusCode' => 'statusCode',
28+
'body' => 'body',
29+
];
30+
31+
public function validate()
32+
{
33+
}
34+
35+
public function toMap()
36+
{
37+
$res = [];
38+
if (null !== $this->headers) {
39+
$res['headers'] = $this->headers;
40+
}
41+
if (null !== $this->statusCode) {
42+
$res['statusCode'] = $this->statusCode;
43+
}
44+
if (null !== $this->body) {
45+
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
46+
}
47+
48+
return $res;
49+
}
50+
51+
/**
52+
* @param array $map
53+
*
54+
* @return Id2MetaPeriodVerifyIntlResponse
55+
*/
56+
public static function fromMap($map = [])
57+
{
58+
$model = new self();
59+
if (isset($map['headers'])) {
60+
$model->headers = $map['headers'];
61+
}
62+
if (isset($map['statusCode'])) {
63+
$model->statusCode = $map['statusCode'];
64+
}
65+
if (isset($map['body'])) {
66+
$model->body = Id2MetaPeriodVerifyIntlResponseBody::fromMap($map['body']);
67+
}
68+
69+
return $model;
70+
}
71+
}

0 commit comments

Comments
 (0)