@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.
Files changed (66) hide show
  1. package/.editorconfig +8 -0
  2. package/.eslintrc.js +16 -0
  3. package/.prettierrc.js +3 -0
  4. package/README.md +23 -6
  5. package/example/apiUserSign.js +66 -12
  6. package/example/authentication.js +136 -25
  7. package/example/bizlicXjjH5.js +33 -7
  8. package/example/bizlicXjjH5Api.js +50 -10
  9. package/example/conf/config.js +2 -0
  10. package/example/dataService.js +105 -8
  11. package/example/h5UserSign.js +65 -10
  12. package/example/invoice.js +111 -14
  13. package/example/notify.js +0 -1
  14. package/example/payment.js +208 -26
  15. package/example/tax.js +31 -3
  16. package/example/uploadusersign.js +66 -0
  17. package/package.json +50 -45
  18. package/src/common/client.ts +364 -355
  19. package/src/common/exception/yzhSDKHttpException.ts +29 -26
  20. package/src/common/http/index.ts +62 -53
  21. package/src/common/utils/index.ts +16 -14
  22. package/src/index.ts +1 -1
  23. package/src/services/apiusersign/index.ts +107 -105
  24. package/src/services/authentication/index.ts +162 -196
  25. package/src/services/bizlicxjjh5/index.ts +77 -107
  26. package/src/services/bizlicxjjh5api/index.ts +108 -156
  27. package/src/services/dataservice/index.ts +246 -268
  28. package/src/services/h5usersign/index.ts +93 -105
  29. package/src/services/index.ts +11 -10
  30. package/src/services/invoice/index.ts +184 -244
  31. package/src/services/payment/index.ts +501 -435
  32. package/src/services/tax/index.ts +53 -51
  33. package/src/services/uploadusersign/index.ts +88 -0
  34. package/src/typings.d.ts +1 -1
  35. package/tdsformat.js +22 -0
  36. package/tsconfig.json +2 -1
  37. package/yzh/common/client.d.ts +3 -0
  38. package/yzh/common/client.js +9 -3
  39. package/yzh/common/http/index.d.ts +1 -0
  40. package/yzh/common/http/index.js +18 -8
  41. package/yzh/common/utils/index.d.ts +1 -0
  42. package/yzh/common/utils/index.js +1 -0
  43. package/yzh/services/apiusersign/index.d.ts +34 -7
  44. package/yzh/services/apiusersign/index.js +9 -8
  45. package/yzh/services/authentication/index.d.ts +57 -19
  46. package/yzh/services/authentication/index.js +12 -11
  47. package/yzh/services/bizlicxjjh5/index.d.ts +16 -4
  48. package/yzh/services/bizlicxjjh5/index.js +6 -5
  49. package/yzh/services/bizlicxjjh5api/index.d.ts +22 -5
  50. package/yzh/services/bizlicxjjh5api/index.js +7 -6
  51. package/yzh/services/dataservice/index.d.ts +52 -11
  52. package/yzh/services/dataservice/index.js +23 -10
  53. package/yzh/services/h5usersign/index.d.ts +28 -6
  54. package/yzh/services/h5usersign/index.js +8 -7
  55. package/yzh/services/index.d.ts +3 -2
  56. package/yzh/services/index.js +7 -5
  57. package/yzh/services/invoice/index.d.ts +51 -12
  58. package/yzh/services/invoice/index.js +11 -10
  59. package/yzh/services/payment/index.d.ts +194 -18
  60. package/yzh/services/payment/index.js +28 -13
  61. package/yzh/services/tax/index.d.ts +17 -4
  62. package/yzh/services/tax/index.js +6 -5
  63. package/yzh/services/uploadusersign/index.d.ts +78 -0
  64. package/yzh/services/uploadusersign/index.js +19 -0
  65. package/.eslintrc.json +0 -19
  66. package/prettier.config.js +0 -32
@@ -1,350 +1,328 @@
1
- import YZHclient from "../../common/client"
1
+ import YZHclient from '../../common/client';
2
2
 
