Skip to content

Commit b95b603

Browse files
committed
Update API Initialize: add request parameters DocName.
1 parent 8a5e377 commit b95b603

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-07-10 Version: 3.8.1
2+
- Update API Initialize: add request parameters DocName.
3+
- Update API Initialize: add request parameters DocNo.
4+
5+
16
2025-07-04 Version: 3.8.0
27
- Support API AddressVerifyIntl.
38

src/Cloudauthintl.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,6 +1685,14 @@ public function initializeWithOptions($tmpReq, $runtime)
16851685
@$query['DateOfExpiry'] = $request->dateOfExpiry;
16861686
}
16871687

1688+
if (null !== $request->docName) {
1689+
@$query['DocName'] = $request->docName;
1690+
}
1691+
1692+
if (null !== $request->docNo) {
1693+
@$query['DocNo'] = $request->docNo;
1694+
}
1695+
16881696
if (null !== $request->docPageConfigShrink) {
16891697
@$query['DocPageConfig'] = $request->docPageConfigShrink;
16901698
}

src/Models/InitializeRequest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ class InitializeRequest extends Model
4848
*/
4949
public $dateOfExpiry;
5050

51+
/**
52+
* @var string
53+
*/
54+
public $docName;
55+
56+
/**
57+
* @var string
58+
*/
59+
public $docNo;
60+
5161
/**
5262
* @var string[]
5363
*/
@@ -206,6 +216,8 @@ class InitializeRequest extends Model
206216
'crop' => 'Crop',
207217
'dateOfBirth' => 'DateOfBirth',
208218
'dateOfExpiry' => 'DateOfExpiry',
219+
'docName' => 'DocName',
220+
'docNo' => 'DocNo',
209221
'docPageConfig' => 'DocPageConfig',
210222
'docScanMode' => 'DocScanMode',
211223
'docType' => 'DocType',
@@ -281,6 +293,14 @@ public function toArray($noStream = false)
281293
$res['DateOfExpiry'] = $this->dateOfExpiry;
282294
}
283295

296+
if (null !== $this->docName) {
297+
$res['DocName'] = $this->docName;
298+
}
299+
300+
if (null !== $this->docNo) {
301+
$res['DocNo'] = $this->docNo;
302+
}
303+
284304
if (null !== $this->docPageConfig) {
285305
if (\is_array($this->docPageConfig)) {
286306
$res['DocPageConfig'] = [];
@@ -451,6 +471,14 @@ public static function fromMap($map = [])
451471
$model->dateOfExpiry = $map['DateOfExpiry'];
452472
}
453473

474+
if (isset($map['DocName'])) {
475+
$model->docName = $map['DocName'];
476+
}
477+
478+
if (isset($map['DocNo'])) {
479+
$model->docNo = $map['DocNo'];
480+
}
481+
454482
if (isset($map['DocPageConfig'])) {
455483
if (!empty($map['DocPageConfig'])) {
456484
$model->docPageConfig = [];

src/Models/InitializeShrinkRequest.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ class InitializeShrinkRequest extends Model
4848
*/
4949
public $dateOfExpiry;
5050

51+
/**
52+
* @var string
53+
*/
54+
public $docName;
55+
56+
/**
57+
* @var string
58+
*/
59+
public $docNo;
60+
5161
/**
5262
* @var string
5363
*/
@@ -206,6 +216,8 @@ class InitializeShrinkRequest extends Model
206216
'crop' => 'Crop',
207217
'dateOfBirth' => 'DateOfBirth',
208218
'dateOfExpiry' => 'DateOfExpiry',
219+
'docName' => 'DocName',
220+
'docNo' => 'DocNo',
209221
'docPageConfigShrink' => 'DocPageConfig',
210222
'docScanMode' => 'DocScanMode',
211223
'docType' => 'DocType',
@@ -278,6 +290,14 @@ public function toArray($noStream = false)
278290
$res['DateOfExpiry'] = $this->dateOfExpiry;
279291
}
280292

293+
if (null !== $this->docName) {
294+
$res['DocName'] = $this->docName;
295+
}
296+
297+
if (null !== $this->docNo) {
298+
$res['DocNo'] = $this->docNo;
299+
}
300+
281301
if (null !== $this->docPageConfigShrink) {
282302
$res['DocPageConfig'] = $this->docPageConfigShrink;
283303
}
@@ -441,6 +461,14 @@ public static function fromMap($map = [])
441461
$model->dateOfExpiry = $map['DateOfExpiry'];
442462
}
443463

464+
if (isset($map['DocName'])) {
465+
$model->docName = $map['DocName'];
466+
}
467+
468+
if (isset($map['DocNo'])) {
469+
$model->docNo = $map['DocNo'];
470+
}
471+
444472
if (isset($map['DocPageConfig'])) {
445473
$model->docPageConfigShrink = $map['DocPageConfig'];
446474
}

0 commit comments

Comments
 (0)