@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,780 +2,954 @@ import YZHclient from '../../common/client';
|
|
|
2
2
|
|
|
3
3
|
/** CreateBankpayOrderRequest 银行卡实时支付请求 */
|
|
4
4
|
interface CreateBankpayOrderRequest {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
5
|
+
/** 平台企业订单号 */
|
|
6
|
+
order_id: string;
|
|
7
|
+
/** 平台企业 ID */
|
|
8
|
+
dealer_id: string;
|
|
9
|
+
/** 综合服务主体 ID */
|
|
10
|
+
broker_id: string;
|
|
11
|
+
/** 姓名 */
|
|
12
|
+
real_name: string;
|
|
13
|
+
/** 银行卡号 */
|
|
14
|
+
card_no: string;
|
|
15
|
+
/** 身份证号码 */
|
|
16
|
+
id_card: string;
|
|
17
|
+
/** 手机号 */
|
|
18
|
+
phone_no: string;
|
|
19
|
+
/** 订单金额 */
|
|
20
|
+
pay: string;
|
|
21
|
+
/** 订单备注 */
|
|
22
|
+
pay_remark: string;
|
|
23
|
+
/** 回调地址 */
|
|
24
|
+
notify_url: string;
|
|
25
|
+
/** 业务线标识 */
|
|
26
|
+
project_id: string;
|
|
27
|
+
/** 互联网平台名称 */
|
|
28
|
+
dealer_platform_name: string;
|
|
29
|
+
/** 用户名称/昵称 */
|
|
30
|
+
dealer_user_nickname: string;
|
|
31
|
+
/** 用户唯一标识码 */
|
|
32
|
+
dealer_user_id: string;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
/** CreateBankpayOrderResponse 银行卡实时支付返回 */
|
|
30
36
|
interface CreateBankpayOrderResponse {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
/** 平台企业订单号 */
|
|
38
|
+
order_id: string;
|
|
39
|
+
/** 综合服务平台流水号 */
|
|
40
|
+
ref: string;
|
|
41
|
+
/** 订单金额 */
|
|
42
|
+
pay: string;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
/** CreateAlipayOrderRequest 支付宝实时支付请求 */
|
|
40
46
|
interface CreateAlipayOrderRequest {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
/** 平台企业订单号 */
|
|
48
|
+
order_id: string;
|
|
49
|
+
/** 平台企业 ID */
|
|
50
|
+
dealer_id: string;
|
|
51
|
+
/** 综合服务主体 ID */
|
|
52
|
+
broker_id: string;
|
|
53
|
+
/** 姓名 */
|
|
54
|
+
real_name: string;
|
|
55
|
+
/** 支付宝账户 */
|
|
56
|
+
card_no: string;
|
|
57
|
+
/** 身份证号码 */
|
|
58
|
+
id_card: string;
|
|
59
|
+
/** 手机号 */
|
|
60
|
+
phone_no: string;
|
|
61
|
+
/** 订单金额 */
|
|
62
|
+
pay: string;
|
|
63
|
+
/** 订单备注 */
|
|
64
|
+
pay_remark: string;
|
|
65
|
+
/** 回调地址 */
|
|
66
|
+
notify_url: string;
|
|
67
|
+
/** 业务线标识 */
|
|
68
|
+
project_id: string;
|
|
69
|
+
/** 校验支付宝账户姓名,固定值:Check */
|
|
70
|
+
check_name: string;
|
|
71
|
+
/** 互联网平台名称 */
|
|
72
|
+
dealer_platform_name: string;
|
|
73
|
+
/** 用户名称/昵称 */
|
|
74
|
+
dealer_user_nickname: string;
|
|
75
|
+
/** 用户唯一标识码 */
|
|
76
|
+
dealer_user_id: string;
|
|
65
77
|
}
|
|
66
78
|
|
|
67
79
|
/** CreateAlipayOrderResponse 支付宝实时支付返回 */
|
|
68
80
|
interface CreateAlipayOrderResponse {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
/** 平台企业订单号 */
|
|
82
|
+
order_id: string;
|
|
83
|
+
/** 综合服务平台流水号 */
|
|
84
|
+
ref: string;
|
|
85
|
+
/** 订单金额 */
|
|
86
|
+
pay: string;
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
/** CreateWxpayOrderRequest 微信实时支付请求 */
|
|
78
90
|
interface CreateWxpayOrderRequest {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
91
|
+
/** 平台企业订单号 */
|
|
92
|
+
order_id: string;
|
|
93
|
+
/** 平台企业 ID */
|
|
94
|
+
dealer_id: string;
|
|
95
|
+
/** 综合服务主体 ID */
|
|
96
|
+
broker_id: string;
|
|
97
|
+
/** 姓名 */
|
|
98
|
+
real_name: string;
|
|
99
|
+
/** 微信用户 openid */
|
|
100
|
+
openid: string;
|
|
101
|
+
/** 身份证号码 */
|
|
102
|
+
id_card: string;
|
|
103
|
+
/** 手机号 */
|
|
104
|
+
phone_no: string;
|
|
105
|
+
/** 订单金额 */
|
|
106
|
+
pay: string;
|
|
107
|
+
/** 订单备注 */
|
|
108
|
+
pay_remark: string;
|
|
109
|
+
/** 回调地址 */
|
|
110
|
+
notify_url: string;
|
|
111
|
+
/** 平台企业微信 AppID */
|
|
112
|
+
wx_app_id: string;
|
|
113
|
+
/** 微信支付模式,固定值:transfer */
|
|
114
|
+
wxpay_mode: string;
|
|
115
|
+
/** 业务线标识 */
|
|
116
|
+
project_id: string;
|
|
117
|
+
/** 描述信息,该字段已废弃 */
|
|
118
|
+
notes: string;
|
|
119
|
+
/** 互联网平台名称 */
|
|
120
|
+
dealer_platform_name: string;
|
|
121
|
+
/** 用户名称/昵称 */
|
|
122
|
+
dealer_user_nickname: string;
|
|
123
|
+
/** 用户唯一标识码 */
|
|
124
|
+
dealer_user_id: string;
|
|
107
125
|
}
|
|
108
126
|
|
|
109
127
|
/** CreateWxpayOrderResponse 微信实时支付返回 */
|
|
110
128
|
interface CreateWxpayOrderResponse {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
129
|
+
/** 平台企业订单号 */
|
|
130
|
+
order_id: string;
|
|
131
|
+
/** 综合服务平台流水号,唯一 */
|
|
132
|
+
ref: string;
|
|
133
|
+
/** 订单金额 */
|
|
134
|
+
pay: string;
|
|
117
135
|
}
|
|
118
136
|
|
|
119
137
|
/** GetOrderRequest 查询单笔订单信息请求 */
|
|
120
138
|
interface GetOrderRequest {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
139
|
+
/** 平台企业订单号 */
|
|
140
|
+
order_id: string;
|
|
141
|
+
/** 支付路径名,银行卡(默认)、支付宝、微信 */
|
|
142
|
+
channel: string;
|
|
143
|
+
/** 数据类型,如果为 encryption,则对返回的 data 进行加密 */
|
|
144
|
+
data_type: string;
|
|
127
145
|
}
|
|
128
146
|
|
|
129
147
|
/** GetOrderResponse 查询单笔订单信息返回 */
|
|
130
148
|
interface GetOrderResponse {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
149
|
+
/** 平台企业订单号 */
|
|
150
|
+
order_id: string;
|
|
151
|
+
/** 订单金额 */
|
|
152
|
+
pay: string;
|
|
153
|
+
/** 综合服务主体 ID */
|
|
154
|
+
broker_id: string;
|
|
155
|
+
/** 平台企业 ID */
|
|
156
|
+
dealer_id: string;
|
|
157
|
+
/** 姓名 */
|
|
158
|
+
real_name: string;
|
|
159
|
+
/** 收款人账号 */
|
|
160
|
+
card_no: string;
|
|
161
|
+
/** 身份证号码 */
|
|
162
|
+
id_card: string;
|
|
163
|
+
/** 手机号 */
|
|
164
|
+
phone_no: string;
|
|
165
|
+
/** 订单状态码 */
|
|
166
|
+
status: string;
|
|
167
|
+
/** 订单详细状态码 */
|
|
168
|
+
status_detail: string;
|
|
169
|
+
/** 订单状态码描述 */
|
|
170
|
+
status_message: string;
|
|
171
|
+
/** 订单详细状态码描述 */
|
|
172
|
+
status_detail_message: string;
|
|
173
|
+
/** 订单状态补充信息 */
|
|
174
|
+
supplemental_detail_message: string;
|
|
175
|
+
/** 综合服务主体支付金额 */
|
|
176
|
+
broker_amount: string;
|
|
177
|
+
/** 综合服务平台流水号 */
|
|
178
|
+
ref: string;
|
|
179
|
+
/** 支付交易流水号 */
|
|
180
|
+
broker_bank_bill: string;
|
|
181
|
+
/** 支付路径 */
|
|
182
|
+
withdraw_platform: string;
|
|
183
|
+
/** 订单接收时间,精确到秒 */
|
|
184
|
+
created_at: string;
|
|
185
|
+
/** 订单完成时间,精确到秒 */
|
|
186
|
+
finished_time: string;
|
|
187
|
+
/** 应收综合服务主体加成服务费金额 */
|
|
188
|
+
broker_fee: string;
|
|
189
|
+
/** 应收余额账户支出加成服务费金额 */
|
|
190
|
+
broker_real_fee: string;
|
|
191
|
+
/** 应收加成服务费抵扣金额 */
|
|
192
|
+
broker_deduct_fee: string;
|
|
193
|
+
/** 应收用户加成服务费金额 */
|
|
194
|
+
user_fee: string;
|
|
195
|
+
/** 实收综合服务主体加成服务费金额 */
|
|
196
|
+
received_broker_fee: string;
|
|
197
|
+
/** 实收余额账户支出加成服务费金额 */
|
|
198
|
+
received_broker_real_fee: string;
|
|
199
|
+
/** 实收加成服务费抵扣金额 */
|
|
200
|
+
received_broker_deduct_fee: string;
|
|
201
|
+
/** 实收用户加成服务费金额 */
|
|
202
|
+
received_user_fee: string;
|
|
203
|
+
/** 订单备注 */
|
|
204
|
+
pay_remark: string;
|
|
205
|
+
/** 银行名称 */
|
|
206
|
+
bank_name: string;
|
|
207
|
+
/** 项目标识 */
|
|
208
|
+
project_id: string;
|
|
209
|
+
/** 新就业形态劳动者 ID,该字段已废弃 */
|
|
210
|
+
anchor_id: string;
|
|
211
|
+
/** 描述信息,该字段已废弃 */
|
|
212
|
+
notes: string;
|
|
213
|
+
/** 系统支付金额,该字段已废弃 */
|
|
214
|
+
sys_amount: string;
|
|
215
|
+
/** 税费,该字段已废弃 */
|
|
216
|
+
tax: string;
|
|
217
|
+
/** 系统支付费用,该字段已废弃 */
|
|
218
|
+
sys_fee: string;
|
|
219
|
+
/** 用户实收金额 */
|
|
220
|
+
user_real_amount: string;
|
|
221
|
+
/** 缴税明细 */
|
|
222
|
+
tax_detail: TaxDetail;
|
|
223
|
+
/** 实缴税费总额 */
|
|
224
|
+
received_tax_amount: string;
|
|
225
|
+
/** 互联网平台名称 */
|
|
226
|
+
dealer_platform_name: string;
|
|
227
|
+
/** 用户名称/昵称 */
|
|
228
|
+
dealer_user_nickname: string;
|
|
229
|
+
/** 用户唯一标识码 */
|
|
230
|
+
dealer_user_id: string;
|
|
231
|
+
/** 用户实收金额(追缴前) */
|
|
232
|
+
user_real_excluding_vat_amount: string;
|
|
233
|
+
/** 已追缴增附税(本笔订单) */
|
|
234
|
+
user_recover_tax_amount: string;
|
|
201
235
|
}
|
|
202
236
|
|
|
203
237
|
/** GetDealerVARechargeAccountRequest 查询平台企业汇款信息请求 */
|
|
204
238
|
interface GetDealerVARechargeAccountRequest {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
239
|
+
/** 综合服务主体 ID */
|
|
240
|
+
broker_id: string;
|
|
241
|
+
/** 平台企业 ID */
|
|
242
|
+
dealer_id: string;
|
|
209
243
|
}
|
|
210
244
|
|
|
211
245
|
/** GetDealerVARechargeAccountResponse 查询平台企业汇款信息返回 */
|
|
212
246
|
interface GetDealerVARechargeAccountResponse {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
247
|
+
/** 账户名称 */
|
|
248
|
+
acct_name: string;
|
|
249
|
+
/** 专属账户 */
|
|
250
|
+
acct_no: string;
|
|
251
|
+
/** 银行名称 */
|
|
252
|
+
bank_name: string;
|
|
253
|
+
/** 付款账户 */
|
|
254
|
+
dealer_acct_name: string;
|
|
221
255
|
}
|
|
222
256
|
|
|
223
257
|
/** CancelOrderRequest 取消待支付订单请求 */
|
|
224
258
|
interface CancelOrderRequest {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
259
|
+
/** 平台企业 ID */
|
|
260
|
+
dealer_id: string;
|
|
261
|
+
/** 平台企业订单号 */
|
|
262
|
+
order_id: string;
|
|
263
|
+
/** 综合服务平台流水号 */
|
|
264
|
+
ref: string;
|
|
265
|
+
/** 支付路径名,银行卡(默认)、支付宝、微信 */
|
|
266
|
+
channel: string;
|
|
233
267
|
}
|
|
234
268
|
|
|
235
269
|
/** CancelOrderResponse 取消待支付订单返回 */
|
|
236
270
|
interface CancelOrderResponse {
|
|
237
|
-
|
|
271
|
+
|
|
272
|
+
ok: string;
|
|
238
273
|
}
|
|
239
274
|
|
|
240
275
|
/** RetryOrderRequest 重试挂起状态订单请求 */
|
|
241
276
|
interface RetryOrderRequest {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
277
|
+
/** 平台企业 ID */
|
|
278
|
+
dealer_id: string;
|
|
279
|
+
/** 平台企业订单号 */
|
|
280
|
+
order_id: string;
|
|
281
|
+
/** 综合服务平台流水号 */
|
|
282
|
+
ref: string;
|
|
283
|
+
/** 支付路径名 */
|
|
284
|
+
channel: string;
|
|
250
285
|
}
|
|
251
286
|
|
|
252
287
|
/** RetryOrderResponse 重试挂起状态订单返回 */
|
|
253
288
|
interface RetryOrderResponse {
|
|
254
|
-
|
|
255
|
-
|
|
289
|
+
/** 请求标识 */
|
|
290
|
+
ok: string;
|
|
256
291
|
}
|
|
257
292
|
|
|
258
293
|
/** ListAccountRequest 查询平台企业余额请求 */
|
|
259
294
|
interface ListAccountRequest {
|
|
260
|
-
|
|
261
|
-
|
|
295
|
+
/** 平台企业 ID */
|
|
296
|
+
dealer_id: string;
|
|
262
297
|
}
|
|
263
298
|
|
|
264
299
|
/** ListAccountResponse 查询平台企业余额返回 */
|
|
265
300
|
interface ListAccountResponse {
|
|
266
|
-
|
|
301
|
+
|
|
302
|
+
dealer_infos: AccountInfo[];
|
|
267
303
|
}
|
|
268
304
|
|
|
269
305
|
/** AccountInfo 账户信息 */
|
|
270
306
|
interface AccountInfo {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
307
|
+
/** 综合服务主体 ID */
|
|
308
|
+
broker_id: string;
|
|
309
|
+
/** 银行卡余额 */
|
|
310
|
+
bank_card_balance: string;
|
|
311
|
+
/** 是否开通银行卡支付路径 */
|
|
312
|
+
is_bank_card: boolean;
|
|
313
|
+
/** 支付宝余额 */
|
|
314
|
+
alipay_balance: string;
|
|
315
|
+
/** 是否开通支付宝支付路径 */
|
|
316
|
+
is_alipay: boolean;
|
|
317
|
+
/** 微信余额 */
|
|
318
|
+
wxpay_balance: string;
|
|
319
|
+
/** 是否开通微信支付路径 */
|
|
320
|
+
is_wxpay: boolean;
|
|
321
|
+
/** 加成服务费返点余额 */
|
|
322
|
+
rebate_fee_balance: string;
|
|
323
|
+
/** 业务服务费余额 */
|
|
324
|
+
acct_balance: string;
|
|
325
|
+
/** 总余额 */
|
|
326
|
+
total_balance: string;
|
|
291
327
|
}
|
|
292
328
|
|
|
293
329
|
/** GetEleReceiptFileRequest 查询电子回单请求 */
|
|
294
330
|
interface GetEleReceiptFileRequest {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
331
|
+
/** 平台企业订单号 */
|
|
332
|
+
order_id: string;
|
|
333
|
+
/** 综合服务平台流水号 */
|
|
334
|
+
ref: string;
|
|
299
335
|
}
|
|
300
336
|
|
|
301
337
|
/** GetEleReceiptFileResponse 查询电子回单返回 */
|
|
302
338
|
interface GetEleReceiptFileResponse {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
339
|
+
/** 链接失效时间 */
|
|
340
|
+
expire_time: string;
|
|
341
|
+
/** 回单名 */
|
|
342
|
+
file_name: string;
|
|
343
|
+
/** 下载链接 */
|
|
344
|
+
url: string;
|
|
309
345
|
}
|
|
310
346
|
|
|
311
347
|
/** CreateBatchOrderRequest 批次下单请求 */
|
|
312
348
|
interface CreateBatchOrderRequest {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
349
|
+
/** 平台企业批次号 */
|
|
350
|
+
batch_id: string;
|
|
351
|
+
/** 平台企业 ID */
|
|
352
|
+
dealer_id: string;
|
|
353
|
+
/** 综合服务主体 ID */
|
|
354
|
+
broker_id: string;
|
|
355
|
+
/** 支付路径 */
|
|
356
|
+
channel: string;
|
|
357
|
+
/** 平台企业的微信 AppID */
|
|
358
|
+
wx_app_id: string;
|
|
359
|
+
/** 订单总金额 */
|
|
360
|
+
total_pay: string;
|
|
361
|
+
/** 总笔数 */
|
|
362
|
+
total_count: string;
|
|
363
|
+
/** 支付模式 */
|
|
364
|
+
mode: string;
|
|
365
|
+
/** 订单列表 */
|
|
366
|
+
order_list: BatchOrderInfo[];
|
|
331
367
|
}
|
|
332
368
|
|
|
333
369
|
/** BatchOrderInfo 批次下单订单信息 */
|
|
334
370
|
interface BatchOrderInfo {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
371
|
+
/** 平台企业订单号 */
|
|
372
|
+
order_id: string;
|
|
373
|
+
/** 姓名 */
|
|
374
|
+
real_name: string;
|
|
375
|
+
/** 身份证号码 */
|
|
376
|
+
id_card: string;
|
|
377
|
+
/** 收款账号 */
|
|
378
|
+
card_no: string;
|
|
379
|
+
/** 微信用户 openid */
|
|
380
|
+
openid: string;
|
|
381
|
+
/** 手机号 */
|
|
382
|
+
phone_no: string;
|
|
383
|
+
/** 业务线标识 */
|
|
384
|
+
project_id: string;
|
|
385
|
+
/** 订单金额 */
|
|
386
|
+
pay: string;
|
|
387
|
+
/** 订单备注 */
|
|
388
|
+
pay_remark: string;
|
|
389
|
+
/** 回调地址 */
|
|
390
|
+
notify_url: string;
|
|
391
|
+
/** 互联网平台名称 */
|
|
392
|
+
dealer_platform_name: string;
|
|
393
|
+
/** 用户名称/昵称 */
|
|
394
|
+
dealer_user_nickname: string;
|
|
395
|
+
/** 用户唯一标识码 */
|
|
396
|
+
dealer_user_id: string;
|
|
355
397
|
}
|
|
356
398
|
|
|
357
399
|
/** CreateBatchOrderResponse 批次下单返回 */
|
|
358
400
|
interface CreateBatchOrderResponse {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
401
|
+
/** 平台企业批次号 */
|
|
402
|
+
batch_id: string;
|
|
403
|
+
/** 订单结果列表 */
|
|
404
|
+
result_list: BatchOrderResult[];
|
|
363
405
|
}
|
|
364
406
|
|
|
365
407
|
/** BatchOrderResult 批次下单返回订单信息 */
|
|
366
408
|
interface BatchOrderResult {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
409
|
+
/** 平台企业订单号 */
|
|
410
|
+
order_id: string;
|
|
411
|
+
/** 综合服务平台流水号 */
|
|
412
|
+
ref: string;
|
|
413
|
+
/** 订单金额 */
|
|
414
|
+
pay: string;
|
|
415
|
+
/** 下单状态 */
|
|
416
|
+
status: string;
|
|
417
|
+
/** 下单失败原因 */
|
|
418
|
+
error_reasons: BatchOrderErrorReasons[];
|
|
377
419
|
}
|
|
378
420
|
|
|
379
421
|
/** BatchOrderErrorReasons 下单失败原因信息 */
|
|
380
422
|
interface BatchOrderErrorReasons {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
423
|
+
/** 不允许下单原因码 */
|
|
424
|
+
error_code: string;
|
|
425
|
+
/** 不允许下单原因描述 */
|
|
426
|
+
error_message: string;
|
|
385
427
|
}
|
|
386
428
|
|
|
387
429
|
/** ConfirmBatchOrderRequest 批次确认请求 */
|
|
388
430
|
interface ConfirmBatchOrderRequest {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
431
|
+
/** 平台企业批次号 */
|
|
432
|
+
batch_id: string;
|
|
433
|
+
/** 平台企业 ID */
|
|
434
|
+
dealer_id: string;
|
|
435
|
+
/** 综合服务主体 ID */
|
|
436
|
+
broker_id: string;
|
|
437
|
+
/** 支付路径 */
|
|
438
|
+
channel: string;
|
|
397
439
|
}
|
|
398
440
|
|
|
399
441
|
/** ConfirmBatchOrderResponse 批次确认返回 */
|
|
400
|
-
interface ConfirmBatchOrderResponse {
|
|
442
|
+
interface ConfirmBatchOrderResponse {
|
|
443
|
+
}
|
|
401
444
|
|
|
402
445
|
/** QueryBatchOrderRequest 查询批次订单信息请求 */
|
|
403
446
|
interface QueryBatchOrderRequest {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
447
|
+
/** 平台企业批次号 */
|
|
448
|
+
batch_id: string;
|
|
449
|
+
/** 平台企业 ID */
|
|
450
|
+
dealer_id: string;
|
|
408
451
|
}
|
|
409
452
|
|
|
410
453
|
/** QueryBatchOrderResponse 查询批次订单信息返回 */
|
|
411
454
|
interface QueryBatchOrderResponse {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
455
|
+
/** 综合服务主体 ID */
|
|
456
|
+
broker_id: string;
|
|
457
|
+
/** 平台企业 ID */
|
|
458
|
+
dealer_id: string;
|
|
459
|
+
/** 平台企业批次号 */
|
|
460
|
+
batch_id: string;
|
|
461
|
+
/** 总笔数 */
|
|
462
|
+
total_count: string;
|
|
463
|
+
/** 订单总金额 */
|
|
464
|
+
total_pay: string;
|
|
465
|
+
/** 支付路径 */
|
|
466
|
+
channel: string;
|
|
467
|
+
/** 批次状态码 */
|
|
468
|
+
batch_status: string;
|
|
469
|
+
/** 批次状态码描述 */
|
|
470
|
+
batch_status_message: string;
|
|
471
|
+
/** 批次接收时间 */
|
|
472
|
+
batch_received_time: string;
|
|
473
|
+
/** 批次订单列表 */
|
|
474
|
+
order_list: QueryBatchOrderInfo[];
|
|
432
475
|
}
|
|
433
476
|
|
|
434
477
|
/** QueryBatchOrderInfo 查询批次订单信息订单详情 */
|
|
435
478
|
interface QueryBatchOrderInfo {
|
|
436
|
-
|
|
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
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
479
|
+
/** 平台企业订单号 */
|
|
480
|
+
order_id: string;
|
|
481
|
+
/** 订单金额 */
|
|
482
|
+
pay: string;
|
|
483
|
+
/** 综合服务主体 ID */
|
|
484
|
+
broker_id: string;
|
|
485
|
+
/** 平台企业 ID */
|
|
486
|
+
dealer_id: string;
|
|
487
|
+
/** 姓名 */
|
|
488
|
+
real_name: string;
|
|
489
|
+
/** 收款人账号 */
|
|
490
|
+
card_no: string;
|
|
491
|
+
/** 身份证号码 */
|
|
492
|
+
id_card: string;
|
|
493
|
+
/** 手机号 */
|
|
494
|
+
phone_no: string;
|
|
495
|
+
/** 订单状态码 */
|
|
496
|
+
status: string;
|
|
497
|
+
/** 订单详情状态码 */
|
|
498
|
+
status_detail: string;
|
|
499
|
+
/** 订单状态码描述 */
|
|
500
|
+
status_message: string;
|
|
501
|
+
/** 订单详情状态码描述 */
|
|
502
|
+
status_detail_message: string;
|
|
503
|
+
/** 订单状态补充信息 */
|
|
504
|
+
supplemental_detail_message: string;
|
|
505
|
+
/** 综合服务主体支付金额 */
|
|
506
|
+
broker_amount: string;
|
|
507
|
+
/** 综合服务平台流水号 */
|
|
508
|
+
ref: string;
|
|
509
|
+
/** 支付交易流水号 */
|
|
510
|
+
broker_bank_bill: string;
|
|
511
|
+
/** 支付路径 */
|
|
512
|
+
withdraw_platform: string;
|
|
513
|
+
/** 订单接收时间 */
|
|
514
|
+
created_at: string;
|
|
515
|
+
/** 订单完成时间 */
|
|
516
|
+
finished_time: string;
|
|
517
|
+
/** 应收综合服务主体加成服务费金额 */
|
|
518
|
+
broker_fee: string;
|
|
519
|
+
/** 应收余额账户支出加成服务费金额 */
|
|
520
|
+
broker_real_fee: string;
|
|
521
|
+
/** 应收加成服务费抵扣金额 */
|
|
522
|
+
broker_deduct_fee: string;
|
|
523
|
+
/** 应收用户加成服务费金额 */
|
|
524
|
+
user_fee: string;
|
|
525
|
+
/** 实收综合服务主体加成服务费金额 */
|
|
526
|
+
received_broker_fee: string;
|
|
527
|
+
/** 实收余额账户支出加成服务费金额 */
|
|
528
|
+
received_broker_real_fee: string;
|
|
529
|
+
/** 实收加成服务费抵扣金额 */
|
|
530
|
+
received_broker_deduct_fee: string;
|
|
531
|
+
/** 实收用户加成服务费金额 */
|
|
532
|
+
received_user_fee: string;
|
|
533
|
+
/** 订单备注 */
|
|
534
|
+
pay_remark: string;
|
|
535
|
+
/** 银行名称 */
|
|
536
|
+
bank_name: string;
|
|
537
|
+
/** 业务线标识 */
|
|
538
|
+
project_id: string;
|
|
539
|
+
/** 互联网平台名称 */
|
|
540
|
+
dealer_platform_name: string;
|
|
541
|
+
/** 用户名称/昵称 */
|
|
542
|
+
dealer_user_nickname: string;
|
|
543
|
+
/** 用户唯一标识码 */
|
|
544
|
+
dealer_user_id: string;
|
|
545
|
+
/** 预扣个税税率 */
|
|
546
|
+
personal_tax_rate: string;
|
|
547
|
+
/** 预扣个税速算扣除数 */
|
|
548
|
+
deduct_tax: string;
|
|
496
549
|
}
|
|
497
550
|
|
|
498
551
|
/** CancelBatchOrderRequest 批次撤销请求 */
|
|
499
552
|
interface CancelBatchOrderRequest {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
553
|
+
/** 平台企业批次号 */
|
|
554
|
+
batch_id: string;
|
|
555
|
+
/** 平台企业 ID */
|
|
556
|
+
dealer_id: string;
|
|
557
|
+
/** 综合服务主体 ID */
|
|
558
|
+
broker_id: string;
|
|
506
559
|
}
|
|
507
560
|
|
|
508
561
|
/** CancelBatchOrderResponse 批次撤销返回 */
|
|
509
|
-
interface CancelBatchOrderResponse {
|
|
562
|
+
interface CancelBatchOrderResponse {
|
|
563
|
+
}
|
|
510
564
|
|
|
511
565
|
/** CheckUserAmountRequest 用户结算金额校验请求 */
|
|
512
566
|
interface CheckUserAmountRequest {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
567
|
+
/** 综合服务主体 ID */
|
|
568
|
+
broker_id: string;
|
|
569
|
+
/** 姓名 */
|
|
570
|
+
real_name: string;
|
|
571
|
+
/** 身份证号码 */
|
|
572
|
+
id_card: string;
|
|
573
|
+
/** 校验金额 */
|
|
574
|
+
amount: string;
|
|
521
575
|
}
|
|
522
576
|
|
|
523
577
|
/** CheckUserAmountResponse 用户结算金额校验返回 */
|
|
524
578
|
interface CheckUserAmountResponse {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
579
|
+
/** 是否超过月限额 */
|
|
580
|
+
is_over_whole_user_month_quota: boolean;
|
|
581
|
+
/** 是否超过年限额 */
|
|
582
|
+
is_over_whole_user_year_quota: boolean;
|
|
529
583
|
}
|
|
530
584
|
|
|
531
585
|
/** GetOrderLxlwRequest 查询劳务模式单笔订单信息请求 */
|
|
532
586
|
interface GetOrderLxlwRequest {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
587
|
+
/** 平台企业订单号 */
|
|
588
|
+
order_id: string;
|
|
589
|
+
/** 支付路径 */
|
|
590
|
+
channel: string;
|
|
591
|
+
/** 数据类型 */
|
|
592
|
+
data_type: string;
|
|
539
593
|
}
|
|
540
594
|
|
|
541
595
|
/** GetOrderLxlwResponse 查询劳务模式单笔订单信息返回 */
|
|
542
596
|
interface GetOrderLxlwResponse {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
597
|
+
/** 平台企业订单号 */
|
|
598
|
+
order_id: string;
|
|
599
|
+
/** 订单金额 */
|
|
600
|
+
pay: string;
|
|
601
|
+
/** 综合服务主体 ID */
|
|
602
|
+
broker_id: string;
|
|
603
|
+
/** 平台企业 ID */
|
|
604
|
+
dealer_id: string;
|
|
605
|
+
/** 姓名 */
|
|
606
|
+
real_name: string;
|
|
607
|
+
/** 收款人账号 */
|
|
608
|
+
card_no: string;
|
|
609
|
+
/** 身份证号码 */
|
|
610
|
+
id_card: string;
|
|
611
|
+
/** 手机号 */
|
|
612
|
+
phone_no: string;
|
|
613
|
+
/** 订单状态码 */
|
|
614
|
+
status: string;
|
|
615
|
+
/** 订单详细状态码 */
|
|
616
|
+
status_detail: string;
|
|
617
|
+
/** 订单状态码描述 */
|
|
618
|
+
status_message: string;
|
|
619
|
+
/** 订单详情状态码描述 */
|
|
620
|
+
status_detail_message: string;
|
|
621
|
+
/** 订单状态补充信息 */
|
|
622
|
+
supplemental_detail_message: string;
|
|
623
|
+
/** 综合服务主体支付金额 */
|
|
624
|
+
broker_amount: string;
|
|
625
|
+
/** 综合服务平台流水号 */
|
|
626
|
+
ref: string;
|
|
627
|
+
/** 支付交易流水号 */
|
|
628
|
+
broker_bank_bill: string;
|
|
629
|
+
/** 支付路径 */
|
|
630
|
+
withdraw_platform: string;
|
|
631
|
+
/** 订单接收时间,精确到秒 */
|
|
632
|
+
created_at: string;
|
|
633
|
+
/** 订单完成时间,精确到秒 */
|
|
634
|
+
finished_time: string;
|
|
635
|
+
/** 应收综合服务主体加成服务费金额 */
|
|
636
|
+
broker_fee: string;
|
|
637
|
+
/** 应收余额账户支出加成服务费金额 */
|
|
638
|
+
broker_real_fee: string;
|
|
639
|
+
/** 应收加成服务费抵扣金额 */
|
|
640
|
+
broker_deduct_fee: string;
|
|
641
|
+
/** 应收用户加成服务费金额 */
|
|
642
|
+
user_fee: string;
|
|
643
|
+
/** 实收综合服务主体加成服务费金额 */
|
|
644
|
+
received_broker_fee: string;
|
|
645
|
+
/** 实收余额账户支出加成服务费金额 */
|
|
646
|
+
received_broker_real_fee: string;
|
|
647
|
+
/** 实收加成服务费抵扣金额 */
|
|
648
|
+
received_broker_deduct_fee: string;
|
|
649
|
+
/** 实收用户加成服务费金额 */
|
|
650
|
+
received_user_fee: string;
|
|
651
|
+
/** 订单备注 */
|
|
652
|
+
pay_remark: string;
|
|
653
|
+
/** 银行名称 */
|
|
654
|
+
bank_name: string;
|
|
655
|
+
/** 业务线标识 */
|
|
656
|
+
project_id: string;
|
|
657
|
+
/** 新就业形态劳动者 ID,该字段已废弃 */
|
|
658
|
+
anchor_id: string;
|
|
659
|
+
/** 描述信息,该字段已废弃 */
|
|
660
|
+
notes: string;
|
|
661
|
+
/** 系统支付金额,该字段已废弃 */
|
|
662
|
+
sys_amount: string;
|
|
663
|
+
/** 税费,该字段已废弃 */
|
|
664
|
+
tax: string;
|
|
665
|
+
/** 系统支付费用,该字段已废弃 */
|
|
666
|
+
sys_fee: string;
|
|
667
|
+
/** 用户实收金额 */
|
|
668
|
+
user_real_amount: string;
|
|
669
|
+
/** 缴税明细 */
|
|
670
|
+
tax_detail: TaxDetail;
|
|
671
|
+
/** 实缴税费总额 */
|
|
672
|
+
received_tax_amount: string;
|
|
673
|
+
/** 互联网平台名称 */
|
|
674
|
+
dealer_platform_name: string;
|
|
675
|
+
/** 用户名称/昵称 */
|
|
676
|
+
dealer_user_nickname: string;
|
|
677
|
+
/** 用户唯一标识码 */
|
|
678
|
+
dealer_user_id: string;
|
|
679
|
+
/** 用户实收金额(追缴前) */
|
|
680
|
+
user_real_excluding_vat_amount: string;
|
|
681
|
+
/** 已追缴增附税(本笔订单) */
|
|
682
|
+
user_recover_tax_amount: string;
|
|
617
683
|
}
|
|
618
684
|
|
|
619
685
|
/** TaxDetail 缴税明细 */
|
|
620
686
|
interface TaxDetail {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
687
|
+
/** 预扣个税 */
|
|
688
|
+
personal_tax: string;
|
|
689
|
+
/** 预扣增值税 */
|
|
690
|
+
value_added_tax: string;
|
|
691
|
+
/** 预扣附加税费 */
|
|
692
|
+
additional_tax: string;
|
|
693
|
+
/** 实缴个税 */
|
|
694
|
+
received_personal_tax: string;
|
|
695
|
+
/** 实缴增值税 */
|
|
696
|
+
received_value_added_tax: string;
|
|
697
|
+
/** 实缴附加税费 */
|
|
698
|
+
received_additional_tax: string;
|
|
699
|
+
/** 用户预扣个税 */
|
|
700
|
+
user_personal_tax: string;
|
|
701
|
+
/** 平台企业预扣个税 */
|
|
702
|
+
dealer_personal_tax: string;
|
|
703
|
+
/** 用户预扣增值税 */
|
|
704
|
+
user_value_added_tax: string;
|
|
705
|
+
/** 平台企业预扣增值税 */
|
|
706
|
+
dealer_value_added_tax: string;
|
|
707
|
+
/** 用户预扣附加税费 */
|
|
708
|
+
user_additional_tax: string;
|
|
709
|
+
/** 平台企业预扣附加税费 */
|
|
710
|
+
dealer_additional_tax: string;
|
|
711
|
+
/** 用户实缴个税 */
|
|
712
|
+
user_received_personal_tax: string;
|
|
713
|
+
/** 平台企业实缴个税 */
|
|
714
|
+
dealer_received_personal_tax: string;
|
|
715
|
+
/** 用户实缴增值税 */
|
|
716
|
+
user_received_value_added_tax: string;
|
|
717
|
+
/** 平台企业实缴增值税 */
|
|
718
|
+
dealer_received_value_added_tax: string;
|
|
719
|
+
/** 用户实缴附加税费 */
|
|
720
|
+
user_received_additional_tax: string;
|
|
721
|
+
/** 平台企业实缴附加税费 */
|
|
722
|
+
dealer_received_additional_tax: string;
|
|
723
|
+
/** 预扣个税税率 */
|
|
724
|
+
personal_tax_rate: string;
|
|
725
|
+
/** 预扣个税速算扣除数 */
|
|
726
|
+
deduct_tax: string;
|
|
633
727
|
}
|
|
728
|
+
|
|
634
729
|
export class PaymentClient extends YZHclient {
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
730
|
+
// eslint-disable-next-line no-useless-constructor
|
|
731
|
+
constructor(conf: {
|
|
732
|
+
dealer_id: string;
|
|
733
|
+
broker_id: string;
|
|
734
|
+
app_key: string;
|
|
735
|
+
des3_key: string;
|
|
736
|
+
private_key: string;
|
|
737
|
+
yzh_public_key: string;
|
|
738
|
+
sign_type: 'rsa' | 'sha256';
|
|
739
|
+
base_url?: string;
|
|
740
|
+
timeout?: number;
|
|
741
|
+
}) {
|
|
742
|
+
super(conf);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
// CreateBankpayOrder 银行卡实时支付
|
|
746
|
+
async CreateBankpayOrder(
|
|
747
|
+
req: CreateBankpayOrderRequest,
|
|
748
|
+
cb?: (error: null | string,rep: CreateBankpayOrderResponse)=>void
|
|
749
|
+
): Promise<CreateBankpayOrderResponse> {
|
|
750
|
+
return this.request(
|
|
751
|
+
'post',
|
|
752
|
+
'/api/payment/v1/order-bankpay',
|
|
753
|
+
req,
|
|
754
|
+
{encryption: false },
|
|
755
|
+
cb
|
|
756
|
+
);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
// CreateAlipayOrder 支付宝实时支付
|
|
760
|
+
async CreateAlipayOrder(
|
|
761
|
+
req: CreateAlipayOrderRequest,
|
|
762
|
+
cb?: (error: null | string,rep: CreateAlipayOrderResponse)=>void
|
|
763
|
+
): Promise<CreateAlipayOrderResponse> {
|
|
764
|
+
return this.request(
|
|
765
|
+
'post',
|
|
766
|
+
'/api/payment/v1/order-alipay',
|
|
767
|
+
req,
|
|
768
|
+
{encryption: false },
|
|
769
|
+
cb
|
|
770
|
+
);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
// CreateWxpayOrder 微信实时支付
|
|
774
|
+
async CreateWxpayOrder(
|
|
775
|
+
req: CreateWxpayOrderRequest,
|
|
776
|
+
cb?: (error: null | string,rep: CreateWxpayOrderResponse)=>void
|
|
777
|
+
): Promise<CreateWxpayOrderResponse> {
|
|
778
|
+
return this.request(
|
|
779
|
+
'post',
|
|
780
|
+
'/api/payment/v1/order-wxpay',
|
|
781
|
+
req,
|
|
782
|
+
{encryption: false },
|
|
783
|
+
cb
|
|
784
|
+
);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
// GetOrder 查询单笔订单信息
|
|
788
|
+
async GetOrder(
|
|
789
|
+
req: GetOrderRequest,
|
|
790
|
+
cb?: (error: null | string,rep: GetOrderResponse)=>void
|
|
791
|
+
): Promise<GetOrderResponse> {
|
|
792
|
+
return this.request(
|
|
793
|
+
'get',
|
|
794
|
+
'/api/payment/v1/query-order',
|
|
795
|
+
req,
|
|
796
|
+
{encryption: req?.data_type === 'encryption' },
|
|
797
|
+
cb
|
|
798
|
+
);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
// GetDealerVARechargeAccount 查询平台企业汇款信息
|
|
802
|
+
async GetDealerVARechargeAccount(
|
|
803
|
+
req: GetDealerVARechargeAccountRequest,
|
|
804
|
+
cb?: (error: null | string,rep: GetDealerVARechargeAccountResponse)=>void
|
|
805
|
+
): Promise<GetDealerVARechargeAccountResponse> {
|
|
806
|
+
return this.request(
|
|
807
|
+
'get',
|
|
808
|
+
'/api/payment/v1/va-account',
|
|
809
|
+
req,
|
|
810
|
+
{encryption: false },
|
|
811
|
+
cb
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
// ListAccount 查询平台企业余额
|
|
816
|
+
async ListAccount(
|
|
817
|
+
req: ListAccountRequest,
|
|
818
|
+
cb?: (error: null | string,rep: ListAccountResponse)=>void
|
|
819
|
+
): Promise<ListAccountResponse> {
|
|
820
|
+
return this.request(
|
|
821
|
+
'get',
|
|
822
|
+
'/api/payment/v1/query-accounts',
|
|
823
|
+
req,
|
|
824
|
+
{encryption: false },
|
|
825
|
+
cb
|
|
826
|
+
);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
// GetEleReceiptFile 查询电子回单
|
|
830
|
+
async GetEleReceiptFile(
|
|
831
|
+
req: GetEleReceiptFileRequest,
|
|
832
|
+
cb?: (error: null | string,rep: GetEleReceiptFileResponse)=>void
|
|
833
|
+
): Promise<GetEleReceiptFileResponse> {
|
|
834
|
+
return this.request(
|
|
835
|
+
'get',
|
|
836
|
+
'/api/payment/v1/receipt/file',
|
|
837
|
+
req,
|
|
838
|
+
{encryption: false },
|
|
839
|
+
cb
|
|
840
|
+
);
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
// CancelOrder 取消待支付订单
|
|
844
|
+
async CancelOrder(
|
|
845
|
+
req: CancelOrderRequest,
|
|
846
|
+
cb?: (error: null | string,rep: CancelOrderResponse)=>void
|
|
847
|
+
): Promise<CancelOrderResponse> {
|
|
848
|
+
return this.request(
|
|
849
|
+
'post',
|
|
850
|
+
'/api/payment/v1/order/fail',
|
|
851
|
+
req,
|
|
852
|
+
{encryption: false },
|
|
853
|
+
cb
|
|
854
|
+
);
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
// RetryOrder 重试挂起状态订单
|
|
858
|
+
async RetryOrder(
|
|
859
|
+
req: RetryOrderRequest,
|
|
860
|
+
cb?: (error: null | string,rep: RetryOrderResponse)=>void
|
|
861
|
+
): Promise<RetryOrderResponse> {
|
|
862
|
+
return this.request(
|
|
863
|
+
'post',
|
|
864
|
+
'/api/payment/v1/order/retry',
|
|
865
|
+
req,
|
|
866
|
+
{encryption: false },
|
|
867
|
+
cb
|
|
868
|
+
);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// CreateBatchOrder 批次下单
|
|
872
|
+
async CreateBatchOrder(
|
|
873
|
+
req: CreateBatchOrderRequest,
|
|
874
|
+
cb?: (error: null | string,rep: CreateBatchOrderResponse)=>void
|
|
875
|
+
): Promise<CreateBatchOrderResponse> {
|
|
876
|
+
return this.request(
|
|
877
|
+
'post',
|
|
878
|
+
'/api/payment/v1/order-batch',
|
|
879
|
+
req,
|
|
880
|
+
{encryption: false },
|
|
881
|
+
cb
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
// ConfirmBatchOrder 批次确认
|
|
886
|
+
async ConfirmBatchOrder(
|
|
887
|
+
req: ConfirmBatchOrderRequest,
|
|
888
|
+
cb?: (error: null | string,rep: ConfirmBatchOrderResponse)=>void
|
|
889
|
+
): Promise<ConfirmBatchOrderResponse> {
|
|
890
|
+
return this.request(
|
|
891
|
+
'post',
|
|
892
|
+
'/api/payment/v1/confirm-batch',
|
|
893
|
+
req,
|
|
894
|
+
{encryption: false },
|
|
895
|
+
cb
|
|
896
|
+
);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
// QueryBatchOrder 查询批次订单信息
|
|
900
|
+
async QueryBatchOrder(
|
|
901
|
+
req: QueryBatchOrderRequest,
|
|
902
|
+
cb?: (error: null | string,rep: QueryBatchOrderResponse)=>void
|
|
903
|
+
): Promise<QueryBatchOrderResponse> {
|
|
904
|
+
return this.request(
|
|
905
|
+
'get',
|
|
906
|
+
'/api/payment/v1/query-batch',
|
|
907
|
+
req,
|
|
908
|
+
{encryption: false },
|
|
909
|
+
cb
|
|
910
|
+
);
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
// CancelBatchOrder 批次撤销
|
|
914
|
+
async CancelBatchOrder(
|
|
915
|
+
req: CancelBatchOrderRequest,
|
|
916
|
+
cb?: (error: null | string,rep: CancelBatchOrderResponse)=>void
|
|
917
|
+
): Promise<CancelBatchOrderResponse> {
|
|
918
|
+
return this.request(
|
|
919
|
+
'post',
|
|
920
|
+
'/api/payment/v1/cancel-batch',
|
|
921
|
+
req,
|
|
922
|
+
{encryption: false },
|
|
923
|
+
cb
|
|
924
|
+
);
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
// CheckUserAmount 用户结算金额校验
|
|
928
|
+
async CheckUserAmount(
|
|
929
|
+
req: CheckUserAmountRequest,
|
|
930
|
+
cb?: (error: null | string,rep: CheckUserAmountResponse)=>void
|
|
931
|
+
): Promise<CheckUserAmountResponse> {
|
|
932
|
+
return this.request(
|
|
933
|
+
'post',
|
|
934
|
+
'/api/payment/v1/risk-check/amount',
|
|
935
|
+
req,
|
|
936
|
+
{encryption: false },
|
|
937
|
+
cb
|
|
938
|
+
);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
// GetOrderLxlw 查询劳务模式单笔订单信息
|
|
942
|
+
async GetOrderLxlw(
|
|
943
|
+
req: GetOrderLxlwRequest,
|
|
944
|
+
cb?: (error: null | string,rep: GetOrderLxlwResponse)=>void
|
|
945
|
+
): Promise<GetOrderLxlwResponse> {
|
|
946
|
+
return this.request(
|
|
947
|
+
'get',
|
|
948
|
+
'/api/payment/v1/query-order',
|
|
949
|
+
req,
|
|
950
|
+
{encryption: req?.data_type === 'encryption' },
|
|
951
|
+
cb
|
|
952
|
+
);
|
|
953
|
+
}
|
|
954
|
+
|
|
781
955
|
}
|