Skip to content

Commit 159965c

Browse files
Merge pull request #164 from jdcloud-apigateway/master
add updates
2 parents fb712ea + c5bf681 commit 159965c

3 files changed

Lines changed: 115 additions & 0 deletions

File tree

src/Cloudauth/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ Date: 2024-08-20
4848
1.0.15:
4949
Date: 2024-09-11
5050
更新: H5活体检测返回结果增减是否收费标记。新增手机号码状态检测接口。
51+
52+
1.0.16:
53+
Date: 2024-11-04
54+
更新: H5活体检测增加是否展示失败结果参数,增加身份证、营业执照OCR接口。

src/Cloudauth/CloudauthClient.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
* @method \GuzzleHttp\Promise\Promise queryBankBranchListAsync(array $args = [])
5959
* @method \Jdcloud\Result iDCard(array $args = [])
6060
* @method \GuzzleHttp\Promise\Promise iDCardAsync(array $args = [])
61+
* @method \Jdcloud\Result bankCardOCR(array $args = [])
62+
* @method \GuzzleHttp\Promise\Promise bankCardOCRAsync(array $args = [])
63+
* @method \Jdcloud\Result businessOCR(array $args = [])
64+
* @method \GuzzleHttp\Promise\Promise businessOCRAsync(array $args = [])
6165
* @method \Jdcloud\Result getAliveUrl(array $args = [])
6266
* @method \GuzzleHttp\Promise\Promise getAliveUrlAsync(array $args = [])
6367
* @method \Jdcloud\Result getAliveResult(array $args = [])

