@yunzhanghu/sdk-nodejs 0.0.1-beta.1
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/.eslintignore +4 -0
- package/.eslintrc.json +19 -0
- package/.husky/pre-commit +7 -0
- package/LICENSE +201 -0
- package/README.md +114 -0
- package/example/apiUserSign.js +70 -0
- package/example/authentication.js +142 -0
- package/example/bizlicXjjH5.js +46 -0
- package/example/bizlicXjjH5Api.js +65 -0
- package/example/conf/config.js +30 -0
- package/example/dataService.js +98 -0
- package/example/h5UserSign.js +68 -0
- package/example/invoice.js +91 -0
- package/example/notify.js +36 -0
- package/example/package.json +12 -0
- package/example/payment.js +186 -0
- package/example/tax.js +34 -0
- package/package.json +47 -0
- package/prettier.config.js +32 -0
- package/src/common/client.ts +367 -0
- package/src/common/exception/yzhSDKHttpException.ts +32 -0
- package/src/common/http/index.ts +57 -0
- package/src/common/utils/index.ts +18 -0
- package/src/index.ts +1 -0
- package/src/services/apiusersign/index.ts +125 -0
- package/src/services/authentication/index.ts +247 -0
- package/src/services/bizlicxjjh5/index.ts +129 -0
- package/src/services/bizlicxjjh5api/index.ts +169 -0
- package/src/services/dataservice/index.ts +315 -0
- package/src/services/h5usersign/index.ts +145 -0
- package/src/services/index.ts +10 -0
- package/src/services/invoice/index.ts +257 -0
- package/src/services/payment/index.ts +523 -0
- package/src/services/tax/index.ts +77 -0
- package/src/typings.d.ts +1 -0
- package/tsconfig.json +25 -0
- package/yzh/common/client.d.ts +119 -0
- package/yzh/common/client.js +314 -0
- package/yzh/common/exception/yzhSDKHttpException.d.ts +10 -0
- package/yzh/common/exception/yzhSDKHttpException.js +21 -0
- package/yzh/common/http/index.d.ts +6 -0
- package/yzh/common/http/index.js +51 -0
- package/yzh/common/utils/index.d.ts +14 -0
- package/yzh/common/utils/index.js +11 -0
- package/yzh/index.d.ts +1 -0
- package/yzh/index.js +4 -0
- package/yzh/services/apiusersign/index.d.ts +86 -0
- package/yzh/services/apiusersign/index.js +26 -0
- package/yzh/services/authentication/index.d.ts +153 -0
- package/yzh/services/authentication/index.js +42 -0
- package/yzh/services/bizlicxjjh5/index.d.ts +76 -0
- package/yzh/services/bizlicxjjh5/index.js +18 -0
- package/yzh/services/bizlicxjjh5api/index.d.ts +107 -0
- package/yzh/services/bizlicxjjh5api/index.js +22 -0
- package/yzh/services/dataservice/index.d.ts +243 -0
- package/yzh/services/dataservice/index.js +38 -0
- package/yzh/services/h5usersign/index.d.ts +90 -0
- package/yzh/services/h5usersign/index.js +26 -0
- package/yzh/services/index.d.ts +10 -0
- package/yzh/services/index.js +23 -0
- package/yzh/services/invoice/index.d.ts +158 -0
- package/yzh/services/invoice/index.js +34 -0
- package/yzh/services/payment/index.d.ts +358 -0
- package/yzh/services/payment/index.js +50 -0
- package/yzh/services/tax/index.d.ts +55 -0
- package/yzh/services/tax/index.js +18 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import YZHclient from "../../common/client";
|
|
2
|
+
/** BankCardFourAuthVerifyRequest 银行卡四要素鉴权请求(下发短信验证码)请求 */
|
|
3
|
+
interface BankCardFourAuthVerifyRequest {
|
|
4
|
+
/** 银行卡号 */
|
|
5
|
+
card_no: string;
|
|
6
|
+
/** 身份证号码 */
|
|
7
|
+
id_card: string;
|
|
8
|
+
/** 姓名 */
|
|
9
|
+
real_name: string;
|
|
10
|
+
/** 银行预留手机号 */
|
|
11
|
+
mobile: string;
|
|
12
|
+
}
|
|
13
|
+
/** BankCardFourAuthVerifyResponse 银行卡四要素鉴权请求(下发短信验证码)返回 */
|
|
14
|
+
interface BankCardFourAuthVerifyResponse {
|
|
15
|
+
/** 交易凭证 */
|
|
16
|
+
ref: string;
|
|
17
|
+
}
|
|
18
|
+
/** BankCardFourAuthConfirmRequest 银行卡四要素确认请求(上传短信验证码)请求 */
|
|
19
|
+
interface BankCardFourAuthConfirmRequest {
|
|
20
|
+
/** 银行卡号 */
|
|
21
|
+
card_no: string;
|
|
22
|
+
/** 身份证号码 */
|
|
23
|
+
id_card: string;
|
|
24
|
+
/** 姓名 */
|
|
25
|
+
real_name: string;
|
|
26
|
+
/** 银行预留手机号 */
|
|
27
|
+
mobile: string;
|
|
28
|
+
/** 短信验证码 */
|
|
29
|
+
captcha: string;
|
|
30
|
+
/** 交易凭证 */
|
|
31
|
+
ref: string;
|
|
32
|
+
}
|
|
33
|
+
/** BankCardFourAuthConfirmResponse 银行卡四要素确认请求(上传短信验证码)返回 */
|
|
34
|
+
interface BankCardFourAuthConfirmResponse {
|
|
35
|
+
}
|
|
36
|
+
/** BankCardFourVerifyRequest 银行卡四要素验证请求 */
|
|
37
|
+
interface BankCardFourVerifyRequest {
|
|
38
|
+
/** 银行卡号 */
|
|
39
|
+
card_no: string;
|
|
40
|
+
/** 身份证号码 */
|
|
41
|
+
id_card: string;
|
|
42
|
+
/** 姓名 */
|
|
43
|
+
real_name: string;
|
|
44
|
+
/** 银行预留手机号 */
|
|
45
|
+
mobile: string;
|
|
46
|
+
}
|
|
47
|
+
/** BankCardFourVerifyResponse 银行卡四要素验证返回 */
|
|
48
|
+
interface BankCardFourVerifyResponse {
|
|
49
|
+
}
|
|
50
|
+
/** BankCardThreeVerifyRequest 银行卡三要素验证请求 */
|
|
51
|
+
interface BankCardThreeVerifyRequest {
|
|
52
|
+
/** 银行卡号 */
|
|
53
|
+
card_no: string;
|
|
54
|
+
/** 身份证号码 */
|
|
55
|
+
id_card: string;
|
|
56
|
+
/** 姓名 */
|
|
57
|
+
real_name: string;
|
|
58
|
+
}
|
|
59
|
+
/** BankCardThreeVerifyResponse 银行卡三要素验证返回 */
|
|
60
|
+
interface BankCardThreeVerifyResponse {
|
|
61
|
+
}
|
|
62
|
+
/** IDCardVerifyRequest 身份证实名验证请求 */
|
|
63
|
+
interface IDCardVerifyRequest {
|
|
64
|
+
/** 身份证号码 */
|
|
65
|
+
id_card: string;
|
|
66
|
+
/** 姓名 */
|
|
67
|
+
real_name: string;
|
|
68
|
+
}
|
|
69
|
+
/** IDCardVerifyResponse 身份证实名验证返回 */
|
|
70
|
+
interface IDCardVerifyResponse {
|
|
71
|
+
}
|
|
72
|
+
/** UserExemptedInfoRequest 上传免验证用户名单信息请求 */
|
|
73
|
+
interface UserExemptedInfoRequest {
|
|
74
|
+
/** 证件类型码 */
|
|
75
|
+
card_type: string;
|
|
76
|
+
/** 证件号码 */
|
|
77
|
+
id_card: string;
|
|
78
|
+
/** 姓名 */
|
|
79
|
+
real_name: string;
|
|
80
|
+
/** 申请备注 */
|
|
81
|
+
comment_apply: string;
|
|
82
|
+
/** 综合服务主体 ID */
|
|
83
|
+
broker_id: string;
|
|
84
|
+
/** 平台企业 ID */
|
|
85
|
+
dealer_id: string;
|
|
86
|
+
/** 人员信息图片 */
|
|
87
|
+
user_images: string[];
|
|
88
|
+
/** 国别(地区)代码 */
|
|
89
|
+
country: string;
|
|
90
|
+
/** 出生日期 */
|
|
91
|
+
birthday: string;
|
|
92
|
+
/** 性别 */
|
|
93
|
+
gender: string;
|
|
94
|
+
/** 回调地址 */
|
|
95
|
+
notify_url: string;
|
|
96
|
+
/** 请求流水号 */
|
|
97
|
+
ref: string;
|
|
98
|
+
}
|
|
99
|
+
/** UserExemptedInfoResponse 上传免验证用户名单信息返回 */
|
|
100
|
+
interface UserExemptedInfoResponse {
|
|
101
|
+
/** 是否上传成功 */
|
|
102
|
+
ok: string;
|
|
103
|
+
}
|
|
104
|
+
/** UserWhiteCheckRequest 查看免验证用户名单是否存在请求 */
|
|
105
|
+
interface UserWhiteCheckRequest {
|
|
106
|
+
/** 证件号码 */
|
|
107
|
+
id_card: string;
|
|
108
|
+
/** 姓名 */
|
|
109
|
+
real_name: string;
|
|
110
|
+
}
|
|
111
|
+
/** UserWhiteCheckResponse 查看免验证用户名单是否存在返回 */
|
|
112
|
+
interface UserWhiteCheckResponse {
|
|
113
|
+
ok: boolean;
|
|
114
|
+
}
|
|
115
|
+
/** GetBankCardInfoRequest 银行卡信息查询请求 */
|
|
116
|
+
interface GetBankCardInfoRequest {
|
|
117
|
+
/** 银行卡号 */
|
|
118
|
+
card_no: string;
|
|
119
|
+
/** 银行名称 */
|
|
120
|
+
bank_name: string;
|
|
121
|
+
}
|
|
122
|
+
/** GetBankCardInfoResponse 银行卡信息查询返回 */
|
|
123
|
+
interface GetBankCardInfoResponse {
|
|
124
|
+
/** 银行代码 */
|
|
125
|
+
bank_code: string;
|
|
126
|
+
/** 银行名称 */
|
|
127
|
+
bank_name: string;
|
|
128
|
+
/** 卡类型 */
|
|
129
|
+
card_type: string;
|
|
130
|
+
/** 云账户是否支持向该银行支付 */
|
|
131
|
+
is_support: boolean;
|
|
132
|
+
}
|
|
133
|
+
export declare class Authentication extends YZHclient {
|
|
134
|
+
constructor(conf: {
|
|
135
|
+
dealer_id: string;
|
|
136
|
+
broker_id: string;
|
|
137
|
+
app_key: string;
|
|
138
|
+
des3_key: string;
|
|
139
|
+
private_key: string;
|
|
140
|
+
yzh_public_key: string;
|
|
141
|
+
sign_type: "rsa" | "sha256";
|
|
142
|
+
base_url?: string;
|
|
143
|
+
});
|
|
144
|
+
BankCardFourAuthVerify(req: BankCardFourAuthVerifyRequest, cb?: (error: null | string, rep: BankCardFourAuthVerifyResponse) => void): Promise<BankCardFourAuthVerifyResponse>;
|
|
145
|
+
BankCardFourAuthConfirm(req: BankCardFourAuthConfirmRequest, cb?: (error: null | string, rep: BankCardFourAuthConfirmResponse) => void): Promise<BankCardFourAuthConfirmResponse>;
|
|
146
|
+
BankCardFourVerify(req: BankCardFourVerifyRequest, cb?: (error: null | string, rep: BankCardFourVerifyResponse) => void): Promise<BankCardFourVerifyResponse>;
|
|
147
|
+
BankCardThreeVerify(req: BankCardThreeVerifyRequest, cb?: (error: null | string, rep: BankCardThreeVerifyResponse) => void): Promise<BankCardThreeVerifyResponse>;
|
|
148
|
+
IDCardVerify(req: IDCardVerifyRequest, cb?: (error: null | string, rep: IDCardVerifyResponse) => void): Promise<IDCardVerifyResponse>;
|
|
149
|
+
UserExemptedInfo(req: UserExemptedInfoRequest, cb?: (error: null | string, rep: UserExemptedInfoResponse) => void): Promise<UserExemptedInfoResponse>;
|
|
150
|
+
UserWhiteCheck(req: UserWhiteCheckRequest, cb?: (error: null | string, rep: UserWhiteCheckResponse) => void): Promise<UserWhiteCheckResponse>;
|
|
151
|
+
GetBankCardInfo(req: GetBankCardInfoRequest, cb?: (error: null | string, rep: GetBankCardInfoResponse) => void): Promise<GetBankCardInfoResponse>;
|
|
152
|
+
}
|
|
153
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Authentication = void 0;
|
|
4
|
+
const client_1 = require("../../common/client");
|
|
5
|
+
class Authentication extends client_1.default {
|
|
6
|
+
constructor(conf) {
|
|
7
|
+
super(conf);
|
|
8
|
+
}
|
|
9
|
+
// BankCardFourAuthVerify 银行卡四要素鉴权请求(下发短信验证码)
|
|
10
|
+
async BankCardFourAuthVerify(req, cb) {
|
|
11
|
+
return this.request("post", "/authentication/verify-request", req, { encryption: false }, cb);
|
|
12
|
+
}
|
|
13
|
+
// BankCardFourAuthConfirm 银行卡四要素确认请求(上传短信验证码)
|
|
14
|
+
async BankCardFourAuthConfirm(req, cb) {
|
|
15
|
+
return this.request("post", "/authentication/verify-confirm", req, { encryption: false }, cb);
|
|
16
|
+
}
|
|
17
|
+
// BankCardFourVerify 银行卡四要素验证
|
|
18
|
+
async BankCardFourVerify(req, cb) {
|
|
19
|
+
return this.request("post", "/authentication/verify-bankcard-four-factor", req, { encryption: false }, cb);
|
|
20
|
+
}
|
|
21
|
+
// BankCardThreeVerify 银行卡三要素验证
|
|
22
|
+
async BankCardThreeVerify(req, cb) {
|
|
23
|
+
return this.request("post", "/authentication/verify-bankcard-three-factor", req, { encryption: false }, cb);
|
|
24
|
+
}
|
|
25
|
+
// IDCardVerify 身份证实名验证
|
|
26
|
+
async IDCardVerify(req, cb) {
|
|
27
|
+
return this.request("post", "/authentication/verify-id", req, { encryption: false }, cb);
|
|
28
|
+
}
|
|
29
|
+
// UserExemptedInfo 上传免验证用户名单信息
|
|
30
|
+
async UserExemptedInfo(req, cb) {
|
|
31
|
+
return this.request("post", "/api/payment/v1/user/exempted/info", req, { encryption: false }, cb);
|
|
32
|
+
}
|
|
33
|
+
// UserWhiteCheck 查看免验证用户名单是否存在
|
|
34
|
+
async UserWhiteCheck(req, cb) {
|
|
35
|
+
return this.request("post", "/api/payment/v1/user/white/check", req, { encryption: false }, cb);
|
|
36
|
+
}
|
|
37
|
+
// GetBankCardInfo 银行卡信息查询接口
|
|
38
|
+
async GetBankCardInfo(req, cb) {
|
|
39
|
+
return this.request("get", "/api/payment/v1/card", req, { encryption: false }, cb);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Authentication = Authentication;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import YZHclient from "../../common/client";
|
|
2
|
+
/** H5GetStartUrlRequest 预启动请求 */
|
|
3
|
+
interface H5GetStartUrlRequest {
|
|
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
|
+
custom_title: number;
|
|
20
|
+
}
|
|
21
|
+
/** H5GetStartUrlResponse 预启动返回 */
|
|
22
|
+
interface H5GetStartUrlResponse {
|
|
23
|
+
/** 跳转 URL */
|
|
24
|
+
h5_url: string;
|
|
25
|
+
}
|
|
26
|
+
/** H5EcoCityAicStatusRequest 查询个体工商户状态请求 */
|
|
27
|
+
interface H5EcoCityAicStatusRequest {
|
|
28
|
+
/** 平台企业 ID */
|
|
29
|
+
dealer_id: string;
|
|
30
|
+
/** 综合服务主体 ID */
|
|
31
|
+
broker_id: string;
|
|
32
|
+
/** 平台企业端的用户 ID */
|
|
33
|
+
dealer_user_id: string;
|
|
34
|
+
/** 身份证号码 */
|
|
35
|
+
id_card: string;
|
|
36
|
+
/** 姓名 */
|
|
37
|
+
real_name: string;
|
|
38
|
+
/** 用户唯一标识 */
|
|
39
|
+
open_id: string;
|
|
40
|
+
}
|
|
41
|
+
/** H5EcoCityAicStatusResponse 查询个体工商户状态返回 */
|
|
42
|
+
interface H5EcoCityAicStatusResponse {
|
|
43
|
+
/** 用户签约状态 */
|
|
44
|
+
status: number;
|
|
45
|
+
/** 注册状态描述 */
|
|
46
|
+
status_message: string;
|
|
47
|
+
/** 注册详情状态码 */
|
|
48
|
+
status_detail: number;
|
|
49
|
+
/** 注册详情状态码描述 */
|
|
50
|
+
status_detail_message: string;
|
|
51
|
+
/** 注册发起时间 */
|
|
52
|
+
applyed_at: string;
|
|
53
|
+
/** 注册完成时间 */
|
|
54
|
+
registed_at: string;
|
|
55
|
+
/** 统一社会信用代码 */
|
|
56
|
+
uscc: string;
|
|
57
|
+
/** 身份证号码 */
|
|
58
|
+
id_card: string;
|
|
59
|
+
/** 姓名 */
|
|
60
|
+
real_name: string;
|
|
61
|
+
}
|
|
62
|
+
export declare class Bizlicxjjh5 extends YZHclient {
|
|
63
|
+
constructor(conf: {
|
|
64
|
+
dealer_id: string;
|
|
65
|
+
broker_id: string;
|
|
66
|
+
app_key: string;
|
|
67
|
+
des3_key: string;
|
|
68
|
+
private_key: string;
|
|
69
|
+
yzh_public_key: string;
|
|
70
|
+
sign_type: "rsa" | "sha256";
|
|
71
|
+
base_url?: string;
|
|
72
|
+
});
|
|
73
|
+
H5GetStartUrl(req: H5GetStartUrlRequest, cb?: (error: null | string, rep: H5GetStartUrlResponse) => void): Promise<H5GetStartUrlResponse>;
|
|
74
|
+
H5EcoCityAicStatus(req: H5EcoCityAicStatusRequest, cb?: (error: null | string, rep: H5EcoCityAicStatusResponse) => void): Promise<H5EcoCityAicStatusResponse>;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Bizlicxjjh5 = void 0;
|
|
4
|
+
const client_1 = require("../../common/client");
|
|
5
|
+
class Bizlicxjjh5 extends client_1.default {
|
|
6
|
+
constructor(conf) {
|
|
7
|
+
super(conf);
|
|
8
|
+
}
|
|
9
|
+
// H5GetStartUrl 预启动
|
|
10
|
+
async H5GetStartUrl(req, cb) {
|
|
11
|
+
return this.request("get", "/api/aic/new-economy/h5/v1/h5url", req, { encryption: false }, cb);
|
|
12
|
+
}
|
|
13
|
+
// H5EcoCityAicStatus 查询个体工商户状态
|
|
14
|
+
async H5EcoCityAicStatus(req, cb) {
|
|
15
|
+
return this.request("get", "/api/aic/new-economy/h5/v1/status", req, { encryption: false }, cb);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Bizlicxjjh5 = Bizlicxjjh5;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import YZHclient from "../../common/client";
|
|
2
|
+
/** H5PreCollectBizlicMsgRequest 工商实名信息录入请求 */
|
|
3
|
+
interface H5PreCollectBizlicMsgRequest {
|
|
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
|
+
/** H5PreCollectBizlicMsgResponse 工商实名信息录入返回 */
|
|
28
|
+
interface H5PreCollectBizlicMsgResponse {
|
|
29
|
+
/** 平台企业端的用户 ID */
|
|
30
|
+
dealer_user_id: string;
|
|
31
|
+
}
|
|
32
|
+
/** H5APIGetStartUrlRequest 预启动请求 */
|
|
33
|
+
interface H5APIGetStartUrlRequest {
|
|
34
|
+
/** 平台企业 ID */
|
|
35
|
+
dealer_id: string;
|
|
36
|
+
/** 综合服务主体 ID */
|
|
37
|
+
broker_id: string;
|
|
38
|
+
/** 平台企业端的用户 ID */
|
|
39
|
+
dealer_user_id: string;
|
|
40
|
+
/** 客户端类型 */
|
|
41
|
+
client_type: number;
|
|
42
|
+
/** 异步通知 URL */
|
|
43
|
+
notify_url: string;
|
|
44
|
+
/** H5 页面主题颜色 */
|
|
45
|
+
color: string;
|
|
46
|
+
/** 跳转 URL */
|
|
47
|
+
return_url: string;
|
|
48
|
+
/** H5 页面 Title */
|
|
49
|
+
custom_title: number;
|
|
50
|
+
}
|
|
51
|
+
/** H5APIGetStartUrlResponse 预启动返回 */
|
|
52
|
+
interface H5APIGetStartUrlResponse {
|
|
53
|
+
/** 跳转 URL */
|
|
54
|
+
h5_url: string;
|
|
55
|
+
}
|
|
56
|
+
/** H5APIEcoCityAicStatusRequest 查询个体工商户状态请求 */
|
|
57
|
+
interface H5APIEcoCityAicStatusRequest {
|
|
58
|
+
/** 平台企业 ID */
|
|
59
|
+
dealer_id: string;
|
|
60
|
+
/** 综合服务主体 ID */
|
|
61
|
+
broker_id: string;
|
|
62
|
+
/** 平台企业端的用户 ID */
|
|
63
|
+
dealer_user_id: string;
|
|
64
|
+
/** 身份证号码 */
|
|
65
|
+
id_card: string;
|
|
66
|
+
/** 姓名 */
|
|
67
|
+
real_name: string;
|
|
68
|
+
/** 用户唯一标识 */
|
|
69
|
+
open_id: string;
|
|
70
|
+
}
|
|
71
|
+
/** H5APIEcoCityAicStatusResponse 查询个体工商户状态返回 */
|
|
72
|
+
interface H5APIEcoCityAicStatusResponse {
|
|
73
|
+
/** 用户签约状态 */
|
|
74
|
+
status: number;
|
|
75
|
+
/** 注册状态描述 */
|
|
76
|
+
status_message: string;
|
|
77
|
+
/** 注册详情状态码 */
|
|
78
|
+
status_detail: number;
|
|
79
|
+
/** 注册详情状态码描述 */
|
|
80
|
+
status_detail_message: string;
|
|
81
|
+
/** 注册发起时间 */
|
|
82
|
+
applyed_at: string;
|
|
83
|
+
/** 注册完成时间 */
|
|
84
|
+
registed_at: string;
|
|
85
|
+
/** 统一社会信用代码 */
|
|
86
|
+
uscc: string;
|
|
87
|
+
/** 身份证号码 */
|
|
88
|
+
id_card: string;
|
|
89
|
+
/** 姓名 */
|
|
90
|
+
real_name: string;
|
|
91
|
+
}
|
|
92
|
+
export declare class Bizlicxjjh5api extends YZHclient {
|
|
93
|
+
constructor(conf: {
|
|
94
|
+
dealer_id: string;
|
|
95
|
+
broker_id: string;
|
|
96
|
+
app_key: string;
|
|
97
|
+
des3_key: string;
|
|
98
|
+
private_key: string;
|
|
99
|
+
yzh_public_key: string;
|
|
100
|
+
sign_type: "rsa" | "sha256";
|
|
101
|
+
base_url?: string;
|
|
102
|
+
});
|
|
103
|
+
H5PreCollectBizlicMsg(req: H5PreCollectBizlicMsgRequest, cb?: (error: null | string, rep: H5PreCollectBizlicMsgResponse) => void): Promise<H5PreCollectBizlicMsgResponse>;
|
|
104
|
+
H5APIGetStartUrl(req: H5APIGetStartUrlRequest, cb?: (error: null | string, rep: H5APIGetStartUrlResponse) => void): Promise<H5APIGetStartUrlResponse>;
|
|
105
|
+
H5APIEcoCityAicStatus(req: H5APIEcoCityAicStatusRequest, cb?: (error: null | string, rep: H5APIEcoCityAicStatusResponse) => void): Promise<H5APIEcoCityAicStatusResponse>;
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Bizlicxjjh5api = void 0;
|
|
4
|
+
const client_1 = require("../../common/client");
|
|
5
|
+
class Bizlicxjjh5api extends client_1.default {
|
|
6
|
+
constructor(conf) {
|
|
7
|
+
super(conf);
|
|
8
|
+
}
|
|
9
|
+
// H5PreCollectBizlicMsg 工商实名信息录入
|
|
10
|
+
async H5PreCollectBizlicMsg(req, cb) {
|
|
11
|
+
return this.request("post", "/api/aic/new-economy/api-h5/v1/collect", req, { encryption: false }, cb);
|
|
12
|
+
}
|
|
13
|
+
// H5APIGetStartUrl 预启动
|
|
14
|
+
async H5APIGetStartUrl(req, cb) {
|
|
15
|
+
return this.request("get", "/api/aic/new-economy/api-h5/v1/h5url", req, { encryption: false }, cb);
|
|
16
|
+
}
|
|
17
|
+
// H5APIEcoCityAicStatus 查询个体工商户状态
|
|
18
|
+
async H5APIEcoCityAicStatus(req, cb) {
|
|
19
|
+
return this.request("get", "/api/aic/new-economy/api-h5/v1/status", req, { encryption: false }, cb);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Bizlicxjjh5api = Bizlicxjjh5api;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import YZHclient from "../../common/client";
|
|
2
|
+
/** GetDailyOrderFileRequest 查询日订单文件请求 */
|
|
3
|
+
interface GetDailyOrderFileRequest {
|
|
4
|
+
/** 订单查询日期, 格式:yyyy-MM-dd */
|
|
5
|
+
order_date: string;
|
|
6
|
+
}
|
|
7
|
+
/** GetDailyOrderFileResponse 查询日订单文件返回 */
|
|
8
|
+
interface GetDailyOrderFileResponse {
|
|
9
|
+
/** 下载地址 */
|
|
10
|
+
order_download_url: string;
|
|
11
|
+
}
|
|
12
|
+
/** GetDailyBillFileV2Request 查询日流水文件请求 */
|
|
13
|
+
interface GetDailyBillFileV2Request {
|
|
14
|
+
/** 所需获取的日流水日期,格式:yyyy-MM-dd */
|
|
15
|
+
bill_date: string;
|
|
16
|
+
}
|
|
17
|
+
/** GetDailyBillFileV2Response 查询日流水文件返回 */
|
|
18
|
+
interface GetDailyBillFileV2Response {
|
|
19
|
+
/** 下载地址 */
|
|
20
|
+
bill_download_url: string;
|
|
21
|
+
}
|
|
22
|
+
/** ListDealerRechargeRecordV2Request 平台企业预付业务服务费记录请求 */
|
|
23
|
+
interface ListDealerRechargeRecordV2Request {
|
|
24
|
+
/** 开始时间,格式:yyyy-MM-dd */
|
|
25
|
+
begin_at: string;
|
|
26
|
+
/** 结束时间,格式:yyyy-MM-dd */
|
|
27
|
+
end_at: string;
|
|
28
|
+
}
|
|
29
|
+
/** ListDealerRechargeRecordV2Response 平台企业预付业务服务费记录返回 */
|
|
30
|
+
interface ListDealerRechargeRecordV2Response {
|
|
31
|
+
/** 预付业务服务费记录 */
|
|
32
|
+
data: RechargeRecordInfo[];
|
|
33
|
+
}
|
|
34
|
+
/** RechargeRecordInfo 预付业务服务费记录信息 */
|
|
35
|
+
interface RechargeRecordInfo {
|
|
36
|
+
/** 平台企业 ID */
|
|
37
|
+
dealer_id: string;
|
|
38
|
+
/** 综合服务主体 ID */
|
|
39
|
+
broker_id: string;
|
|
40
|
+
/** 预付业务服务费记录 ID */
|
|
41
|
+
recharge_id: string;
|
|
42
|
+
/** 预付业务服务费 */
|
|
43
|
+
amount: string;
|
|
44
|
+
/** 实际到账金额 */
|
|
45
|
+
actual_amount: string;
|
|
46
|
+
/** 创建时间 */
|
|
47
|
+
created_at: string;
|
|
48
|
+
/** 资金用途 */
|
|
49
|
+
recharge_channel: string;
|
|
50
|
+
/** 预付业务服务费备注 */
|
|
51
|
+
remark: string;
|
|
52
|
+
/** 平台企业付款银行账号 */
|
|
53
|
+
recharge_account_no: string;
|
|
54
|
+
}
|
|
55
|
+
/** ListDailyOrderRequest 查询日订单请求 */
|
|
56
|
+
interface ListDailyOrderRequest {
|
|
57
|
+
/** 订单查询日期, 格式:yyyy-MM-dd格式:yyyy-MM-dd */
|
|
58
|
+
order_date: string;
|
|
59
|
+
/** 偏移量 */
|
|
60
|
+
offset: number;
|
|
61
|
+
/** 长度 */
|
|
62
|
+
length: number;
|
|
63
|
+
/** 支付路径名,银行卡(默认)、支付宝、微信 */
|
|
64
|
+
channel: string;
|
|
65
|
+
/** 如果为 encryption,则对返回的 data 进行加密 */
|
|
66
|
+
data_type: string;
|
|
67
|
+
}
|
|
68
|
+
/** ListDailyOrderResponse 查询日订单返回 */
|
|
69
|
+
interface ListDailyOrderResponse {
|
|
70
|
+
/** 总数目 */
|
|
71
|
+
total_num: number;
|
|
72
|
+
/** 条目信息 */
|
|
73
|
+
list: DealerOrderInfo[];
|
|
74
|
+
}
|
|
75
|
+
/** DealerOrderInfo 平台企业支付订单信息 */
|
|
76
|
+
interface DealerOrderInfo {
|
|
77
|
+
/** 综合服务主体 ID */
|
|
78
|
+
broker_id: string;
|
|
79
|
+
/** 平台企业 ID */
|
|
80
|
+
dealer_id: string;
|
|
81
|
+
/** 平台企业订单号 */
|
|
82
|
+
order_id: string;
|
|
83
|
+
/** 订单流水号 */
|
|
84
|
+
ref: string;
|
|
85
|
+
/** 批次ID */
|
|
86
|
+
batch_id: string;
|
|
87
|
+
/** 姓名 */
|
|
88
|
+
real_name: string;
|
|
89
|
+
/** 收款账号 */
|
|
90
|
+
card_no: string;
|
|
91
|
+
/** 综合服务主体订单金额 */
|
|
92
|
+
broker_amount: string;
|
|
93
|
+
/** 综合服务主体加成服务费 */
|
|
94
|
+
broker_fee: string;
|
|
95
|
+
/** 支付路径流水号 */
|
|
96
|
+
bill: string;
|
|
97
|
+
/** 订单状态 */
|
|
98
|
+
status: string;
|
|
99
|
+
/** 订单详情 */
|
|
100
|
+
status_detail: string;
|
|
101
|
+
/** 订单详细状态码描述 */
|
|
102
|
+
status_detail_message: string;
|
|
103
|
+
/** 短周期授信账单号 */
|
|
104
|
+
statement_id: string;
|
|
105
|
+
/** 服务费账单号 */
|
|
106
|
+
fee_statement_id: string;
|
|
107
|
+
/** 余额账单号 */
|
|
108
|
+
bal_statement_id: string;
|
|
109
|
+
/** 支付路径 */
|
|
110
|
+
channel: string;
|
|
111
|
+
/** 创建时间 */
|
|
112
|
+
created_at: string;
|
|
113
|
+
/** 完成时间 */
|
|
114
|
+
finished_time: string;
|
|
115
|
+
}
|
|
116
|
+
/** ListDailyBillRequest 查询日流水数据请求 */
|
|
117
|
+
interface ListDailyBillRequest {
|
|
118
|
+
/** 流水查询日期 */
|
|
119
|
+
bill_date: string;
|
|
120
|
+
/** 偏移量 */
|
|
121
|
+
offset: number;
|
|
122
|
+
/** 长度 */
|
|
123
|
+
length: number;
|
|
124
|
+
/** 如果为 encryption,则对返回的 data 进行加密 */
|
|
125
|
+
data_type: string;
|
|
126
|
+
}
|
|
127
|
+
/** ListDailyBillResponse 查询日流水数据返回 */
|
|
128
|
+
interface ListDailyBillResponse {
|
|
129
|
+
/** 总条数 */
|
|
130
|
+
total_num: number;
|
|
131
|
+
/** 条目信息 */
|
|
132
|
+
bills: DealerBillInfo[];
|
|
133
|
+
}
|
|
134
|
+
/** DealerBillInfo 流水详情 */
|
|
135
|
+
interface DealerBillInfo {
|
|
136
|
+
/** 综合服务主体 ID */
|
|
137
|
+
broker_id: string;
|
|
138
|
+
/** 平台企业 ID */
|
|
139
|
+
dealer_id: string;
|
|
140
|
+
/** 平台企业订单号 */
|
|
141
|
+
order_id: string;
|
|
142
|
+
/** 资金流水号 */
|
|
143
|
+
ref: string;
|
|
144
|
+
/** 综合服务主体名称 */
|
|
145
|
+
broker_product_name: string;
|
|
146
|
+
/** 平台企业名称 */
|
|
147
|
+
dealer_product_name: string;
|
|
148
|
+
/** 业务订单流水号 */
|
|
149
|
+
biz_ref: string;
|
|
150
|
+
/** 账户类型 */
|
|
151
|
+
acct_type: string;
|
|
152
|
+
/** 入账金额 */
|
|
153
|
+
amount: string;
|
|
154
|
+
/** 账户余额 */
|
|
155
|
+
balance: string;
|
|
156
|
+
/** 业务分类 */
|
|
157
|
+
business_category: string;
|
|
158
|
+
/** 业务类型 */
|
|
159
|
+
business_type: string;
|
|
160
|
+
/** 收支类型 */
|
|
161
|
+
consumption_type: string;
|
|
162
|
+
/** 入账时间 */
|
|
163
|
+
created_at: string;
|
|
164
|
+
/** 备注 */
|
|
165
|
+
remark: string;
|
|
166
|
+
}
|
|
167
|
+
/** GetDailyOrderFileV2Request 查询日订单文件(支付和退款订单)请求 */
|
|
168
|
+
interface GetDailyOrderFileV2Request {
|
|
169
|
+
/** 订单查询日期, 格式:yyyy-MM-dd */
|
|
170
|
+
order_date: string;
|
|
171
|
+
}
|
|
172
|
+
/** GetDailyOrderFileV2Response 查询日订单文件(支付和退款订单)返回 */
|
|
173
|
+
interface GetDailyOrderFileV2Response {
|
|
174
|
+
/** 下载地址 */
|
|
175
|
+
url: string;
|
|
176
|
+
}
|
|
177
|
+
/** ListBalanceDailyStatementRequest 查询余额日账单数据请求 */
|
|
178
|
+
interface ListBalanceDailyStatementRequest {
|
|
179
|
+
/** 账单查询日期 格式:yyyy-MM-dd */
|
|
180
|
+
statement_date: string;
|
|
181
|
+
}
|
|
182
|
+
/** ListBalanceDailyStatementResponse 查询余额日账单数据返回 */
|
|
183
|
+
interface ListBalanceDailyStatementResponse {
|
|
184
|
+
/** 条目信息 */
|
|
185
|
+
list: StatementDetail[];
|
|
186
|
+
}
|
|
187
|
+
/** StatementDetail 余额账单信息详情 */
|
|
188
|
+
interface StatementDetail {
|
|
189
|
+
/** 账单 ID */
|
|
190
|
+
statement_id: string;
|
|
191
|
+
/** 账单日期 */
|
|
192
|
+
statement_date: string;
|
|
193
|
+
/** 综合服务主体 ID */
|
|
194
|
+
broker_id: string;
|
|
195
|
+
/** 平台企业 ID */
|
|
196
|
+
dealer_id: string;
|
|
197
|
+
/** 综合服务主体名称 */
|
|
198
|
+
broker_product_name: string;
|
|
199
|
+
/** 平台企业名称 */
|
|
200
|
+
dealer_product_name: string;
|
|
201
|
+
/** 业务类型 */
|
|
202
|
+
biz_type: string;
|
|
203
|
+
/** 账单金额 */
|
|
204
|
+
total_money: string;
|
|
205
|
+
/** 订单金额 */
|
|
206
|
+
amount: string;
|
|
207
|
+
/** 退汇金额 */
|
|
208
|
+
reex_amount: string;
|
|
209
|
+
/** 加成服务费金额 */
|
|
210
|
+
fee_amount: string;
|
|
211
|
+
/** 加成服务费抵扣金额 */
|
|
212
|
+
deduct_rebate_fee_amount: string;
|
|
213
|
+
/** 冲补金额 */
|
|
214
|
+
money_adjust: string;
|
|
215
|
+
/** 账单状态 */
|
|
216
|
+
status: string;
|
|
217
|
+
/** 开票状态 */
|
|
218
|
+
invoice_status: string;
|
|
219
|
+
/** 项目 ID */
|
|
220
|
+
project_id: string;
|
|
221
|
+
/** 项目名称 */
|
|
222
|
+
project_name: string;
|
|
223
|
+
}
|
|
224
|
+
export declare class Dataservice extends YZHclient {
|
|
225
|
+
constructor(conf: {
|
|
226
|
+
dealer_id: string;
|
|
227
|
+
broker_id: string;
|
|
228
|
+
app_key: string;
|
|
229
|
+
des3_key: string;
|
|
230
|
+
private_key: string;
|
|
231
|
+
yzh_public_key: string;
|
|
232
|
+
sign_type: "rsa" | "sha256";
|
|
233
|
+
base_url?: string;
|
|
234
|
+
});
|
|
235
|
+
ListDailyOrder(req: ListDailyOrderRequest, cb?: (error: null | string, rep: ListDailyOrderResponse) => void): Promise<ListDailyOrderResponse>;
|
|
236
|
+
GetDailyOrderFile(req: GetDailyOrderFileRequest, cb?: (error: null | string, rep: GetDailyOrderFileResponse) => void): Promise<GetDailyOrderFileResponse>;
|
|
237
|
+
GetDailyOrderFileV2(req: GetDailyOrderFileV2Request, cb?: (error: null | string, rep: GetDailyOrderFileV2Response) => void): Promise<GetDailyOrderFileV2Response>;
|
|
238
|
+
ListDailyBill(req: ListDailyBillRequest, cb?: (error: null | string, rep: ListDailyBillResponse) => void): Promise<ListDailyBillResponse>;
|
|
239
|
+
GetDailyBillFileV2(req: GetDailyBillFileV2Request, cb?: (error: null | string, rep: GetDailyBillFileV2Response) => void): Promise<GetDailyBillFileV2Response>;
|
|
240
|
+
ListDealerRechargeRecordV2(req: ListDealerRechargeRecordV2Request, cb?: (error: null | string, rep: ListDealerRechargeRecordV2Response) => void): Promise<ListDealerRechargeRecordV2Response>;
|
|
241
|
+
ListBalanceDailyStatement(req: ListBalanceDailyStatementRequest, cb?: (error: null | string, rep: ListBalanceDailyStatementResponse) => void): Promise<ListBalanceDailyStatementResponse>;
|
|
242
|
+
}
|
|
243
|
+
export {};
|