@yunzhanghu/sdk-nodejs 1.0.6 → 1.0.8

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  欢迎使用云账户 SDK for Node.js。
4
4
  云账户是一家专注为平台企业和新就业形态劳动者提供高质量灵活就业服务的新时代企业。云账户 SDK 对云账户综合服务平台 API 接口进行封装,帮助您快速接入到云账户综合服务平台。云账户 SDK for Node.js 为您提供签约、支付、回调、数据查询等功能,帮助您完成与云账户综合服务平台的接口对接及业务开发。
5
- 如果您在使用过程中遇到任何问题,请在当前 GitHub 提交 Issues,或发送邮件至技术支持组 [techsupport@yunzhanghu.com](mailto:techsupport@yunzhanghu.com)。
5
+ 如果您在使用过程中遇到任何问题,请在当前 GitHub 提交 Issues,或发送邮件至技术支持组 [technicalsupport@yunzhanghu.com](mailto:technicalsupport@yunzhanghu.com)。
6
6
 
7
7
  ## 环境要求
8
8
 
@@ -70,7 +70,9 @@ OpenSSL-> rsa -in private_key.pem -pubout -out pubkey.pem
70
70
  - [签约信息上传](./example/uploadusersign.js)
71
71
  - 个体工商户注册
72
72
  - [云账户新经济 H5](./example/bizlicXjjH5.js)
73
- - [云账户新经济 H5](./example/bizlicXjjH5.js)
73
+ - [云账户新经济 H5+API](./example/bizlicXjjH5Api.js)
74
+ - [云账户共享大额 H5](./example/bizlicGxV2H5.js)
75
+ - [云账户共享大额 H5+API](./example/bizlicGxV2H5Api.js)
74
76
  - [实时支付](./example/payment.js)
75
77
  - [异步通知](./example/notify.js)
76
78
  - [对账文件获取](./example/dataService.js)
