@yunzhanghu/sdk-nodejs 1.0.3 → 1.0.4

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.
@@ -1,156 +1,138 @@
1
- import YZHclient from "../../common/client"
1
+ import YZHclient from '../../common/client';
2
2
 
3
3
  /** H5PreCollectBizlicMsgRequest 工商实名信息录入请求 */
4
4
  interface H5PreCollectBizlicMsgRequest {
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
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
27
  }
28
28
 
29
29
  /** H5PreCollectBizlicMsgResponse 工商实名信息录入返回 */
30
30
  interface H5PreCollectBizlicMsgResponse {
31
- /** 平台企业端的用户 ID */
32
- dealer_user_id: string
31
+ /** 平台企业端的用户 ID */
32
+ dealer_user_id: string;
33
33
  }
34
34
 
35
35
  /** H5APIGetStartUrlRequest 预启动请求 */
36
36
  interface H5APIGetStartUrlRequest {
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
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
53
  }
54
54
 
55
55
  /** H5APIGetStartUrlResponse 预启动返回 */
56
56
  interface H5APIGetStartUrlResponse {
57
- /** 跳转 URL */
58
- h5_url: string
57
+ /** 跳转 URL */
58
+ h5_url: string;
59
59
  }
60
60
 
61
61
  /** H5APIEcoCityAicStatusRequest 查询个体工商户状态请求 */
62
62
  interface H5APIEcoCityAicStatusRequest {
63
- /** 平台企业 ID */
64
- dealer_id: string
65
- /** 综合服务主体 ID */
66
- broker_id: string
67
- /** 平台企业端的用户 ID */
68
- dealer_user_id: string
69
- /** 身份证号码 */
70
- id_card: string
71
- /** 姓名 */
72
- real_name: string
73
- /** 用户唯一标识 */
74
- open_id: string
63
+ /** 平台企业 ID */
64
+ dealer_id: string;
65
+ /** 综合服务主体 ID */
66
+ broker_id: string;
67
+ /** 平台企业端的用户 ID */
68
+ dealer_user_id: string;
69
+ /** 身份证号码 */
70
+ id_card: string;
71
+ /** 姓名 */
72
+ real_name: string;
73
+ /** 用户唯一标识 */
74
+ open_id: string;
75
75
  }
76
76
 
77
77
  /** H5APIEcoCityAicStatusResponse 查询个体工商户状态返回 */
78
78
  interface H5APIEcoCityAicStatusResponse {
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
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
97
  }
98
98
 
99
99
  export class BizlicXjjH5APIServiceClient 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
- }
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
114
 
115
- // H5PreCollectBizlicMsg 工商实名信息录入
116
- async H5PreCollectBizlicMsg(
117
- req: H5PreCollectBizlicMsgRequest,
118
- cb?: (error: null | string, rep: H5PreCollectBizlicMsgResponse) => void
119
- ): Promise<H5PreCollectBizlicMsgResponse> {
120
- return this.request(
121
- "post",
122
- "/api/aic/new-economy/api-h5/v1/collect",
123
- req,
124
- { encryption: false },
125
- cb
126
- )
127
- }
115
+ // H5PreCollectBizlicMsg 工商实名信息录入
116
+ async H5PreCollectBizlicMsg(
117
+ req: H5PreCollectBizlicMsgRequest,
118
+ cb?: (error: null | string, rep: H5PreCollectBizlicMsgResponse) => void
119
+ ): Promise<H5PreCollectBizlicMsgResponse> {
120
+ return this.request('post', '/api/aic/new-economy/api-h5/v1/collect', req, { encryption: false }, cb);
121
+ }
128
122
 
129
- // H5APIGetStartUrl 预启动
130
- async H5APIGetStartUrl(
131
- req: H5APIGetStartUrlRequest,
132
- cb?: (error: null | string, rep: H5APIGetStartUrlResponse) => void
133
- ): Promise<H5APIGetStartUrlResponse> {
134
- return this.request(
135
- "get",
136
- "/api/aic/new-economy/api-h5/v1/h5url",
137
- req,
138
- { encryption: false },
139
- cb
140
- )
141
- }
123
+ // H5APIGetStartUrl 预启动
124
+ async H5APIGetStartUrl(
125
+ req: H5APIGetStartUrlRequest,
126
+ cb?: (error: null | string, rep: H5APIGetStartUrlResponse) => void
127
+ ): Promise<H5APIGetStartUrlResponse> {
128
+ return this.request('get', '/api/aic/new-economy/api-h5/v1/h5url', req, { encryption: false }, cb);
129
+ }
142
130
 
143
- // H5APIEcoCityAicStatus 查询个体工商户状态
144
- async H5APIEcoCityAicStatus(
145
- req: H5APIEcoCityAicStatusRequest,
146
- cb?: (error: null | string, rep: H5APIEcoCityAicStatusResponse) => void
147
- ): Promise<H5APIEcoCityAicStatusResponse> {
148
- return this.request(
149
- "get",
150
- "/api/aic/new-economy/api-h5/v1/status",
151
- req,
152
- { encryption: false },
153
- cb
154
- )
155
- }
131
+ // H5APIEcoCityAicStatus 查询个体工商户状态
132
+ async H5APIEcoCityAicStatus(
133
+ req: H5APIEcoCityAicStatusRequest,
134
+ cb?: (error: null | string, rep: H5APIEcoCityAicStatusResponse) => void
135
+ ): Promise<H5APIEcoCityAicStatusResponse> {
136
+ return this.request('get', '/api/aic/new-economy/api-h5/v1/status', req, { encryption: false }, cb);
137
+ }
156
138
  }