Skip to content

Commit a54b175

Browse files
committed
Support ekyc.
1 parent 8a3f614 commit a54b175

File tree

5 files changed

+93
-3
lines changed

5 files changed

+93
-3
lines changed

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-04-19 Version: 1.0.8
2+
- Support ekyc.
3+
14
2023-01-13 Version: 1.0.7
25
- Support faceverify.
36

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">5.5",
14-
"alibabacloud/tea-utils": "^0.2.17",
14+
"alibabacloud/tea-utils": "^0.2.18",
1515
"alibabacloud/darabonba-openapi": "^0.2.8",
1616
"alibabacloud/openapi-util": "^0.1.10|^0.2.1",
1717
"alibabacloud/endpoint-util": "^0.1.0"

src/Cloudauthintl.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ public function initializeWithOptions($request, $runtime)
171171
{
172172
Utils::validateModel($request);
173173
$query = [];
174+
if (!Utils::isUnset($request->crop)) {
175+
$query['Crop'] = $request->crop;
176+
}
174177
if (!Utils::isUnset($request->docType)) {
175178
$query['DocType'] = $request->docType;
176179
}
@@ -183,6 +186,12 @@ public function initializeWithOptions($request, $runtime)
183186
if (!Utils::isUnset($request->flowType)) {
184187
$query['FlowType'] = $request->flowType;
185188
}
189+
if (!Utils::isUnset($request->idFaceQuality)) {
190+
$query['IdFaceQuality'] = $request->idFaceQuality;
191+
}
192+
if (!Utils::isUnset($request->idSpoof)) {
193+
$query['IdSpoof'] = $request->idSpoof;
194+
}
186195
if (!Utils::isUnset($request->merchantBizId)) {
187196
$query['MerchantBizId'] = $request->merchantBizId;
188197
}
@@ -192,6 +201,9 @@ public function initializeWithOptions($request, $runtime)
192201
if (!Utils::isUnset($request->metaInfo)) {
193202
$query['MetaInfo'] = $request->metaInfo;
194203
}
204+
if (!Utils::isUnset($request->ocr)) {
205+
$query['Ocr'] = $request->ocr;
206+
}
195207
if (!Utils::isUnset($request->operationMode)) {
196208
$query['OperationMode'] = $request->operationMode;
197209
}
@@ -204,6 +216,9 @@ public function initializeWithOptions($request, $runtime)
204216
if (!Utils::isUnset($request->productConfig)) {
205217
$query['ProductConfig'] = $request->productConfig;
206218
}
219+
if (!Utils::isUnset($request->returnUrl)) {
220+
$query['ReturnUrl'] = $request->returnUrl;
221+
}
207222
if (!Utils::isUnset($request->sceneCode)) {
208223
$query['SceneCode'] = $request->sceneCode;
209224
}

src/Models/InitializeRequest.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
class InitializeRequest extends Model
1010
{
11+
/**
12+
* @var string
13+
*/
14+
public $crop;
15+
1116
/**
1217
* @var string
1318
*/
@@ -28,6 +33,16 @@ class InitializeRequest extends Model
2833
*/
2934
public $flowType;
3035

36+
/**
37+
* @var string
38+
*/
39+
public $idFaceQuality;
40+
41+
/**
42+
* @var string
43+
*/
44+
public $idSpoof;
45+
3146
/**
3247
* @var string
3348
*/
@@ -43,6 +58,11 @@ class InitializeRequest extends Model
4358
*/
4459
public $metaInfo;
4560

61+
/**
62+
* @var string
63+
*/
64+
public $ocr;
65+
4666
/**
4767
* @var string
4868
*/
@@ -63,6 +83,11 @@ class InitializeRequest extends Model
6383
*/
6484
public $productConfig;
6585

86+
/**
87+
* @var string
88+
*/
89+
public $returnUrl;
90+
6691
/**
6792
* @var string
6893
*/
@@ -73,17 +98,22 @@ class InitializeRequest extends Model
7398
*/
7499
public $serviceLevel;
75100
protected $_name = [
101+
'crop' => 'Crop',
76102
'docType' => 'DocType',
77103
'facePictureBase64' => 'FacePictureBase64',
78104
'facePictureUrl' => 'FacePictureUrl',
79105
'flowType' => 'FlowType',
106+
'idFaceQuality' => 'IdFaceQuality',
107+
'idSpoof' => 'IdSpoof',
80108
'merchantBizId' => 'MerchantBizId',
81109
'merchantUserId' => 'MerchantUserId',
82110
'metaInfo' => 'MetaInfo',
111+
'ocr' => 'Ocr',
83112
'operationMode' => 'OperationMode',
84113
'pages' => 'Pages',
85114
'productCode' => 'ProductCode',
86115
'productConfig' => 'ProductConfig',
116+
'returnUrl' => 'ReturnUrl',
87117
'sceneCode' => 'SceneCode',
88118
'serviceLevel' => 'ServiceLevel',
89119
];
@@ -95,6 +125,9 @@ public function validate()
95125
public function toMap()
96126
{
97127
$res = [];
128+
if (null !== $this->crop) {
129+
$res['Crop'] = $this->crop;
130+
}
98131
if (null !== $this->docType) {
99132
$res['DocType'] = $this->docType;
100133
}
@@ -107,6 +140,12 @@ public function toMap()
107140
if (null !== $this->flowType) {
108141
$res['FlowType'] = $this->flowType;
109142
}
143+
if (null !== $this->idFaceQuality) {
144+
$res['IdFaceQuality'] = $this->idFaceQuality;
145+
}
146+
if (null !== $this->idSpoof) {
147+
$res['IdSpoof'] = $this->idSpoof;
148+
}
110149
if (null !== $this->merchantBizId) {
111150
$res['MerchantBizId'] = $this->merchantBizId;
112151
}
@@ -116,6 +155,9 @@ public function toMap()
116155
if (null !== $this->metaInfo) {
117156
$res['MetaInfo'] = $this->metaInfo;
118157
}
158+
if (null !== $this->ocr) {
159+
$res['Ocr'] = $this->ocr;
160+
}
119161
if (null !== $this->operationMode) {
120162
$res['OperationMode'] = $this->operationMode;
121163
}
@@ -128,6 +170,9 @@ public function toMap()
128170
if (null !== $this->productConfig) {
129171
$res['ProductConfig'] = $this->productConfig;
130172
}
173+
if (null !== $this->returnUrl) {
174+
$res['ReturnUrl'] = $this->returnUrl;
175+
}
131176
if (null !== $this->sceneCode) {
132177
$res['SceneCode'] = $this->sceneCode;
133178
}
@@ -146,6 +191,9 @@ public function toMap()
146191
public static function fromMap($map = [])
147192
{
148193
$model = new self();
194+
if (isset($map['Crop'])) {
195+
$model->crop = $map['Crop'];
196+
}
149197
if (isset($map['DocType'])) {
150198
$model->docType = $map['DocType'];
151199
}
@@ -158,6 +206,12 @@ public static function fromMap($map = [])
158206
if (isset($map['FlowType'])) {
159207
$model->flowType = $map['FlowType'];
160208
}
209+
if (isset($map['IdFaceQuality'])) {
210+
$model->idFaceQuality = $map['IdFaceQuality'];
211+
}
212+
if (isset($map['IdSpoof'])) {
213+
$model->idSpoof = $map['IdSpoof'];
214+
}
161215
if (isset($map['MerchantBizId'])) {
162216
$model->merchantBizId = $map['MerchantBizId'];
163217
}
@@ -167,6 +221,9 @@ public static function fromMap($map = [])
167221
if (isset($map['MetaInfo'])) {
168222
$model->metaInfo = $map['MetaInfo'];
169223
}
224+
if (isset($map['Ocr'])) {
225+
$model->ocr = $map['Ocr'];
226+
}
170227
if (isset($map['OperationMode'])) {
171228
$model->operationMode = $map['OperationMode'];
172229
}
@@ -179,6 +236,9 @@ public static function fromMap($map = [])
179236
if (isset($map['ProductConfig'])) {
180237
$model->productConfig = $map['ProductConfig'];
181238
}
239+
if (isset($map['ReturnUrl'])) {
240+
$model->returnUrl = $map['ReturnUrl'];
241+
}
182242
if (isset($map['SceneCode'])) {
183243
$model->sceneCode = $map['SceneCode'];
184244
}

src/Models/InitializeResponseBody/result.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ class result extends Model
1717
* @var string
1818
*/
1919
public $transactionId;
20+
21+
/**
22+
* @var string
23+
*/
24+
public $transactionUrl;
2025
protected $_name = [
21-
'clientCfg' => 'ClientCfg',
22-
'transactionId' => 'TransactionId',
26+
'clientCfg' => 'ClientCfg',
27+
'transactionId' => 'TransactionId',
28+
'transactionUrl' => 'TransactionUrl',
2329
];
2430

2531
public function validate()
@@ -35,6 +41,9 @@ public function toMap()
3541
if (null !== $this->transactionId) {
3642
$res['TransactionId'] = $this->transactionId;
3743
}
44+
if (null !== $this->transactionUrl) {
45+
$res['TransactionUrl'] = $this->transactionUrl;
46+
}
3847

3948
return $res;
4049
}
@@ -53,6 +62,9 @@ public static function fromMap($map = [])
5362
if (isset($map['TransactionId'])) {
5463
$model->transactionId = $map['TransactionId'];
5564
}
65+
if (isset($map['TransactionUrl'])) {
66+
$model->transactionUrl = $map['TransactionUrl'];
67+
}
5668

5769
return $model;
5870
}

0 commit comments

Comments
 (0)