@yunzhanghu/sdk-nodejs 1.0.21 → 1.0.23
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 +2 -1
- package/example/calculatelabor.js +61 -2
- package/example/customerLink.js +5 -5
- package/example/payment.js +42 -27
- package/example/realName.js +149 -0
- package/package.json +1 -1
- package/src/services/calculatelabor/index.ts +227 -100
- package/src/services/dataservice/index.ts +608 -431
- package/src/services/payment/index.ts +812 -638
- package/src/services/realname/index.ts +123 -0
- package/yzh/services/calculatelabor/index.d.ts +157 -70
- package/yzh/services/calculatelabor/index.js +8 -0
- package/yzh/services/dataservice/index.d.ts +453 -318
- package/yzh/services/index.d.ts +1 -0
- package/yzh/services/index.js +4 -1
- package/yzh/services/payment/index.d.ts +587 -492
- package/yzh/services/realname/index.d.ts +123 -0
- package/yzh/services/realname/index.js +20 -0
|
@@ -2,549 +2,726 @@ 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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
+
received_broker_fee: string;
|
|
107
|
+
/** 支付路径流水号 */
|
|
108
|
+
bill: string;
|
|
109
|
+
/** 订单状态 */
|
|
110
|
+
status: string;
|
|
111
|
+
/** 订单状态码描述 */
|
|
112
|
+
status_message: string;
|
|
113
|
+
/** 订单详情 */
|
|
114
|
+
status_detail: string;
|
|
115
|
+
/** 订单详细状态码描述 */
|
|
116
|
+
status_detail_message: string;
|
|
117
|
+
/** 订单状态补充信息 */
|
|
118
|
+
supplemental_detail_message: string;
|
|
119
|
+
/** 短周期授信账单号 */
|
|
120
|
+
statement_id: string;
|
|
121
|
+
/** 服务费账单号 */
|
|
122
|
+
fee_statement_id: string;
|
|
123
|
+
/** 余额账单号 */
|
|
124
|
+
bal_statement_id: string;
|
|
125
|
+
/** 支付路径 */
|
|
126
|
+
channel: string;
|
|
127
|
+
/** 创建时间 */
|
|
128
|
+
created_at: string;
|
|
129
|
+
/** 完成时间 */
|
|
130
|
+
finished_time: string;
|
|
131
|
+
/** 预扣税费总额 */
|
|
132
|
+
tax_amount: string;
|
|
133
|
+
/** 实缴税费总额 */
|
|
134
|
+
received_tax_amount: string;
|
|
135
|
+
/** 缴税明细 */
|
|
136
|
+
tax_detail: OrderTaxDetail;
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
/** ListDailyOrderV2Request 查询日订单数据(支付和退款订单)请求 */
|
|
134
140
|
interface ListDailyOrderV2Request {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
/** 订单查询日期, yyyy-MM-dd 格式 */
|
|
142
|
+
order_date: string;
|
|
143
|
+
/** 偏移量 */
|
|
144
|
+
offset: number;
|
|
145
|
+
/** 每页返回条数 */
|
|
146
|
+
length: number;
|
|
147
|
+
/** 支付路径名,bankpay:银行卡 alipay:支付宝 wxpay:微信 */
|
|
148
|
+
channel: string;
|
|
149
|
+
/** 当且仅当参数值为 encryption 时,对返回的 data 进行加密 */
|
|
150
|
+
data_type: string;
|
|
145
151
|
}
|
|
146
152
|
|
|
147
153
|
/** ListDailyOrderV2Response 查询日订单数据(支付和退款订单)返回 */
|
|
148
154
|
interface ListDailyOrderV2Response {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
155
|
+
/** 总条数 */
|
|
156
|
+
total_num: number;
|
|
157
|
+
/** 条目明细 */
|
|
158
|
+
list: DealerOrderInfoV2[];
|
|
153
159
|
}
|
|
154
160
|
|
|
155
161
|
/** DealerOrderInfoV2 平台企业支付订单信息(支付和退款订单) */
|
|
156
162
|
interface DealerOrderInfoV2 {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
163
|
+
/** 综合服务主体 ID */
|
|
164
|
+
broker_id: string;
|
|
165
|
+
/** 平台企业 ID */
|
|
166
|
+
dealer_id: string;
|
|
167
|
+
/** 订单类型 */
|
|
168
|
+
order_type: string;
|
|
169
|
+
/** 平台企业订单号 */
|
|
170
|
+
order_id: string;
|
|
171
|
+
/** 综合服务平台流水号 */
|
|
172
|
+
ref: string;
|
|
173
|
+
/** 批次号 */
|
|
174
|
+
batch_id: string;
|
|
175
|
+
/** 姓名 */
|
|
176
|
+
real_name: string;
|
|
177
|
+
/** 收款账号 */
|
|
178
|
+
card_no: string;
|
|
179
|
+
/** 综合服务主体订单金额 */
|
|
180
|
+
broker_amount: string;
|
|
181
|
+
/** 应收综合服务主体加成服务费金额 */
|
|
182
|
+
broker_fee: string;
|
|
183
|
+
/** 实收综合服务主体加成服务费金额 */
|
|
184
|
+
received_broker_fee: string;
|
|
185
|
+
/** 支付路径流水号 */
|
|
186
|
+
bill: string;
|
|
187
|
+
/** 订单状态码 */
|
|
188
|
+
status: string;
|
|
189
|
+
/** 订单状态码描述 */
|
|
190
|
+
status_message: string;
|
|
191
|
+
/** 订单详情状态码 */
|
|
192
|
+
status_detail: string;
|
|
193
|
+
/** 订单详细状态码描述 */
|
|
194
|
+
status_detail_message: string;
|
|
195
|
+
/** 订单状态补充信息 */
|
|
196
|
+
supplemental_detail_message: string;
|
|
197
|
+
/** 短周期授信账单号 */
|
|
198
|
+
statement_id: string;
|
|
199
|
+
/** 加成服务费账单号 */
|
|
200
|
+
fee_statement_id: string;
|
|
201
|
+
/** 余额账单号 */
|
|
202
|
+
bal_statement_id: string;
|
|
203
|
+
/** 支付路径 */
|
|
204
|
+
channel: string;
|
|
205
|
+
/** 订单接收时间 */
|
|
206
|
+
created_at: string;
|
|
207
|
+
/** 订单完成时间 */
|
|
208
|
+
finished_time: string;
|
|
209
|
+
/** 退款类型 */
|
|
210
|
+
refund_type: string;
|
|
211
|
+
/** 原支付流水号 */
|
|
212
|
+
pay_ref: string;
|
|
213
|
+
/** 预扣税费总额 */
|
|
214
|
+
tax_amount: string;
|
|
215
|
+
/** 实缴税费总额 */
|
|
216
|
+
received_tax_amount: string;
|
|
217
|
+
/** 缴税明细 */
|
|
218
|
+
tax_detail: OrderTaxDetail;
|
|
207
219
|
}
|
|
208
220
|
|
|
209
221
|
/** ListDailyBillRequest 查询日流水数据请求 */
|
|
210
222
|
interface ListDailyBillRequest {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
/** 流水查询日期 */
|
|
224
|
+
bill_date: string;
|
|
225
|
+
/** 偏移量 */
|
|
226
|
+
offset: number;
|
|
227
|
+
/** 长度 */
|
|
228
|
+
length: number;
|
|
229
|
+
/** 如果为 encryption,则对返回的 data 进行加密 */
|
|
230
|
+
data_type: string;
|
|
219
231
|
}
|
|
220
232
|
|
|
221
233
|
/** ListDailyBillResponse 查询日流水数据返回 */
|
|
222
234
|
interface ListDailyBillResponse {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
235
|
+
/** 总条数 */
|
|
236
|
+
total_num: number;
|
|
237
|
+
/** 条目信息 */
|
|
238
|
+
list: DealerBillInfo[];
|
|
227
239
|
}
|
|
228
240
|
|
|
229
241
|
/** DealerBillInfo 流水详情 */
|
|
230
242
|
interface DealerBillInfo {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
243
|
+
/** 综合服务主体 ID */
|
|
244
|
+
broker_id: string;
|
|
245
|
+
/** 平台企业 ID */
|
|
246
|
+
dealer_id: string;
|
|
247
|
+
/** 平台企业订单号 */
|
|
248
|
+
order_id: string;
|
|
249
|
+
/** 资金流水号 */
|
|
250
|
+
ref: string;
|
|
251
|
+
/** 综合服务主体名称 */
|
|
252
|
+
broker_product_name: string;
|
|
253
|
+
/** 平台企业名称 */
|
|
254
|
+
dealer_product_name: string;
|
|
255
|
+
/** 业务订单流水号 */
|
|
256
|
+
biz_ref: string;
|
|
257
|
+
/** 账户类型 */
|
|
258
|
+
acct_type: string;
|
|
259
|
+
/** 入账金额 */
|
|
260
|
+
amount: string;
|
|
261
|
+
/** 账户余额 */
|
|
262
|
+
balance: string;
|
|
263
|
+
/** 业务分类 */
|
|
264
|
+
business_category: string;
|
|
265
|
+
/** 业务类型 */
|
|
266
|
+
business_type: string;
|
|
267
|
+
/** 收支类型 */
|
|
268
|
+
consumption_type: string;
|
|
269
|
+
/** 入账时间 */
|
|
270
|
+
created_at: string;
|
|
271
|
+
/** 备注 */
|
|
272
|
+
remark: string;
|
|
261
273
|
}
|
|
262
274
|
|
|
263
275
|
/** GetDailyOrderFileV2Request 查询日订单文件(支付和退款订单)请求 */
|
|
264
276
|
interface GetDailyOrderFileV2Request {
|
|
265
|
-
|
|
266
|
-
|
|
277
|
+
/** 订单查询日期, 格式:yyyy-MM-dd */
|
|
278
|
+
order_date: string;
|
|
267
279
|
}
|
|
268
280
|
|
|
269
281
|
/** GetDailyOrderFileV2Response 查询日订单文件(支付和退款订单)返回 */
|
|
270
282
|
interface GetDailyOrderFileV2Response {
|
|
271
|
-
|
|
272
|
-
|
|
283
|
+
/** 下载地址 */
|
|
284
|
+
url: string;
|
|
273
285
|
}
|
|
274
286
|
|
|
275
287
|
/** ListBalanceDailyStatementRequest 查询余额日账单数据请求 */
|
|
276
288
|
interface ListBalanceDailyStatementRequest {
|
|
277
|
-
|
|
278
|
-
|
|
289
|
+
/** 账单查询日期 格式:yyyy-MM-dd */
|
|
290
|
+
statement_date: string;
|
|
279
291
|
}
|
|
280
292
|
|
|
281
293
|
/** ListBalanceDailyStatementResponse 查询余额日账单数据返回 */
|
|
282
294
|
interface ListBalanceDailyStatementResponse {
|
|
283
|
-
|
|
284
|
-
|
|
295
|
+
/** 条目信息 */
|
|
296
|
+
list: StatementDetail[];
|
|
285
297
|
}
|
|
286
298
|
|
|
287
299
|
/** StatementDetail 余额账单信息详情 */
|
|
288
300
|
interface StatementDetail {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
301
|
+
/** 账单 ID */
|
|
302
|
+
statement_id: string;
|
|
303
|
+
/** 账单日期 */
|
|
304
|
+
statement_date: string;
|
|
305
|
+
/** 综合服务主体 ID */
|
|
306
|
+
broker_id: string;
|
|
307
|
+
/** 平台企业 ID */
|
|
308
|
+
dealer_id: string;
|
|
309
|
+
/** 综合服务主体名称 */
|
|
310
|
+
broker_product_name: string;
|
|
311
|
+
/** 平台企业名称 */
|
|
312
|
+
dealer_product_name: string;
|
|
313
|
+
/** 业务类型 */
|
|
314
|
+
biz_type: string;
|
|
315
|
+
/** 账单金额 */
|
|
316
|
+
total_money: string;
|
|
317
|
+
/** 订单金额 */
|
|
318
|
+
amount: string;
|
|
319
|
+
/** 退汇金额 */
|
|
320
|
+
reex_amount: string;
|
|
321
|
+
/** 实收综合服务主体加成服务费金额 */
|
|
322
|
+
fee_amount: string;
|
|
323
|
+
/** 实收加成服务费抵扣金额 */
|
|
324
|
+
deduct_rebate_fee_amount: string;
|
|
325
|
+
/** 冲补金额 */
|
|
326
|
+
money_adjust: string;
|
|
327
|
+
/** 账单状态 */
|
|
328
|
+
status: string;
|
|
329
|
+
/** 开票状态 */
|
|
330
|
+
invoice_status: string;
|
|
331
|
+
/** 项目 ID */
|
|
332
|
+
project_id: string;
|
|
333
|
+
/** 项目名称 */
|
|
334
|
+
project_name: string;
|
|
335
|
+
/** 实纳税费金额 */
|
|
336
|
+
received_tax_amount: string;
|
|
323
337
|
}
|
|
324
338
|
|
|
325
339
|
/** ListDailyOrderSummaryRequest 查询日订单汇总数据请求 */
|
|
326
340
|
interface ListDailyOrderSummaryRequest {
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
341
|
+
/** 综合服务主体 ID */
|
|
342
|
+
broker_id: string;
|
|
343
|
+
/** 平台企业 ID */
|
|
344
|
+
dealer_id: string;
|
|
345
|
+
/** 支付路径,银行卡、支付宝、微信 */
|
|
346
|
+
channel: string;
|
|
347
|
+
/** 订单查询开始日期,格式:yyyy-MM-dd */
|
|
348
|
+
begin_at: string;
|
|
349
|
+
/** 订单查询结束日期,格式:yyyy-MM-dd */
|
|
350
|
+
end_at: string;
|
|
351
|
+
/** 筛选类型,apply:按订单创建时间汇总 complete:按订单完成时间汇总 */
|
|
352
|
+
filter_type: string;
|
|
339
353
|
}
|
|
340
354
|
|
|
341
355
|
/** ListDailyOrderSummaryResponse 查询日订单汇总数据返回 */
|
|
342
356
|
interface ListDailyOrderSummaryResponse {
|
|
343
|
-
|
|
344
|
-
|
|
357
|
+
/** 汇总数据列表 */
|
|
358
|
+
summary_list: ListDailyOrderSummary[];
|
|
345
359
|
}
|
|
346
360
|
|
|
347
361
|
/** ListDailyOrderSummary 日订单汇总数据详情 */
|
|
348
362
|
interface ListDailyOrderSummary {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
363
|
+
/** 订单查询日期,格式:yyyy-MM-dd */
|
|
364
|
+
date: string;
|
|
365
|
+
/** 成功订单汇总 */
|
|
366
|
+
success: DailyOrderSummary;
|
|
367
|
+
/** 处理中订单汇总 */
|
|
368
|
+
processing: DailyOrderSummary;
|
|
369
|
+
/** 失败订单汇总 */
|
|
370
|
+
failed: DailyOrderSummary;
|
|
357
371
|
}
|
|
358
372
|
|
|
359
373
|
/** DailyOrderSummary 日订单汇总详情 */
|
|
360
374
|
interface DailyOrderSummary {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
375
|
+
/** 订单数量 */
|
|
376
|
+
order_num: number;
|
|
377
|
+
/** 订单金额 */
|
|
378
|
+
pay: string;
|
|
379
|
+
/** 应收综合服务主体加成服务费金额 */
|
|
380
|
+
broker_fee: string;
|
|
381
|
+
/** 应收余额账户支出加成服务费金额 */
|
|
382
|
+
broker_real_fee: string;
|
|
383
|
+
/** 应收加成服务费抵扣金额 */
|
|
384
|
+
broker_rebate_fee: string;
|
|
385
|
+
/** 应收用户加成服务费金额 */
|
|
386
|
+
user_fee: string;
|
|
387
|
+
/** 实收综合服务主体加成服务费金额 */
|
|
388
|
+
received_broker_fee: string;
|
|
389
|
+
/** 实收余额账户支出加成服务费金额 */
|
|
390
|
+
received_broker_real_fee: string;
|
|
391
|
+
/** 实收加成服务费抵扣金额 */
|
|
392
|
+
received_broker_deduct_fee: string;
|
|
393
|
+
/** 实收用户加成服务费金额 */
|
|
394
|
+
received_user_fee: string;
|
|
395
|
+
/** 预扣税费总额 */
|
|
396
|
+
tax: string;
|
|
397
|
+
/** 实缴税费总额 */
|
|
398
|
+
received_tax_amount: string;
|
|
399
|
+
/** 预扣个税 */
|
|
400
|
+
personal_tax: string;
|
|
401
|
+
/** 预扣增值税 */
|
|
402
|
+
value_added_tax: string;
|
|
403
|
+
/** 预扣附加税费 */
|
|
404
|
+
additional_tax: string;
|
|
405
|
+
/** 实缴个税 */
|
|
406
|
+
received_personal_tax: string;
|
|
407
|
+
/** 实缴增值税 */
|
|
408
|
+
received_value_added_tax: string;
|
|
409
|
+
/** 实缴附加税费 */
|
|
410
|
+
received_additional_tax: string;
|
|
411
|
+
/** 用户预扣个税 */
|
|
412
|
+
user_personal_tax: string;
|
|
413
|
+
/** 平台企业预扣个税 */
|
|
414
|
+
dealer_personal_tax: string;
|
|
415
|
+
/** 用户预扣增值税 */
|
|
416
|
+
user_value_added_tax: string;
|
|
417
|
+
/** 平台企业预扣增值税 */
|
|
418
|
+
dealer_value_added_tax: string;
|
|
419
|
+
/** 用户预扣附加税费 */
|
|
420
|
+
user_additional_tax: string;
|
|
421
|
+
/** 平台企业预扣附加税费 */
|
|
422
|
+
dealer_additional_tax: string;
|
|
423
|
+
/** 用户实缴个税 */
|
|
424
|
+
user_received_personal_tax: string;
|
|
425
|
+
/** 平台企业实缴个税 */
|
|
426
|
+
dealer_received_personal_tax: string;
|
|
427
|
+
/** 用户实缴增值税 */
|
|
428
|
+
user_received_value_added_tax: string;
|
|
429
|
+
/** 平台企业实缴增值税 */
|
|
430
|
+
dealer_received_value_added_tax: string;
|
|
431
|
+
/** 用户实缴附加税费 */
|
|
432
|
+
user_received_additional_tax: string;
|
|
433
|
+
/** 平台企业实缴附加税费 */
|
|
434
|
+
dealer_received_additional_tax: string;
|
|
381
435
|
}
|
|
382
436
|
|
|
383
437
|
/** ListMonthlyOrderSummaryRequest 查询月订单汇总数据请求 */
|
|
384
438
|
interface ListMonthlyOrderSummaryRequest {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
439
|
+
/** 综合服务主体 ID */
|
|
440
|
+
broker_id: string;
|
|
441
|
+
/** 平台企业 ID */
|
|
442
|
+
dealer_id: string;
|
|
443
|
+
/** 支付路径,银行卡、支付宝、微信 */
|
|
444
|
+
channel: string;
|
|
445
|
+
/** 汇总月份,格式:yyyy-MM */
|
|
446
|
+
month: string;
|
|
447
|
+
/** 筛选类型,apply:按订单创建时间汇总 complete:按订单完成时间汇总 */
|
|
448
|
+
filter_type: string;
|
|
395
449
|
}
|
|
396
450
|
|
|
397
451
|
/** ListMonthlyOrderSummaryResponse 查询月订单汇总数据返回 */
|
|
398
452
|
interface ListMonthlyOrderSummaryResponse {
|
|
399
|
-
|
|
400
|
-
|
|
453
|
+
/** 汇总数据列表 */
|
|
454
|
+
summary: ListMonthlyOrderSummary;
|
|
401
455
|
}
|
|
402
456
|
|
|
403
457
|
/** ListMonthlyOrderSummary 月订单汇总数据详情 */
|
|
404
458
|
interface ListMonthlyOrderSummary {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
459
|
+
/** 成功订单汇总 */
|
|
460
|
+
success: MonthlyOrderSummary;
|
|
461
|
+
/** 处理中订单汇总 */
|
|
462
|
+
processing: MonthlyOrderSummary;
|
|
463
|
+
/** 失败订单汇总 */
|
|
464
|
+
failed: MonthlyOrderSummary;
|
|
411
465
|
}
|
|
412
466
|
|
|
413
467
|
/** MonthlyOrderSummary 月订单汇总详情 */
|
|
414
468
|
interface MonthlyOrderSummary {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
469
|
+
/** 订单数量 */
|
|
470
|
+
order_num: number;
|
|
471
|
+
/** 订单金额 */
|
|
472
|
+
pay: string;
|
|
473
|
+
/** 应收综合服务主体加成服务费金额 */
|
|
474
|
+
broker_fee: string;
|
|
475
|
+
/** 应收余额账户支出加成服务费金额 */
|
|
476
|
+
broker_real_fee: string;
|
|
477
|
+
/** 应收加成服务费抵扣金额 */
|
|
478
|
+
broker_rebate_fee: string;
|
|
479
|
+
/** 应收用户加成服务费金额 */
|
|
480
|
+
user_fee: string;
|
|
481
|
+
/** 实收综合服务主体加成服务费金额 */
|
|
482
|
+
received_broker_fee: string;
|
|
483
|
+
/** 实收余额账户支出加成服务费金额 */
|
|
484
|
+
received_broker_real_fee: string;
|
|
485
|
+
/** 实收加成服务费抵扣金额 */
|
|
486
|
+
received_broker_deduct_fee: string;
|
|
487
|
+
/** 实收用户加成服务费金额 */
|
|
488
|
+
received_user_fee: string;
|
|
489
|
+
/** 预扣税费总额 */
|
|
490
|
+
tax: string;
|
|
491
|
+
/** 实缴税费总额 */
|
|
492
|
+
received_tax_amount: string;
|
|
493
|
+
/** 预扣个税 */
|
|
494
|
+
personal_tax: string;
|
|
495
|
+
/** 预扣增值税 */
|
|
496
|
+
value_added_tax: string;
|
|
497
|
+
/** 预扣附加税费 */
|
|
498
|
+
additional_tax: string;
|
|
499
|
+
/** 实缴个税 */
|
|
500
|
+
received_personal_tax: string;
|
|
501
|
+
/** 实缴增值税 */
|
|
502
|
+
received_value_added_tax: string;
|
|
503
|
+
/** 实缴附加税费 */
|
|
504
|
+
received_additional_tax: string;
|
|
505
|
+
/** 用户预扣个税 */
|
|
506
|
+
user_personal_tax: string;
|
|
507
|
+
/** 平台企业预扣个税 */
|
|
508
|
+
dealer_personal_tax: string;
|
|
509
|
+
/** 用户预扣增值税 */
|
|
510
|
+
user_value_added_tax: string;
|
|
511
|
+
/** 平台企业预扣增值税 */
|
|
512
|
+
dealer_value_added_tax: string;
|
|
513
|
+
/** 用户预扣附加税费 */
|
|
514
|
+
user_additional_tax: string;
|
|
515
|
+
/** 平台企业预扣附加税费 */
|
|
516
|
+
dealer_additional_tax: string;
|
|
517
|
+
/** 用户实缴个税 */
|
|
518
|
+
user_received_personal_tax: string;
|
|
519
|
+
/** 平台企业实缴个税 */
|
|
520
|
+
dealer_received_personal_tax: string;
|
|
521
|
+
/** 用户实缴增值税 */
|
|
522
|
+
user_received_value_added_tax: string;
|
|
523
|
+
/** 平台企业实缴增值税 */
|
|
524
|
+
dealer_received_value_added_tax: string;
|
|
525
|
+
/** 用户实缴附加税费 */
|
|
526
|
+
user_received_additional_tax: string;
|
|
527
|
+
/** 平台企业实缴附加税费 */
|
|
528
|
+
dealer_received_additional_tax: string;
|
|
435
529
|
}
|
|
436
530
|
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
req,
|
|
476
|
-
{ encryption: req?.data_type === 'encryption' },
|
|
477
|
-
cb
|
|
478
|
-
);
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
// GetDailyOrderFile 查询日订单文件
|
|
482
|
-
async GetDailyOrderFile(
|
|
483
|
-
req: GetDailyOrderFileRequest,
|
|
484
|
-
cb?: (error: null | string, rep: GetDailyOrderFileResponse) => void
|
|
485
|
-
): Promise<GetDailyOrderFileResponse> {
|
|
486
|
-
return this.request('get', '/api/dataservice/v1/order/downloadurl', req, { encryption: false }, cb);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
// GetDailyOrderFileV2 查询日订单文件(支付和退款订单)
|
|
490
|
-
async GetDailyOrderFileV2(
|
|
491
|
-
req: GetDailyOrderFileV2Request,
|
|
492
|
-
cb?: (error: null | string, rep: GetDailyOrderFileV2Response) => void
|
|
493
|
-
): Promise<GetDailyOrderFileV2Response> {
|
|
494
|
-
return this.request('get', '/api/dataservice/v1/order/day/url', req, { encryption: false }, cb);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
// ListDailyBill 查询日流水数据
|
|
498
|
-
async ListDailyBill(
|
|
499
|
-
req: ListDailyBillRequest,
|
|
500
|
-
cb?: (error: null | string, rep: ListDailyBillResponse) => void
|
|
501
|
-
): Promise<ListDailyBillResponse> {
|
|
502
|
-
return this.request(
|
|
503
|
-
'get',
|
|
504
|
-
'/api/dataservice/v1/bills',
|
|
505
|
-
req,
|
|
506
|
-
{ encryption: req?.data_type === 'encryption' },
|
|
507
|
-
cb
|
|
508
|
-
);
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
// GetDailyBillFileV2 查询日流水文件
|
|
512
|
-
async GetDailyBillFileV2(
|
|
513
|
-
req: GetDailyBillFileV2Request,
|
|
514
|
-
cb?: (error: null | string, rep: GetDailyBillFileV2Response) => void
|
|
515
|
-
): Promise<GetDailyBillFileV2Response> {
|
|
516
|
-
return this.request('get', '/api/dataservice/v2/bill/downloadurl', req, { encryption: false }, cb);
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
// ListDealerRechargeRecordV2 查询平台企业预付业务服务费记录
|
|
520
|
-
async ListDealerRechargeRecordV2(
|
|
521
|
-
req: ListDealerRechargeRecordV2Request,
|
|
522
|
-
cb?: (error: null | string, rep: ListDealerRechargeRecordV2Response) => void
|
|
523
|
-
): Promise<ListDealerRechargeRecordV2Response> {
|
|
524
|
-
return this.request('get', '/api/dataservice/v2/recharge-record', req, { encryption: false }, cb);
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
// ListBalanceDailyStatement 查询余额日账单数据
|
|
528
|
-
async ListBalanceDailyStatement(
|
|
529
|
-
req: ListBalanceDailyStatementRequest,
|
|
530
|
-
cb?: (error: null | string, rep: ListBalanceDailyStatementResponse) => void
|
|
531
|
-
): Promise<ListBalanceDailyStatementResponse> {
|
|
532
|
-
return this.request('get', '/api/dataservice/v1/statements-daily', req, { encryption: false }, cb);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
// ListDailyOrderSummary 查询日订单汇总数据
|
|
536
|
-
async ListDailyOrderSummary(
|
|
537
|
-
req: ListDailyOrderSummaryRequest,
|
|
538
|
-
cb?: (error: null | string, rep: ListDailyOrderSummaryResponse) => void
|
|
539
|
-
): Promise<ListDailyOrderSummaryResponse> {
|
|
540
|
-
return this.request('get', '/api/dataservice/v2/order/daily-summary', req, { encryption: false }, cb);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
// ListMonthlyOrderSummary 查询月订单汇总数据
|
|
544
|
-
async ListMonthlyOrderSummary(
|
|
545
|
-
req: ListMonthlyOrderSummaryRequest,
|
|
546
|
-
cb?: (error: null | string, rep: ListMonthlyOrderSummaryResponse) => void
|
|
547
|
-
): Promise<ListMonthlyOrderSummaryResponse> {
|
|
548
|
-
return this.request('get', '/api/dataservice/v2/order/monthly-summary', req, { encryption: false }, cb);
|
|
549
|
-
}
|
|
531
|
+
/** OrderTaxDetail 缴税明细 */
|
|
532
|
+
interface OrderTaxDetail {
|
|
533
|
+
/** 预扣个税 */
|
|
534
|
+
personal_tax: string;
|
|
535
|
+
/** 预扣增值税 */
|
|
536
|
+
value_added_tax: string;
|
|
537
|
+
/** 预扣附加税费 */
|
|
538
|
+
additional_tax: string;
|
|
539
|
+
/** 实缴个税 */
|
|
540
|
+
received_personal_tax: string;
|
|
541
|
+
/** 实缴增值税 */
|
|
542
|
+
received_value_added_tax: string;
|
|
543
|
+
/** 实缴附加税费 */
|
|
544
|
+
received_additional_tax: string;
|
|
545
|
+
/** 用户预扣个税 */
|
|
546
|
+
user_personal_tax: string;
|
|
547
|
+
/** 平台企业预扣个税 */
|
|
548
|
+
dealer_personal_tax: string;
|
|
549
|
+
/** 用户预扣增值税 */
|
|
550
|
+
user_value_added_tax: string;
|
|
551
|
+
/** 平台企业预扣增值税 */
|
|
552
|
+
dealer_value_added_tax: string;
|
|
553
|
+
/** 用户预扣附加税费 */
|
|
554
|
+
user_additional_tax: string;
|
|
555
|
+
/** 平台企业预扣附加税费 */
|
|
556
|
+
dealer_additional_tax: string;
|
|
557
|
+
/** 用户实缴个税 */
|
|
558
|
+
user_received_personal_tax: string;
|
|
559
|
+
/** 平台企业实缴个税 */
|
|
560
|
+
dealer_received_personal_tax: string;
|
|
561
|
+
/** 用户实缴增值税 */
|
|
562
|
+
user_received_value_added_tax: string;
|
|
563
|
+
/** 平台企业实缴增值税 */
|
|
564
|
+
dealer_received_value_added_tax: string;
|
|
565
|
+
/** 用户实缴附加税费 */
|
|
566
|
+
user_received_additional_tax: string;
|
|
567
|
+
/** 平台企业实缴附加税费 */
|
|
568
|
+
dealer_received_additional_tax: string;
|
|
550
569
|
}
|
|
570
|
+
|
|
571
|
+
export class DataServiceClient extends YZHclient {
|
|
572
|
+
// eslint-disable-next-line no-useless-constructor
|
|
573
|
+
constructor(conf: {
|
|
574
|
+
dealer_id: string;
|
|
575
|
+
broker_id: string;
|
|
576
|
+
app_key: string;
|
|
577
|
+
des3_key: string;
|
|
578
|
+
private_key: string;
|
|
579
|
+
yzh_public_key: string;
|
|
580
|
+
sign_type: 'rsa' | 'sha256';
|
|
581
|
+
base_url?: string;
|
|
582
|
+
timeout?: number;
|
|
583
|
+
}) {
|
|
584
|
+
super(conf);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// ListDailyOrder 查询日订单数据
|
|
588
|
+
async ListDailyOrder(
|
|
589
|
+
req: ListDailyOrderRequest,
|
|
590
|
+
cb?: (error: null | string,rep: ListDailyOrderResponse)=>void
|
|
591
|
+
): Promise<ListDailyOrderResponse> {
|
|
592
|
+
return this.request(
|
|
593
|
+
'get',
|
|
594
|
+
'/api/dataservice/v1/orders',
|
|
595
|
+
req,
|
|
596
|
+
{encryption: req?.data_type === 'encryption' },
|
|
597
|
+
cb
|
|
598
|
+
);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// ListDailyOrderV2 查询日订单数据(支付和退款订单)
|
|
602
|
+
async ListDailyOrderV2(
|
|
603
|
+
req: ListDailyOrderV2Request,
|
|
604
|
+
cb?: (error: null | string,rep: ListDailyOrderV2Response)=>void
|
|
605
|
+
): Promise<ListDailyOrderV2Response> {
|
|
606
|
+
return this.request(
|
|
607
|
+
'get',
|
|
608
|
+
'/api/dataservice/v2/orders',
|
|
609
|
+
req,
|
|
610
|
+
{encryption: req?.data_type === 'encryption' },
|
|
611
|
+
cb
|
|
612
|
+
);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// GetDailyOrderFile 查询日订单文件
|
|
616
|
+
async GetDailyOrderFile(
|
|
617
|
+
req: GetDailyOrderFileRequest,
|
|
618
|
+
cb?: (error: null | string,rep: GetDailyOrderFileResponse)=>void
|
|
619
|
+
): Promise<GetDailyOrderFileResponse> {
|
|
620
|
+
return this.request(
|
|
621
|
+
'get',
|
|
622
|
+
'/api/dataservice/v1/order/downloadurl',
|
|
623
|
+
req,
|
|
624
|
+
{encryption: false },
|
|
625
|
+
cb
|
|
626
|
+
);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
// GetDailyOrderFileV2 查询日订单文件(支付和退款订单)
|
|
630
|
+
async GetDailyOrderFileV2(
|
|
631
|
+
req: GetDailyOrderFileV2Request,
|
|
632
|
+
cb?: (error: null | string,rep: GetDailyOrderFileV2Response)=>void
|
|
633
|
+
): Promise<GetDailyOrderFileV2Response> {
|
|
634
|
+
return this.request(
|
|
635
|
+
'get',
|
|
636
|
+
'/api/dataservice/v1/order/day/url',
|
|
637
|
+
req,
|
|
638
|
+
{encryption: false },
|
|
639
|
+
cb
|
|
640
|
+
);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// ListDailyBill 查询日流水数据
|
|
644
|
+
async ListDailyBill(
|
|
645
|
+
req: ListDailyBillRequest,
|
|
646
|
+
cb?: (error: null | string,rep: ListDailyBillResponse)=>void
|
|
647
|
+
): Promise<ListDailyBillResponse> {
|
|
648
|
+
return this.request(
|
|
649
|
+
'get',
|
|
650
|
+
'/api/dataservice/v1/bills',
|
|
651
|
+
req,
|
|
652
|
+
{encryption: req?.data_type === 'encryption' },
|
|
653
|
+
cb
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// GetDailyBillFileV2 查询日流水文件
|
|
658
|
+
async GetDailyBillFileV2(
|
|
659
|
+
req: GetDailyBillFileV2Request,
|
|
660
|
+
cb?: (error: null | string,rep: GetDailyBillFileV2Response)=>void
|
|
661
|
+
): Promise<GetDailyBillFileV2Response> {
|
|
662
|
+
return this.request(
|
|
663
|
+
'get',
|
|
664
|
+
'/api/dataservice/v2/bill/downloadurl',
|
|
665
|
+
req,
|
|
666
|
+
{encryption: false },
|
|
667
|
+
cb
|
|
668
|
+
);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// ListDealerRechargeRecordV2 查询平台企业预付业务服务费记录
|
|
672
|
+
async ListDealerRechargeRecordV2(
|
|
673
|
+
req: ListDealerRechargeRecordV2Request,
|
|
674
|
+
cb?: (error: null | string,rep: ListDealerRechargeRecordV2Response)=>void
|
|
675
|
+
): Promise<ListDealerRechargeRecordV2Response> {
|
|
676
|
+
return this.request(
|
|
677
|
+
'get',
|
|
678
|
+
'/api/dataservice/v2/recharge-record',
|
|
679
|
+
req,
|
|
680
|
+
{encryption: false },
|
|
681
|
+
cb
|
|
682
|
+
);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
// ListBalanceDailyStatement 查询余额日账单数据
|
|
686
|
+
async ListBalanceDailyStatement(
|
|
687
|
+
req: ListBalanceDailyStatementRequest,
|
|
688
|
+
cb?: (error: null | string,rep: ListBalanceDailyStatementResponse)=>void
|
|
689
|
+
): Promise<ListBalanceDailyStatementResponse> {
|
|
690
|
+
return this.request(
|
|
691
|
+
'get',
|
|
692
|
+
'/api/dataservice/v1/statements-daily',
|
|
693
|
+
req,
|
|
694
|
+
{encryption: false },
|
|
695
|
+
cb
|
|
696
|
+
);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
// ListDailyOrderSummary 查询日订单汇总数据
|
|
700
|
+
async ListDailyOrderSummary(
|
|
701
|
+
req: ListDailyOrderSummaryRequest,
|
|
702
|
+
cb?: (error: null | string,rep: ListDailyOrderSummaryResponse)=>void
|
|
703
|
+
): Promise<ListDailyOrderSummaryResponse> {
|
|
704
|
+
return this.request(
|
|
705
|
+
'get',
|
|
706
|
+
'/api/dataservice/v2/order/daily-summary',
|
|
707
|
+
req,
|
|
708
|
+
{encryption: false },
|
|
709
|
+
cb
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// ListMonthlyOrderSummary 查询月订单汇总数据
|
|
714
|
+
async ListMonthlyOrderSummary(
|
|
715
|
+
req: ListMonthlyOrderSummaryRequest,
|
|
716
|
+
cb?: (error: null | string,rep: ListMonthlyOrderSummaryResponse)=>void
|
|
717
|
+
): Promise<ListMonthlyOrderSummaryResponse> {
|
|
718
|
+
return this.request(
|
|
719
|
+
'get',
|
|
720
|
+
'/api/dataservice/v2/order/monthly-summary',
|
|
721
|
+
req,
|
|
722
|
+
{encryption: false },
|
|
723
|
+
cb
|
|
724
|
+
);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
}
|