@yunzhanghu/sdk-nodejs 1.0.2 → 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.
- package/.editorconfig +8 -0
- package/.eslintrc.js +16 -0
- package/.prettierrc.js +3 -0
- package/README.md +23 -6
- package/example/apiUserSign.js +66 -12
- package/example/authentication.js +136 -25
- package/example/bizlicXjjH5.js +33 -7
- package/example/bizlicXjjH5Api.js +50 -10
- package/example/conf/config.js +2 -0
- package/example/dataService.js +105 -8
- package/example/h5UserSign.js +65 -10
- package/example/invoice.js +111 -14
- package/example/notify.js +0 -1
- package/example/payment.js +208 -26
- package/example/tax.js +31 -3
- package/example/uploadusersign.js +66 -0
- package/package.json +50 -45
- package/src/common/client.ts +364 -355
- package/src/common/exception/yzhSDKHttpException.ts +29 -26
- package/src/common/http/index.ts +62 -53
- package/src/common/utils/index.ts +16 -14
- package/src/index.ts +1 -1
- package/src/services/apiusersign/index.ts +107 -105
- package/src/services/authentication/index.ts +162 -196
- package/src/services/bizlicxjjh5/index.ts +77 -107
- package/src/services/bizlicxjjh5api/index.ts +108 -156
- package/src/services/dataservice/index.ts +246 -268
- package/src/services/h5usersign/index.ts +93 -105
- package/src/services/index.ts +11 -10
- package/src/services/invoice/index.ts +184 -244
- package/src/services/payment/index.ts +501 -435
- package/src/services/tax/index.ts +53 -51
- package/src/services/uploadusersign/index.ts +88 -0
- package/src/typings.d.ts +1 -1
- package/tdsformat.js +22 -0
- package/tsconfig.json +2 -1
- package/yzh/common/client.d.ts +3 -0
- package/yzh/common/client.js +9 -3
- package/yzh/common/http/index.d.ts +1 -0
- package/yzh/common/http/index.js +18 -8
- package/yzh/common/utils/index.d.ts +1 -0
- package/yzh/common/utils/index.js +1 -0
- package/yzh/services/apiusersign/index.d.ts +34 -7
- package/yzh/services/apiusersign/index.js +9 -8
- package/yzh/services/authentication/index.d.ts +57 -19
- package/yzh/services/authentication/index.js +12 -11
- package/yzh/services/bizlicxjjh5/index.d.ts +16 -4
- package/yzh/services/bizlicxjjh5/index.js +6 -5
- package/yzh/services/bizlicxjjh5api/index.d.ts +22 -5
- package/yzh/services/bizlicxjjh5api/index.js +7 -6
- package/yzh/services/dataservice/index.d.ts +52 -11
- package/yzh/services/dataservice/index.js +23 -10
- package/yzh/services/h5usersign/index.d.ts +28 -6
- package/yzh/services/h5usersign/index.js +8 -7
- package/yzh/services/index.d.ts +3 -2
- package/yzh/services/index.js +7 -5
- package/yzh/services/invoice/index.d.ts +51 -12
- package/yzh/services/invoice/index.js +11 -10
- package/yzh/services/payment/index.d.ts +194 -18
- package/yzh/services/payment/index.js +28 -13
- package/yzh/services/tax/index.d.ts +17 -4
- package/yzh/services/tax/index.js +6 -5
- package/yzh/services/uploadusersign/index.d.ts +78 -0
- package/yzh/services/uploadusersign/index.js +19 -0
- package/.eslintrc.json +0 -19
- package/prettier.config.js +0 -32
|
@@ -1,350 +1,328 @@
|
|
|
1
|
-
import YZHclient from
|
|
1
|
+
import YZHclient from '../../common/client';
|
|
2
2
|
|
|
3
3
|
/** GetDailyOrderFileRequest 查询日订单文件请求 */
|
|
4
4
|
interface GetDailyOrderFileRequest {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
/** 订单查询日期, 格式:yyyy-MM-dd */
|
|
6
|
+
order_date: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
/** GetDailyOrderFileResponse 查询日订单文件返回 */
|
|
10
10
|
interface GetDailyOrderFileResponse {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
/** 下载地址 */
|
|
12
|
+
order_download_url: string;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/** GetDailyBillFileV2Request 查询日流水文件请求 */
|
|
16
16
|
interface GetDailyBillFileV2Request {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/** 所需获取的日流水日期,格式:yyyy-MM-dd */
|
|
18
|
+
bill_date: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/** GetDailyBillFileV2Response 查询日流水文件返回 */
|
|
22
22
|
interface GetDailyBillFileV2Response {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/** 下载地址 */
|
|
24
|
+
bill_download_url: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/** ListDealerRechargeRecordV2Request 平台企业预付业务服务费记录请求 */
|
|
28
28
|
interface ListDealerRechargeRecordV2Request {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
/** 开始时间,格式:yyyy-MM-dd */
|
|
30
|
+
begin_at: string;
|
|
31
|
+
/** 结束时间,格式:yyyy-MM-dd */
|
|
32
|
+
end_at: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/** ListDealerRechargeRecordV2Response 平台企业预付业务服务费记录返回 */
|
|
36
36
|
interface ListDealerRechargeRecordV2Response {
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
/** 预付业务服务费记录 */
|
|
38
|
+
data: RechargeRecordInfo[];
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/** RechargeRecordInfo 预付业务服务费记录信息 */
|
|
42
42
|
interface RechargeRecordInfo {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
43
|
+
/** 平台企业 ID */
|
|
44
|
+
dealer_id: string;
|
|
45
|
+
/** 综合服务主体 ID */
|
|
46
|
+
broker_id: string;
|
|
47
|
+
/** 预付业务服务费记录 ID */
|
|
48
|
+
recharge_id: string;
|
|
49
|
+
/** 预付业务服务费 */
|
|
50
|
+
amount: number;
|
|
51
|
+
/** 实际到账金额 */
|
|
52
|
+
actual_amount: number;
|
|
53
|
+
/** 创建时间 */
|
|
54
|
+
created_at: string;
|
|
55
|
+
/** 资金用途 */
|
|
56
|
+
recharge_channel: string;
|
|
57
|
+
/** 预付业务服务费备注 */
|
|
58
|
+
remark: string;
|
|
59
|
+
/** 平台企业付款银行账号 */
|
|
60
|
+
recharge_account_no: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/** ListDailyOrderRequest 查询日订单数据请求 */
|
|
64
64
|
interface ListDailyOrderRequest {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
65
|
+
/** 订单查询日期, 格式:yyyy-MM-dd格式:yyyy-MM-dd */
|
|
66
|
+
order_date: string;
|
|
67
|
+
/** 偏移量 */
|
|
68
|
+
offset: number;
|
|
69
|
+
/** 长度 */
|
|
70
|
+
length: number;
|
|
71
|
+
/** 支付路径名,银行卡(默认)、支付宝、微信 */
|
|
72
|
+
channel: string;
|
|
73
|
+
/** 如果为 encryption,则对返回的 data 进行加密 */
|
|
74
|
+
data_type: string;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/** ListDailyOrderResponse 查询日订单数据返回 */
|
|
78
78
|
interface ListDailyOrderResponse {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
/** 总数目 */
|
|
80
|
+
total_num: number;
|
|
81
|
+
/** 条目信息 */
|
|
82
|
+
list: DealerOrderInfo[];
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/** DealerOrderInfo 平台企业支付订单信息 */
|
|
86
86
|
interface DealerOrderInfo {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
87
|
+
/** 综合服务主体 ID */
|
|
88
|
+
broker_id: string;
|
|
89
|
+
/** 平台企业 ID */
|
|
90
|
+
dealer_id: string;
|
|
91
|
+
/** 平台企业订单号 */
|
|
92
|
+
order_id: string;
|
|
93
|
+
/** 订单流水号 */
|
|
94
|
+
ref: string;
|
|
95
|
+
/** 批次ID */
|
|
96
|
+
batch_id: string;
|
|
97
|
+
/** 姓名 */
|
|
98
|
+
real_name: string;
|
|
99
|
+
/** 收款账号 */
|
|
100
|
+
card_no: string;
|
|
101
|
+
/** 综合服务主体订单金额 */
|
|
102
|
+
broker_amount: string;
|
|
103
|
+
/** 综合服务主体加成服务费 */
|
|
104
|
+
broker_fee: string;
|
|
105
|
+
/** 支付路径流水号 */
|
|
106
|
+
bill: string;
|
|
107
|
+
/** 订单状态 */
|
|
108
|
+
status: string;
|
|
109
|
+
/** 订单状态码描述 */
|
|
110
|
+
status_message: string;
|
|
111
|
+
/** 订单详情 */
|
|
112
|
+
status_detail: string;
|
|
113
|
+
/** 订单详细状态码描述 */
|
|
114
|
+
status_detail_message: string;
|
|
115
|
+
/** 短周期授信账单号 */
|
|
116
|
+
statement_id: string;
|
|
117
|
+
/** 服务费账单号 */
|
|
118
|
+
fee_statement_id: string;
|
|
119
|
+
/** 余额账单号 */
|
|
120
|
+
bal_statement_id: string;
|
|
121
|
+
/** 支付路径 */
|
|
122
|
+
channel: string;
|
|
123
|
+
/** 创建时间 */
|
|
124
|
+
created_at: string;
|
|
125
|
+
/** 完成时间 */
|
|
126
|
+
finished_time: string;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/** ListDailyBillRequest 查询日流水数据请求 */
|
|
130
130
|
interface ListDailyBillRequest {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
/** 流水查询日期 */
|
|
132
|
+
bill_date: string;
|
|
133
|
+
/** 偏移量 */
|
|
134
|
+
offset: number;
|
|
135
|
+
/** 长度 */
|
|
136
|
+
length: number;
|
|
137
|
+
/** 如果为 encryption,则对返回的 data 进行加密 */
|
|
138
|
+
data_type: string;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
/** ListDailyBillResponse 查询日流水数据返回 */
|
|
142
142
|
interface ListDailyBillResponse {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
143
|
+
/** 总条数 */
|
|
144
|
+
total_num: number;
|
|
145
|
+
/** 条目信息 */
|
|
146
|
+
list: DealerBillInfo[];
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/** DealerBillInfo 流水详情 */
|
|
150
150
|
interface DealerBillInfo {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
151
|
+
/** 综合服务主体 ID */
|
|
152
|
+
broker_id: string;
|
|
153
|
+
/** 平台企业 ID */
|
|
154
|
+
dealer_id: string;
|
|
155
|
+
/** 平台企业订单号 */
|
|
156
|
+
order_id: string;
|
|
157
|
+
/** 资金流水号 */
|
|
158
|
+
ref: string;
|
|
159
|
+
/** 综合服务主体名称 */
|
|
160
|
+
broker_product_name: string;
|
|
161
|
+
/** 平台企业名称 */
|
|
162
|
+
dealer_product_name: string;
|
|
163
|
+
/** 业务订单流水号 */
|
|
164
|
+
biz_ref: string;
|
|
165
|
+
/** 账户类型 */
|
|
166
|
+
acct_type: string;
|
|
167
|
+
/** 入账金额 */
|
|
168
|
+
amount: string;
|
|
169
|
+
/** 账户余额 */
|
|
170
|
+
balance: string;
|
|
171
|
+
/** 业务分类 */
|
|
172
|
+
business_category: string;
|
|
173
|
+
/** 业务类型 */
|
|
174
|
+
business_type: string;
|
|
175
|
+
/** 收支类型 */
|
|
176
|
+
consumption_type: string;
|
|
177
|
+
/** 入账时间 */
|
|
178
|
+
created_at: string;
|
|
179
|
+
/** 备注 */
|
|
180
|
+
remark: string;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
/** GetDailyOrderFileV2Request 查询日订单文件(支付和退款订单)请求 */
|
|
184
184
|
interface GetDailyOrderFileV2Request {
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
/** 订单查询日期, 格式:yyyy-MM-dd */
|
|
186
|
+
order_date: string;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
/** GetDailyOrderFileV2Response 查询日订单文件(支付和退款订单)返回 */
|
|
190
190
|
interface GetDailyOrderFileV2Response {
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
/** 下载地址 */
|
|
192
|
+
url: string;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/** ListBalanceDailyStatementRequest 查询余额日账单数据请求 */
|
|
196
196
|
interface ListBalanceDailyStatementRequest {
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
/** 账单查询日期 格式:yyyy-MM-dd */
|
|
198
|
+
statement_date: string;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
/** ListBalanceDailyStatementResponse 查询余额日账单数据返回 */
|
|
202
202
|
interface ListBalanceDailyStatementResponse {
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
/** 条目信息 */
|
|
204
|
+
list: StatementDetail[];
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/** StatementDetail 余额账单信息详情 */
|
|
208
208
|
interface StatementDetail {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
209
|
+
/** 账单 ID */
|
|
210
|
+
statement_id: string;
|
|
211
|
+
/** 账单日期 */
|
|
212
|
+
statement_date: string;
|
|
213
|
+
/** 综合服务主体 ID */
|
|
214
|
+
broker_id: string;
|
|
215
|
+
/** 平台企业 ID */
|
|
216
|
+
dealer_id: string;
|
|
217
|
+
/** 综合服务主体名称 */
|
|
218
|
+
broker_product_name: string;
|
|
219
|
+
/** 平台企业名称 */
|
|
220
|
+
dealer_product_name: string;
|
|
221
|
+
/** 业务类型 */
|
|
222
|
+
biz_type: string;
|
|
223
|
+
/** 账单金额 */
|
|
224
|
+
total_money: string;
|
|
225
|
+
/** 订单金额 */
|
|
226
|
+
amount: string;
|
|
227
|
+
/** 退汇金额 */
|
|
228
|
+
reex_amount: string;
|
|
229
|
+
/** 加成服务费金额 */
|
|
230
|
+
fee_amount: string;
|
|
231
|
+
/** 加成服务费抵扣金额 */
|
|
232
|
+
deduct_rebate_fee_amount: string;
|
|
233
|
+
/** 冲补金额 */
|
|
234
|
+
money_adjust: string;
|
|
235
|
+
/** 账单状态 */
|
|
236
|
+
status: string;
|
|
237
|
+
/** 开票状态 */
|
|
238
|
+
invoice_status: string;
|
|
239
|
+
/** 项目 ID */
|
|
240
|
+
project_id: string;
|
|
241
|
+
/** 项目名称 */
|
|
242
|
+
project_name: string;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
export class DataServiceClient extends YZHclient {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
246
|
+
// eslint-disable-next-line no-useless-constructor
|
|
247
|
+
constructor(conf: {
|
|
248
|
+
dealer_id: string;
|
|
249
|
+
broker_id: string;
|
|
250
|
+
app_key: string;
|
|
251
|
+
des3_key: string;
|
|
252
|
+
private_key: string;
|
|
253
|
+
yzh_public_key: string;
|
|
254
|
+
sign_type: 'rsa' | 'sha256';
|
|
255
|
+
base_url?: string;
|
|
256
|
+
timeout?: number;
|
|
257
|
+
}) {
|
|
258
|
+
super(conf);
|
|
259
|
+
}
|
|
258
260
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
261
|
+
// ListDailyOrder 查询日订单数据
|
|
262
|
+
async ListDailyOrder(
|
|
263
|
+
req: ListDailyOrderRequest,
|
|
264
|
+
cb?: (error: null | string, rep: ListDailyOrderResponse) => void
|
|
265
|
+
): Promise<ListDailyOrderResponse> {
|
|
266
|
+
return this.request(
|
|
267
|
+
'get',
|
|
268
|
+
'/api/dataservice/v1/orders',
|
|
269
|
+
req,
|
|
270
|
+
{ encryption: req?.data_type === 'encryption' },
|
|
271
|
+
cb
|
|
272
|
+
);
|
|
273
|
+
}
|
|
272
274
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
"/api/dataservice/v1/order/downloadurl",
|
|
281
|
-
req,
|
|
282
|
-
{ encryption: false },
|
|
283
|
-
cb
|
|
284
|
-
)
|
|
285
|
-
}
|
|
275
|
+
// GetDailyOrderFile 查询日订单文件
|
|
276
|
+
async GetDailyOrderFile(
|
|
277
|
+
req: GetDailyOrderFileRequest,
|
|
278
|
+
cb?: (error: null | string, rep: GetDailyOrderFileResponse) => void
|
|
279
|
+
): Promise<GetDailyOrderFileResponse> {
|
|
280
|
+
return this.request('get', '/api/dataservice/v1/order/downloadurl', req, { encryption: false }, cb);
|
|
281
|
+
}
|
|
286
282
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
283
|
+
// GetDailyOrderFileV2 查询日订单文件(支付和退款订单)
|
|
284
|
+
async GetDailyOrderFileV2(
|
|
285
|
+
req: GetDailyOrderFileV2Request,
|
|
286
|
+
cb?: (error: null | string, rep: GetDailyOrderFileV2Response) => void
|
|
287
|
+
): Promise<GetDailyOrderFileV2Response> {
|
|
288
|
+
return this.request('get', '/api/dataservice/v1/order/day/url', req, { encryption: false }, cb);
|
|
289
|
+
}
|
|
294
290
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
291
|
+
// ListDailyBill 查询日流水数据
|
|
292
|
+
async ListDailyBill(
|
|
293
|
+
req: ListDailyBillRequest,
|
|
294
|
+
cb?: (error: null | string, rep: ListDailyBillResponse) => void
|
|
295
|
+
): Promise<ListDailyBillResponse> {
|
|
296
|
+
return this.request(
|
|
297
|
+
'get',
|
|
298
|
+
'/api/dataservice/v1/bills',
|
|
299
|
+
req,
|
|
300
|
+
{ encryption: req?.data_type === 'encryption' },
|
|
301
|
+
cb
|
|
302
|
+
);
|
|
303
|
+
}
|
|
308
304
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"/api/dataservice/v2/bill/downloadurl",
|
|
317
|
-
req,
|
|
318
|
-
{ encryption: false },
|
|
319
|
-
cb
|
|
320
|
-
)
|
|
321
|
-
}
|
|
305
|
+
// GetDailyBillFileV2 查询日流水文件
|
|
306
|
+
async GetDailyBillFileV2(
|
|
307
|
+
req: GetDailyBillFileV2Request,
|
|
308
|
+
cb?: (error: null | string, rep: GetDailyBillFileV2Response) => void
|
|
309
|
+
): Promise<GetDailyBillFileV2Response> {
|
|
310
|
+
return this.request('get', '/api/dataservice/v2/bill/downloadurl', req, { encryption: false }, cb);
|
|
311
|
+
}
|
|
322
312
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
"/api/dataservice/v2/recharge-record",
|
|
331
|
-
req,
|
|
332
|
-
{ encryption: false },
|
|
333
|
-
cb
|
|
334
|
-
)
|
|
335
|
-
}
|
|
313
|
+
// ListDealerRechargeRecordV2 查询平台企业预付业务服务费记录
|
|
314
|
+
async ListDealerRechargeRecordV2(
|
|
315
|
+
req: ListDealerRechargeRecordV2Request,
|
|
316
|
+
cb?: (error: null | string, rep: ListDealerRechargeRecordV2Response) => void
|
|
317
|
+
): Promise<ListDealerRechargeRecordV2Response> {
|
|
318
|
+
return this.request('get', '/api/dataservice/v2/recharge-record', req, { encryption: false }, cb);
|
|
319
|
+
}
|
|
336
320
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
"/api/dataservice/v1/statements-daily",
|
|
345
|
-
req,
|
|
346
|
-
{ encryption: false },
|
|
347
|
-
cb
|
|
348
|
-
)
|
|
349
|
-
}
|
|
321
|
+
// ListBalanceDailyStatement 查询余额日账单数据
|
|
322
|
+
async ListBalanceDailyStatement(
|
|
323
|
+
req: ListBalanceDailyStatementRequest,
|
|
324
|
+
cb?: (error: null | string, rep: ListBalanceDailyStatementResponse) => void
|
|
325
|
+
): Promise<ListBalanceDailyStatementResponse> {
|
|
326
|
+
return this.request('get', '/api/dataservice/v1/statements-daily', req, { encryption: false }, cb);
|
|
327
|
+
}
|
|
350
328
|
}
|