3
3
  /** GetDailyOrderFileRequest 查询日订单文件请求 */
4
4
  interface GetDailyOrderFileRequest {
5
- /** 订单查询日期, 格式:yyyy-MM-dd */
6
- order_date: string
5
+ /** 订单查询日期, 格式:yyyy-MM-dd */
6
+ order_date: string;
7
7
  }
8
8
 
9
9
  /** GetDailyOrderFileResponse 查询日订单文件返回 */
10
10
  interface GetDailyOrderFileResponse {
11
- /** 下载地址 */
12
- order_download_url: string
11
+ /** 下载地址 */
12
+ order_download_url: string;
13
13
  }
14
14
 
15
15
  /** GetDailyBillFileV2Request 查询日流水文件请求 */
16
16
  interface GetDailyBillFileV2Request {
17
- /** 所需获取的日流水日期,格式:yyyy-MM-dd */
18
- bill_date: string
17
+ /** 所需获取的日流水日期,格式:yyyy-MM-dd */
18
+ bill_date: string;
19
19
  }
20
20
 
21
21
  /** GetDailyBillFileV2Response 查询日流水文件返回 */
22
22
  interface GetDailyBillFileV2Response {
23
- /** 下载地址 */
24
- bill_download_url: string
23
+ /** 下载地址 */
24
+ bill_download_url: string;
25
25
  }
26
26
 
27
27
  /** ListDealerRechargeRecordV2Request 平台企业预付业务服务费记录请求 */
28
28
  interface ListDealerRechargeRecordV2Request {
29
- /** 开始时间,格式:yyyy-MM-dd */
30
- begin_at: string
31
- /** 结束时间,格式:yyyy-MM-dd */
32
- end_at: string
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
- data: RechargeRecordInfo[]
37
+ /** 预付业务服务费记录 */
38
+ data: RechargeRecordInfo[];
39
39
  }
40
40
 
41
41
  /** RechargeRecordInfo 预付业务服务费记录信息 */
42
42
  interface RechargeRecordInfo {
43
- /** 平台企业 ID */
44
- dealer_id: string
45
- /** 综合服务主体 ID */
46
- broker_id: string
47
- /** 预付业务服务费记录 ID */
48
- recharge_id: string
49
- /** 预付业务服务费 */
50
- amount: string
51
- /** 实际到账金额 */
52
- actual_amount: string
53
- /** 创建时间 */
54
- created_at: string
55
- /** 资金用途 */
56
- recharge_channel: string
57
- /** 预付业务服务费备注 */
58
- remark: string
59
- /** 平台企业付款银行账号 */
60
- recharge_account_no: string
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
- /** 订单查询日期, 格式: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
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
- total_num: number
81
- /** 条目信息 */
82
- list: DealerOrderInfo[]
79
+ /** 总数目 */
80
+ total_num: number;
81
+ /** 条目信息 */
82
+ list: DealerOrderInfo[];
83
83
  }
84
84
 
85
85
  /** DealerOrderInfo 平台企业支付订单信息 */
86
86
  interface DealerOrderInfo {
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
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
- bill_date: string
133
- /** 偏移量 */
134
- offset: number
135
- /** 长度 */
136
- length: number
137
- /** 如果为 encryption,则对返回的 data 进行加密 */
138
- data_type: string
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
- total_num: number
145
- /** 条目信息 */
146
- list: DealerBillInfo[]
143
+ /** 总条数 */
144
+ total_num: number;
145
+ /** 条目信息 */
146
+ list: DealerBillInfo[];
147
147
  }
148
148
 
149
149
  /** DealerBillInfo 流水详情 */
150
150
  interface DealerBillInfo {
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
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
- /** 订单查询日期, 格式:yyyy-MM-dd */
186
- order_date: string
185
+ /** 订单查询日期, 格式:yyyy-MM-dd */
186
+ order_date: string;
187
187
  }
188
188
 
189
189
  /** GetDailyOrderFileV2Response 查询日订单文件(支付和退款订单)返回 */
