@yunzhanghu/sdk-nodejs 0.0.1-beta.1 → 0.0.1-beta.3
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/NPMREADME.md +5 -0
- package/package.json +2 -1
- package/src/services/apiusersign/index.ts +3 -4
- package/src/services/authentication/index.ts +28 -16
- package/src/services/bizlicxjjh5/index.ts +3 -4
- package/src/services/bizlicxjjh5api/index.ts +24 -7
- package/src/services/dataservice/index.ts +45 -10
- package/src/services/h5usersign/index.ts +3 -4
- package/src/services/invoice/index.ts +25 -9
- package/src/services/payment/index.ts +11 -10
- package/src/services/tax/index.ts +3 -4
- package/yzh/services/dataservice/index.d.ts +5 -3
- package/yzh/services/dataservice/index.js +2 -2
- package/yzh/services/h5usersign/index.d.ts +4 -2
- package/yzh/services/invoice/index.d.ts +4 -2
- package/yzh/services/payment/index.js +1 -1
package/NPMREADME.md
ADDED
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** ApiUseSignContractRequest 获取协议预览 URL 请求 */
|
|
4
4
|
interface ApiUseSignContractRequest {
|
|
@@ -89,7 +89,7 @@ export class Apiusersign extends YZHclient {
|
|
|
89
89
|
}) {
|
|
90
90
|
super(conf)
|
|
91
91
|
}
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
// ApiUseSignContract 获取协议预览 URL
|
|
94
94
|
async ApiUseSignContract(
|
|
95
95
|
req: ApiUseSignContractRequest,
|
|
@@ -121,5 +121,4 @@ export class Apiusersign extends YZHclient {
|
|
|
121
121
|
): Promise<ApiUserSignReleaseResponse> {
|
|
122
122
|
return this.request("post", "/api/sign/v1/user/release", req, { encryption: false }, cb)
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
}
|
|
124
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** BankCardFourAuthVerifyRequest 银行卡四要素鉴权请求(下发短信验证码)请求 */
|
|
4
4
|
interface BankCardFourAuthVerifyRequest {
|
|
@@ -35,8 +35,7 @@ interface BankCardFourAuthConfirmRequest {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/** BankCardFourAuthConfirmResponse 银行卡四要素确认请求(上传短信验证码)返回 */
|
|
38
|
-
interface BankCardFourAuthConfirmResponse {
|
|
39
|
-
}
|
|
38
|
+
interface BankCardFourAuthConfirmResponse {}
|
|
40
39
|
|
|
41
40
|
/** BankCardFourVerifyRequest 银行卡四要素验证请求 */
|
|
42
41
|
interface BankCardFourVerifyRequest {
|
|
@@ -51,8 +50,7 @@ interface BankCardFourVerifyRequest {
|
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
/** BankCardFourVerifyResponse 银行卡四要素验证返回 */
|
|
54
|
-
interface BankCardFourVerifyResponse {
|
|
55
|
-
}
|
|
53
|
+
interface BankCardFourVerifyResponse {}
|
|
56
54
|
|
|
57
55
|
/** BankCardThreeVerifyRequest 银行卡三要素验证请求 */
|
|
58
56
|
interface BankCardThreeVerifyRequest {
|
|
@@ -65,8 +63,7 @@ interface BankCardThreeVerifyRequest {
|
|
|
65
63
|
}
|
|
66
64
|
|
|
67
65
|
/** BankCardThreeVerifyResponse 银行卡三要素验证返回 */
|
|
68
|
-
interface BankCardThreeVerifyResponse {
|
|
69
|
-
}
|
|
66
|
+
interface BankCardThreeVerifyResponse {}
|
|
70
67
|
|
|
71
68
|
/** IDCardVerifyRequest 身份证实名验证请求 */
|
|
72
69
|
interface IDCardVerifyRequest {
|
|
@@ -77,8 +74,7 @@ interface IDCardVerifyRequest {
|
|
|
77
74
|
}
|
|
78
75
|
|
|
79
76
|
/** IDCardVerifyResponse 身份证实名验证返回 */
|
|
80
|
-
interface IDCardVerifyResponse {
|
|
81
|
-
}
|
|
77
|
+
interface IDCardVerifyResponse {}
|
|
82
78
|
|
|
83
79
|
/** UserExemptedInfoRequest 上传免验证用户名单信息请求 */
|
|
84
80
|
interface UserExemptedInfoRequest {
|
|
@@ -142,7 +138,6 @@ interface UserWhiteCheckRequest {
|
|
|
142
138
|
|
|
143
139
|
/** UserWhiteCheckResponse 查看免验证用户名单是否存在返回 */
|
|
144
140
|
interface UserWhiteCheckResponse {
|
|
145
|
-
|
|
146
141
|
ok: boolean
|
|
147
142
|
}
|
|
148
143
|
|
|
@@ -179,7 +174,7 @@ export class Authentication extends YZHclient {
|
|
|
179
174
|
}) {
|
|
180
175
|
super(conf)
|
|
181
176
|
}
|
|
182
|
-
|
|
177
|
+
|
|
183
178
|
// BankCardFourAuthVerify 银行卡四要素鉴权请求(下发短信验证码)
|
|
184
179
|
async BankCardFourAuthVerify(
|
|
185
180
|
req: BankCardFourAuthVerifyRequest,
|
|
@@ -201,7 +196,13 @@ export class Authentication extends YZHclient {
|
|
|
201
196
|
req: BankCardFourVerifyRequest,
|
|
202
197
|
cb?: (error: null | string, rep: BankCardFourVerifyResponse) => void
|
|
203
198
|
): Promise<BankCardFourVerifyResponse> {
|
|
204
|
-
return this.request(
|
|
199
|
+
return this.request(
|
|
200
|
+
"post",
|
|
201
|
+
"/authentication/verify-bankcard-four-factor",
|
|
202
|
+
req,
|
|
203
|
+
{ encryption: false },
|
|
204
|
+
cb
|
|
205
|
+
)
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
// BankCardThreeVerify 银行卡三要素验证
|
|
@@ -209,7 +210,13 @@ export class Authentication extends YZHclient {
|
|
|
209
210
|
req: BankCardThreeVerifyRequest,
|
|
210
211
|
cb?: (error: null | string, rep: BankCardThreeVerifyResponse) => void
|
|
211
212
|
): Promise<BankCardThreeVerifyResponse> {
|
|
212
|
-
return this.request(
|
|
213
|
+
return this.request(
|
|
214
|
+
"post",
|
|
215
|
+
"/authentication/verify-bankcard-three-factor",
|
|
216
|
+
req,
|
|
217
|
+
{ encryption: false },
|
|
218
|
+
cb
|
|
219
|
+
)
|
|
213
220
|
}
|
|
214
221
|
|
|
215
222
|
// IDCardVerify 身份证实名验证
|
|
@@ -225,7 +232,13 @@ export class Authentication extends YZHclient {
|
|
|
225
232
|
req: UserExemptedInfoRequest,
|
|
226
233
|
cb?: (error: null | string, rep: UserExemptedInfoResponse) => void
|
|
227
234
|
): Promise<UserExemptedInfoResponse> {
|
|
228
|
-
return this.request(
|
|
235
|
+
return this.request(
|
|
236
|
+
"post",
|
|
237
|
+
"/api/payment/v1/user/exempted/info",
|
|
238
|
+
req,
|
|
239
|
+
{ encryption: false },
|
|
240
|
+
cb
|
|
241
|
+
)
|
|
229
242
|
}
|
|
230
243
|
|
|
231
244
|
// UserWhiteCheck 查看免验证用户名单是否存在
|
|
@@ -243,5 +256,4 @@ export class Authentication extends YZHclient {
|
|
|
243
256
|
): Promise<GetBankCardInfoResponse> {
|
|
244
257
|
return this.request("get", "/api/payment/v1/card", req, { encryption: false }, cb)
|
|
245
258
|
}
|
|
246
|
-
|
|
247
|
-
}
|
|
259
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** H5GetStartUrlRequest 预启动请求 */
|
|
4
4
|
interface H5GetStartUrlRequest {
|
|
@@ -109,7 +109,7 @@ export class Bizlicxjjh5 extends YZHclient {
|
|
|
109
109
|
}) {
|
|
110
110
|
super(conf)
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
// H5GetStartUrl 预启动
|
|
114
114
|
async H5GetStartUrl(
|
|
115
115
|
req: H5GetStartUrlRequest,
|
|
@@ -125,5 +125,4 @@ export class Bizlicxjjh5 extends YZHclient {
|
|
|
125
125
|
): Promise<H5EcoCityAicStatusResponse> {
|
|
126
126
|
return this.request("get", "/api/aic/new-economy/h5/v1/status", req, { encryption: false }, cb)
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
}
|
|
128
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** H5PreCollectBizlicMsgRequest 工商实名信息录入请求 */
|
|
4
4
|
interface H5PreCollectBizlicMsgRequest {
|
|
@@ -141,13 +141,19 @@ export class Bizlicxjjh5api extends YZHclient {
|
|
|
141
141
|
}) {
|
|
142
142
|
super(conf)
|
|
143
143
|
}
|
|
144
|
-
|
|
144
|
+
|
|
145
145
|
// H5PreCollectBizlicMsg 工商实名信息录入
|
|
146
146
|
async H5PreCollectBizlicMsg(
|
|
147
147
|
req: H5PreCollectBizlicMsgRequest,
|
|
148
148
|
cb?: (error: null | string, rep: H5PreCollectBizlicMsgResponse) => void
|
|
149
149
|
): Promise<H5PreCollectBizlicMsgResponse> {
|
|
150
|
-
return this.request(
|
|
150
|
+
return this.request(
|
|
151
|
+
"post",
|
|
152
|
+
"/api/aic/new-economy/api-h5/v1/collect",
|
|
153
|
+
req,
|
|
154
|
+
{ encryption: false },
|
|
155
|
+
cb
|
|
156
|
+
)
|
|
151
157
|
}
|
|
152
158
|
|
|
153
159
|
// H5APIGetStartUrl 预启动
|
|
@@ -155,7 +161,13 @@ export class Bizlicxjjh5api extends YZHclient {
|
|
|
155
161
|
req: H5APIGetStartUrlRequest,
|
|
156
162
|
cb?: (error: null | string, rep: H5APIGetStartUrlResponse) => void
|
|
157
163
|
): Promise<H5APIGetStartUrlResponse> {
|
|
158
|
-
return this.request(
|
|
164
|
+
return this.request(
|
|
165
|
+
"get",
|
|
166
|
+
"/api/aic/new-economy/api-h5/v1/h5url",
|
|
167
|
+
req,
|
|
168
|
+
{ encryption: false },
|
|
169
|
+
cb
|
|
170
|
+
)
|
|
159
171
|
}
|
|
160
172
|
|
|
161
173
|
// H5APIEcoCityAicStatus 查询个体工商户状态
|
|
@@ -163,7 +175,12 @@ export class Bizlicxjjh5api extends YZHclient {
|
|
|
163
175
|
req: H5APIEcoCityAicStatusRequest,
|
|
164
176
|
cb?: (error: null | string, rep: H5APIEcoCityAicStatusResponse) => void
|
|
165
177
|
): Promise<H5APIEcoCityAicStatusResponse> {
|
|
166
|
-
return this.request(
|
|
178
|
+
return this.request(
|
|
179
|
+
"get",
|
|
180
|
+
"/api/aic/new-economy/api-h5/v1/status",
|
|
181
|
+
req,
|
|
182
|
+
{ encryption: false },
|
|
183
|
+
cb
|
|
184
|
+
)
|
|
167
185
|
}
|
|
168
|
-
|
|
169
|
-
}
|
|
186
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** GetDailyOrderFileRequest 查询日订单文件请求 */
|
|
4
4
|
interface GetDailyOrderFileRequest {
|
|
@@ -255,13 +255,19 @@ export class Dataservice extends YZHclient {
|
|
|
255
255
|
}) {
|
|
256
256
|
super(conf)
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
|
|
259
259
|
// ListDailyOrder 查询日订单数据
|
|
260
260
|
async ListDailyOrder(
|
|
261
261
|
req: ListDailyOrderRequest,
|
|
262
262
|
cb?: (error: null | string, rep: ListDailyOrderResponse) => void
|
|
263
263
|
): Promise<ListDailyOrderResponse> {
|
|
264
|
-
return this.request(
|
|
264
|
+
return this.request(
|
|
265
|
+
"get",
|
|
266
|
+
"/api/dataservice/v1/orders",
|
|
267
|
+
req,
|
|
268
|
+
{ encryption: req?.data_type === " encryption" },
|
|
269
|
+
cb
|
|
270
|
+
)
|
|
265
271
|
}
|
|
266
272
|
|
|
267
273
|
// GetDailyOrderFile 查询日订单文件
|
|
@@ -269,7 +275,13 @@ export class Dataservice extends YZHclient {
|
|
|
269
275
|
req: GetDailyOrderFileRequest,
|
|
270
276
|
cb?: (error: null | string, rep: GetDailyOrderFileResponse) => void
|
|
271
277
|
): Promise<GetDailyOrderFileResponse> {
|
|
272
|
-
return this.request(
|
|
278
|
+
return this.request(
|
|
279
|
+
"get",
|
|
280
|
+
"/api/dataservice/v1/order/downloadurl",
|
|
281
|
+
req,
|
|
282
|
+
{ encryption: false },
|
|
283
|
+
cb
|
|
284
|
+
)
|
|
273
285
|
}
|
|
274
286
|
|
|
275
287
|
// GetDailyOrderFileV2 查询日订单文件(支付和退款订单)
|
|
@@ -285,7 +297,13 @@ export class Dataservice extends YZHclient {
|
|
|
285
297
|
req: ListDailyBillRequest,
|
|
286
298
|
cb?: (error: null | string, rep: ListDailyBillResponse) => void
|
|
287
299
|
): Promise<ListDailyBillResponse> {
|
|
288
|
-
return this.request(
|
|
300
|
+
return this.request(
|
|
301
|
+
"get",
|
|
302
|
+
"/api/dataservice/v1/bills",
|
|
303
|
+
req,
|
|
304
|
+
{ encryption: req?.data_type === " encryption" },
|
|
305
|
+
cb
|
|
306
|
+
)
|
|
289
307
|
}
|
|
290
308
|
|
|
291
309
|
// GetDailyBillFileV2 查询日流水文件
|
|
@@ -293,7 +311,13 @@ export class Dataservice extends YZHclient {
|
|
|
293
311
|
req: GetDailyBillFileV2Request,
|
|
294
312
|
cb?: (error: null | string, rep: GetDailyBillFileV2Response) => void
|
|
295
313
|
): Promise<GetDailyBillFileV2Response> {
|
|
296
|
-
return this.request(
|
|
314
|
+
return this.request(
|
|
315
|
+
"get",
|
|
316
|
+
"/api/dataservice/v2/bill/downloadurl",
|
|
317
|
+
req,
|
|
318
|
+
{ encryption: false },
|
|
319
|
+
cb
|
|
320
|
+
)
|
|
297
321
|
}
|
|
298
322
|
|
|
299
323
|
// ListDealerRechargeRecordV2 查询平台企业预付业务服务费记录
|
|
@@ -301,7 +325,13 @@ export class Dataservice extends YZHclient {
|
|
|
301
325
|
req: ListDealerRechargeRecordV2Request,
|
|
302
326
|
cb?: (error: null | string, rep: ListDealerRechargeRecordV2Response) => void
|
|
303
327
|
): Promise<ListDealerRechargeRecordV2Response> {
|
|
304
|
-
return this.request(
|
|
328
|
+
return this.request(
|
|
329
|
+
"get",
|
|
330
|
+
"/api/dataservice/v2/recharge-record",
|
|
331
|
+
req,
|
|
332
|
+
{ encryption: false },
|
|
333
|
+
cb
|
|
334
|
+
)
|
|
305
335
|
}
|
|
306
336
|
|
|
307
337
|
// ListBalanceDailyStatement 查询余额日账单数据
|
|
@@ -309,7 +339,12 @@ export class Dataservice extends YZHclient {
|
|
|
309
339
|
req: ListBalanceDailyStatementRequest,
|
|
310
340
|
cb?: (error: null | string, rep: ListBalanceDailyStatementResponse) => void
|
|
311
341
|
): Promise<ListBalanceDailyStatementResponse> {
|
|
312
|
-
return this.request(
|
|
342
|
+
return this.request(
|
|
343
|
+
"get",
|
|
344
|
+
"/api/dataservice/v1/statements-daily",
|
|
345
|
+
req,
|
|
346
|
+
{ encryption: false },
|
|
347
|
+
cb
|
|
348
|
+
)
|
|
313
349
|
}
|
|
314
|
-
|
|
315
|
-
}
|
|
350
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** H5UserPresignRequest 预申请签约请求 */
|
|
4
4
|
interface H5UserPresignRequest {
|
|
@@ -109,7 +109,7 @@ export class H5usersign extends YZHclient {
|
|
|
109
109
|
}) {
|
|
110
110
|
super(conf)
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
|
|
113
113
|
// H5UserPresign 预申请签约
|
|
114
114
|
async H5UserPresign(
|
|
115
115
|
req: H5UserPresignRequest,
|
|
@@ -141,5 +141,4 @@ export class H5usersign extends YZHclient {
|
|
|
141
141
|
): Promise<H5UserReleaseResponse> {
|
|
142
142
|
return this.request("post", "/api/sdk/v1/sign/release", req, { encryption: false }, cb)
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
}
|
|
144
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** GetInvoiceStatRequest 查询平台企业已开具和待开具发票金额请求 */
|
|
4
4
|
interface GetInvoiceStatRequest {
|
|
@@ -151,8 +151,7 @@ interface SendReminderEmailRequest {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
/** SendReminderEmailResponse 发送发票扫描件压缩包下载链接邮件返回 */
|
|
154
|
-
interface SendReminderEmailResponse {
|
|
155
|
-
}
|
|
154
|
+
interface SendReminderEmailResponse {}
|
|
156
155
|
|
|
157
156
|
/** NotifyInvoiceDoneRequest 发票开具完成通知 */
|
|
158
157
|
interface NotifyInvoiceDoneRequest {
|
|
@@ -205,7 +204,7 @@ export class Invoice extends YZHclient {
|
|
|
205
204
|
}) {
|
|
206
205
|
super(conf)
|
|
207
206
|
}
|
|
208
|
-
|
|
207
|
+
|
|
209
208
|
// GetInvoiceStat 查询平台企业已开具和待开具发票金额
|
|
210
209
|
async GetInvoiceStat(
|
|
211
210
|
req: GetInvoiceStatRequest,
|
|
@@ -235,7 +234,13 @@ export class Invoice extends YZHclient {
|
|
|
235
234
|
req: GetInvoiceStatusRequest,
|
|
236
235
|
cb?: (error: null | string, rep: GetInvoiceStatusResponse) => void
|
|
237
236
|
): Promise<GetInvoiceStatusResponse> {
|
|
238
|
-
return this.request(
|
|
237
|
+
return this.request(
|
|
238
|
+
"post",
|
|
239
|
+
"/api/invoice/v2/invoice/invoice-status",
|
|
240
|
+
req,
|
|
241
|
+
{ encryption: false },
|
|
242
|
+
cb
|
|
243
|
+
)
|
|
239
244
|
}
|
|
240
245
|
|
|
241
246
|
// GetInvoiceFile 下载 PDF 版发票
|
|
@@ -243,7 +248,13 @@ export class Invoice extends YZHclient {
|
|
|
243
248
|
req: GetInvoiceFileRequest,
|
|
244
249
|
cb?: (error: null | string, rep: GetInvoiceFileResponse) => void
|
|
245
250
|
): Promise<GetInvoiceFileResponse> {
|
|
246
|
-
return this.request(
|
|
251
|
+
return this.request(
|
|
252
|
+
"post",
|
|
253
|
+
"/api/invoice/v2/invoice/invoice-pdf",
|
|
254
|
+
req,
|
|
255
|
+
{ encryption: false },
|
|
256
|
+
cb
|
|
257
|
+
)
|
|
247
258
|
}
|
|
248
259
|
|
|
249
260
|
// SendReminderEmail 发送发票扫描件压缩包下载链接邮件
|
|
@@ -251,7 +262,12 @@ export class Invoice extends YZHclient {
|
|
|
251
262
|
req: SendReminderEmailRequest,
|
|
252
263
|
cb?: (error: null | string, rep: SendReminderEmailResponse) => void
|
|
253
264
|
): Promise<SendReminderEmailResponse> {
|
|
254
|
-
return this.request(
|
|
265
|
+
return this.request(
|
|
266
|
+
"post",
|
|
267
|
+
"/api/invoice/v2/invoice/reminder/email",
|
|
268
|
+
req,
|
|
269
|
+
{ encryption: false },
|
|
270
|
+
cb
|
|
271
|
+
)
|
|
255
272
|
}
|
|
256
|
-
|
|
257
|
-
}
|
|
273
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** CreateBankpayOrderRequest 银行卡实时支付请求 */
|
|
4
4
|
interface CreateBankpayOrderRequest {
|
|
@@ -28,7 +28,6 @@ interface CreateBankpayOrderRequest {
|
|
|
28
28
|
|
|
29
29
|
/** CreateBankpayOrderResponse 银行卡实时支付返回 */
|
|
30
30
|
interface CreateBankpayOrderResponse {
|
|
31
|
-
|
|
32
31
|
order_id: string
|
|
33
32
|
/** 综合服务平台流水号 */
|
|
34
33
|
ref: string
|
|
@@ -224,7 +223,6 @@ interface CancelOrderRequest {
|
|
|
224
223
|
|
|
225
224
|
/** CancelOrderResponse 取消待支付订单返回 */
|
|
226
225
|
interface CancelOrderResponse {
|
|
227
|
-
|
|
228
226
|
ok: string
|
|
229
227
|
}
|
|
230
228
|
|
|
@@ -236,7 +234,6 @@ interface ListAccountRequest {
|
|
|
236
234
|
|
|
237
235
|
/** ListAccountResponse 查询平台企业余额返回 */
|
|
238
236
|
interface ListAccountResponse {
|
|
239
|
-
|
|
240
237
|
dealer_infos: AccountInfo[]
|
|
241
238
|
}
|
|
242
239
|
|
|
@@ -423,8 +420,7 @@ interface ConfirmBatchOrderRequest {
|
|
|
423
420
|
}
|
|
424
421
|
|
|
425
422
|
/** ConfirmBatchOrderResponse 批次确认响应 */
|
|
426
|
-
interface ConfirmBatchOrderResponse {
|
|
427
|
-
}
|
|
423
|
+
interface ConfirmBatchOrderResponse {}
|
|
428
424
|
|
|
429
425
|
export class Payment extends YZHclient {
|
|
430
426
|
constructor(conf: {
|
|
@@ -439,7 +435,7 @@ export class Payment extends YZHclient {
|
|
|
439
435
|
}) {
|
|
440
436
|
super(conf)
|
|
441
437
|
}
|
|
442
|
-
|
|
438
|
+
|
|
443
439
|
// CreateBankpayOrder 银行卡实时支付
|
|
444
440
|
async CreateBankpayOrder(
|
|
445
441
|
req: CreateBankpayOrderRequest,
|
|
@@ -469,7 +465,13 @@ export class Payment extends YZHclient {
|
|
|
469
465
|
req: GetOrderRequest,
|
|
470
466
|
cb?: (error: null | string, rep: GetOrderResponse) => void
|
|
471
467
|
): Promise<GetOrderResponse> {
|
|
472
|
-
return this.request(
|
|
468
|
+
return this.request(
|
|
469
|
+
"get",
|
|
470
|
+
"/api/payment/v1/query-order",
|
|
471
|
+
req,
|
|
472
|
+
{ encryption: req?.data_type === " encryption" },
|
|
473
|
+
cb
|
|
474
|
+
)
|
|
473
475
|
}
|
|
474
476
|
|
|
475
477
|
// GetDealerVARechargeAccount 查询平台企业汇款信息
|
|
@@ -519,5 +521,4 @@ export class Payment extends YZHclient {
|
|
|
519
521
|
): Promise<ConfirmBatchOrderResponse> {
|
|
520
522
|
return this.request("post", "/api/payment/v1/confirm-batch", req, { encryption: false }, cb)
|
|
521
523
|
}
|
|
522
|
-
|
|
523
|
-
}
|
|
524
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import YZHclient from "../../common/client"
|
|
1
|
+
import YZHclient from "../../common/client"
|
|
2
2
|
|
|
3
3
|
/** GetTaxFileRequest 下载个人所得税扣缴明细表请求 */
|
|
4
4
|
interface GetTaxFileRequest {
|
|
@@ -57,7 +57,7 @@ export class Tax extends YZHclient {
|
|
|
57
57
|
}) {
|
|
58
58
|
super(conf)
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
// GetTaxFile 下载个人所得税扣缴明细表
|
|
62
62
|
async GetTaxFile(
|
|
63
63
|
req: GetTaxFileRequest,
|
|
@@ -73,5 +73,4 @@ export class Tax extends YZHclient {
|
|
|
73
73
|
): Promise<GetUserCrossResponse> {
|
|
74
74
|
return this.request("post", "/api/tax/v1/user/cross", req, { encryption: false }, cb)
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
}
|
|
76
|
+
}
|
|
@@ -52,7 +52,7 @@ interface RechargeRecordInfo {
|
|
|
52
52
|
/** 平台企业付款银行账号 */
|
|
53
53
|
recharge_account_no: string;
|
|
54
54
|
}
|
|
55
|
-
/** ListDailyOrderRequest
|
|
55
|
+
/** ListDailyOrderRequest 查询日订单数据请求 */
|
|
56
56
|
interface ListDailyOrderRequest {
|
|
57
57
|
/** 订单查询日期, 格式:yyyy-MM-dd格式:yyyy-MM-dd */
|
|
58
58
|
order_date: string;
|
|
@@ -65,7 +65,7 @@ interface ListDailyOrderRequest {
|
|
|
65
65
|
/** 如果为 encryption,则对返回的 data 进行加密 */
|
|
66
66
|
data_type: string;
|
|
67
67
|
}
|
|
68
|
-
/** ListDailyOrderResponse
|
|
68
|
+
/** ListDailyOrderResponse 查询日订单数据返回 */
|
|
69
69
|
interface ListDailyOrderResponse {
|
|
70
70
|
/** 总数目 */
|
|
71
71
|
total_num: number;
|
|
@@ -96,6 +96,8 @@ interface DealerOrderInfo {
|
|
|
96
96
|
bill: string;
|
|
97
97
|
/** 订单状态 */
|
|
98
98
|
status: string;
|
|
99
|
+
/** 订单状态码描述 */
|
|
100
|
+
status_message: string;
|
|
99
101
|
/** 订单详情 */
|
|
100
102
|
status_detail: string;
|
|
101
103
|
/** 订单详细状态码描述 */
|
|
@@ -129,7 +131,7 @@ interface ListDailyBillResponse {
|
|
|
129
131
|
/** 总条数 */
|
|
130
132
|
total_num: number;
|
|
131
133
|
/** 条目信息 */
|
|
132
|
-
|
|
134
|
+
list: DealerBillInfo[];
|
|
133
135
|
}
|
|
134
136
|
/** DealerBillInfo 流水详情 */
|
|
135
137
|
interface DealerBillInfo {
|
|
@@ -8,7 +8,7 @@ class Dataservice extends client_1.default {
|
|
|
8
8
|
}
|
|
9
9
|
// ListDailyOrder 查询日订单数据
|
|
10
10
|
async ListDailyOrder(req, cb) {
|
|
11
|
-
return this.request("get", "/api/dataservice/v1/orders", req, { encryption: (req === null || req === void 0 ? void 0 : req.data_type) === "encryption" }, cb);
|
|
11
|
+
return this.request("get", "/api/dataservice/v1/orders", req, { encryption: (req === null || req === void 0 ? void 0 : req.data_type) === " encryption" }, cb);
|
|
12
12
|
}
|
|
13
13
|
// GetDailyOrderFile 查询日订单文件
|
|
14
14
|
async GetDailyOrderFile(req, cb) {
|
|
@@ -20,7 +20,7 @@ class Dataservice extends client_1.default {
|
|
|
20
20
|
}
|
|
21
21
|
// ListDailyBill 查询日流水数据
|
|
22
22
|
async ListDailyBill(req, cb) {
|
|
23
|
-
return this.request("get", "/api/dataservice/v1/bills", req, { encryption: (req === null || req === void 0 ? void 0 : req.data_type) === "encryption" }, cb);
|
|
23
|
+
return this.request("get", "/api/dataservice/v1/bills", req, { encryption: (req === null || req === void 0 ? void 0 : req.data_type) === " encryption" }, cb);
|
|
24
24
|
}
|
|
25
25
|
// GetDailyBillFileV2 查询日流水文件
|
|
26
26
|
async GetDailyBillFileV2(req, cb) {
|
|
@@ -9,7 +9,7 @@ interface H5UserPresignRequest {
|
|
|
9
9
|
real_name: string;
|
|
10
10
|
/** 证件号码 */
|
|
11
11
|
id_card: string;
|
|
12
|
-
/** 证件类型 0:身份证 2:港澳居民来往内地通行证 3:护照 5:台湾居民来往大陆通行证 */
|
|
12
|
+
/** 证件类型 0:身份证 2:港澳居民来往内地通行证 3:护照 5:台湾居民来往大陆通行证 9:港澳居民居住证 10:台湾居民居住证 11:外国人永久居留身份证 12:外国人工作许可证 */
|
|
13
13
|
certificate_type: number;
|
|
14
14
|
}
|
|
15
15
|
/** H5UserPresignResponse 预申请签约返回 */
|
|
@@ -18,6 +18,8 @@ interface H5UserPresignResponse {
|
|
|
18
18
|
uid: string;
|
|
19
19
|
/** H5 签约 token */
|
|
20
20
|
token: string;
|
|
21
|
+
/** 签约状态 */
|
|
22
|
+
status: number;
|
|
21
23
|
}
|
|
22
24
|
/** H5UserSignRequest 申请签约请求 */
|
|
23
25
|
interface H5UserSignRequest {
|
|
@@ -63,7 +65,7 @@ interface H5UserReleaseRequest {
|
|
|
63
65
|
real_name: string;
|
|
64
66
|
/** 证件号码 */
|
|
65
67
|
id_card: string;
|
|
66
|
-
/** 证件类型
|
|
68
|
+
/** 证件类型 0:身份证 2:港澳居民来往内地通行证 3:护照 5:台湾居民来往大陆通行证 9:港澳居民居住证 10:台湾居民居住证 11:外国人永久居留身份证 12:外国人工作许可证 */
|
|
67
69
|
certificate_type: number;
|
|
68
70
|
}
|
|
69
71
|
/** H5UserReleaseResponse 用户解约(测试账号专用接口)返回 */
|
|
@@ -14,9 +14,11 @@ interface GetInvoiceStatResponse {
|
|
|
14
14
|
dealer_id: string;
|
|
15
15
|
/** 综合服务主体 ID */
|
|
16
16
|
broker_id: string;
|
|
17
|
-
/**
|
|
17
|
+
/** 已开发票金额 */
|
|
18
18
|
invoiced: string;
|
|
19
|
-
/**
|
|
19
|
+
/** 开票中发票金额 */
|
|
20
|
+
invoicing: string;
|
|
21
|
+
/** 待开发票金额 */
|
|
20
22
|
not_invoiced: string;
|
|
21
23
|
}
|
|
22
24
|
/** GetInvoiceAmountRequest 查询可开具发票额度和发票开具信息请求 */
|
|
@@ -20,7 +20,7 @@ class Payment extends client_1.default {
|
|
|
20
20
|
}
|
|
21
21
|
// GetOrder 查询单笔订单信息
|
|
22
22
|
async GetOrder(req, cb) {
|
|
23
|
-
return this.request("get", "/api/payment/v1/query-order", req, { encryption: (req === null || req === void 0 ? void 0 : req.data_type) === "encryption" }, cb);
|
|
23
|
+
return this.request("get", "/api/payment/v1/query-order", req, { encryption: (req === null || req === void 0 ? void 0 : req.data_type) === " encryption" }, cb);
|
|
24
24
|
}
|
|
25
25
|
// GetDealerVARechargeAccount 查询平台企业汇款信息
|
|
26
26
|
async GetDealerVARechargeAccount(req, cb) {
|