Skip to content

Commit 2e1a0d2

Browse files
Merge pull request #200 from jdcloud-apigateway/master
cloudauth v1 1.0.19
2 parents 032227c + 920d70f commit 2e1a0d2

7 files changed

Lines changed: 1475 additions & 0 deletions

File tree

src/Cloudauth/ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,13 @@ Date: 2025-06-18
6060
1.0.18:
6161
Date: 2025-08-13
6262
更新: 增加号码在网时长。
63+
64+
1.0.19:
65+
Date: 2026-06-30
66+
更新: 增加对公银行账户打款新版(idb0041)接口,包括打款、打款验证、打款状态查询
67+
68+
69+
70+
71+
72+

src/Cloudauth/CloudauthClient.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
* @method \GuzzleHttp\Promise\Promise personalBankcard4OtherAsync(array $args = [])
3535
* @method \Jdcloud\Result companyTransfer(array $args = [])
3636
* @method \GuzzleHttp\Promise\Promise companyTransferAsync(array $args = [])
37+
* @method \Jdcloud\Result companyTransferNew(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise companyTransferNewAsync(array $args = [])
39+
* @method \Jdcloud\Result checkCompanyTransferNew(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise checkCompanyTransferNewAsync(array $args = [])
41+
* @method \Jdcloud\Result queryCompanyTransferNew(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise queryCompanyTransferNewAsync(array $args = [])
3743
* @method \Jdcloud\Result checkCompanyTransfer(array $args = [])
3844
* @method \GuzzleHttp\Promise\Promise checkCompanyTransferAsync(array $args = [])
3945
* @method \Jdcloud\Result queryCompanyTransfer(array $args = [])

src/Jpfs/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 更新历史 #
2+
API版本:0.1.0
3+
4+
|发布时间|版本号|更新|说明|
5+
|---|---|---|---|
6+
|2024-09-24|0.1.0|初始版本|* API及分组定义基础接口|

src/Jpfs/JpfsClient.php

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
<?php
2+
/**
3+
* Jpfs
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Jpfs
7+
* @author Jdcloud <jdcloud-api@jd.com>
8+
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
9+
* @link https://www.jdcloud.com/help/faq
10+
*/
11+
12+
namespace Jdcloud\Jpfs;
13+
14+
use Jdcloud\JdCloudClient;
15+
use Jdcloud\Api\Service;
16+
use Jdcloud\Api\DocModel;
17+
use Jdcloud\Api\ApiProvider;
18+
use Jdcloud\PresignUrlMiddleware;
19+
20+
/**
21+
* Client used to interact with jpfs.
22+
*
23+
* @method \Jdcloud\Result describeAccessGroups(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeAccessGroupsAsync(array $args = [])
25+
* @method \Jdcloud\Result createAccessGroup(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise createAccessGroupAsync(array $args = [])
27+
* @method \Jdcloud\Result modifyAccessGroup(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise modifyAccessGroupAsync(array $args = [])
29+
* @method \Jdcloud\Result deleteAccessGroup(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise deleteAccessGroupAsync(array $args = [])
31+
* @method \Jdcloud\Result describeAccessRules(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise describeAccessRulesAsync(array $args = [])
33+
* @method \Jdcloud\Result createAccessRule(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise createAccessRuleAsync(array $args = [])
35+
* @method \Jdcloud\Result modifyAccessRule(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise modifyAccessRuleAsync(array $args = [])
37+
* @method \Jdcloud\Result deleteAccessRule(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise deleteAccessRuleAsync(array $args = [])
39+
* @method \Jdcloud\Result describeProtocolMountTargets(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise describeProtocolMountTargetsAsync(array $args = [])
41+
* @method \Jdcloud\Result createProtocolMountTarget(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise createProtocolMountTargetAsync(array $args = [])
43+
* @method \Jdcloud\Result describeAuthorizedMountTargets(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise describeAuthorizedMountTargetsAsync(array $args = [])
45+
* @method \Jdcloud\Result createAuthorizedMountTarget(array $args = [])
46+
* @method \GuzzleHttp\Promise\Promise createAuthorizedMountTargetAsync(array $args = [])
47+
* @method \Jdcloud\Result deleteProtocolMountTarget(array $args = [])
48+
* @method \GuzzleHttp\Promise\Promise deleteProtocolMountTargetAsync(array $args = [])
49+
* @method \Jdcloud\Result describeProtocolServices(array $args = [])
50+
* @method \GuzzleHttp\Promise\Promise describeProtocolServicesAsync(array $args = [])
51+
* @method \Jdcloud\Result createProtocolService(array $args = [])
52+
* @method \GuzzleHttp\Promise\Promise createProtocolServiceAsync(array $args = [])
53+
* @method \Jdcloud\Result deleteProtocolService(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise deleteProtocolServiceAsync(array $args = [])
55+
* @method \Jdcloud\Result describeFileSystems(array $args = [])
56+
* @method \GuzzleHttp\Promise\Promise describeFileSystemsAsync(array $args = [])
57+
* @method \Jdcloud\Result createFileSystem(array $args = [])
58+
* @method \GuzzleHttp\Promise\Promise createFileSystemAsync(array $args = [])
59+
* @method \Jdcloud\Result describeFileSystem(array $args = [])
60+
* @method \GuzzleHttp\Promise\Promise describeFileSystemAsync(array $args = [])
61+
* @method \Jdcloud\Result modifyFileSystemAttribute(array $args = [])
62+
* @method \GuzzleHttp\Promise\Promise modifyFileSystemAttributeAsync(array $args = [])
63+
* @method \Jdcloud\Result deleteFileSystem(array $args = [])
64+
* @method \GuzzleHttp\Promise\Promise deleteFileSystemAsync(array $args = [])
65+
* @method \Jdcloud\Result extendFileSystem(array $args = [])
66+
* @method \GuzzleHttp\Promise\Promise extendFileSystemAsync(array $args = [])
67+
* @method \Jdcloud\Result userFileSystemQuota(array $args = [])
68+
* @method \GuzzleHttp\Promise\Promise userFileSystemQuotaAsync(array $args = [])
69+
* @method \Jdcloud\Result queryMountCommand(array $args = [])
70+
* @method \GuzzleHttp\Promise\Promise queryMountCommandAsync(array $args = [])
71+
* @method \Jdcloud\Result listInstancesDetail(array $args = [])
72+
* @method \GuzzleHttp\Promise\Promise listInstancesDetailAsync(array $args = [])
73+
* @method \Jdcloud\Result getFSClusterInfo(array $args = [])
74+
* @method \GuzzleHttp\Promise\Promise getFSClusterInfoAsync(array $args = [])
75+
* @method \Jdcloud\Result describeMountTargets(array $args = [])
76+
* @method \GuzzleHttp\Promise\Promise describeMountTargetsAsync(array $args = [])
77+
* @method \Jdcloud\Result createMountTarget(array $args = [])
78+
* @method \GuzzleHttp\Promise\Promise createMountTargetAsync(array $args = [])
79+
* @method \Jdcloud\Result describeMountTarget(array $args = [])
80+
* @method \GuzzleHttp\Promise\Promise describeMountTargetAsync(array $args = [])
81+
* @method \Jdcloud\Result deleteMountTarget(array $args = [])
82+
* @method \GuzzleHttp\Promise\Promise deleteMountTargetAsync(array $args = [])
83+
* @method \Jdcloud\Result listAllProtocolMountTargets(array $args = [])
84+
* @method \GuzzleHttp\Promise\Promise listAllProtocolMountTargetsAsync(array $args = [])
85+
*/
86+
class JpfsClient extends JdCloudClient
87+
{
88+
public function __construct(array $args)
89+
{
90+
$args['with_resolved'] = function (array $args) {
91+
$this->getHandlerList()->appendInit(
92+
PresignUrlMiddleware::wrap(
93+
$this,
94+
$args['endpoint_provider'],
95+
[
96+
'operations' => [
97+
],
98+
'service' => 'jpfs',
99+
'presign_param' => 'PresignedUrl',
100+
]
101+
),
102+
'jpfs'
103+
);
104+
};
105+
106+
parent::__construct($args);
107+
}
108+
}

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

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,33 @@
7474
'input' => [ 'shape' => 'CompanyTransferRequestShape', ],
7575
'output' => [ 'shape' => 'CompanyTransferResponseShape', ],
7676
],
77+
'CompanyTransferNew' => [
78+
'name' => 'CompanyTransferNew',
79+
'http' => [
80+
'method' => 'POST',
81+
'requestUri' => '/v1/company:transferNew',
82+
],
83+
'input' => [ 'shape' => 'CompanyTransferNewRequestShape', ],
84+
'output' => [ 'shape' => 'CompanyTransferNewResponseShape', ],
85+
],
86+
'CheckCompanyTransferNew' => [
87+
'name' => 'CheckCompanyTransferNew',
88+
'http' => [
89+
'method' => 'POST',
90+
'requestUri' => '/v1/company:checkNew',
91+
],
92+
'input' => [ 'shape' => 'CheckCompanyTransferNewRequestShape', ],
93+
'output' => [ 'shape' => 'CheckCompanyTransferNewResponseShape', ],
94+
],
95+
'QueryCompanyTransferNew' => [
96+
'name' => 'QueryCompanyTransferNew',
97+
'http' => [
98+
'method' => 'POST',
99+
'requestUri' => '/v1/company:transferStatusNew',
100+
],
101+
'input' => [ 'shape' => 'QueryCompanyTransferNewRequestShape', ],
102+
'output' => [ 'shape' => 'QueryCompanyTransferNewResponseShape', ],
103+
],
77104
'CheckCompanyTransfer' => [
78105
'name' => 'CheckCompanyTransfer',
79106
'http' => [
@@ -388,6 +415,16 @@
388415
'idCode' => [ 'type' => 'string', 'locationName' => 'idCode', ],
389416
],
390417
],
418+
'AccountInfoNew' => [
419+
'type' => 'structure',
420+
'members' => [
421+
'accountNo' => [ 'type' => 'string', 'locationName' => 'accountNo', ],
422+
'accountBank' => [ 'type' => 'string', 'locationName' => 'accountBank', ],
423+
'keyName' => [ 'type' => 'string', 'locationName' => 'keyName', ],
424+
'subBank' => [ 'type' => 'string', 'locationName' => 'subBank', ],
425+
'payCallbackUrl' => [ 'type' => 'string', 'locationName' => 'payCallbackUrl', ],
426+
],
427+
],
391428
'AuthInfo' => [
392429
'type' => 'structure',
393430
'members' => [
@@ -675,6 +712,13 @@
675712
'result' => [ 'shape' => 'CompanyTransferSimpleResultShape', ],
676713
],
677714
],
715+
'QueryCompanyTransferNewResponseShape' => [
716+
'type' => 'structure',
717+
'members' => [
718+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
719+
'result' => [ 'shape' => 'QueryCompanyTransferNewResultShape', ],
720+
],
721+
],
678722
'PersonalBankcard4DetailResultShape' => [
679723
'type' => 'structure',
680724
'members' => [
@@ -736,6 +780,16 @@
736780
'result' => [ 'shape' => 'PersonalAuthResultShape', ],
737781
],
738782
],
783+
'QueryCompanyTransferNewResultShape' => [
784+
'type' => 'structure',
785+
'members' => [
786+
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
787+
'hasException' => [ 'type' => 'boolean', 'locationName' => 'hasException', ],
788+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
789+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
790+
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
791+
],
792+
],
739793
'QueryProvinceListResultShape' => [
740794
'type' => 'structure',
741795
'members' => [
@@ -771,6 +825,23 @@
771825
'token' => [ 'type' => 'string', 'locationName' => 'token', ],
772826
],
773827
],
828+
'CompanyTransferNewResponseShape' => [
829+
'type' => 'structure',
830+
'members' => [
831+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
832+
'result' => [ 'shape' => 'CompanyTransferNewResultShape', ],
833+
],
834+
],
835+
'CompanyTransferNewResultShape' => [
836+
'type' => 'structure',
837+
'members' => [
838+
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
839+
'hasException' => [ 'type' => 'boolean', 'locationName' => 'hasException', ],
840+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
841+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
842+
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
843+
],
844+
],
774845
'BusinessOCRResultShape' => [
775846
'type' => 'structure',
776847
'members' => [
@@ -982,6 +1053,12 @@
9821053
'image_base64' => [ 'type' => 'string', 'locationName' => 'image_base64', ],
9831054
],
9841055
],
1056+
'CheckCompanyTransferNewRequestShape' => [
1057+
'type' => 'structure',
1058+
'members' => [
1059+
'checkInfo' => [ 'shape' => 'CheckInfo', ],
1060+
],
1061+
],
9851062
'CheckCompanyInfo3ResponseShape' => [
9861063
'type' => 'structure',
9871064
'members' => [
@@ -1116,6 +1193,13 @@
11161193
'orderNumber' => [ 'type' => 'string', 'locationName' => 'orderNumber', ],
11171194
],
11181195
],
1196+
'CheckCompanyTransferNewResponseShape' => [
1197+
'type' => 'structure',
1198+
'members' => [
1199+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
1200+
'result' => [ 'shape' => 'CheckCompanyTransferNewResultShape', ],
1201+
],
1202+
],
11191203
'CompanyTransferResultShape' => [
11201204
'type' => 'structure',
11211205
'members' => [
@@ -1138,6 +1222,22 @@
11381222
'accountInfo' => [ 'shape' => 'AccountInfo', ],
11391223
],
11401224
],
1225+
'QueryCompanyTransferNewRequestShape' => [
1226+
'type' => 'structure',
1227+
'members' => [
1228+
'orderNumber' => [ 'type' => 'string', 'locationName' => 'orderNumber', ],
1229+
],
1230+
],
1231+
'CheckCompanyTransferNewResultShape' => [
1232+
'type' => 'structure',
1233+
'members' => [
1234+
'success' => [ 'type' => 'boolean', 'locationName' => 'success', ],
1235+
'hasException' => [ 'type' => 'boolean', 'locationName' => 'hasException', ],
1236+
'code' => [ 'type' => 'string', 'locationName' => 'code', ],
1237+
'message' => [ 'type' => 'string', 'locationName' => 'message', ],
1238+
'detail' => [ 'type' => 'string', 'locationName' => 'detail', ],
1239+
],
1240+
],
11411241
'QueryCityListResponseShape' => [
11421242
'type' => 'structure',
11431243
'members' => [
@@ -1414,6 +1514,12 @@
14141514
'customerCode' => [ 'type' => 'string', 'locationName' => 'customerCode', ],
14151515
],
14161516
],
1517+
'CompanyTransferNewRequestShape' => [
1518+
'type' => 'structure',
1519+
'members' => [
1520+
'accountInfo' => [ 'shape' => 'AccountInfoNew', ],
1521+
],
1522+
],
14171523
'QueryBankListRequestShape' => [
14181524
'type' => 'structure',
14191525
'members' => [

0 commit comments

Comments
 (0)