@@ -0,0 +1,72 @@
1
+ const yzhAPI = require("../yzh/index.js")
2
+ const config = require("./conf/config.js")
3
+
4
+ // 个体工商户注册(云账户共享大额 H5)
5
+ const bizlicgxv2h5 = new yzhAPI.BizlicGxV2H5ServiceClient({
6
+ ...config,
7
+ base_url: "https://api-aic.yunzhanghu.com/",
8
+ })
9
+
10
+ // 预启动
11
+ bizlicgxv2h5
12
+ .GxV2H5GetStartUrl({
13
+
14
+ /**
15
+ * @param {string} request-id:请求 ID,请求的唯一标识
16
+ * 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
17
+ * 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
18
+ */
19
+ request_id: "requestIdExample123456789",
20
+ dealer_id: config.dealer_id,
21
+ broker_id: config.broker_id,
22
+ dealer_user_id: "userId1234567890",
23
+ client_type: 1,
24
+ notify_url: "https://www.example.com",
25
+ color: "#007AFF",
26
+ return_url: "https://www.example.com",
27
+ customer_title: 1,
28
+ })
29
+ .then((data) => {
30
+ if (data.code === "0000") {
31
+ // 操作成功
32
+ console.log("操作成功 ", data.data)
33
+ } else {
34
+ // 失败返回
35
+ console.log("失败返回 ", "code:" + data.code + " message:" + data.message + " request_id:" + data.request_id)
36
+ }
37
+ })
38
+ .catch((err) => {
39
+ // 发生异常
40
+ console.log(err.toString())
41
+ })
42
+
43
+ // 查询个体工商户状态
44
+ bizlicgxv2h5
45
+ .GxV2H5GetAicStatus({
46
+
47
+ /**
48
+ * @param {string} request-id:请求 ID,请求的唯一标识
49
+ * 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
50
+ * 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
51
+ */
52
+ request_id: "requestIdExample123456789",
53
+ dealer_id: config.dealer_id,
54
+ broker_id: config.broker_id,
55
+ open_id: "openId1234567890",
56
+ real_name: "张三",
57
+ id_card: "11010519491231002X",
58
+ dealer_user_id: "userId1234567890",
59
+ })
60
+ .then((data) => {
61
+ if (data.code === "0000") {
62
+ // 操作成功
63
+ console.log("操作成功 ", data.data)
64
+ } else {
65
+ // 失败返回
66
+ console.log("失败返回 ", "code:" + data.code + " message:" + data.message + " request_id:" + data.request_id)
67
+ }
68
+ })
69
+ .catch((err) => {
70
+ // 发生异常
71
+ console.log(err.toString())
72
+ })
@@ -0,0 +1,108 @@
1
+ const yzhAPI = require("../yzh/index.js")
2
+ const config = require("./conf/config.js")
3
+
4
+ // 个体工商户注册(云账户共享大额 H5+API)
5
+ const bizlicgxv2h5api = new yzhAPI.BizlicGxV2H5APIServiceClient({
6
+ ...config,
7
+ base_url: "https://api-aic.yunzhanghu.com/",
8
+ })
9
+
10
+ // 工商实名信息录入
11
+ bizlicgxv2h5api
12
+ .GxV2H5APIPreCollectBizlicMsg({
13
+
14
+ /**
15
+ * @param {string} request-id:请求 ID,请求的唯一标识
16
+ * 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
17
+ * 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
18
+ */
19
+ request_id: "requestIdExample123456789",
20
+ dealer_id: config.dealer_id,
21
+ broker_id: config.broker_id,
22
+ dealer_user_id: "userId1234567890",
23
+ phone_no: "+86-188****8888",
24
+ real_name: "张三",
25
+ id_card: "11010519491231002X",
26
+ id_card_address: "省级行政区名称区县级行政区名称具体住宿地址",
27
+ id_card_agency: "区县公安局名称",
28
+ id_card_nation: "20",
29
+ id_card_validity_start: "2022-02-22",
30
+ id_card_validity_end: "2042-02-22",
31
+ })
32
+ .then((data) => {
33
+ if (data.code === "0000") {
34
+ // 操作成功
35
+ console.log("操作成功 ", data.data)
36
+ } else {
37
+ // 失败返回
38
+ console.log("失败返回 ", "code:" + data.code + " message:" + data.message + " request_id:" + data.request_id)
39
+ }
40
+ })
41
+ .catch((err) => {
42
+ // 发生异常
43
+ console.log(err.toString())
44
+ })
45
+
46
+ // 预启动
47
+ bizlicgxv2h5api
48
+ .GxV2H5APIGetStartUrl({
49
+
50
+ /**
51
+ * @param {string} request-id:请求 ID,请求的唯一标识
52
+ * 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
53
+ * 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
54
+ */
55
+ request_id: "requestIdExample123456789",
56
+ dealer_id: config.dealer_id,
57
+ broker_id: config.broker_id,
58
+ dealer_user_id: "userId1234567890",
59
+ client_type: 2,
60
+ notify_url: "https://www.example.com",
61
+ color: "#007AFF",
62
+ return_url: "https://www.example.com",
63
+ customer_title: 1,
64
+ })
65
+ .then((data) => {
66
+ if (data.code === "0000") {
67
+ // 操作成功
68
+ console.log("操作成功 ", data.data)
69
+ } else {
70
+ // 失败返回
71
+ console.log("失败返回 ", "code:" + data.code + " message:" + data.message + " request_id:" + data.request_id)
72
+ }
73
+ })
74
+ .catch((err) => {
75
+ // 发生异常
76
+ console.log(err.toString())
77
+ })
78
+
79
+ // 查询个体工商户状态
80
+ bizlicgxv2h5api
81
+ .GxV2H5APIGetAicStatus({
82
+
83
+ /**
84
+ * @param {string} request-id:请求 ID,请求的唯一标识
85
+ * 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
86
+ * 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
87
+ */
88
+ request_id: "requestIdExample123456789",
89
+ dealer_id: config.dealer_id,
90
+ broker_id: config.broker_id,
91
+ dealer_user_id: "userId1234567890",
92
+ real_name: "张三",
93
+ id_card: "11010519491231002X",
94
+ open_id: "openId1234567890",
95
+ })
96
+ .then((data) => {
97
+ if (data.code === "0000") {
98
+ // 操作成功
99
+ console.log("操作成功 ", data.data)
100
+ } else {
101
+ // 失败返回
102
+ console.log("失败返回 ", "code:" + data.code + " message:" + data.message + " request_id:" + data.request_id)
103
+ }
104
+ })
105
+ .catch((err) => {
106
+ // 发生异常
107
+ console.log(err.toString())
108
+ })
@@ -26,6 +26,13 @@ QqP7lt6FdvzGxehaHwIDAQAB
26
26
  // 签名方式,登录云账户综合服务平台,选择“业务中心 > 业务管理 > 对接信息”获取
27
27
  // 签名方式为 RSA,参数固定为:rsa
28
28
  sign_type: "rsa",
29
+ // 请求域名
30
+ // 生产环境请求域名
31
+ base_url: "https://api-service.yunzhanghu.com",
32
+ // 沙箱环境请求域名
33
+ // base_url: "https://api-service.yunzhanghu.com/sandbox",
34
+ // 个体工商户注册请求域名
35
+ // base_url: "https://api-aic.yunzhanghu.com",
29
36
  // 请求超时时间,默认 30S
30
37
  timeout: 30 * 1000,
31
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yunzhanghu/sdk-nodejs",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "云账户 SDK for Node.js",
5
5
  "main": "yzh/index.js",
6
6
  "scripts": {
@@ -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
+ }
@@ -112,6 +112,8 @@ interface DealerOrderInfo {
112
112
  status_detail: string;
113
113
  /** 订单详细状态码描述 */
114
114
  status_detail_message: string;
115
+ /** 订单状态补充信息 */
116
+ supplemental_detail_message: string;
115
117
  /** 短周期授信账单号 */
116
118
  statement_id: string;
117
119
  /** 服务费账单号 */
@@ -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;
@@ -111,6 +111,8 @@ interface DealerOrderInfo {
111
111
  status_detail: string;
112
112
  /** 订单详细状态码描述 */
113
113
  status_detail_message: string;
114
+ /** 订单状态补充信息 */
115
+ supplemental_detail_message: string;
114
116
  /** 短周期授信账单号 */
115
117
  statement_id: string;
116
118
  /** 服务费账单号 */
@@ -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';
@@ -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
  /** 综合服务平台流水号 */