Skip to content

Commit 1036e48

Browse files
add updates
1 parent a810d52 commit 1036e48

3 files changed

Lines changed: 126 additions & 73 deletions

File tree

src/Cloudauth/ChangeLog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ API版本:1.0.0
44
1.0.3:
55
Date: 2020-07-16
66
更新: 将打款验证的chekInfo 的 paymentAmount 参数类型由 float 改为 string
7+
8+
1.0.5:
9+
Date: 2023-06-29
10+
更新: 新增运营后台接口
11+
12+
1.0.6:
13+
Date: 2023-09-21
14+
更新: 新增身份证OCR接口,去掉代理人认证,法人和代理人认证

src/Cloudauth/CloudauthClient.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
* @method \GuzzleHttp\Promise\Promise checkCompanyInfoAsync(array $args = [])
3131
* @method \Jdcloud\Result checkLegalPerson(array $args = [])
3232
* @method \GuzzleHttp\Promise\Promise checkLegalPersonAsync(array $args = [])
33-
* @method \Jdcloud\Result checkAgent(array $args = [])
34-
* @method \GuzzleHttp\Promise\Promise checkAgentAsync(array $args = [])
35-
* @method \Jdcloud\Result checkLegalPersonAndAgent(array $args = [])
36-
* @method \GuzzleHttp\Promise\Promise checkLegalPersonAndAgentAsync(array $args = [])
3733
* @method \Jdcloud\Result queryCityList(array $args = [])
3834
* @method \GuzzleHttp\Promise\Promise queryCityListAsync(array $args = [])
35+
* @method \Jdcloud\Result companyTransferSimple(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise companyTransferSimpleAsync(array $args = [])
3937
* @method \Jdcloud\Result queryProvinceList(array $args = [])
4038
* @method \GuzzleHttp\Promise\Promise queryProvinceListAsync(array $args = [])
4139
* @method \Jdcloud\Result queryBankList(array $args = [])
4240
* @method \GuzzleHttp\Promise\Promise queryBankListAsync(array $args = [])
4341
* @method \Jdcloud\Result queryBankBranchList(array $args = [])
4442
* @method \GuzzleHttp\Promise\Promise queryBankBranchListAsync(array $args = [])
43+
* @method \Jdcloud\Result iDCard(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise iDCardAsync(array $args = [])
4545
* @method \Jdcloud\Result describeApplyStatus(array $args = [])
4646
* @method \GuzzleHttp\Promise\Promise describeApplyStatusAsync(array $args = [])
4747
*/

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

Lines changed: 114 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,6 @@
5656
'input' => [ 'shape' => 'CheckLegalPersonRequestShape', ],
5757
'output' => [ 'shape' => 'CheckLegalPersonResponseShape', ],
5858
],
59-
'CheckAgent' => [
60-
'name' => 'CheckAgent',
61-
'http' => [
62-
'method' => 'POST',
63-
'requestUri' => '/v1/company:agent',
64-
],
65-
'input' => [ 'shape' => 'CheckAgentRequestShape', ],
66-
'output' => [ 'shape' => 'CheckAgentResponseShape', ],
67-
],
68-
'CheckLegalPersonAndAgent' => [
69-
'name' => 'CheckLegalPersonAndAgent',
70-
'http' => [
71-
'method' => 'POST',
72-
'requestUri' => '/v1/company:legalPersonAndAgent',
73-
],
74-
'input' => [ 'shape' => 'CheckLegalPersonAndAgentRequestShape', ],
75-
'output' => [ 'shape' => 'CheckLegalPersonAndAgentResponseShape', ],
76-
],
7759
'QueryCityList' => [
7860
'name' => 'QueryCityList',
7961
'http' => [
@@ -83,6 +65,15 @@
8365
'input' => [ 'shape' => 'QueryCityListRequestShape', ],
8466
'output' => [ 'shape' => 'QueryCityListResponseShape', ],
8567
],
68+
'CompanyTransferSimple' => [
69+
'name' => 'CompanyTransferSimple',
70+
'http' => [
71+
'method' => 'POST',
72+
'requestUri' => '/v1/company:transferSimple',
73+
],
74+
'input' => [ 'shape' => 'CompanyTransferSimpleRequestShape', ],
75+
'output' => [ 'shape' => 'CompanyTransferSimpleResponseShape', ],
76+
],
8677
'QueryProvinceList' => [
8778
'name' => 'QueryProvinceList',
8879
'http' => [
@@ -110,6 +101,15 @@
110101
'input' => [ 'shape' => 'QueryBankBranchListRequestShape', ],
111102
'output' => [ 'shape' => 'QueryBankBranchListResponseShape', ],
112103
],
104+
'IDCard' => [
105+
'name' => 'IDCard',
106+
'http' => [
107+
'method' => 'POST',
108+
'requestUri' => '/v1/ocr:IDCard',
109+
],
110+
'input' => [ 'shape' => 'IDCardRequestShape', ],
111+
'output' => [ 'shape' => 'IDCardResponseShape', ],
112+
],
113113
'DescribeApplyStatus' => [
114114
'name' => 'DescribeApplyStatus',
115115
'http' => [
@@ -121,6 +121,14 @@
121121
],
122122
],
123123
'shapes' => [
124+
'AccountInfoSimple' => [
125+
'type' => 'structure',
126+
'members' => [
127+
'orgName' => [ 'type' => 'string', 'locationName' => 'orgName', ],
128+
'bankCardNum' => [ 'type' => 'string', 'locationName' => 'bankCardNum', ],
129+
'bankCode' => [ 'type' => 'string', 'locationName' => 'bankCode', ],
130+
],
131+
],
124132
'AuthInfo' => [
125133
'type' => 'structure',
126134
'members' => [
@@ -144,16 +152,6 @@
144152
'provinceCode' => [ 'type' => 'string', 'locationName' => 'provinceCode', ],
145153
],
146154
],
147-
'AgentSpec' => [
148-
'type' => 'structure',
149-
'members' => [
150-
'companyType' => [ 'type' => 'integer', 'locationName' => 'companyType', ],
151-
'companyName' => [ 'type' => 'string', 'locationName' => 'companyName', ],
152-
'idCode' => [ 'type' => 'string', 'locationName' => 'idCode', ],
153-
'agentName' => [ 'type' => 'string', 'locationName' => 'agentName', ],
154-
'agentId' => [ 'type' => 'string', 'locationName' => 'agentId', ],
155-
],
156-
],
157155
'LegalPersonSpec' => [
158156
'type' => 'structure',
159157
'members' => [
@@ -171,16 +169,16 @@
171169
'orderNumber' => [ 'type' => 'string', 'locationName' => 'orderNumber', ],
172170
],
173171
],
174-
'LegalPersonAndAgentSpec' => [
172+
'OCRInfo' => [
175173
'type' => 'structure',
176174
'members' => [
177-
'companyType' => [ 'type' => 'integer', 'locationName' => 'companyType', ],
178-
'companyName' => [ 'type' => 'string', 'locationName' => 'companyName', ],
179-
'idCode' => [ 'type' => 'string', 'locationName' => 'idCode', ],
180-
'legalPersonName' => [ 'type' => 'string', 'locationName' => 'legalPersonName', ],
181-
'legalPersonId' => [ 'type' => 'string', 'locationName' => 'legalPersonId', ],
182-
'agentName' => [ 'type' => 'string', 'locationName' => 'agentName', ],
183-
'agentId' => [ 'type' => 'string', 'locationName' => 'agentId', ],
175+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
176+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
177+
'nation' => [ 'type' => 'string', 'locationName' => 'nation', ],
178+
'address' => [ 'type' => 'string', 'locationName' => 'address', ],
179+
'idNumber' => [ 'type' => 'string', 'locationName' => 'idNumber', ],
180+
'birthday' => [ 'type' => 'string', 'locationName' => 'birthday', ],
181+
'gender' => [ 'type' => 'string', 'locationName' => 'gender', ],
184182
],
185183
],
186184
'CheckInfo' => [
@@ -230,6 +228,50 @@
230228
'value' => [ 'type' => 'integer', 'locationName' => 'value', ],
231229
],
232230
],
231+
'Rule' => [
232+
'type' => 'structure',
233+
'members' => [
234+
'id' => [ 'type' => 'integer', 'locationName' => 'id', ],
235+
'pin' => [ 'type' => 'string', 'locationName' => 'pin', ],
236+
'type' => [ 'type' => 'integer', 'locationName' => 'type', ],
237+
'vendor' => [ 'type' => 'integer', 'locationName' => 'vendor', ],
238+
],
239+
],
240+
'User' => [
241+
'type' => 'structure',
242+
'members' => [
243+
'pin' => [ 'type' => 'string', 'locationName' => 'pin', ],
244+
'status' => [ 'type' => 'integer', 'locationName' => 'status', ],
245+
'resourceId' => [ 'type' => 'string', 'locationName' => 'resourceId', ],
246+
'applyTime' => [ 'type' => 'string', 'locationName' => 'applyTime', ],
247+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
248+
],
249+
],
250+
'CodeList' => [
251+
'type' => 'structure',
252+
'members' => [
253+
'list' => [ 'type' => 'list', 'member' => [ 'type' => 'object', ], ],
254+
],
255+
],
256+
'UserList' => [
257+
'type' => 'structure',
258+
'members' => [
259+
'list' => [ 'type' => 'list', 'member' => [ 'type' => 'object', ], ],
260+
],
261+
],
262+
'RuleList' => [
263+
'type' => 'structure',
264+
'members' => [
265+
'list' => [ 'type' => 'list', 'member' => [ 'type' => 'object', ], ],
266+
],
267+
],
268+
'CodeDescription' => [
269+
'type' => 'structure',
270+
'members' => [
271+
'code' => [ 'type' => 'integer', 'locationName' => 'code', ],
272+
'description' => [ 'type' => 'string', 'locationName' => 'description', ],
273+
],
274+
],
233275
'QueryBankBranchListResponseShape' => [
234276
'type' => 'structure',
235277
'members' => [
@@ -258,6 +300,13 @@
258300
'companyInfo' => [ 'shape' => 'CompanyInfo', ],
259301
],
260302
],
303+
'IDCardRequestShape' => [
304+
'type' => 'structure',
305+
'members' => [
306+
'imageData' => [ 'type' => 'string', 'locationName' => 'imageData', ],
307+
'side' => [ 'type' => 'string', 'locationName' => 'side', ],
308+
],
309+
],
261310
'CheckCompanyInfoResultShape' => [
262311
'type' => 'structure',
263312
'members' => [
@@ -268,17 +317,11 @@
268317
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
269318
],
270319
],
271-
'CheckAgentRequestShape' => [
272-
'type' => 'structure',
273-
'members' => [
274-
'agentSpec' => [ 'shape' => 'AgentSpec', ],
275-
],
276-
],
277-
'CheckAgentResponseShape' => [
320+
'CompanyTransferSimpleResponseShape' => [
278321
'type' => 'structure',
279322
'members' => [
280323
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
281-
'result' => [ 'shape' => 'CheckAgentResultShape', ],
324+
'result' => [ 'shape' => 'CompanyTransferSimpleResultShape', ],
282325
],
283326
],
284327
'CompanyTransferResultShape' => [
@@ -291,10 +334,14 @@
291334
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
292335
],
293336
],
294-
'CheckLegalPersonAndAgentRequestShape' => [
337+
'CompanyTransferSimpleResultShape' => [
295338
'type' => 'structure',
296339
'members' => [
297-
'legalPersonAndAgentSpec' => [ 'shape' => 'LegalPersonAndAgentSpec', ],
340+
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
341+
'hasException' => [ 'type' => 'boolean', 'locationName' => 'hasException', ],
342+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
343+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
344+
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
298345
],
299346
],
300347
'PersonalAuthRequestShape' => [
@@ -303,6 +350,12 @@
303350
'personalSpec' => [ 'shape' => 'PersonalSpec', ],
304351
],
305352
],
353+
'CompanyTransferSimpleRequestShape' => [
354+
'type' => 'structure',
355+
'members' => [
356+
'accountInfo' => [ 'shape' => 'AccountInfoSimple', ],
357+
],
358+
],
306359
'PersonalAuthResponseShape' => [
307360
'type' => 'structure',
308361
'members' => [
@@ -326,13 +379,6 @@
326379
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
327380
],
328381
],
329-
'CheckLegalPersonAndAgentResponseShape' => [
330-
'type' => 'structure',
331-
'members' => [
332-
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
333-
'result' => [ 'shape' => 'CheckLegalPersonAndAgentResultShape', ],
334-
],
335-
],
336382
'QueryCityListResponseShape' => [
337383
'type' => 'structure',
338384
'members' => [
@@ -416,6 +462,13 @@
416462
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
417463
],
418464
],
465+
'IDCardResponseShape' => [
466+
'type' => 'structure',
467+
'members' => [
468+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
469+
'result' => [ 'shape' => 'IDCardResultShape', ],
470+
],
471+
],
419472
'QueryProvinceListResponseShape' => [
420473
'type' => 'structure',
421474
'members' => [
@@ -436,30 +489,22 @@
436489
'result' => [ 'shape' => 'CheckCompanyTransferResultShape', ],
437490
],
438491
],
439-
'CheckLegalPersonAndAgentResultShape' => [
440-
'type' => 'structure',
441-
'members' => [
442-
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
443-
'hasException' => [ 'type' => 'boolean', 'locationName' => 'hasException', ],
444-
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
445-
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
446-
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
447-
],
448-
],
449492
'CheckLegalPersonRequestShape' => [
450493
'type' => 'structure',
451494
'members' => [
452495
'legalPersonSpec' => [ 'shape' => 'LegalPersonSpec', ],
453496
],
454497
],
455-
'CheckAgentResultShape' => [
498+
'IDCardResultShape' => [
456499
'type' => 'structure',
457500
'members' => [
458-
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
459-
'hasException' => [ 'type' => 'boolean', 'locationName' => 'hasException', ],
460-
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
461-
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
462-
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
501+
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
502+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
503+
'nation' => [ 'type' => 'string', 'locationName' => 'nation', ],
504+
'address' => [ 'type' => 'string', 'locationName' => 'address', ],
505+
'idNumber' => [ 'type' => 'string', 'locationName' => 'idNumber', ],
506+
'birthday' => [ 'type' => 'string', 'locationName' => 'birthday', ],
507+
'gender' => [ 'type' => 'string', 'locationName' => 'gender', ],
463508
],
464509
],
465510
'QueryBankListResponseShape' => [

0 commit comments

Comments
 (0)