@yunzhanghu/sdk-nodejs 1.0.27 → 1.0.29
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/README.md +1 -3
- package/example/authentication.js +1 -0
- package/example/calculatelabor.js +2 -0
- package/example/invoice.js +4 -0
- package/example/payment.js +29 -0
- package/example/taxClearRefund.js +30 -0
- package/package.json +1 -1
- package/src/services/authentication/index.ts +2 -0
- package/src/services/calculatelabor/index.ts +20 -6
- package/src/services/invoice/index.ts +8 -0
- package/src/services/payment/index.ts +54 -20
- package/src/services/taxclearrefund/index.ts +66 -0
- package/yzh/services/authentication/index.d.ts +2 -0
- package/yzh/services/calculatelabor/index.d.ts +26 -6
- package/yzh/services/invoice/index.d.ts +8 -0
- package/yzh/services/payment/index.d.ts +52 -20
- package/yzh/services/payment/index.js +4 -0
- package/yzh/services/taxclearrefund/index.d.ts +56 -0
- package/yzh/services/taxclearrefund/index.js +10 -0
package/README.md
CHANGED
|
@@ -68,9 +68,7 @@ OpenSSL-> rsa -in private_key.pem -pubout -out pubkey.pem
|
|
|
68
68
|
- [H5 签约](./example/h5UserSign.js)
|
|
69
69
|
- [API 签约](./example/apiUserSign.js)
|
|
70
70
|
- [签约信息上传](./example/uploadusersign.js)
|
|
71
|
-
-
|
|
72
|
-
- [云账户新经济 H5](./example/bizlicXjjH5.js)
|
|
73
|
-
- [云账户新经济 H5+API](./example/bizlicXjjH5Api.js)
|
|
71
|
+
- [订单税费试算](./example/calculatelabor.js)
|
|
74
72
|
- [实时支付](./example/payment.js)
|
|
75
73
|
- [异步通知](./example/notify.js)
|
|
76
74
|
- [对账文件获取](./example/dataService.js)
|
package/example/invoice.js
CHANGED
|
@@ -44,6 +44,8 @@ invoice
|
|
|
44
44
|
request_id: 'requestIdExample123456789',
|
|
45
45
|
dealer_id: config.dealer_id,
|
|
46
46
|
broker_id: config.broker_id,
|
|
47
|
+
start_date: '2026-01-01',
|
|
48
|
+
end_date: '2026-01-26',
|
|
47
49
|
})
|
|
48
50
|
.then((data) => {
|
|
49
51
|
if (data.code === '0000') {
|
|
@@ -79,6 +81,8 @@ invoice
|
|
|
79
81
|
remark: '',
|
|
80
82
|
receive_emails: ['username1@example.com'],
|
|
81
83
|
invoice_media: '1',
|
|
84
|
+
start_date: '2026-01-01',
|
|
85
|
+
end_date: '2026-01-26',
|
|
82
86
|
})
|
|
83
87
|
.then((data) => {
|
|
84
88
|
if (data.code === '0000') {
|
package/example/payment.js
CHANGED
|
@@ -467,4 +467,33 @@ payment
|
|
|
467
467
|
console.log(err.toString())
|
|
468
468
|
})
|
|
469
469
|
|
|
470
|
+
// 取消批次中单笔订单
|
|
471
|
+
payment
|
|
472
|
+
.CancelOrderInBatch({
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* @param {string} request-id:请求 ID,请求的唯一标识
|
|
476
|
+
* 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
|
|
477
|
+
* 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
|
|
478
|
+
*/
|
|
479
|
+
request_id: 'requestIdExample123456789',
|
|
480
|
+
batch_id: 'batchtest123456',
|
|
481
|
+
order_id: 'order_id123456',
|
|
482
|
+
dealer_id: config.dealer_id,
|
|
483
|
+
broker_id: config.broker_id,
|
|
484
|
+
})
|
|
485
|
+
.then((data) => {
|
|
486
|
+
if (data.code === '0000') {
|
|
487
|
+
// 操作成功
|
|
488
|
+
console.log('操作成功 ', data.data)
|
|
489
|
+
} else {
|
|
490
|
+
// 失败返回
|
|
491
|
+
console.log('失败返回 ', 'code:' + data.code + ' message:' + data.message + ' request_id:' + data.request_id)
|
|
492
|
+
}
|
|
493
|
+
})
|
|
494
|
+
.catch((err) => {
|
|
495
|
+
// 发生异常
|
|
496
|
+
console.log(err.toString())
|
|
497
|
+
})
|
|
498
|
+
|
|
470
499
|
|
|
@@ -86,3 +86,33 @@ taxClearRefundClient
|
|
|
86
86
|
// 发生异常
|
|
87
87
|
console.log(err.toString())
|
|
88
88
|
})
|
|
89
|
+
|
|
90
|
+
// 查询税费退补涉及劳动者
|
|
91
|
+
taxClearRefundClient
|
|
92
|
+
.GetRefundTaxLaborInfo({
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @param {string} request-id:请求 ID,请求的唯一标识
|
|
96
|
+
* 建议平台企业自定义 request-id,并记录在日志中,便于问题发现及排查
|
|
97
|
+
* 如未自定义 request-id,将使用 SDK 中的 UUID 方法自动生成。注意:UUID 方法生成的 request-id 不能保证全局唯一,推荐自定义 request-id
|
|
98
|
+
*/
|
|
99
|
+
broker_id: config.broker_id,
|
|
100
|
+
dealer_id: config.dealer_id,
|
|
101
|
+
tax_month: '2025-10',
|
|
102
|
+
batch_id: '10313232135454132',
|
|
103
|
+
offset: 0,
|
|
104
|
+
length: 500,
|
|
105
|
+
})
|
|
106
|
+
.then((data) => {
|
|
107
|
+
if (data.code === '0000') {
|
|
108
|
+
// 操作成功
|
|
109
|
+
console.log('操作成功 ', data.data)
|
|
110
|
+
} else {
|
|
111
|
+
// 失败返回
|
|
112
|
+
console.log('失败返回 ', 'code:' + data.code + ' message:' + data.message + ' request_id:' + data.request_id)
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
.catch((err) => {
|
|
116
|
+
// 发生异常
|
|
117
|
+
console.log(err.toString())
|
|
118
|
+
})
|
package/package.json
CHANGED
|
@@ -82,6 +82,10 @@ interface CalcTaxRequest {
|
|
|
82
82
|
tax_type: string;
|
|
83
83
|
/** 税前订单金额返回值类型 */
|
|
84
84
|
before_tax_amount_type: string;
|
|
85
|
+
/** 将追缴税费纳入测算 */
|
|
86
|
+
include_recovery_amount: number;
|
|
87
|
+
/** 将劳动者服务费纳入测算 */
|
|
88
|
+
include_user_service_fee: number;
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
/** CalcTaxResponse 订单税费试算返回 */
|
|
@@ -90,19 +94,19 @@ interface CalcTaxResponse {
|
|
|
90
94
|
pay: string;
|
|
91
95
|
/** 税费总额 */
|
|
92
96
|
tax: string;
|
|
93
|
-
/**
|
|
97
|
+
/** 劳动者预估到手金额 */
|
|
94
98
|
after_tax_amount: string;
|
|
95
99
|
/** 缴税明细 */
|
|
96
100
|
tax_detail: CalcTaxDetail;
|
|
97
101
|
/** 税前订单金额 */
|
|
98
102
|
before_tax_amount: string;
|
|
99
|
-
/**
|
|
103
|
+
/** 劳动者税费总额 */
|
|
100
104
|
user_tax: string;
|
|
101
105
|
/** 平台企业税费总额 */
|
|
102
106
|
dealer_tax: string;
|
|
103
107
|
/** 云账户税费总额 */
|
|
104
108
|
broker_tax: string;
|
|
105
|
-
/**
|
|
109
|
+
/** 劳动者服务费 */
|
|
106
110
|
user_fee: string;
|
|
107
111
|
/** 结果 */
|
|
108
112
|
status: string;
|
|
@@ -112,14 +116,24 @@ interface CalcTaxResponse {
|
|
|
112
116
|
status_message: string;
|
|
113
117
|
/** 结果详细状态码描述 */
|
|
114
118
|
status_detail_message: string;
|
|
115
|
-
/**
|
|
119
|
+
/** 劳动者预估应收金额(追缴退回前) */
|
|
116
120
|
user_real_excluding_vat_amount: string;
|
|
117
|
-
/**
|
|
121
|
+
/** 劳动者还未缴清的增附税 */
|
|
118
122
|
user_remaining_repayment_amount: string;
|
|
119
|
-
/**
|
|
123
|
+
/** 追缴增附税 */
|
|
120
124
|
user_recover_tax_amount: string;
|
|
121
125
|
/** 待追缴增附税总金额 */
|
|
122
126
|
user_total_recover_tax_amount: string;
|
|
127
|
+
/** 劳动者还未缴清的个税 */
|
|
128
|
+
user_remaining_repayment_personal_amount: string;
|
|
129
|
+
/** 追缴个税 */
|
|
130
|
+
user_recover_personal_tax_amount: string;
|
|
131
|
+
/** 待追缴个税总金额 */
|
|
132
|
+
user_total_recover_personal_tax_amount: string;
|
|
133
|
+
/** 退回增附税 */
|
|
134
|
+
user_refund_tax_amount: string;
|
|
135
|
+
/** 退回个税 */
|
|
136
|
+
user_refund_personal_tax_amount: string;
|
|
123
137
|
}
|
|
124
138
|
|
|
125
139
|
/** CalcTaxDetail 税费明细 */
|
|
@@ -30,6 +30,10 @@ interface GetInvoiceAmountRequest {
|
|
|
30
30
|
broker_id: string;
|
|
31
31
|
/** 平台企业 ID */
|
|
32
32
|
dealer_id: string;
|
|
33
|
+
/** 查询开始日期 */
|
|
34
|
+
start_date: string;
|
|
35
|
+
/** 查询结束日期 */
|
|
36
|
+
end_date: string;
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
/** GetInvoiceAmountResponse 查询可开具发票额度和发票开具信息返回 */
|
|
@@ -64,6 +68,10 @@ interface ApplyInvoiceRequest {
|
|
|
64
68
|
receive_emails: string[];
|
|
65
69
|
/** 发票介质 */
|
|
66
70
|
invoice_media: string;
|
|
71
|
+
/** 查询开始日期 */
|
|
72
|
+
start_date: string;
|
|
73
|
+
/** 查询结束日期 */
|
|
74
|
+
end_date: string;
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
/** ApplyInvoiceResponse 发票开具申请返回 */
|
|
@@ -190,7 +190,7 @@ interface GetOrderResponse {
|
|
|
190
190
|
broker_real_fee: string;
|
|
191
191
|
/** 应收加成服务费抵扣金额 */
|
|
192
192
|
broker_deduct_fee: string;
|
|
193
|
-
/**
|
|
193
|
+
/** 应收劳动者加成服务费金额 */
|
|
194
194
|
user_fee: string;
|
|
195
195
|
/** 实收综合服务主体加成服务费金额 */
|
|
196
196
|
received_broker_fee: string;
|
|
@@ -198,7 +198,7 @@ interface GetOrderResponse {
|
|
|
198
198
|
received_broker_real_fee: string;
|
|
199
199
|
/** 实收加成服务费抵扣金额 */
|
|
200
200
|
received_broker_deduct_fee: string;
|
|
201
|
-
/**
|
|
201
|
+
/** 实收劳动者加成服务费金额 */
|
|
202
202
|
received_user_fee: string;
|
|
203
203
|
/** 订单备注 */
|
|
204
204
|
pay_remark: string;
|
|
@@ -216,7 +216,7 @@ interface GetOrderResponse {
|
|
|
216
216
|
tax: string;
|
|
217
217
|
/** 系统支付费用,该字段已废弃 */
|
|
218
218
|
sys_fee: string;
|
|
219
|
-
/**
|
|
219
|
+
/** 劳动者实收金额 */
|
|
220
220
|
user_real_amount: string;
|
|
221
221
|
/** 缴税明细 */
|
|
222
222
|
tax_detail: TaxDetail;
|
|
@@ -224,18 +224,20 @@ interface GetOrderResponse {
|
|
|
224
224
|
received_tax_amount: string;
|
|
225
225
|
/** 互联网平台名称 */
|
|
226
226
|
dealer_platform_name: string;
|
|
227
|
-
/**
|
|
227
|
+
/** 劳动者名称/昵称 */
|
|
228
228
|
dealer_user_nickname: string;
|
|
229
|
-
/**
|
|
229
|
+
/** 劳动者唯一标识码 */
|
|
230
230
|
dealer_user_id: string;
|
|
231
|
-
/**
|
|
231
|
+
/** 劳动者应收金额(追缴退回前) */
|
|
232
232
|
user_real_excluding_vat_amount: string;
|
|
233
|
-
/**
|
|
233
|
+
/** 追缴增附税 */
|
|
234
234
|
user_recover_tax_amount: string;
|
|
235
235
|
/** 预扣个税税率 */
|
|
236
236
|
personal_tax_rate: string;
|
|
237
237
|
/** 预扣个税速算扣除数 */
|
|
238
238
|
deduct_tax: string;
|
|
239
|
+
/** 追缴个税 */
|
|
240
|
+
user_recover_personal_tax_amount: string;
|
|
239
241
|
}
|
|
240
242
|
|
|
241
243
|
/** GetDealerVARechargeAccountRequest 查询平台企业汇款信息请求 */
|
|
@@ -650,7 +652,7 @@ interface GetOrderLxlwResponse {
|
|
|
650
652
|
broker_real_fee: string;
|
|
651
653
|
/** 应收加成服务费抵扣金额 */
|
|
652
654
|
broker_deduct_fee: string;
|
|
653
|
-
/**
|
|
655
|
+
/** 应收劳动者加成服务费金额 */
|
|
654
656
|
user_fee: string;
|
|
655
657
|
/** 实收综合服务主体加成服务费金额 */
|
|
656
658
|
received_broker_fee: string;
|
|
@@ -658,7 +660,7 @@ interface GetOrderLxlwResponse {
|
|
|
658
660
|
received_broker_real_fee: string;
|
|
659
661
|
/** 实收加成服务费抵扣金额 */
|
|
660
662
|
received_broker_deduct_fee: string;
|
|
661
|
-
/**
|
|
663
|
+
/** 实收劳动者加成服务费金额 */
|
|
662
664
|
received_user_fee: string;
|
|
663
665
|
/** 订单备注 */
|
|
664
666
|
pay_remark: string;
|
|
@@ -676,7 +678,7 @@ interface GetOrderLxlwResponse {
|
|
|
676
678
|
tax: string;
|
|
677
679
|
/** 系统支付费用,该字段已废弃 */
|
|
678
680
|
sys_fee: string;
|
|
679
|
-
/**
|
|
681
|
+
/** 劳动者实收金额 */
|
|
680
682
|
user_real_amount: string;
|
|
681
683
|
/** 缴税明细 */
|
|
682
684
|
tax_detail: TaxDetail;
|
|
@@ -684,18 +686,20 @@ interface GetOrderLxlwResponse {
|
|
|
684
686
|
received_tax_amount: string;
|
|
685
687
|
/** 互联网平台名称 */
|
|
686
688
|
dealer_platform_name: string;
|
|
687
|
-
/**
|
|
689
|
+
/** 劳动者名称/昵称 */
|
|
688
690
|
dealer_user_nickname: string;
|
|
689
|
-
/**
|
|
691
|
+
/** 劳动者唯一标识码 */
|
|
690
692
|
dealer_user_id: string;
|
|
691
|
-
/**
|
|
693
|
+
/** 劳动者应收金额(追缴退回前) */
|
|
692
694
|
user_real_excluding_vat_amount: string;
|
|
693
|
-
/**
|
|
695
|
+
/** 追缴增附税 */
|
|
694
696
|
user_recover_tax_amount: string;
|
|
695
697
|
/** 预扣个税税率 */
|
|
696
698
|
personal_tax_rate: string;
|
|
697
699
|
/** 预扣个税速算扣除数 */
|
|
698
700
|
deduct_tax: string;
|
|
701
|
+
/** 追缴个税 */
|
|
702
|
+
user_recover_personal_tax_amount: string;
|
|
699
703
|
}
|
|
700
704
|
|
|
701
705
|
/** TaxDetail 缴税明细 */
|
|
@@ -712,27 +716,27 @@ interface TaxDetail {
|
|
|
712
716
|
received_value_added_tax: string;
|
|
713
717
|
/** 实缴附加税费 */
|
|
714
718
|
received_additional_tax: string;
|
|
715
|
-
/**
|
|
719
|
+
/** 劳动者预扣个税 */
|
|
716
720
|
user_personal_tax: string;
|
|
717
721
|
/** 平台企业预扣个税 */
|
|
718
722
|
dealer_personal_tax: string;
|
|
719
|
-
/**
|
|
723
|
+
/** 劳动者预扣增值税 */
|
|
720
724
|
user_value_added_tax: string;
|
|
721
725
|
/** 平台企业预扣增值税 */
|
|
722
726
|
dealer_value_added_tax: string;
|
|
723
|
-
/**
|
|
727
|
+
/** 劳动者预扣附加税费 */
|
|
724
728
|
user_additional_tax: string;
|
|
725
729
|
/** 平台企业预扣附加税费 */
|
|
726
730
|
dealer_additional_tax: string;
|
|
727
|
-
/**
|
|
731
|
+
/** 劳动者实缴个税 */
|
|
728
732
|
user_received_personal_tax: string;
|
|
729
733
|
/** 平台企业实缴个税 */
|
|
730
734
|
dealer_received_personal_tax: string;
|
|
731
|
-
/**
|
|
735
|
+
/** 劳动者实缴增值税 */
|
|
732
736
|
user_received_value_added_tax: string;
|
|
733
737
|
/** 平台企业实缴增值税 */
|
|
734
738
|
dealer_received_value_added_tax: string;
|
|
735
|
-
/**
|
|
739
|
+
/** 劳动者实缴附加税费 */
|
|
736
740
|
user_received_additional_tax: string;
|
|
737
741
|
/** 平台企业实缴附加税费 */
|
|
738
742
|
dealer_received_additional_tax: string;
|
|
@@ -744,6 +748,22 @@ interface TaxDetail {
|
|
|
744
748
|
additional_local_tuition_tax: string;
|
|
745
749
|
}
|
|
746
750
|
|
|
751
|
+
/** CancelOrderInBatchRequest 取消批次中单笔订单请求 */
|
|
752
|
+
interface CancelOrderInBatchRequest {
|
|
753
|
+
/** 平台企业批次号 */
|
|
754
|
+
batch_id: string;
|
|
755
|
+
/** 平台企业 ID */
|
|
756
|
+
dealer_id: string;
|
|
757
|
+
/** 综合服务主体 ID */
|
|
758
|
+
broker_id: string;
|
|
759
|
+
/** 平台企业订单号 */
|
|
760
|
+
order_id: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/** CancelOrderInBatchResponse 取消批次中单笔订单返回 */
|
|
764
|
+
interface CancelOrderInBatchResponse {
|
|
765
|
+
}
|
|
766
|
+
|
|
747
767
|
export class PaymentClient extends YZHclient {
|
|
748
768
|
// eslint-disable-next-line no-useless-constructor
|
|
749
769
|
constructor(conf: {
|
|
@@ -970,4 +990,18 @@ export class PaymentClient extends YZHclient {
|
|
|
970
990
|
);
|
|
971
991
|
}
|
|
972
992
|
|
|
993
|
+
// CancelOrderInBatch 取消批次中单笔订单
|
|
994
|
+
async CancelOrderInBatch(
|
|
995
|
+
req: CancelOrderInBatchRequest,
|
|
996
|
+
cb?: (error: null | string,rep: CancelOrderInBatchResponse)=>void
|
|
997
|
+
): Promise<CancelOrderInBatchResponse> {
|
|
998
|
+
return this.request(
|
|
999
|
+
'post',
|
|
1000
|
+
'/api/payment/v1/order-batch/cancel-order',
|
|
1001
|
+
req,
|
|
1002
|
+
{encryption: false },
|
|
1003
|
+
cb
|
|
1004
|
+
);
|
|
1005
|
+
}
|
|
1006
|
+
|
|
973
1007
|
}
|
|
@@ -132,6 +132,58 @@ interface GetRefundTaxInfoRequest {
|
|
|
132
132
|
batch_id: string;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
/** GetRefundTaxLaborInfoRequest 查询税费退补涉及劳动者请求 */
|
|
136
|
+
interface GetRefundTaxLaborInfoRequest {
|
|
137
|
+
/** 综合服务主体 ID */
|
|
138
|
+
broker_id: string;
|
|
139
|
+
/** 平台企业 ID */
|
|
140
|
+
dealer_id: string;
|
|
141
|
+
/** 批次号 */
|
|
142
|
+
batch_id: string;
|
|
143
|
+
/** 税款所属期 */
|
|
144
|
+
tax_month: string;
|
|
145
|
+
/** 偏移量 */
|
|
146
|
+
offset: number;
|
|
147
|
+
/** 每页返回条数 */
|
|
148
|
+
length: number;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** GetRefundTaxLaborInfoResponse 查询税费退补涉及劳动者返回 */
|
|
152
|
+
interface GetRefundTaxLaborInfoResponse {
|
|
153
|
+
/** 税款所属期 */
|
|
154
|
+
tax_month: string;
|
|
155
|
+
/** 批次号 */
|
|
156
|
+
batch_id: string;
|
|
157
|
+
/** 批次生成时间 */
|
|
158
|
+
batch_create_time: string;
|
|
159
|
+
/** 退补税劳动者数量 */
|
|
160
|
+
labor_num: string;
|
|
161
|
+
/** 退补税订单数量 */
|
|
162
|
+
order_num: string;
|
|
163
|
+
/** 总数据条数 */
|
|
164
|
+
total_num: string;
|
|
165
|
+
/** 退补税劳动者明细 */
|
|
166
|
+
labor_refund_info: LaborRefundInfo[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** LaborRefundInfo 退补税劳动者明细 */
|
|
170
|
+
interface LaborRefundInfo {
|
|
171
|
+
/** 劳动者姓名 */
|
|
172
|
+
real_name: string;
|
|
173
|
+
/** 劳动者证件号 */
|
|
174
|
+
id_card: string;
|
|
175
|
+
/** 本批次退补给劳动者税费总额 */
|
|
176
|
+
refund_tax: string;
|
|
177
|
+
/** 退补税状态 */
|
|
178
|
+
tax_refund_status: string;
|
|
179
|
+
/** 劳动者收款账户 */
|
|
180
|
+
receiving_account: string;
|
|
181
|
+
/** 劳动者收款账号 */
|
|
182
|
+
receiving_channel: string;
|
|
183
|
+
/** 退补税费时间 */
|
|
184
|
+
refund_tax_finished_time: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
135
187
|
export class TaxClearRefundClient extends YZHclient {
|
|
136
188
|
// eslint-disable-next-line no-useless-constructor
|
|
137
189
|
constructor(conf: {
|
|
@@ -190,4 +242,18 @@ export class TaxClearRefundClient extends YZHclient {
|
|
|
190
242
|
);
|
|
191
243
|
}
|
|
192
244
|
|
|
245
|
+
// GetRefundTaxLaborInfo 查询税费退补涉及劳动者
|
|
246
|
+
async GetRefundTaxLaborInfo(
|
|
247
|
+
req: GetRefundTaxLaborInfoRequest,
|
|
248
|
+
cb?: (error: null | string,rep: GetRefundTaxLaborInfoResponse)=>void
|
|
249
|
+
): Promise<GetRefundTaxLaborInfoResponse> {
|
|
250
|
+
return this.request(
|
|
251
|
+
'get',
|
|
252
|
+
'/api/payment/v1/query-clear-labor-info',
|
|
253
|
+
req,
|
|
254
|
+
{encryption: false },
|
|
255
|
+
cb
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
193
259
|
}
|
|
@@ -82,6 +82,10 @@ interface CalcTaxRequest {
|
|
|
82
82
|
tax_type: string;
|
|
83
83
|
/** 税前订单金额返回值类型 */
|
|
84
84
|
before_tax_amount_type: string;
|
|
85
|
+
/** 将追缴税费纳入测算 */
|
|
86
|
+
include_recovery_amount: number;
|
|
87
|
+
/** 将劳动者服务费纳入测算 */
|
|
88
|
+
include_user_service_fee: number;
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
/** CalcTaxResponse 订单税费试算返回 */
|
|
@@ -90,19 +94,19 @@ interface CalcTaxResponse {
|
|
|
90
94
|
pay: string;
|
|
91
95
|
/** 税费总额 */
|
|
92
96
|
tax: string;
|
|
93
|
-
/**
|
|
97
|
+
/** 劳动者预估到手金额 */
|
|
94
98
|
after_tax_amount: string;
|
|
95
99
|
/** 缴税明细 */
|
|
96
100
|
tax_detail: CalcTaxDetail;
|
|
97
101
|
/** 税前订单金额 */
|
|
98
102
|
before_tax_amount: string;
|
|
99
|
-
/**
|
|
103
|
+
/** 劳动者税费总额 */
|
|
100
104
|
user_tax: string;
|
|
101
105
|
/** 平台企业税费总额 */
|
|
102
106
|
dealer_tax: string;
|
|
103
107
|
/** 云账户税费总额 */
|
|
104
108
|
broker_tax: string;
|
|
105
|
-
/**
|
|
109
|
+
/** 劳动者服务费 */
|
|
106
110
|
user_fee: string;
|
|
107
111
|
/** 结果 */
|
|
108
112
|
status: string;
|
|
@@ -112,14 +116,24 @@ interface CalcTaxResponse {
|
|
|
112
116
|
status_message: string;
|
|
113
117
|
/** 结果详细状态码描述 */
|
|
114
118
|
status_detail_message: string;
|
|
115
|
-
/**
|
|
119
|
+
/** 劳动者预估应收金额(追缴退回前) */
|
|
116
120
|
user_real_excluding_vat_amount: string;
|
|
117
|
-
/**
|
|
121
|
+
/** 劳动者还未缴清的增附税 */
|
|
118
122
|
user_remaining_repayment_amount: string;
|
|
119
|
-
/**
|
|
123
|
+
/** 追缴增附税 */
|
|
120
124
|
user_recover_tax_amount: string;
|
|
121
125
|
/** 待追缴增附税总金额 */
|
|
122
126
|
user_total_recover_tax_amount: string;
|
|
127
|
+
/** 劳动者还未缴清的个税 */
|
|
128
|
+
user_remaining_repayment_personal_amount: string;
|
|
129
|
+
/** 追缴个税 */
|
|
130
|
+
user_recover_personal_tax_amount: string;
|
|
131
|
+
/** 待追缴个税总金额 */
|
|
132
|
+
user_total_recover_personal_tax_amount: string;
|
|
133
|
+
/** 退回增附税 */
|
|
134
|
+
user_refund_tax_amount: string;
|
|
135
|
+
/** 退回个税 */
|
|
136
|
+
user_refund_personal_tax_amount: string;
|
|
123
137
|
}
|
|
124
138
|
|
|
125
139
|
/** CalcTaxDetail 税费明细 */
|
|
@@ -152,6 +166,12 @@ interface CalcTaxDetail {
|
|
|
152
166
|
personal_tax_rate: string;
|
|
153
167
|
/** 预扣个税速算扣除数 */
|
|
154
168
|
deduct_tax: string;
|
|
169
|
+
/** 预扣城建附加税 */
|
|
170
|
+
additional_urban_tax: string;
|
|
171
|
+
/** 预扣教育附加税 */
|
|
172
|
+
additional_tuition_tax: string;
|
|
173
|
+
/** 预扣地方教育附加税 */
|
|
174
|
+
additional_local_tuition_tax: string;
|
|
155
175
|
}
|
|
156
176
|
|
|
157
177
|
/** CalculationYearH5UrlRequest 连续劳务年度税费测算-H5 请求 */
|
|
@@ -29,6 +29,10 @@ interface GetInvoiceAmountRequest {
|
|
|
29
29
|
broker_id: string;
|
|
30
30
|
/** 平台企业 ID */
|
|
31
31
|
dealer_id: string;
|
|
32
|
+
/** 查询开始日期 */
|
|
33
|
+
start_date: string;
|
|
34
|
+
/** 查询结束日期 */
|
|
35
|
+
end_date: string;
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
/** GetInvoiceAmountResponse 查询可开具发票额度和发票开具信息返回 */
|
|
@@ -63,6 +67,10 @@ interface ApplyInvoiceRequest {
|
|
|
63
67
|
receive_emails: string[];
|
|
64
68
|
/** 发票介质 */
|
|
65
69
|
invoice_media: string;
|
|
70
|
+
/** 查询开始日期 */
|
|
71
|
+
start_date: string;
|
|
72
|
+
/** 查询结束日期 */
|
|
73
|
+
end_date: string;
|
|
66
74
|
}
|
|
67
75
|
|
|
68
76
|
/** ApplyInvoiceResponse 发票开具申请返回 */
|
|
@@ -190,7 +190,7 @@ interface GetOrderResponse {
|
|
|
190
190
|
broker_real_fee: string;
|
|
191
191
|
/** 应收加成服务费抵扣金额 */
|
|
192
192
|
broker_deduct_fee: string;
|
|
193
|
-
/**
|
|
193
|
+
/** 应收劳动者加成服务费金额 */
|
|
194
194
|
user_fee: string;
|
|
195
195
|
/** 实收综合服务主体加成服务费金额 */
|
|
196
196
|
received_broker_fee: string;
|
|
@@ -198,7 +198,7 @@ interface GetOrderResponse {
|
|
|
198
198
|
received_broker_real_fee: string;
|
|
199
199
|
/** 实收加成服务费抵扣金额 */
|
|
200
200
|
received_broker_deduct_fee: string;
|
|
201
|
-
/**
|
|
201
|
+
/** 实收劳动者加成服务费金额 */
|
|
202
202
|
received_user_fee: string;
|
|
203
203
|
/** 订单备注 */
|
|
204
204
|
pay_remark: string;
|
|
@@ -216,7 +216,7 @@ interface GetOrderResponse {
|
|
|
216
216
|
tax: string;
|
|
217
217
|
/** 系统支付费用,该字段已废弃 */
|
|
218
218
|
sys_fee: string;
|
|
219
|
-
/**
|
|
219
|
+
/** 劳动者实收金额 */
|
|
220
220
|
user_real_amount: string;
|
|
221
221
|
/** 缴税明细 */
|
|
222
222
|
tax_detail: TaxDetail;
|
|
@@ -224,18 +224,20 @@ interface GetOrderResponse {
|
|
|
224
224
|
received_tax_amount: string;
|
|
225
225
|
/** 互联网平台名称 */
|
|
226
226
|
dealer_platform_name: string;
|
|
227
|
-
/**
|
|
227
|
+
/** 劳动者名称/昵称 */
|
|
228
228
|
dealer_user_nickname: string;
|
|
229
|
-
/**
|
|
229
|
+
/** 劳动者唯一标识码 */
|
|
230
230
|
dealer_user_id: string;
|
|
231
|
-
/**
|
|
231
|
+
/** 劳动者应收金额(追缴退回前) */
|
|
232
232
|
user_real_excluding_vat_amount: string;
|
|
233
|
-
/**
|
|
233
|
+
/** 追缴增附税 */
|
|
234
234
|
user_recover_tax_amount: string;
|
|
235
235
|
/** 预扣个税税率 */
|
|
236
236
|
personal_tax_rate: string;
|
|
237
237
|
/** 预扣个税速算扣除数 */
|
|
238
238
|
deduct_tax: string;
|
|
239
|
+
/** 追缴个税 */
|
|
240
|
+
user_recover_personal_tax_amount: string;
|
|
239
241
|
}
|
|
240
242
|
|
|
241
243
|
/** GetDealerVARechargeAccountRequest 查询平台企业汇款信息请求 */
|
|
@@ -650,7 +652,7 @@ interface GetOrderLxlwResponse {
|
|
|
650
652
|
broker_real_fee: string;
|
|
651
653
|
/** 应收加成服务费抵扣金额 */
|
|
652
654
|
broker_deduct_fee: string;
|
|
653
|
-
/**
|
|
655
|
+
/** 应收劳动者加成服务费金额 */
|
|
654
656
|
user_fee: string;
|
|
655
657
|
/** 实收综合服务主体加成服务费金额 */
|
|
656
658
|
received_broker_fee: string;
|
|
@@ -658,7 +660,7 @@ interface GetOrderLxlwResponse {
|
|
|
658
660
|
received_broker_real_fee: string;
|
|
659
661
|
/** 实收加成服务费抵扣金额 */
|
|
660
662
|
received_broker_deduct_fee: string;
|
|
661
|
-
/**
|
|
663
|
+
/** 实收劳动者加成服务费金额 */
|
|
662
664
|
received_user_fee: string;
|
|
663
665
|
/** 订单备注 */
|
|
664
666
|
pay_remark: string;
|
|
@@ -676,7 +678,7 @@ interface GetOrderLxlwResponse {
|
|
|
676
678
|
tax: string;
|
|
677
679
|
/** 系统支付费用,该字段已废弃 */
|
|
678
680
|
sys_fee: string;
|
|
679
|
-
/**
|
|
681
|
+
/** 劳动者实收金额 */
|
|
680
682
|
user_real_amount: string;
|
|
681
683
|
/** 缴税明细 */
|
|
682
684
|
tax_detail: TaxDetail;
|
|
@@ -684,18 +686,20 @@ interface GetOrderLxlwResponse {
|
|
|
684
686
|
received_tax_amount: string;
|
|
685
687
|
/** 互联网平台名称 */
|
|
686
688
|
dealer_platform_name: string;
|
|
687
|
-
/**
|
|
689
|
+
/** 劳动者名称/昵称 */
|
|
688
690
|
dealer_user_nickname: string;
|
|
689
|
-
/**
|
|
691
|
+
/** 劳动者唯一标识码 */
|
|
690
692
|
dealer_user_id: string;
|
|
691
|
-
/**
|
|
693
|
+
/** 劳动者应收金额(追缴退回前) */
|
|
692
694
|
user_real_excluding_vat_amount: string;
|
|
693
|
-
/**
|
|
695
|
+
/** 追缴增附税 */
|
|
694
696
|
user_recover_tax_amount: string;
|
|
695
697
|
/** 预扣个税税率 */
|
|
696
698
|
personal_tax_rate: string;
|
|
697
699
|
/** 预扣个税速算扣除数 */
|
|
698
700
|
deduct_tax: string;
|
|
701
|
+
/** 追缴个税 */
|
|
702
|
+
user_recover_personal_tax_amount: string;
|
|
699
703
|
}
|
|
700
704
|
|
|
701
705
|
/** TaxDetail 缴税明细 */
|
|
@@ -712,32 +716,56 @@ interface TaxDetail {
|
|
|
712
716
|
received_value_added_tax: string;
|
|
713
717
|
/** 实缴附加税费 */
|
|
714
718
|
received_additional_tax: string;
|
|
715
|
-
/**
|
|
719
|
+
/** 劳动者预扣个税 */
|
|
716
720
|
user_personal_tax: string;
|
|
717
721
|
/** 平台企业预扣个税 */
|
|
718
722
|
dealer_personal_tax: string;
|
|
719
|
-
/**
|
|
723
|
+
/** 劳动者预扣增值税 */
|
|
720
724
|
user_value_added_tax: string;
|
|
721
725
|
/** 平台企业预扣增值税 */
|
|
722
726
|
dealer_value_added_tax: string;
|
|
723
|
-
/**
|
|
727
|
+
/** 劳动者预扣附加税费 */
|
|
724
728
|
user_additional_tax: string;
|
|
725
729
|
/** 平台企业预扣附加税费 */
|
|
726
730
|
dealer_additional_tax: string;
|
|
727
|
-
/**
|
|
731
|
+
/** 劳动者实缴个税 */
|
|
728
732
|
user_received_personal_tax: string;
|
|
729
733
|
/** 平台企业实缴个税 */
|
|
730
734
|
dealer_received_personal_tax: string;
|
|
731
|
-
/**
|
|
735
|
+
/** 劳动者实缴增值税 */
|
|
732
736
|
user_received_value_added_tax: string;
|
|
733
737
|
/** 平台企业实缴增值税 */
|
|
734
738
|
dealer_received_value_added_tax: string;
|
|
735
|
-
/**
|
|
739
|
+
/** 劳动者实缴附加税费 */
|
|
736
740
|
user_received_additional_tax: string;
|
|
737
741
|
/** 平台企业实缴附加税费 */
|
|
738
742
|
dealer_received_additional_tax: string;
|
|
743
|
+
/** 预扣城建附加税 */
|
|
744
|
+
additional_urban_tax: string;
|
|
745
|
+
/** 预扣教育附加税 */
|
|
746
|
+
additional_tuition_tax: string;
|
|
747
|
+
/** 预扣地方教育附加税 */
|
|
748
|
+
additional_local_tuition_tax: string;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/** CancelOrderInBatchRequest 取消批次中单笔订单请求 */
|
|
752
|
+
interface CancelOrderInBatchRequest {
|
|
753
|
+
/** 平台企业批次号 */
|
|
754
|
+
batch_id: string;
|
|
755
|
+
/** 平台企业 ID */
|
|
756
|
+
dealer_id: string;
|
|
757
|
+
/** 综合服务主体 ID */
|
|
758
|
+
broker_id: string;
|
|
759
|
+
/** 平台企业订单号 */
|
|
760
|
+
order_id: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/** CancelOrderInBatchResponse 取消批次中单笔订单返回 */
|
|
764
|
+
interface CancelOrderInBatchResponse {
|
|
739
765
|
}
|
|
740
766
|
|
|
767
|
+
|
|
768
|
+
|
|
741
769
|
export declare class PaymentClient extends YZHclient {
|
|
742
770
|
constructor(conf: {
|
|
743
771
|
dealer_id: string;
|
|
@@ -810,6 +838,10 @@ export declare class PaymentClient extends YZHclient {
|
|
|
810
838
|
req: GetOrderLxlwRequest,
|
|
811
839
|
cb?: (error: null | string, rep: GetOrderLxlwResponse) => void
|
|
812
840
|
): Promise<GetOrderLxlwResponse>;
|
|
841
|
+
CancelOrderInBatch(
|
|
842
|
+
req: CancelOrderInBatchRequest,
|
|
843
|
+
cb?: (error: null | string, rep: CancelOrderInBatchResponse) => void
|
|
844
|
+
): Promise<CancelOrderInBatchResponse>;
|
|
813
845
|
}
|
|
814
846
|
|
|
815
847
|
export {};
|
|
@@ -79,5 +79,9 @@ class PaymentClient extends client_1.default {
|
|
|
79
79
|
cb
|
|
80
80
|
);
|
|
81
81
|
}
|
|
82
|
+
// CancelOrderInBatch 取消批次中单笔订单
|
|
83
|
+
async CancelOrderInBatch(req, cb) {
|
|
84
|
+
return this.request('post', '/api/payment/v1/order-batch/cancel-order', req, { encryption: false }, cb);
|
|
85
|
+
}
|
|
82
86
|
}
|
|
83
87
|
exports.PaymentClient = PaymentClient;
|
|
@@ -131,6 +131,58 @@ interface GetRefundTaxInfoRequest {
|
|
|
131
131
|
batch_id: string;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
+
/** GetRefundTaxLaborInfoRequest 查询税费退补涉及劳动者请求 */
|
|
135
|
+
interface GetRefundTaxLaborInfoRequest {
|
|
136
|
+
/** 综合服务主体 ID */
|
|
137
|
+
broker_id: string;
|
|
138
|
+
/** 平台企业 ID */
|
|
139
|
+
dealer_id: string;
|
|
140
|
+
/** 批次号 */
|
|
141
|
+
batch_id: string;
|
|
142
|
+
/** 税款所属期 */
|
|
143
|
+
tax_month: string;
|
|
144
|
+
/** 偏移量 */
|
|
145
|
+
offset: number;
|
|
146
|
+
/** 每页返回条数 */
|
|
147
|
+
length: number;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** GetRefundTaxLaborInfoResponse 查询税费退补涉及劳动者返回 */
|
|
151
|
+
interface GetRefundTaxLaborInfoResponse {
|
|
152
|
+
/** 税款所属期 */
|
|
153
|
+
tax_month: string;
|
|
154
|
+
/** 批次号 */
|
|
155
|
+
batch_id: string;
|
|
156
|
+
/** 批次生成时间 */
|
|
157
|
+
batch_create_time: string;
|
|
158
|
+
/** 退补税劳动者数量 */
|
|
159
|
+
labor_num: string;
|
|
160
|
+
/** 退补税订单数量 */
|
|
161
|
+
order_num: string;
|
|
162
|
+
/** 总数据条数 */
|
|
163
|
+
total_num: string;
|
|
164
|
+
/** 退补税劳动者明细 */
|
|
165
|
+
labor_refund_info: LaborRefundInfo[];
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** LaborRefundInfo 退补税劳动者明细 */
|
|
169
|
+
interface LaborRefundInfo {
|
|
170
|
+
/** 劳动者姓名 */
|
|
171
|
+
real_name: string;
|
|
172
|
+
/** 劳动者证件号 */
|
|
173
|
+
id_card: string;
|
|
174
|
+
/** 本批次退补给劳动者税费总额 */
|
|
175
|
+
refund_tax: string;
|
|
176
|
+
/** 退补税状态 */
|
|
177
|
+
tax_refund_status: string;
|
|
178
|
+
/** 劳动者收款账户 */
|
|
179
|
+
receiving_account: string;
|
|
180
|
+
/** 劳动者收款账号 */
|
|
181
|
+
receiving_channel: string;
|
|
182
|
+
/** 退补税费时间 */
|
|
183
|
+
refund_tax_finished_time: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
134
186
|
export declare class TaxClearRefundClient extends YZHclient {
|
|
135
187
|
constructor(conf: {
|
|
136
188
|
dealer_id: string;
|
|
@@ -155,6 +207,10 @@ export declare class TaxClearRefundClient extends YZHclient {
|
|
|
155
207
|
req: GetRefundTaxInfoRequest,
|
|
156
208
|
cb?: (error: null | string, rep: RefundTaxData) => void
|
|
157
209
|
): Promise<RefundTaxData>;
|
|
210
|
+
GetRefundTaxLaborInfo(
|
|
211
|
+
req: GetRefundTaxLaborInfoRequest,
|
|
212
|
+
cb?: (error: null | string, rep: GetRefundTaxLaborInfoResponse) => void
|
|
213
|
+
): Promise<GetRefundTaxLaborInfoResponse>;
|
|
158
214
|
}
|
|
159
215
|
|
|
160
216
|
export {};
|
|
@@ -37,5 +37,15 @@ class TaxClearRefundClient extends client_1.default {
|
|
|
37
37
|
cb
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
+
// GetRefundTaxLaborInfo 查询税费退补涉及劳动者
|
|
41
|
+
async GetRefundTaxLaborInfo(req, cb) {
|
|
42
|
+
return this.request(
|
|
43
|
+
'get',
|
|
44
|
+
'/api/payment/v1/query-clear-labor-info',
|
|
45
|
+
req,
|
|
46
|
+
{ encryption: (req === null || req === void 0 ? void 0 : req.data_type) === 'encryption' },
|
|
47
|
+
cb
|
|
48
|
+
);
|
|
49
|
+
}
|
|
40
50
|
}
|
|
41
51
|
exports.TaxClearRefundClient = TaxClearRefundClient;
|