Skip to content

Commit b9e3a57

Browse files
committed
Generated php 2022-08-09 for Cloudauth-intl.
1 parent 1f6ab17 commit b9e3a57

File tree

7 files changed

+566
-0
lines changed

7 files changed

+566
-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-09-04 Version: 1.1.0
2+
- Generated php 2022-08-09 for Cloudauth-intl.
3+
14
2023-08-08 Version: 1.0.16
25
- Generated php 2022-08-09 for Cloudauth-intl.
36

src/Cloudauthintl.php

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\DescribeTransactionsListResponse;
2727
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\DocOcrRequest;
2828
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\DocOcrResponse;
29+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\EkycVerifyRequest;
30+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\EkycVerifyResponse;
2931
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FaceCompareRequest;
3032
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FaceCompareResponse;
3133
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\FaceLivenessRequest;
@@ -625,6 +627,82 @@ public function docOcr($request)
625627
return $this->docOcrWithOptions($request, $runtime);
626628
}
627629

630+
/**
631+
* @param EkycVerifyRequest $request
632+
* @param RuntimeOptions $runtime
633+
*
634+
* @return EkycVerifyResponse
635+
*/
636+
public function ekycVerifyWithOptions($request, $runtime)
637+
{
638+
Utils::validateModel($request);
639+
$query = [];
640+
if (!Utils::isUnset($request->authorize)) {
641+
$query['Authorize'] = $request->authorize;
642+
}
643+
if (!Utils::isUnset($request->crop)) {
644+
$query['Crop'] = $request->crop;
645+
}
646+
if (!Utils::isUnset($request->docName)) {
647+
$query['DocName'] = $request->docName;
648+
}
649+
if (!Utils::isUnset($request->docNo)) {
650+
$query['DocNo'] = $request->docNo;
651+
}
652+
if (!Utils::isUnset($request->docType)) {
653+
$query['DocType'] = $request->docType;
654+
}
655+
if (!Utils::isUnset($request->facePictureBase64)) {
656+
$query['FacePictureBase64'] = $request->facePictureBase64;
657+
}
658+
if (!Utils::isUnset($request->facePictureUrl)) {
659+
$query['FacePictureUrl'] = $request->facePictureUrl;
660+
}
661+
if (!Utils::isUnset($request->idOcrPictureBase64)) {
662+
$query['IdOcrPictureBase64'] = $request->idOcrPictureBase64;
663+
}
664+
if (!Utils::isUnset($request->idOcrPictureUrl)) {
665+
$query['IdOcrPictureUrl'] = $request->idOcrPictureUrl;
666+
}
667+
if (!Utils::isUnset($request->merchantBizId)) {
668+
$query['MerchantBizId'] = $request->merchantBizId;
669+
}
670+
if (!Utils::isUnset($request->merchantUserId)) {
671+
$query['MerchantUserId'] = $request->merchantUserId;
672+
}
673+
if (!Utils::isUnset($request->productCode)) {
674+
$query['ProductCode'] = $request->productCode;
675+
}
676+
$req = new OpenApiRequest([
677+
'query' => OpenApiUtilClient::query($query),
678+
]);
679+
$params = new Params([
680+
'action' => 'EkycVerify',
681+
'version' => '2022-08-09',
682+
'protocol' => 'HTTPS',
683+
'pathname' => '/',
684+
'method' => 'POST',
685+
'authType' => 'AK',
686+
'style' => 'RPC',
687+
'reqBodyType' => 'formData',
688+
'bodyType' => 'json',
689+
]);
690+
691+
return EkycVerifyResponse::fromMap($this->callApi($params, $req, $runtime));
692+
}
693+
694+
/**
695+
* @param EkycVerifyRequest $request
696+
*
697+
* @return EkycVerifyResponse
698+
*/
699+
public function ekycVerify($request)
700+
{
701+
$runtime = new RuntimeOptions([]);
702+
703+
return $this->ekycVerifyWithOptions($request, $runtime);
704+
}
705+
628706
/**
629707
* @param FaceCompareRequest $request
630708
* @param RuntimeOptions $runtime
@@ -857,6 +935,9 @@ public function initializeWithOptions($request, $runtime)
857935
if (!Utils::isUnset($request->productConfig)) {
858936
$query['ProductConfig'] = $request->productConfig;
859937
}
938+
if (!Utils::isUnset($request->productFlow)) {
939+
$query['ProductFlow'] = $request->productFlow;
940+
}
860941
if (!Utils::isUnset($request->returnUrl)) {
861942
$query['ReturnUrl'] = $request->returnUrl;
862943
}

src/Models/EkycVerifyRequest.php

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
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 EkycVerifyRequest extends Model
10+
{
11+
/**
12+
* @example T
13+
*
14+
* @var string
15+
*/
16+
public $authorize;
17+
18+
/**
19+
* @example F
20+
*
21+
* @var string
22+
*/
23+
public $crop;
24+
25+
/**
26+
* @var string
27+
*/
28+
public $docName;
29+
30+
/**
31+
* @example 410***************
32+
*
33+
* @var string
34+
*/
35+
public $docNo;
36+
37+
/**
38+
* @example 00000001
39+
*
40+
* @var string
41+
*/
42+
public $docType;
43+
44+
/**
45+
* @example dsjisaj***oekwodsm
46+
*
47+
* @var string
48+
*/
49+
public $facePictureBase64;
50+
51+
/**
52+
* @example https://digital-face-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg
53+
*
54+
* @var string
55+
*/
56+
public $facePictureUrl;
57+
58+
/**
59+
* @example dsjisaj***oekwodsm
60+
*
61+
* @var string
62+
*/
63+
public $idOcrPictureBase64;
64+
65+
/**
66+
* @example https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg
67+
*
68+
* @var string
69+
*/
70+
public $idOcrPictureUrl;
71+
72+
/**
73+
* @example e0c34a77f5ac40a5aa5e6ed20c353888
74+
*
75+
* @var string
76+
*/
77+
public $merchantBizId;
78+
79+
/**
80+
* @example 123456
81+
*
82+
* @var string
83+
*/
84+
public $merchantUserId;
85+
86+
/**
87+
* @example eKYC_MIN
88+
*
89+
* @var string
90+
*/
91+
public $productCode;
92+
protected $_name = [
93+
'authorize' => 'Authorize',
94+
'crop' => 'Crop',
95+
'docName' => 'DocName',
96+
'docNo' => 'DocNo',
97+
'docType' => 'DocType',
98+
'facePictureBase64' => 'FacePictureBase64',
99+
'facePictureUrl' => 'FacePictureUrl',
100+
'idOcrPictureBase64' => 'IdOcrPictureBase64',
101+
'idOcrPictureUrl' => 'IdOcrPictureUrl',
102+
'merchantBizId' => 'MerchantBizId',
103+
'merchantUserId' => 'MerchantUserId',
104+
'productCode' => 'ProductCode',
105+
];
106+
107+
public function validate()
108+
{
109+
}
110+
111+
public function toMap()
112+
{
113+
$res = [];
114+
if (null !== $this->authorize) {
115+
$res['Authorize'] = $this->authorize;
116+
}
117+
if (null !== $this->crop) {
118+
$res['Crop'] = $this->crop;
119+
}
120+
if (null !== $this->docName) {
121+
$res['DocName'] = $this->docName;
122+
}
123+
if (null !== $this->docNo) {
124+
$res['DocNo'] = $this->docNo;
125+
}
126+
if (null !== $this->docType) {
127+
$res['DocType'] = $this->docType;
128+
}
129+
if (null !== $this->facePictureBase64) {
130+
$res['FacePictureBase64'] = $this->facePictureBase64;
131+
}
132+
if (null !== $this->facePictureUrl) {
133+
$res['FacePictureUrl'] = $this->facePictureUrl;
134+
}
135+
if (null !== $this->idOcrPictureBase64) {
136+
$res['IdOcrPictureBase64'] = $this->idOcrPictureBase64;
137+
}
138+
if (null !== $this->idOcrPictureUrl) {
139+
$res['IdOcrPictureUrl'] = $this->idOcrPictureUrl;
140+
}
141+
if (null !== $this->merchantBizId) {
142+
$res['MerchantBizId'] = $this->merchantBizId;
143+
}
144+
if (null !== $this->merchantUserId) {
145+
$res['MerchantUserId'] = $this->merchantUserId;
146+
}
147+
if (null !== $this->productCode) {
148+
$res['ProductCode'] = $this->productCode;
149+
}
150+
151+
return $res;
152+
}
153+
154+
/**
155+
* @param array $map
156+
*
157+
* @return EkycVerifyRequest
158+
*/
159+
public static function fromMap($map = [])
160+
{
161+
$model = new self();
162+
if (isset($map['Authorize'])) {
163+
$model->authorize = $map['Authorize'];
164+
}
165+
if (isset($map['Crop'])) {
166+
$model->crop = $map['Crop'];
167+
}
168+
if (isset($map['DocName'])) {
169+
$model->docName = $map['DocName'];
170+
}
171+
if (isset($map['DocNo'])) {
172+
$model->docNo = $map['DocNo'];
173+
}
174+
if (isset($map['DocType'])) {
175+
$model->docType = $map['DocType'];
176+
}
177+
if (isset($map['FacePictureBase64'])) {
178+
$model->facePictureBase64 = $map['FacePictureBase64'];
179+
}
180+
if (isset($map['FacePictureUrl'])) {
181+
$model->facePictureUrl = $map['FacePictureUrl'];
182+
}
183+
if (isset($map['IdOcrPictureBase64'])) {
184+
$model->idOcrPictureBase64 = $map['IdOcrPictureBase64'];
185+
}
186+
if (isset($map['IdOcrPictureUrl'])) {
187+
$model->idOcrPictureUrl = $map['IdOcrPictureUrl'];
188+
}
189+
if (isset($map['MerchantBizId'])) {
190+
$model->merchantBizId = $map['MerchantBizId'];
191+
}
192+
if (isset($map['MerchantUserId'])) {
193+
$model->merchantUserId = $map['MerchantUserId'];
194+
}
195+
if (isset($map['ProductCode'])) {
196+
$model->productCode = $map['ProductCode'];
197+
}
198+
199+
return $model;
200+
}
201+
}

src/Models/EkycVerifyResponse.php

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 EkycVerifyResponse extends Model
10+
{
11+
/**
12+
* @var string[]
13+
*/
14+
public $headers;
15+
16+
/**
17+
* @var int
18+
*/
19+
public $statusCode;
20+
21+
/**
22+
* @var EkycVerifyResponseBody
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 EkycVerifyResponse
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 = EkycVerifyResponseBody::fromMap($map['body']);
70+
}
71+
72+
return $model;
73+
}
74+
}

0 commit comments

Comments
 (0)