190
190
  interface GetDailyOrderFileV2Response {
191
- /** 下载地址 */
192
- url: string
191
+ /** 下载地址 */
192
+ url: string;
193
193
  }
194
194
 
195
195
  /** ListBalanceDailyStatementRequest 查询余额日账单数据请求 */
196
196
  interface ListBalanceDailyStatementRequest {
197
- /** 账单查询日期 格式:yyyy-MM-dd */
198
- statement_date: string
197
+ /** 账单查询日期 格式:yyyy-MM-dd */
198
+ statement_date: string;
199
199
  }
200
200
 
201
201
  /** ListBalanceDailyStatementResponse 查询余额日账单数据返回 */
202
202
  interface ListBalanceDailyStatementResponse {
203
- /** 条目信息 */
204
- list: StatementDetail[]
203
+ /** 条目信息 */
204
+ list: StatementDetail[];
205
205
  }
206
206
 
207
207
  /** StatementDetail 余额账单信息详情 */
208
208
  interface StatementDetail {
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
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
- constructor(conf: {
247
- dealer_id: string
248
- broker_id: string
249
- app_key: string
250
- des3_key: string
251
- private_key: string
252
- yzh_public_key: string
253
- sign_type: "rsa" | "sha256"
254
- base_url?: string
255
- }) {
256
- super(conf)
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
- // ListDailyOrder 查询日订单数据
260
- async ListDailyOrder(
261
- req: ListDailyOrderRequest,
262
- cb?: (error: null | string, rep: ListDailyOrderResponse) => void
263
- ): Promise<ListDailyOrderResponse> {
264
- return this.request(
265
- "get",
266
- "/api/dataservice/v1/orders",
267
- req,
268
- { encryption: req?.data_type === "encryption" },
269
- cb
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
- // GetDailyOrderFile 查询日订单文件
274
- async GetDailyOrderFile(
275
- req: GetDailyOrderFileRequest,
276
- cb?: (error: null | string, rep: GetDailyOrderFileResponse) => void
277
- ): Promise<GetDailyOrderFileResponse> {
278
- return this.request(
279
- "get",
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
- // GetDailyOrderFileV2 查询日订单文件(支付和退款订单)
288
- async GetDailyOrderFileV2(
289
- req: GetDailyOrderFileV2Request,
290
- cb?: (error: null | string, rep: GetDailyOrderFileV2Response) => void
291
- ): Promise<GetDailyOrderFileV2Response> {
292
- return this.request("get", "/api/dataservice/v1/order/day/url", req, { encryption: false }, cb)
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
- // ListDailyBill 查询日流水数据
296
- async ListDailyBill(
297
- req: ListDailyBillRequest,
298
- cb?: (error: null | string, rep: ListDailyBillResponse) => void
299
- ): Promise<ListDailyBillResponse> {
300
- return this.request(
301
- "get",
302
- "/api/dataservice/v1/bills",
303
- req,
304
- { encryption: req?.data_type === "encryption" },
305
- cb
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
- // GetDailyBillFileV2 查询日流水文件
310
- async GetDailyBillFileV2(
311
- req: GetDailyBillFileV2Request,
312
- cb?: (error: null | string, rep: GetDailyBillFileV2Response) => void
313
- ): Promise<GetDailyBillFileV2Response> {
314
- return this.request(
315
- "get",
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
- // ListDealerRechargeRecordV2 查询平台企业预付业务服务费记录
324
- async ListDealerRechargeRecordV2(
325
- req: ListDealerRechargeRecordV2Request,
326
- cb?: (error: null | string, rep: ListDealerRechargeRecordV2Response) => void
327
- ): Promise<ListDealerRechargeRecordV2Response> {
328
- return this.request(
329
- "get",
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
- // ListBalanceDailyStatement 查询余额日账单数据
338
- async ListBalanceDailyStatement(
339
- req: ListBalanceDailyStatementRequest,
340
- cb?: (error: null | string, rep: ListBalanceDailyStatementResponse) => void
341
- ): Promise<ListBalanceDailyStatementResponse> {
342
- return this.request(
343
- "get",
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
  }