@yunzhanghu/sdk-nodejs 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/example/apiUserSign.js +29 -29
- package/example/authentication.js +70 -70
- package/example/bizlicXjjH5.js +19 -19
- package/example/bizlicXjjH5Api.js +32 -32
- package/example/bizlicgxv2h5.js +72 -0
- package/example/bizlicgxv2h5api.js +108 -0
- package/example/conf/config.js +12 -5
- package/example/dataService.js +41 -41
- package/example/h5UserSign.js +28 -28
- package/example/invoice.js +44 -44
- package/example/notify.js +6 -6
- package/example/payment.js +101 -101
- package/example/tax.js +15 -15
- package/example/uploadusersign.js +16 -16
- package/package.json +1 -1
- package/src/services/bizlicgxv2h5/index.ts +98 -0
- package/src/services/bizlicgxv2h5api/index.ts +138 -0
- package/src/services/dataservice/index.ts +2 -0
- package/src/services/index.ts +2 -0
- package/src/services/payment/index.ts +4 -0
- package/yzh/services/bizlicgxv2h5/index.d.ts +88 -0
- package/yzh/services/bizlicgxv2h5/index.js +19 -0
- package/yzh/services/bizlicgxv2h5api/index.d.ts +124 -0
- package/yzh/services/bizlicgxv2h5api/index.js +23 -0
- package/yzh/services/dataservice/index.d.ts +2 -0
- package/yzh/services/index.d.ts +2 -0
- package/yzh/services/index.js +5 -1
- package/yzh/services/payment/index.d.ts +4 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const yzhAPI = require(
|
|
2
|
-
const config = require(
|
|
1
|
+
const yzhAPI = require('../yzh/index.js')
|
|
2
|
+
const config = require('./conf/config.js')
|
|
3
3
|
|
|
4
4
|
// 签约信息上传
|
|
5
5
|
const uploaduserSign = new yzhAPI.UploadUserSignServiceClient(config)
|
|
@@ -13,22 +13,22 @@ uploaduserSign
|
|
|
13
13
|
* 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
|
|
14
14
|
* 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
|
|
15
15
|
*/
|
|
16
|
-
request_id:
|
|
16
|
+
request_id: 'requestIdExample123456789',
|
|
17
17
|
dealer_id: config.dealer_id,
|
|
18
18
|
broker_id: config.broker_id,
|
|
19
|
-
real_name:
|
|
20
|
-
id_card:
|
|
21
|
-
phone:
|
|
19
|
+
real_name: '张三',
|
|
20
|
+
id_card: '11010519491231002X',
|
|
21
|
+
phone: '188****8888',
|
|
22
22
|
is_abroad: false,
|
|
23
|
-
notify_url:
|
|
23
|
+
notify_url: 'https://www.example.com',
|
|
24
24
|
})
|
|
25
25
|
.then((data) => {
|
|
26
|
-
if (data.code ===
|
|
26
|
+
if (data.code === '0000') {
|
|
27
27
|
// 操作成功
|
|
28
|
-
console.log(
|
|
28
|
+
console.log('操作成功 ', data.data)
|
|
29
29
|
} else {
|
|
30
30
|
// 失败返回
|
|
31
|
-
console.log(
|
|
31
|
+
console.log('失败返回 ', 'code:' + data.code + ' message:' + data.message + ' request_id:' + data.request_id)
|
|
32
32
|
}
|
|
33
33
|
})
|
|
34
34
|
.catch((err) => {
|
|
@@ -45,19 +45,19 @@ uploaduserSign
|
|
|
45
45
|
* 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
|
|
46
46
|
* 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
|
|
47
47
|
*/
|
|
48
|
-
request_id:
|
|
48
|
+
request_id: 'requestIdExample123456789',
|
|
49
49
|
dealer_id: config.dealer_id,
|
|
50
50
|
broker_id: config.broker_id,
|
|
51
|
-
real_name:
|
|
52
|
-
id_card:
|
|
51
|
+
real_name: '张三',
|
|
52
|
+
id_card: '11010519491231002X',
|
|
53
53
|
})
|
|
54
54
|
.then((data) => {
|
|
55
|
-
if (data.code ===
|
|
55
|
+
if (data.code === '0000') {
|
|
56
56
|
// 操作成功
|
|
57
|
-
console.log(
|
|
57
|
+
console.log('操作成功 ', data.data)
|
|
58
58
|
} else {
|
|
59
59
|
// 失败返回
|
|
60
|
-
console.log(
|
|
60
|
+
console.log('失败返回 ', 'code:' + data.code + ' message:' + data.message + ' request_id:' + data.request_id)
|
|
61
61
|
}
|
|
62
62
|
})
|
|
63
63
|
.catch((err) => {
|
package/package.json
CHANGED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import YZHclient from '../../common/client';
|
|
2
|
+
|
|
3
|
+
/** GxV2H5GetStartUrlRequest 预启动请求 */
|
|
4
|
+
interface GxV2H5GetStartUrlRequest {
|
|
5
|
+
/** 平台企业 ID */
|
|
6
|
+
dealer_id: string;
|
|
7
|
+
/** 综合服务主体 ID */
|
|
8
|
+
broker_id: string;
|
|
9
|
+
/** 平台企业端的用户 ID */
|
|
10
|
+
dealer_user_id: string;
|
|
11
|
+
/** 客户端类型 */
|
|
12
|
+
client_type: number;
|
|
13
|
+
/** 异步通知 URL */
|
|
14
|
+
notify_url: string;
|
|
15
|
+
/** H5 页面主题颜色 */
|
|
16
|
+
color: string;
|
|
17
|
+
/** 跳转 URL */
|
|
18
|
+
return_url: string;
|
|
19
|
+
/** H5 页面 Title */
|
|
20
|
+
customer_title: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** GxV2H5GetStartUrlResponse 预启动返回 */
|
|
24
|
+
interface GxV2H5GetStartUrlResponse {
|
|
25
|
+
/** 跳转 URL */
|
|
26
|
+
h5_url: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** GxV2H5GetAicStatusRequest 查询个体工商户状态请求 */
|
|
30
|
+
interface GxV2H5GetAicStatusRequest {
|
|
31
|
+
/** 平台企业 ID */
|
|
32
|
+
dealer_id: string;
|
|
33
|
+
/** 综合服务主体 ID */
|
|
34
|
+
broker_id: string;
|
|
35
|
+
/** 用户唯一标识 */
|
|
36
|
+
open_id: string;
|
|
37
|
+
/** 姓名 */
|
|
38
|
+
real_name: string;
|
|
39
|
+
/** 身份证号码 */
|
|
40
|
+
id_card: string;
|
|
41
|
+
/** 平台企业端的用户 ID */
|
|
42
|
+
dealer_user_id: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** GxV2H5GetAicStatusResponse 查询个体工商户状态返回 */
|
|
46
|
+
interface GxV2H5GetAicStatusResponse {
|
|
47
|
+
/** 用户注册状态 */
|
|
48
|
+
status: number;
|
|
49
|
+
/** 注册状态描述 */
|
|
50
|
+
status_message: string;
|
|
51
|
+
/** 注册详情状态码 */
|
|
52
|
+
status_detail: number;
|
|
53
|
+
/** 注册详情状态码描述 */
|
|
54
|
+
status_detail_message: string;
|
|
55
|
+
/** 注册发起时间 */
|
|
56
|
+
applyed_at: string;
|
|
57
|
+
/** 注册完成时间 */
|
|
58
|
+
registed_at: string;
|
|
59
|
+
/** 统一社会信用代码 */
|
|
60
|
+
uscc: string;
|
|
61
|
+
/** 身份证号码 */
|
|
62
|
+
id_card: string;
|
|
63
|
+
/** 姓名 */
|
|
64
|
+
real_name: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export class BizlicGxV2H5ServiceClient extends YZHclient {
|
|
68
|
+
// eslint-disable-next-line no-useless-constructor
|
|
69
|
+
constructor(conf: {
|
|
70
|
+
dealer_id: string;
|
|
71
|
+
broker_id: string;
|
|
72
|
+
app_key: string;
|
|
73
|
+
des3_key: string;
|
|
74
|
+
private_key: string;
|
|
75
|
+
yzh_public_key: string;
|
|
76
|
+
sign_type: 'rsa' | 'sha256';
|
|
77
|
+
base_url?: string;
|
|
78
|
+
timeout?: number;
|
|
79
|
+
}) {
|
|
80
|
+
super(conf);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// GxV2H5GetStartUrl 预启动
|
|
84
|
+
async GxV2H5GetStartUrl(
|
|
85
|
+
req: GxV2H5GetStartUrlRequest,
|
|
86
|
+
cb?: (error: null | string, rep: GxV2H5GetStartUrlResponse) => void
|
|
87
|
+
): Promise<GxV2H5GetStartUrlResponse> {
|
|
88
|
+
return this.request('get', '/api/aic/sharing-economy/h5/v1/h5url', req, { encryption: false }, cb);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// GxV2H5GetAicStatus 查询个体工商户状态
|
|
92
|
+
async GxV2H5GetAicStatus(
|
|
93
|
+
req: GxV2H5GetAicStatusRequest,
|
|
94
|
+
cb?: (error: null | string, rep: GxV2H5GetAicStatusResponse) => void
|
|
95
|
+
): Promise<GxV2H5GetAicStatusResponse> {
|
|
96
|
+
return this.request('get', '/api/aic/sharing-economy/h5/v1/status', req, { encryption: false }, cb);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import YZHclient from '../../common/client';
|
|
2
|
+
|
|
3
|
+
/** GxV2H5APIPreCollectBizlicMsgRequest 工商实名信息录入请求 */
|
|
4
|
+
interface GxV2H5APIPreCollectBizlicMsgRequest {
|
|
5
|
+
/** 平台企业 ID */
|
|
6
|
+
dealer_id: string;
|
|
7
|
+
/** 综合服务主体 ID */
|
|
8
|
+
broker_id: string;
|
|
9
|
+
/** 平台企业端的用户 ID */
|
|
10
|
+
dealer_user_id: string;
|
|
11
|
+
/** 手机号 */
|
|
12
|
+
phone_no: string;
|
|
13
|
+
/** 身份证号码 */
|
|
14
|
+
id_card: string;
|
|
15
|
+
/** 姓名 */
|
|
16
|
+
real_name: string;
|
|
17
|
+
/** 身份证住址 */
|
|
18
|
+
id_card_address: string;
|
|
19
|
+
/** 身份证签发机关 */
|
|
20
|
+
id_card_agency: string;
|
|
21
|
+
/** 身份证民族 */
|
|
22
|
+
id_card_nation: string;
|
|
23
|
+
/** 身份证有效期开始时间 */
|
|
24
|
+
id_card_validity_start: string;
|
|
25
|
+
/** 身份证有效期结束时间 */
|
|
26
|
+
id_card_validity_end: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** GxV2H5APIPreCollectBizlicMsgResponse 工商实名信息录入返回 */
|
|
30
|
+
interface GxV2H5APIPreCollectBizlicMsgResponse {
|
|
31
|
+
/** 平台企业端的用户 ID */
|
|
32
|
+
dealer_user_id: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** GxV2H5APIGetStartUrlRequest 预启动请求 */
|
|
36
|
+
interface GxV2H5APIGetStartUrlRequest {
|
|
37
|
+
/** 平台企业 ID */
|
|
38
|
+
dealer_id: string;
|
|
39
|
+
/** 综合服务主体 ID */
|
|
40
|
+
broker_id: string;
|
|
41
|
+
/** 平台企业端的用户 ID */
|
|
42
|
+
dealer_user_id: string;
|
|
43
|
+
/** 客户端类型 */
|
|
44
|
+
client_type: number;
|
|
45
|
+
/** 异步通知 URL */
|
|
46
|
+
notify_url: string;
|
|
47
|
+
/** H5 页面主题颜色 */
|
|
48
|
+
color: string;
|
|
49
|
+
/** 跳转 URL */
|
|
50
|
+
return_url: string;
|
|
51
|
+
/** H5 页面 Title */
|
|
52
|
+
customer_title: number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** GxV2H5APIGetStartUrlResponse 预启动返回 */
|
|
56
|
+
interface GxV2H5APIGetStartUrlResponse {
|
|
57
|
+
/** 跳转 URL */
|
|
58
|
+
h5_url: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** GxV2H5APIGetAicStatusRequest 查询个体工商户状态请求 */
|
|
62
|
+
interface GxV2H5APIGetAicStatusRequest {
|
|
63
|
+
/** 平台企业 ID */
|
|
64
|
+
dealer_id: string;
|
|
65
|
+
/** 综合服务主体 ID */
|
|
66
|
+
broker_id: string;
|
|
67
|
+
/** 用户唯一标识 */
|
|
68
|
+
open_id: string;
|
|
69
|
+
/** 姓名 */
|
|
70
|
+
real_name: string;
|
|
71
|
+
/** 身份证号码 */
|
|
72
|
+
id_card: string;
|
|
73
|
+
/** 平台企业端的用户 ID */
|
|
74
|
+
dealer_user_id: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/** GxV2H5APIGetAicStatusResponse 查询个体工商户状态返回 */
|
|
78
|
+
interface GxV2H5APIGetAicStatusResponse {
|
|
79
|
+
/** 用户注册状态 */
|
|
80
|
+
status: number;
|
|
81
|
+
/** 注册状态描述 */
|
|
82
|
+
status_message: string;
|
|
83
|
+
/** 注册详情状态码 */
|
|
84
|
+
status_detail: number;
|
|
85
|
+
/** 注册详情状态码描述 */
|
|
86
|
+
status_detail_message: string;
|
|
87
|
+
/** 注册发起时间 */
|
|
88
|
+
applyed_at: string;
|
|
89
|
+
/** 注册完成时间 */
|
|
90
|
+
registed_at: string;
|
|
91
|
+
/** 统一社会信用代码 */
|
|
92
|
+
uscc: string;
|
|
93
|
+
/** 身份证号码 */
|
|
94
|
+
id_card: string;
|
|
95
|
+
/** 姓名 */
|
|
96
|
+
real_name: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export class BizlicGxV2H5APIServiceClient extends YZHclient {
|
|
100
|
+
// eslint-disable-next-line no-useless-constructor
|
|
101
|
+
constructor(conf: {
|
|
102
|
+
dealer_id: string;
|
|
103
|
+
broker_id: string;
|
|
104
|
+
app_key: string;
|
|
105
|
+
des3_key: string;
|
|
106
|
+
private_key: string;
|
|
107
|
+
yzh_public_key: string;
|
|
108
|
+
sign_type: 'rsa' | 'sha256';
|
|
109
|
+
base_url?: string;
|
|
110
|
+
timeout?: number;
|
|
111
|
+
}) {
|
|
112
|
+
super(conf);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// GxV2H5APIPreCollectBizlicMsg 工商实名信息录入
|
|
116
|
+
async GxV2H5APIPreCollectBizlicMsg(
|
|
117
|
+
req: GxV2H5APIPreCollectBizlicMsgRequest,
|
|
118
|
+
cb?: (error: null | string, rep: GxV2H5APIPreCollectBizlicMsgResponse) => void
|
|
119
|
+
): Promise<GxV2H5APIPreCollectBizlicMsgResponse> {
|
|
120
|
+
return this.request('post', '/api/aic/sharing-economy/api-h5/v1/collect', req, { encryption: false }, cb);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// GxV2H5APIGetStartUrl 预启动
|
|
124
|
+
async GxV2H5APIGetStartUrl(
|
|
125
|
+
req: GxV2H5APIGetStartUrlRequest,
|
|
126
|
+
cb?: (error: null | string, rep: GxV2H5APIGetStartUrlResponse) => void
|
|
127
|
+
): Promise<GxV2H5APIGetStartUrlResponse> {
|
|
128
|
+
return this.request('get', '/api/aic/sharing-economy/api-h5/v1/h5url', req, { encryption: false }, cb);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// GxV2H5APIGetAicStatus 查询个体工商户状态
|
|
132
|
+
async GxV2H5APIGetAicStatus(
|
|
133
|
+
req: GxV2H5APIGetAicStatusRequest,
|
|
134
|
+
cb?: (error: null | string, rep: GxV2H5APIGetAicStatusResponse) => void
|
|
135
|
+
): Promise<GxV2H5APIGetAicStatusResponse> {
|
|
136
|
+
return this.request('get', '/api/aic/sharing-economy/api-h5/v1/status', req, { encryption: false }, cb);
|
|
137
|
+
}
|
|
138
|
+
}
|
package/src/services/index.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { Util } from '../common/utils';
|
|
2
2
|
export { ApiUserSignServiceClient } from './apiusersign';
|
|
3
3
|
export { AuthenticationClient } from './authentication';
|
|
4
|
+
export { BizlicGxV2H5ServiceClient } from './bizlicgxv2h5';
|
|
5
|
+
export { BizlicGxV2H5APIServiceClient } from './bizlicgxv2h5api';
|
|
4
6
|
export { BizlicXjjH5ServiceClient } from './bizlicxjjh5';
|
|
5
7
|
export { BizlicXjjH5APIServiceClient } from './bizlicxjjh5api';
|
|
6
8
|
export { CustomClient } from './custom';
|
|
@@ -152,6 +152,8 @@ interface GetOrderResponse {
|
|
|
152
152
|
status_message: string;
|
|
153
153
|
/** 订单详细状态码描述 */
|
|
154
154
|
status_detail_message: string;
|
|
155
|
+
/** 订单状态补充信息 */
|
|
156
|
+
supplemental_detail_message: string;
|
|
155
157
|
/** 综合服务主体支付金额 */
|
|
156
158
|
broker_amount: string;
|
|
157
159
|
/** 综合服务平台流水号 */
|
|
@@ -429,6 +431,8 @@ interface QueryBatchOrderInfo {
|
|
|
429
431
|
status_message: string;
|
|
430
432
|
/** 订单详情状态码描述 */
|
|
431
433
|
status_detail_message: string;
|
|
434
|
+
/** 订单状态补充信息 */
|
|
435
|
+
supplemental_detail_message: string;
|
|
432
436
|
/** 综合服务主体支付金额 */
|
|
433
437
|
broker_amount: string;
|
|
434
438
|
/** 综合服务平台流水号 */
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import YZHclient from '../../common/client';
|
|
2
|
+
/** GxV2H5GetStartUrlRequest 预启动请求 */
|
|
3
|
+
interface GxV2H5GetStartUrlRequest {
|
|
4
|
+
/** 平台企业 ID */
|
|
5
|
+
dealer_id: string;
|
|
6
|
+
/** 综合服务主体 ID */
|
|
7
|
+
broker_id: string;
|
|
8
|
+
/** 平台企业端的用户 ID */
|
|
9
|
+
dealer_user_id: string;
|
|
10
|
+
/** 客户端类型 */
|
|
11
|
+
client_type: number;
|
|
12
|
+
/** 异步通知 URL */
|
|
13
|
+
notify_url: string;
|
|
14
|
+
/** H5 页面主题颜色 */
|
|
15
|
+
color: string;
|
|
16
|
+
/** 跳转 URL */
|
|
17
|
+
return_url: string;
|
|
18
|
+
/** H5 页面 Title */
|
|
19
|
+
customer_title: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** GxV2H5GetStartUrlResponse 预启动返回 */
|
|
23
|
+
interface GxV2H5GetStartUrlResponse {
|
|
24
|
+
/** 跳转 URL */
|
|
25
|
+
h5_url: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** GxV2H5GetAicStatusRequest 查询个体工商户状态请求 */
|
|
29
|
+
interface GxV2H5GetAicStatusRequest {
|
|
30
|
+
/** 平台企业 ID */
|
|
31
|
+
dealer_id: string;
|
|
32
|
+
/** 综合服务主体 ID */
|
|
33
|
+
broker_id: string;
|
|
34
|
+
/** 用户唯一标识 */
|
|
35
|
+
open_id: string;
|
|
36
|
+
/** 姓名 */
|
|
37
|
+
real_name: string;
|
|
38
|
+
/** 身份证号码 */
|
|
39
|
+
id_card: string;
|
|
40
|
+
/** 平台企业端的用户 ID */
|
|
41
|
+
dealer_user_id: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** GxV2H5GetAicStatusResponse 查询个体工商户状态返回 */
|
|
45
|
+
interface GxV2H5GetAicStatusResponse {
|
|
46
|
+
/** 用户注册状态 */
|
|
47
|
+
status: number;
|
|
48
|
+
/** 注册状态描述 */
|
|
49
|
+
status_message: string;
|
|
50
|
+
/** 注册详情状态码 */
|
|
51
|
+
status_detail: number;
|
|
52
|
+
/** 注册详情状态码描述 */
|
|
53
|
+
status_detail_message: string;
|
|
54
|
+
/** 注册发起时间 */
|
|
55
|
+
applyed_at: string;
|
|
56
|
+
/** 注册完成时间 */
|
|
57
|
+
registed_at: string;
|
|
58
|
+
/** 统一社会信用代码 */
|
|
59
|
+
uscc: string;
|
|
60
|
+
/** 身份证号码 */
|
|
61
|
+
id_card: string;
|
|
62
|
+
/** 姓名 */
|
|
63
|
+
real_name: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export declare class BizlicGxV2H5ServiceClient extends YZHclient {
|
|
67
|
+
constructor(conf: {
|
|
68
|
+
dealer_id: string;
|
|
69
|
+
broker_id: string;
|
|
70
|
+
app_key: string;
|
|
71
|
+
des3_key: string;
|
|
72
|
+
private_key: string;
|
|
73
|
+
yzh_public_key: string;
|
|
74
|
+
sign_type: 'rsa' | 'sha256';
|
|
75
|
+
base_url?: string;
|
|
76
|
+
timeout?: number;
|
|
77
|
+
});
|
|
78
|
+
GxV2H5GetStartUrl(
|
|
79
|
+
req: GxV2H5GetStartUrlRequest,
|
|
80
|
+
cb?: (error: null | string, rep: GxV2H5GetStartUrlResponse) => void
|
|
81
|
+
): Promise<GxV2H5GetStartUrlResponse>;
|
|
82
|
+
GxV2H5GetAicStatus(
|
|
83
|
+
req: GxV2H5GetAicStatusRequest,
|
|
84
|
+
cb?: (error: null | string, rep: GxV2H5GetAicStatusResponse) => void
|
|
85
|
+
): Promise<GxV2H5GetAicStatusResponse>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.BizlicGxV2H5ServiceClient = void 0;
|
|
4
|
+
const client_1 = require('../../common/client');
|
|
5
|
+
class BizlicGxV2H5ServiceClient extends client_1.default {
|
|
6
|
+
// eslint-disable-next-line no-useless-constructor
|
|
7
|
+
constructor(conf) {
|
|
8
|
+
super(conf);
|
|
9
|
+
}
|
|
10
|
+
// GxV2H5GetStartUrl 预启动
|
|
11
|
+
async GxV2H5GetStartUrl(req, cb) {
|
|
12
|
+
return this.request('get', '/api/aic/sharing-economy/h5/v1/h5url', req, { encryption: false }, cb);
|
|
13
|
+
}
|
|
14
|
+
// GxV2H5GetAicStatus 查询个体工商户状态
|
|
15
|
+
async GxV2H5GetAicStatus(req, cb) {
|
|
16
|
+
return this.request('get', '/api/aic/sharing-economy/h5/v1/status', req, { encryption: false }, cb);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.BizlicGxV2H5ServiceClient = BizlicGxV2H5ServiceClient;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import YZHclient from '../../common/client';
|
|
2
|
+
/** GxV2H5APIPreCollectBizlicMsgRequest 工商实名信息录入请求 */
|
|
3
|
+
interface GxV2H5APIPreCollectBizlicMsgRequest {
|
|
4
|
+
/** 平台企业 ID */
|
|
5
|
+
dealer_id: string;
|
|
6
|
+
/** 综合服务主体 ID */
|
|
7
|
+
broker_id: string;
|
|
8
|
+
/** 平台企业端的用户 ID */
|
|
9
|
+
dealer_user_id: string;
|
|
10
|
+
/** 手机号 */
|
|
11
|
+
phone_no: string;
|
|
12
|
+
/** 身份证号码 */
|
|
13
|
+
id_card: string;
|
|
14
|
+
/** 姓名 */
|
|
15
|
+
real_name: string;
|
|
16
|
+
/** 身份证住址 */
|
|
17
|
+
id_card_address: string;
|
|
18
|
+
/** 身份证签发机关 */
|
|
19
|
+
id_card_agency: string;
|
|
20
|
+
/** 身份证民族 */
|
|
21
|
+
id_card_nation: string;
|
|
22
|
+
/** 身份证有效期开始时间 */
|
|
23
|
+
id_card_validity_start: string;
|
|
24
|
+
/** 身份证有效期结束时间 */
|
|
25
|
+
id_card_validity_end: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** GxV2H5APIPreCollectBizlicMsgResponse 工商实名信息录入返回 */
|
|
29
|
+
interface GxV2H5APIPreCollectBizlicMsgResponse {
|
|
30
|
+
/** 平台企业端的用户 ID */
|
|
31
|
+
dealer_user_id: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** GxV2H5APIGetStartUrlRequest 预启动请求 */
|
|
35
|
+
interface GxV2H5APIGetStartUrlRequest {
|
|
36
|
+
/** 平台企业 ID */
|
|
37
|
+
dealer_id: string;
|
|
38
|
+
/** 综合服务主体 ID */
|
|
39
|
+
broker_id: string;
|
|
40
|
+
/** 平台企业端的用户 ID */
|
|
41
|
+
dealer_user_id: string;
|
|
42
|
+
/** 客户端类型 */
|
|
43
|
+
client_type: number;
|
|
44
|
+
/** 异步通知 URL */
|
|
45
|
+
notify_url: string;
|
|
46
|
+
/** H5 页面主题颜色 */
|
|
47
|
+
color: string;
|
|
48
|
+
/** 跳转 URL */
|
|
49
|
+
return_url: string;
|
|
50
|
+
/** H5 页面 Title */
|
|
51
|
+
customer_title: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** GxV2H5APIGetStartUrlResponse 预启动返回 */
|
|
55
|
+
interface GxV2H5APIGetStartUrlResponse {
|
|
56
|
+
/** 跳转 URL */
|
|
57
|
+
h5_url: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** GxV2H5APIGetAicStatusRequest 查询个体工商户状态请求 */
|
|
61
|
+
interface GxV2H5APIGetAicStatusRequest {
|
|
62
|
+
/** 平台企业 ID */
|
|
63
|
+
dealer_id: string;
|
|
64
|
+
/** 综合服务主体 ID */
|
|
65
|
+
broker_id: string;
|
|
66
|
+
/** 用户唯一标识 */
|
|
67
|
+
open_id: string;
|
|
68
|
+
/** 姓名 */
|
|
69
|
+
real_name: string;
|
|
70
|
+
/** 身份证号码 */
|
|
71
|
+
id_card: string;
|
|
72
|
+
/** 平台企业端的用户 ID */
|
|
73
|
+
dealer_user_id: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** GxV2H5APIGetAicStatusResponse 查询个体工商户状态返回 */
|
|
77
|
+
interface GxV2H5APIGetAicStatusResponse {
|
|
78
|
+
/** 用户注册状态 */
|
|
79
|
+
status: number;
|
|
80
|
+
/** 注册状态描述 */
|
|
81
|
+
status_message: string;
|
|
82
|
+
/** 注册详情状态码 */
|
|
83
|
+
status_detail: number;
|
|
84
|
+
/** 注册详情状态码描述 */
|
|
85
|
+
status_detail_message: string;
|
|
86
|
+
/** 注册发起时间 */
|
|
87
|
+
applyed_at: string;
|
|
88
|
+
/** 注册完成时间 */
|
|
89
|
+
registed_at: string;
|
|
90
|
+
/** 统一社会信用代码 */
|
|
91
|
+
uscc: string;
|
|
92
|
+
/** 身份证号码 */
|
|
93
|
+
id_card: string;
|
|
94
|
+
/** 姓名 */
|
|
95
|
+
real_name: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export declare class BizlicGxV2H5APIServiceClient extends YZHclient {
|
|
99
|
+
constructor(conf: {
|
|
100
|
+
dealer_id: string;
|
|
101
|
+
broker_id: string;
|
|
102
|
+
app_key: string;
|
|
103
|
+
des3_key: string;
|
|
104
|
+
private_key: string;
|
|
105
|
+
yzh_public_key: string;
|
|
106
|
+
sign_type: 'rsa' | 'sha256';
|
|
107
|
+
base_url?: string;
|
|
108
|
+
timeout?: number;
|
|
109
|
+
});
|
|
110
|
+
GxV2H5APIPreCollectBizlicMsg(
|
|
111
|
+
req: GxV2H5APIPreCollectBizlicMsgRequest,
|
|
112
|
+
cb?: (error: null | string, rep: GxV2H5APIPreCollectBizlicMsgResponse) => void
|
|
113
|
+
): Promise<GxV2H5APIPreCollectBizlicMsgResponse>;
|
|
114
|
+
GxV2H5APIGetStartUrl(
|
|
115
|
+
req: GxV2H5APIGetStartUrlRequest,
|
|
116
|
+
cb?: (error: null | string, rep: GxV2H5APIGetStartUrlResponse) => void
|
|
117
|
+
): Promise<GxV2H5APIGetStartUrlResponse>;
|
|
118
|
+
GxV2H5APIGetAicStatus(
|
|
119
|
+
req: GxV2H5APIGetAicStatusRequest,
|
|
120
|
+
cb?: (error: null | string, rep: GxV2H5APIGetAicStatusResponse) => void
|
|
121
|
+
): Promise<GxV2H5APIGetAicStatusResponse>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.BizlicGxV2H5APIServiceClient = void 0;
|
|
4
|
+
const client_1 = require('../../common/client');
|
|
5
|
+
class BizlicGxV2H5APIServiceClient extends client_1.default {
|
|
6
|
+
// eslint-disable-next-line no-useless-constructor
|
|
7
|
+
constructor(conf) {
|
|
8
|
+
super(conf);
|
|
9
|
+
}
|
|
10
|
+
// GxV2H5APIPreCollectBizlicMsg 工商实名信息录入
|
|
11
|
+
async GxV2H5APIPreCollectBizlicMsg(req, cb) {
|
|
12
|
+
return this.request('post', '/api/aic/sharing-economy/api-h5/v1/collect', req, { encryption: false }, cb);
|
|
13
|
+
}
|
|
14
|
+
// GxV2H5APIGetStartUrl 预启动
|
|
15
|
+
async GxV2H5APIGetStartUrl(req, cb) {
|
|
16
|
+
return this.request('get', '/api/aic/sharing-economy/api-h5/v1/h5url', req, { encryption: false }, cb);
|
|
17
|
+
}
|
|
18
|
+
// GxV2H5APIGetAicStatus 查询个体工商户状态
|
|
19
|
+
async GxV2H5APIGetAicStatus(req, cb) {
|
|
20
|
+
return this.request('get', '/api/aic/sharing-economy/api-h5/v1/status', req, { encryption: false }, cb);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.BizlicGxV2H5APIServiceClient = BizlicGxV2H5APIServiceClient;
|
package/yzh/services/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { Util } from '../common/utils';
|
|
2
2
|
export { ApiUserSignServiceClient } from './apiusersign';
|
|
3
3
|
export { AuthenticationClient } from './authentication';
|
|
4
|
+
export { BizlicGxV2H5ServiceClient } from './bizlicgxv2h5';
|
|
5
|
+
export { BizlicGxV2H5APIServiceClient } from './bizlicgxv2h5api';
|
|
4
6
|
export { BizlicXjjH5ServiceClient } from './bizlicxjjh5';
|
|
5
7
|
export { BizlicXjjH5APIServiceClient } from './bizlicxjjh5api';
|
|
6
8
|
export { CustomClient } from './custom';
|
package/yzh/services/index.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadUserSignServiceClient = exports.TaxClient = exports.PaymentClient = exports.InvoiceClient = exports.H5UserSignServiceClient = exports.DataServiceClient = exports.CustomClient = exports.BizlicXjjH5APIServiceClient = exports.BizlicXjjH5ServiceClient = exports.AuthenticationClient = exports.ApiUserSignServiceClient = exports.Util = void 0;
|
|
3
|
+
exports.UploadUserSignServiceClient = exports.TaxClient = exports.PaymentClient = exports.InvoiceClient = exports.H5UserSignServiceClient = exports.DataServiceClient = exports.CustomClient = exports.BizlicXjjH5APIServiceClient = exports.BizlicXjjH5ServiceClient = exports.BizlicGxV2H5APIServiceClient = exports.BizlicGxV2H5ServiceClient = exports.AuthenticationClient = exports.ApiUserSignServiceClient = exports.Util = void 0;
|
|
4
4
|
var utils_1 = require("../common/utils");
|
|
5
5
|
Object.defineProperty(exports, "Util", { enumerable: true, get: function () { return utils_1.Util; } });
|
|
6
6
|
var apiusersign_1 = require("./apiusersign");
|
|
7
7
|
Object.defineProperty(exports, "ApiUserSignServiceClient", { enumerable: true, get: function () { return apiusersign_1.ApiUserSignServiceClient; } });
|
|
8
8
|
var authentication_1 = require("./authentication");
|
|
9
9
|
Object.defineProperty(exports, "AuthenticationClient", { enumerable: true, get: function () { return authentication_1.AuthenticationClient; } });
|
|
10
|
+
var bizlicgxv2h5_1 = require("./bizlicgxv2h5");
|
|
11
|
+
Object.defineProperty(exports, "BizlicGxV2H5ServiceClient", { enumerable: true, get: function () { return bizlicgxv2h5_1.BizlicGxV2H5ServiceClient; } });
|
|
12
|
+
var bizlicgxv2h5api_1 = require("./bizlicgxv2h5api");
|
|
13
|
+
Object.defineProperty(exports, "BizlicGxV2H5APIServiceClient", { enumerable: true, get: function () { return bizlicgxv2h5api_1.BizlicGxV2H5APIServiceClient; } });
|
|
10
14
|
var bizlicxjjh5_1 = require("./bizlicxjjh5");
|
|
11
15
|
Object.defineProperty(exports, "BizlicXjjH5ServiceClient", { enumerable: true, get: function () { return bizlicxjjh5_1.BizlicXjjH5ServiceClient; } });
|
|
12
16
|
var bizlicxjjh5api_1 = require("./bizlicxjjh5api");
|
|
@@ -151,6 +151,8 @@ interface GetOrderResponse {
|
|
|
151
151
|
status_message: string;
|
|
152
152
|
/** 订单详细状态码描述 */
|
|
153
153
|
status_detail_message: string;
|
|
154
|
+
/** 订单状态补充信息 */
|
|
155
|
+
supplemental_detail_message: string;
|
|
154
156
|
/** 综合服务主体支付金额 */
|
|
155
157
|
broker_amount: string;
|
|
156
158
|
/** 综合服务平台流水号 */
|
|
@@ -428,6 +430,8 @@ interface QueryBatchOrderInfo {
|
|
|
428
430
|
status_message: string;
|
|
429
431
|
/** 订单详情状态码描述 */
|
|
430
432
|
status_detail_message: string;
|
|
433
|
+
/** 订单状态补充信息 */
|
|
434
|
+
supplemental_detail_message: string;
|
|
431
435
|
/** 综合服务主体支付金额 */
|
|
432
436
|
broker_amount: string;
|
|
433
437
|
/** 综合服务平台流水号 */
|