forked from binarywang/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayrollService.java
More file actions
104 lines (95 loc) · 3.62 KB
/
PayrollService.java
File metadata and controls
104 lines (95 loc) · 3.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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
package com.github.binarywang.wxpay.service;
import com.github.binarywang.wxpay.bean.marketing.payroll.*;
import com.github.binarywang.wxpay.bean.result.WxPayApplyBillV3Result;
import com.github.binarywang.wxpay.exception.WxPayException;
/**
* 微工卡-对接微信api
*
* @author xiaoqiang
* created on 2021/12/7 14:26
*/
public interface PayrollService {
/**
* 生成授权token
* 适用对象:服务商
* 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/tokens
* 请求方式:POST
*
* @param request 请求参数
* @return 返回数据
* @throws WxPayException the wx pay exception
*/
TokensResult payrollCardTokens(TokensRequest request) throws WxPayException;
/**
* 查询微工卡授权关系API
* 适用对象:服务商
* 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/relations/{openid}
* 请求方式:GET
*
* @param request 请求参数
* @return 返回数据
* @throws WxPayException the wx pay exception
*/
RelationsResult payrollCardRelations(RelationsRequest request) throws WxPayException;
/**
* 微工卡核身预下单API
* 适用对象:服务商
* 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order
* 请求方式:POST
*
* @param request 请求参数
* @return 返回数据
* @throws WxPayException the wx pay exception
*/
PreOrderResult payrollCardPreOrder(PreOrderRequest request) throws WxPayException;
/**
* 获取核身结果API
* 适用对象:服务商
* 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/{authenticate_number}
* 请求方式:GET
*
* @param subMchid 子商户号
* @param authenticateNumber 商家核身单号
* @return 返回数据
* @throws WxPayException the wx pay exception
*/
AuthenticationsResult payrollCardAuthenticationsNumber(String subMchid, String authenticateNumber) throws WxPayException;
/**
* 查询核身记录API
* 适用对象:服务商
* 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications
* 请求方式:GET
*
* @param request 请求参数
* @return 返回数据
* @throws WxPayException the wx pay exception
*/
AuthRecordResult payrollCardAuthentications(AuthRecordRequest request) throws WxPayException;
/**
* 微工卡核身预下单(流程中完成授权)
* 适用对象:服务商
* 请求URL:https://api.mch.weixin.qq.com/v3/payroll-card/authentications/pre-order-with-auth
* 请求方式:POST
*
* @param request 请求参数
* @return 返回数据
* @throws WxPayException the wx pay exception
*/
PreOrderWithAuthResult payrollCardPreOrderWithAuth(PreOrderWithAuthRequest request) throws WxPayException;
/**
* 按日下载提现异常文件API
* 适用对象:服务商
* 请求URL:https://api.mch.weixin.qq.com/v3/merchant/fund/withdraw/bill-type/{bill_type}
* 请求方式:GET
*
* @param billType 账单类型
* NO_SUCC:提现异常账单,包括提现失败和提现退票账单。
* 示例值:NO_SUCC
* @param billDate 账单日期 表示所在日期的提现账单,格式为YYYY-MM-DD。
* 例如:2008-01-01日发起的提现,2008-01-03日银行返回提现失败,则该提现数据将出现在bill_date为2008-01-03日的账单中。
* 示例值:2019-08-17
* @return 返回数据
* @throws WxPayException the wx pay exception
*/
WxPayApplyBillV3Result merchantFundWithdrawBillType(String billType, String billDate, String tarType) throws WxPayException;
}