src/data/cloudauth/v1/api-2.json.php

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,24 @@
182182
'input' => [ 'shape' => 'IDCardRequestShape', ],
183183
'output' => [ 'shape' => 'IDCardResponseShape', ],
184184
],
185+
'BankCardOCR' => [
186+
'name' => 'BankCardOCR',
187+
'http' => [
188+
'method' => 'POST',
189+
'requestUri' => '/v1/ocr:BankCard',
190+
],
191+
'input' => [ 'shape' => 'BankCardOCRRequestShape', ],
192+
'output' => [ 'shape' => 'BankCardOCRResponseShape', ],
193+
],
194+
'BusinessOCR' => [
195+
'name' => 'BusinessOCR',
196+
'http' => [
197+
'method' => 'POST',
198+
'requestUri' => '/v1/ocr:Business',
199+
],
200+
'input' => [ 'shape' => 'BusinessOCRRequestShape', ],
201+
'output' => [ 'shape' => 'BusinessOCRResponseShape', ],
202+
],
185203
'GetAliveUrl' => [
186204
'name' => 'GetAliveUrl',
187205
'http' => [
@@ -279,6 +297,23 @@
279297
'mobile' => [ 'type' => 'string', 'locationName' => 'mobile', ],
280298
],
281299
],
300+
'BusinessOCRInfo' => [
301+
'type' => 'structure',
302+
'members' => [
303+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
304+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
305+
'number' => [ 'type' => 'string', 'locationName' => 'number', ],
306+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
307+
'companyType' => [ 'type' => 'string', 'locationName' => 'companyType', ],
308+
'address' => [ 'type' => 'string', 'locationName' => 'address', ],
309+
'legalPersonal' => [ 'type' => 'string', 'locationName' => 'legalPersonal', ],
310+
'registeredCapital' => [ 'type' => 'string', 'locationName' => 'registeredCapital', ],
311+
'date' => [ 'type' => 'string', 'locationName' => 'date', ],
312+
'scope' => [ 'type' => 'string', 'locationName' => 'scope', ],
313+
'registrationDate' => [ 'type' => 'string', 'locationName' => 'registrationDate', ],
314+
'chargeFlag' => [ 'type' => 'string', 'locationName' => 'chargeFlag', ],
315+
],
316+
],
282317
'PersonalBankcard' => [
283318
'type' => 'structure',
284319
'members' => [
@@ -421,6 +456,19 @@
421456
'orderNumber' => [ 'type' => 'string', 'locationName' => 'orderNumber', ],
422457
],
423458
],
459+
'BankCardOCRInfo' => [
460+
'type' => 'structure',
461+
'members' => [
462+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
463+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
464+
'number' => [ 'type' => 'string', 'locationName' => 'number', ],
465+
'cardType' => [ 'type' => 'string', 'locationName' => 'cardType', ],
466+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
467+
'bank' => [ 'type' => 'string', 'locationName' => 'bank', ],
468+
'date' => [ 'type' => 'string', 'locationName' => 'date', ],
469+
'chargeFlag' => [ 'type' => 'string', 'locationName' => 'chargeFlag', ],
470+
],
471+
],
424472
'CheckInfo' => [
425473
'type' => 'structure',
426474
'members' => [
@@ -577,6 +625,9 @@
577625
'idcard' => [ 'type' => 'string', 'locationName' => 'idcard', ],
578626
'returnUrl' => [ 'type' => 'string', 'locationName' => 'returnUrl', ],
579627
'actions' => [ 'type' => 'string', 'locationName' => 'actions', ],
628+
'showFail' => [ 'type' => 'boolean', 'locationName' => 'showFail', ],
629+
'photo' => [ 'type' => 'string', 'locationName' => 'photo', ],
630+
'photoThresh' => [ 'type' => 'integer', 'locationName' => 'photoThresh', ],
580631
],
581632
],
582633
'GetAliveResultNewResultShape' => [
@@ -611,6 +662,19 @@
611662
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
612663
],
613664
],
665+
'BankCardOCRResultShape' => [
666+
'type' => 'structure',
667+
'members' => [
668+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
669+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
670+
'number' => [ 'type' => 'string', 'locationName' => 'number', ],
671+
'cardType' => [ 'type' => 'string', 'locationName' => 'cardType', ],
672+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
673+
'bank' => [ 'type' => 'string', 'locationName' => 'bank', ],
674+
'date' => [ 'type' => 'string', 'locationName' => 'date', ],
675+
'chargeFlag' => [ 'type' => 'string', 'locationName' => 'chargeFlag', ],
676+
],
677+
],
614678
'CheckCompanyInfo3RequestShape' => [
615679
'type' => 'structure',
616680
'members' => [
@@ -623,6 +687,23 @@
623687
'token' => [ 'type' => 'string', 'locationName' => 'token', ],
624688
],
625689
],
690+
'BusinessOCRResultShape' => [
691+
'type' => 'structure',
692+
'members' => [
693+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
694+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
695+
'number' => [ 'type' => 'string', 'locationName' => 'number', ],
696+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
697+
'companyType' => [ 'type' => 'string', 'locationName' => 'companyType', ],
698+
'address' => [ 'type' => 'string', 'locationName' => 'address', ],
699+
'legalPersonal' => [ 'type' => 'string', 'locationName' => 'legalPersonal', ],
700+
'registeredCapital' => [ 'type' => 'string', 'locationName' => 'registeredCapital', ],
701+
'date' => [ 'type' => 'string', 'locationName' => 'date', ],
702+
'scope' => [ 'type' => 'string', 'locationName' => 'scope', ],
703+
'registrationDate' => [ 'type' => 'string', 'locationName' => 'registrationDate', ],
704+
'chargeFlag' => [ 'type' => 'string', 'locationName' => 'chargeFlag', ],
705+
],
706+
],
626707
'CheckLegalPersonResultShape' => [
627708
'type' => 'structure',
628709
'members' => [
@@ -633,6 +714,13 @@
633714
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
634715
],
635716
],
717+
'BusinessOCRResponseShape' => [
718+
'type' => 'structure',
719+
'members' => [
720+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
721+
'result' => [ 'shape' => 'BusinessOCRResultShape', ],
722+
],
723+
],
636724
'QueryBankListResultShape' => [
637725
'type' => 'structure',
638726
'members' => [
@@ -843,6 +931,12 @@
843931
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
844932
],
845933
],
934+
'BankCardOCRRequestShape' => [
935+
'type' => 'structure',
936+
'members' => [
937+
'imageData' => [ 'type' => 'string', 'locationName' => 'imageData', ],
938+
],
939+
],
846940
'CheckLegalPersonRequestShape' => [
847941
'type' => 'structure',
848942
'members' => [
@@ -917,6 +1011,13 @@
9171011
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
9181012
],
9191013
],
1014+
'BankCardOCRResponseShape' => [
1015+
'type' => 'structure',
1016+
'members' => [
1017+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1018+
'result' => [ 'shape' => 'BankCardOCRResultShape', ],
1019+
],
1020+
],
9201021
'PersonalBankcard4OtherRequestShape' => [
9211022
'type' => 'structure',
9221023
'members' => [
@@ -1082,6 +1183,12 @@
10821183
'result' => [ 'shape' => 'AddressDetailResultShape', ],
10831184
],
10841185
],
1186+
'BusinessOCRRequestShape' => [
1187+
'type' => 'structure',
1188+
'members' => [
1189+
'imageData' => [ 'type' => 'string', 'locationName' => 'imageData', ],
1190+
],
1191+
],
10851192
'PersonalMobileResponseShape' => [
10861193
'type' => 'structure',
10871194
'members' => [

0 commit comments

Comments
 (0)