Skip to content

Commit fc61838

Browse files
author
wuyajun
committed
电商收付通-商户进件(等账号下来测试一下)
1 parent ce8f4f8 commit fc61838

12 files changed

+1316
-0
lines changed

Diff for: weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/applyments/ApplymentsCreateRequest.java

+578
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package com.github.binarywang.wxpay.bean.ecommerce.applyments;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import lombok.AllArgsConstructor;
5+
import lombok.Builder;
6+
import lombok.Data;
7+
import lombok.NoArgsConstructor;
8+
import lombok.experimental.Accessors;
9+
10+
import java.io.Serializable;
11+
12+
/**
13+
* <pre>
14+
* 二级商户进件API 返回结果
15+
* Created by githubwyj on 2020/8/13 14:12.
16+
* </pre>
17+
*
18+
* @author <a href="https://github.com/githubwyj">githubwyj</a>
19+
*/
20+
@Data
21+
@Builder
22+
@NoArgsConstructor
23+
@AllArgsConstructor
24+
@Accessors(chain = true)
25+
public class ApplymentsCreateResult implements Serializable {
26+
private static final long serialVersionUID = 1L;
27+
28+
/**
29+
* 微信支付申请单号
30+
* 微信支付分配的申请单号 。
31+
*/
32+
@SerializedName("applyment_id")
33+
private String applymentId;
34+
35+
/**
36+
* 业务申请编号
37+
* 服务商自定义的商户唯一编号。每个编号对应一个申请单,每个申请单审核通过后会生成一个微信支付商户号。
38+
*/
39+
@SerializedName("out_request_no")
40+
private String outRequestNo;
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
package com.github.binarywang.wxpay.bean.ecommerce.applyments;
2+
3+
import com.github.binarywang.wxpay.bean.ecommerce.enums.ApplymentStateEnum;
4+
import com.github.binarywang.wxpay.v3.SpecEncrypt;
5+
import com.google.gson.annotations.SerializedName;
6+
import lombok.AllArgsConstructor;
7+
import lombok.Builder;
8+
import lombok.Data;
9+
import lombok.NoArgsConstructor;
10+
import lombok.experimental.Accessors;
11+
12+
import java.util.List;
13+
14+
/**
15+
* 查询申请状态API 返回结果model
16+
*/
17+
@Data
18+
@Builder
19+
@NoArgsConstructor
20+
@AllArgsConstructor
21+
@Accessors(chain = true)
22+
public class ApplymentsCreateStateQueryResult {
23+
24+
/**
25+
* 申请单状态
26+
*/
27+
@SerializedName("applyment_state")
28+
private ApplymentStateEnum applymentState;
29+
30+
/**
31+
* 申请状态描述
32+
*/
33+
@SerializedName("applyment_state_desc")
34+
private String applymentStateDesc;
35+
36+
/**
37+
* 签约链接
38+
* 1、当申请状态为NEED_SIGN时才返回。
39+
* 2、建议将链接转为二维码展示,需让申请单-管理者用微信扫码打开,完成签约。
40+
*/
41+
@SerializedName("sign_url")
42+
private String signUrl;
43+
44+
/**
45+
* 电商平台二级商户号
46+
* 当申请状态为NEED_SIGN或FINISH时才返回。
47+
*/
48+
@SerializedName("sub_mchid")
49+
private String subMchId;
50+
51+
/**
52+
* 汇款账户验证信息
53+
* 当申请状态为ACCOUNT_NEED_VERIFY 时有返回,可根据指引汇款,完成账户验证。
54+
*/
55+
@SerializedName("account_validation")
56+
private AccountValidation accountValidation;
57+
58+
/**
59+
* 驳回原因详情
60+
* 各项资料的审核情况。当申请状态为REJECTED或 FROZEN时才返回。
61+
*/
62+
@SerializedName("audit_detail")
63+
private List<AuditDetail> auditDetail;
64+
65+
/**
66+
* 法人验证链接
67+
* 1、当申请状态为
68+
* ACCOUNT_NEED_VERIFY,且通过系统校验的申请单,将返回链接。
69+
* 2、建议将链接转为二维码展示,让商户法人用微信扫码打开,完成账户验证。
70+
*/
71+
@SerializedName("legal_validation_url")
72+
private String legalValidationUrl;
73+
74+
/**
75+
* 业务申请编号
76+
* 提交接口填写的业务申请编号。
77+
*/
78+
@SerializedName("out_request_no")
79+
private String outRequestNo;
80+
81+
/**
82+
* 微信支付申请单号
83+
* 微信支付分配的申请单号。
84+
*/
85+
@SerializedName("applyment_id")
86+
private String applymentId;
87+
88+
89+
/**
90+
* 汇款账户验证信息
91+
*/
92+
@Data
93+
@Builder
94+
@NoArgsConstructor
95+
@AllArgsConstructor
96+
@Accessors(chain = true)
97+
public static class AccountValidation {
98+
99+
/**
100+
* 付款户名
101+
* 需商户使用该户名的账户进行汇款。
102+
*/
103+
@SerializedName("account_name")
104+
@SpecEncrypt
105+
private String accountName;
106+
107+
/**
108+
* 付款卡号
109+
* 结算账户为对私时会返回,商户需使用该付款卡号进行汇款。
110+
*/
111+
@SerializedName("account_no")
112+
@SpecEncrypt
113+
private String accountNo;
114+
115+
/**
116+
* 汇款金额
117+
* 需要汇款的金额(单位:分)。
118+
*/
119+
@SerializedName("pay_amount")
120+
private String payAmount;
121+
122+
/**
123+
* 收款卡号
124+
*/
125+
@SerializedName("destination_account_number")
126+
private String destinationAccountNumber;
127+
128+
/**
129+
* 收款户名
130+
*/
131+
@SerializedName("destination_account_name")
132+
private String destinationAccountName;
133+
134+
/**
135+
* 收款账户的开户银行名称。
136+
*/
137+
@SerializedName("destination_account_bank")
138+
private String destinationAccountBank;
139+
140+
/**
141+
* 省市信息 。
142+
* 收款账户的省市。
143+
*/
144+
@SerializedName("city")
145+
private String city;
146+
147+
/**
148+
* 备注信息 。
149+
* 商户汇款时,需要填写的备注信息。
150+
*/
151+
@SerializedName("remark")
152+
private String remark;
153+
154+
155+
/**
156+
* 汇款截止时间 。
157+
* 请在此时间前完成汇款。
158+
* 示例值:2018-12-1017:09:01
159+
*/
160+
@SerializedName("remark")
161+
private String deadline;
162+
163+
164+
}
165+
166+
/**
167+
* 驳回原因详情
168+
*/
169+
@Data
170+
@Builder
171+
@NoArgsConstructor
172+
@AllArgsConstructor
173+
@Accessors(chain = true)
174+
public static class AuditDetail {
175+
/**
176+
* 提交申请单的资料项名称。
177+
*/
178+
@SerializedName("param_name")
179+
private String paramName;
180+
/**
181+
* 提交资料项被驳回原因。
182+
*/
183+
@SerializedName("reject_reason")
184+
private String rejectReason;
185+
186+
187+
}
188+
189+
}
190+
191+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
package com.github.binarywang.wxpay.bean.ecommerce.applyments;
2+
3+
import com.github.binarywang.wxpay.bean.applyment.enums.AccountTypeEnum;
4+
import com.github.binarywang.wxpay.bean.ecommerce.enums.BankAccountTypeEnum;
5+
import com.github.binarywang.wxpay.v3.SpecEncrypt;
6+
import com.google.gson.annotations.SerializedName;
7+
import lombok.AllArgsConstructor;
8+
import lombok.Builder;
9+
import lombok.Data;
10+
import lombok.NoArgsConstructor;
11+
import lombok.experimental.Accessors;
12+
13+
/**
14+
* <pre>
15+
* 修改结算帐号请求model
16+
* Created by githubwyj on 2020/8/13 15:05.
17+
* </pre>
18+
*
19+
* @author <a href="https://github.com/githubwyj">githubwyj</a>
20+
*/
21+
@Data
22+
@Builder
23+
@NoArgsConstructor
24+
@AllArgsConstructor
25+
@Accessors(chain = true)
26+
public class ApplymentsModifySettlementRequest {
27+
28+
/**
29+
* 特约商户号
30+
*/
31+
@SerializedName("sub_mchid")
32+
private String subMchId;
33+
34+
/**
35+
* 账户类型
36+
* 根据特约商户号的主体类型,可选择的账户类型如下:
37+
* 1、小微主体:经营者个人银行卡
38+
* 2、个体工商户主体:经营者个人银行卡/ 对公银行账户
39+
* 3、企业主体:对公银行账户
40+
* 4、党政、机关及事业单位主体:对公银行账户
41+
* 5、其他组织主体:对公银行账户
42+
* 枚举值:
43+
* ACCOUNT_TYPE_BUSINESS:对公银行账户
44+
* ACCOUNT_TYPE_PRIVATE:经营者个人银行卡
45+
*/
46+
@SerializedName("account_type")
47+
private AccountTypeEnum accountType;
48+
49+
50+
/**
51+
* 开户银行
52+
* <a href="https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter4_1.shtml">开户银行对账表</a>
53+
*/
54+
@SerializedName("account_bank")
55+
private String accountBank;
56+
57+
/**
58+
* 开户名称
59+
* 1、选择经营者个人银行卡时,开户名称必须与身份证姓名一致。
60+
* 2、选择对公账户时,开户名称必须与营业执照上的“商户名称”一致。
61+
* 3、该字段需进行加密处理,加密方法详见敏感信息加密说明。(提醒:必须在HTTP头中上送Wechatpay-Serial)
62+
*/
63+
@SerializedName("account_name")
64+
@SpecEncrypt
65+
private String accountName;
66+
67+
68+
/**
69+
* 开户银行省市编码
70+
* 至少精确到市
71+
* <a href="https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter4_1.shtml">开户银行省市编码</a>
72+
* 示例值:110000
73+
*/
74+
@SerializedName("bank_address_code")
75+
private String bankAddressCode;
76+
77+
/**
78+
* 开户银行联行号
79+
* 1、<a href="https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter4_1.shtml">17家直连银行<a/>无需填写,如为其他银行,开户银行全称(含支行)和开户银行联行号二选一。
80+
* 2、详细参见<a href="https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter4_1.shtml">开户银行全称(含支行)对照表<a/>。
81+
*/
82+
@SerializedName("bank_branch_id")
83+
private String bankBranchId;
84+
85+
/**
86+
* 开户银行全称(含支行]
87+
* 1、<a href="https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter4_1.shtml">17家直连银行<a/>无需填写,如为其他银行,开户银行全称(含支行)和开户银行联行号二选一。
88+
* 2、需填写银行全称,如"深圳农村商业银行XXX支行" 。
89+
* 3、详细参见<a href="https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/applyments/chapter4_1.shtml">开户银行全称(含支行)对照表<a/>。
90+
*/
91+
@SerializedName("bank_name")
92+
private String bankName;
93+
94+
/**
95+
* 银行账号
96+
*/
97+
@SerializedName("account_number")
98+
@SpecEncrypt
99+
private String accountNumber;
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package com.github.binarywang.wxpay.bean.ecommerce.enums;
2+
3+
/**
4+
* 申请单状态枚举类
5+
*
6+
* @author githubwyj
7+
*/
8+
public enum ApplymentStateEnum {
9+
/**
10+
* 资料校验中
11+
*/
12+
CHECKING,
13+
14+
/**
15+
* 待账户验证
16+
*/
17+
ACCOUNT_NEED_VERIFY,
18+
19+
/**
20+
* 审核中
21+
*/
22+
AUDITING,
23+
24+
/**
25+
* 已驳回
26+
*/
27+
REJECTED,
28+
29+
/**
30+
* 待签约
31+
*/
32+
NEED_SIGN,
33+
34+
/**
35+
* 完成
36+
*/
37+
FINISH,
38+
/**
39+
* 已冻结
40+
*/
41+
FROZEN
42+
43+
}

0 commit comments

Comments
 (0)