Skip to content

Commit a21a622

Browse files
英狐binarywang
英狐
authored and
binarywang
committed
🆕 #2696 【微信支付】银行组件添加省市列表查询及支行列表查询的接口
1 parent 1f3f133 commit a21a622

File tree

8 files changed

+1108
-155
lines changed

8 files changed

+1108
-155
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
package com.github.binarywang.wxpay.bean.bank;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import lombok.Data;
5+
import lombok.Getter;
6+
import lombok.Setter;
7+
8+
import java.io.Serializable;
9+
import java.util.List;
10+
11+
/**
12+
* 支行列表
13+
*
14+
* @author hupeng
15+
**/
16+
@Data
17+
public class BankBranchesResult implements Serializable {
18+
19+
private static final long serialVersionUID = -3500020131951579476L;
20+
21+
/**
22+
* <pre>
23+
* 字段名:查询数据总条数
24+
* 变量名:total_count
25+
* 是否必填:是
26+
* 类型:int
27+
* 描述:
28+
* 经过条件筛选,查询到的支行总数
29+
* 示例值:10
30+
* </pre>
31+
*/
32+
@SerializedName("total_count")
33+
private Integer totalCount;
34+
35+
/**
36+
* <pre>
37+
* 字段名:本次查询条数
38+
* 变量名:count
39+
* 是否必填:是
40+
* 类型:int
41+
* 描述:
42+
* 本次查询到的支行数据条数
43+
* 示例值:10
44+
* </pre>
45+
*/
46+
@SerializedName("count")
47+
private Integer count;
48+
49+
/**
50+
* <pre>
51+
* 字段名:支行列表
52+
* 变量名:data
53+
* 是否必填:否
54+
* 类型:array
55+
* 描述:
56+
* 单次查询返回的支行列表结果数组
57+
* </pre>
58+
*/
59+
@SerializedName("data")
60+
private List<BankBranch> data;
61+
62+
/**
63+
* <pre>
64+
* 字段名:本次查询偏移量
65+
* 变量名:offset
66+
* 是否必填:是
67+
* 类型:int
68+
* 描述:
69+
* 该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0
70+
* 示例值:0
71+
* </pre>
72+
*/
73+
@SerializedName("offset")
74+
private Integer offset;
75+
76+
/**
77+
* <pre>
78+
* 字段名:分页链接
79+
* 变量名:offset
80+
* 是否必填:是
81+
* 类型:object
82+
* 描述:
83+
* 返回前后页和当前页面的访问链接
84+
* </pre>
85+
*/
86+
@SerializedName("links")
87+
private PageLink links;
88+
89+
/**
90+
* <pre>
91+
* 字段名:开户银行
92+
* 变量名:account_bank
93+
* 是否必填:是
94+
* 类型:string[1, 128]
95+
* 描述:
96+
* 查询到的支行所属开户银行的名称,非直连银行统一为其他银行
97+
* 示例值:招商银行其他银行
98+
* </pre>
99+
*/
100+
@SerializedName("account_bank")
101+
private String accountBank;
102+
103+
/**
104+
* <pre>
105+
* 字段名:开户银行编码
106+
* 变量名:account_bank_code
107+
* 是否必填:是
108+
* 类型:int
109+
* 描述:
110+
* 查询到的支行所属开户银行的开户银行编码,可用于付款到银行卡等场景中指定银行卡的开户银行
111+
* 示例值:1001
112+
* </pre>
113+
*/
114+
@SerializedName("account_bank_code")
115+
private Integer accountBankCode;
116+
117+
/**
118+
* <pre>
119+
* 字段名:银行别名
120+
* 变量名:bank_alias
121+
* 是否必填:是
122+
* 类型:string[1, 128]
123+
* 描述:
124+
* 查询到的支行所属银行的银行别名
125+
* 示例值:工商银行深圳前海微众银行
126+
* </pre>
127+
*/
128+
@SerializedName("bank_alias")
129+
private String bankAlias;
130+
131+
/**
132+
* <pre>
133+
* 字段名:银行别名编码
134+
* 变量名:bank_alias_code
135+
* 是否必填:是
136+
* 类型:string[1, 32]
137+
* 描述:
138+
* 查询到的支行所属银行的银行别名编码,用于校验回包
139+
* 示例值:1000006247
140+
* </pre>
141+
*/
142+
@SerializedName("bank_alias_code")
143+
private String bankAliasCode;
144+
145+
@Getter
146+
@Setter
147+
public static class BankBranch {
148+
/**
149+
* <pre>
150+
* 字段名:开户银行支行名称
151+
* 变量名:bank_branch_name
152+
* 是否必填:是
153+
* 类型:string[1, 128]
154+
* 描述:
155+
* 开户银行支行名称,用于开户银行为其他银行的情况下,在入驻、修改结算银行卡、企业付款等场景下填写结算银行卡信息。
156+
* 示例值:中国工商银行上海市周浦支行
157+
* </pre>
158+
*/
159+
@SerializedName("bank_branch_name")
160+
private String bankBranchName;
161+
162+
/**
163+
* <pre>
164+
* 字段名:开户银行支行联行号
165+
* 变量名:bank_branch_id
166+
* 是否必填:是
167+
* 类型:string[1, 64]
168+
* 描述:
169+
* 开户银行支行的联行号,用于开户银行为其他银行的情况下,在入驻、修改结算银行卡、企业付款等场景下填写结算银行卡信息。
170+
* 示例值:102290072311
171+
* </pre>
172+
*/
173+
@SerializedName("bank_branch_id")
174+
private String bankBranchId;
175+
}
176+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
package com.github.binarywang.wxpay.bean.bank;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import lombok.Data;
5+
import lombok.Getter;
6+
import lombok.Setter;
7+
8+
import java.io.Serializable;
9+
import java.util.List;
10+
11+
/**
12+
* 城市列表
13+
*
14+
* @author hupeng
15+
**/
16+
@Data
17+
public class CitiesResult implements Serializable {
18+
19+
private static final long serialVersionUID = -6089905695087974693L;
20+
21+
/**
22+
* <pre>
23+
* 字段名:查询数据总条数
24+
* 变量名:total_count
25+
* 是否必填:是
26+
* 类型:int
27+
* 描述:
28+
* 查询到的省份数据总条数
29+
* 示例值:10
30+
* </pre>
31+
*/
32+
@SerializedName("total_count")
33+
private Integer totalCount;
34+
35+
/**
36+
* <pre>
37+
* 字段名:城市列表
38+
* 变量名:data
39+
* 是否必填:否
40+
* 类型:array
41+
* 描述:
42+
* 查询返回的城市列表结果
43+
* </pre>
44+
*/
45+
@SerializedName("data")
46+
private List<CityInfo> data;
47+
48+
@Getter
49+
@Setter
50+
public static class CityInfo {
51+
/**
52+
* <pre>
53+
* 字段名:城市名称
54+
* 变量名:city_name
55+
* 是否必填:是
56+
* 类型:string[1, 256]
57+
* 描述:
58+
* 城市名称
59+
* 示例值:北京市
60+
* </pre>
61+
*/
62+
@SerializedName("city_name")
63+
private String cityName;
64+
65+
/**
66+
* <pre>
67+
* 字段名:城市编码
68+
* 变量名:city_code
69+
* 是否必填:是
70+
* 类型:int
71+
* 描述:
72+
* 城市编码,唯一标识一座城市,用于结合银行别名编码查询支行列表
73+
* 示例值:10
74+
* </pre>
75+
*/
76+
@SerializedName("city_code")
77+
private Integer cityCode;
78+
}
79+
80+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
package com.github.binarywang.wxpay.bean.bank;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
import lombok.Data;
5+
import lombok.Getter;
6+
import lombok.Setter;
7+
8+
import java.io.Serializable;
9+
import java.util.List;
10+
11+
/**
12+
* 支行列表
13+
*
14+
* @author hupeng
15+
**/
16+
@Data
17+
public class PageLink implements Serializable {
18+
19+
private static final long serialVersionUID = -2624233403271204837L;
20+
21+
/**
22+
* <pre>
23+
* 字段名:下一页链接
24+
* 变量名:next
25+
* 是否必填:否
26+
* 类型:string[1, 2048]
27+
* 描述:
28+
* 使用同样的limit进行下一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果已经到最后时,为空
29+
* 示例值:/v3/capital/capitallhh/banks/1001/branches?offset=10&limit=5
30+
* </pre>
31+
*/
32+
@SerializedName("next")
33+
private String next;
34+
35+
/**
36+
* <pre>
37+
* 字段名:上一页链接
38+
* 变量名:prev
39+
* 是否必填:否
40+
* 类型:string[1, 2048]
41+
* 描述:
42+
* 使用同样的limit进行上一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果是第一页,为空
43+
* 示例值:/v3/capital/capitallhh/banks/1001/branchesoffset=0&limit=5
44+
* </pre>
45+
*/
46+
@SerializedName("prev")
47+
private String prev;
48+
49+
/**
50+
* <pre>
51+
* 字段名:当前链接
52+
* 变量名:self
53+
* 是否必填:否
54+
* 类型:string[1, 2048]
55+
* 描述:
56+
* 当前的相对请求链接,使用方需要自行根据当前域名进行拼接
57+
* 示例值:/v3/capital/capitallhh/banks/1001/branches?offset=5&limit=5
58+
* </pre>
59+
*/
60+
@SerializedName("self")
61+
private String self;
62+
}

0 commit comments

Comments
 (0)