-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🆕 #2696 【微信支付】银行组件添加省市列表查询及支行列表查询的接口
- Loading branch information
英狐
authored and
binarywang
committed
Jun 14, 2022
1 parent
1f3f133
commit a21a622
Showing
8 changed files
with
1,108 additions
and
155 deletions.
There are no files selected for viewing
176 changes: 176 additions & 0 deletions
176
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/BankBranchesResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
package com.github.binarywang.wxpay.bean.bank; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 支行列表 | ||
* | ||
* @author hupeng | ||
**/ | ||
@Data | ||
public class BankBranchesResult implements Serializable { | ||
|
||
private static final long serialVersionUID = -3500020131951579476L; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:查询数据总条数 | ||
* 变量名:total_count | ||
* 是否必填:是 | ||
* 类型:int | ||
* 描述: | ||
* 经过条件筛选,查询到的支行总数 | ||
* 示例值:10 | ||
* </pre> | ||
*/ | ||
@SerializedName("total_count") | ||
private Integer totalCount; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:本次查询条数 | ||
* 变量名:count | ||
* 是否必填:是 | ||
* 类型:int | ||
* 描述: | ||
* 本次查询到的支行数据条数 | ||
* 示例值:10 | ||
* </pre> | ||
*/ | ||
@SerializedName("count") | ||
private Integer count; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:支行列表 | ||
* 变量名:data | ||
* 是否必填:否 | ||
* 类型:array | ||
* 描述: | ||
* 单次查询返回的支行列表结果数组 | ||
* </pre> | ||
*/ | ||
@SerializedName("data") | ||
private List<BankBranch> data; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:本次查询偏移量 | ||
* 变量名:offset | ||
* 是否必填:是 | ||
* 类型:int | ||
* 描述: | ||
* 该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0 | ||
* 示例值:0 | ||
* </pre> | ||
*/ | ||
@SerializedName("offset") | ||
private Integer offset; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:分页链接 | ||
* 变量名:offset | ||
* 是否必填:是 | ||
* 类型:object | ||
* 描述: | ||
* 返回前后页和当前页面的访问链接 | ||
* </pre> | ||
*/ | ||
@SerializedName("links") | ||
private PageLink links; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:开户银行 | ||
* 变量名:account_bank | ||
* 是否必填:是 | ||
* 类型:string[1, 128] | ||
* 描述: | ||
* 查询到的支行所属开户银行的名称,非直连银行统一为其他银行 | ||
* 示例值:招商银行其他银行 | ||
* </pre> | ||
*/ | ||
@SerializedName("account_bank") | ||
private String accountBank; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:开户银行编码 | ||
* 变量名:account_bank_code | ||
* 是否必填:是 | ||
* 类型:int | ||
* 描述: | ||
* 查询到的支行所属开户银行的开户银行编码,可用于付款到银行卡等场景中指定银行卡的开户银行 | ||
* 示例值:1001 | ||
* </pre> | ||
*/ | ||
@SerializedName("account_bank_code") | ||
private Integer accountBankCode; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:银行别名 | ||
* 变量名:bank_alias | ||
* 是否必填:是 | ||
* 类型:string[1, 128] | ||
* 描述: | ||
* 查询到的支行所属银行的银行别名 | ||
* 示例值:工商银行深圳前海微众银行 | ||
* </pre> | ||
*/ | ||
@SerializedName("bank_alias") | ||
private String bankAlias; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:银行别名编码 | ||
* 变量名:bank_alias_code | ||
* 是否必填:是 | ||
* 类型:string[1, 32] | ||
* 描述: | ||
* 查询到的支行所属银行的银行别名编码,用于校验回包 | ||
* 示例值:1000006247 | ||
* </pre> | ||
*/ | ||
@SerializedName("bank_alias_code") | ||
private String bankAliasCode; | ||
|
||
@Getter | ||
@Setter | ||
public static class BankBranch { | ||
/** | ||
* <pre> | ||
* 字段名:开户银行支行名称 | ||
* 变量名:bank_branch_name | ||
* 是否必填:是 | ||
* 类型:string[1, 128] | ||
* 描述: | ||
* 开户银行支行名称,用于开户银行为其他银行的情况下,在入驻、修改结算银行卡、企业付款等场景下填写结算银行卡信息。 | ||
* 示例值:中国工商银行上海市周浦支行 | ||
* </pre> | ||
*/ | ||
@SerializedName("bank_branch_name") | ||
private String bankBranchName; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:开户银行支行联行号 | ||
* 变量名:bank_branch_id | ||
* 是否必填:是 | ||
* 类型:string[1, 64] | ||
* 描述: | ||
* 开户银行支行的联行号,用于开户银行为其他银行的情况下,在入驻、修改结算银行卡、企业付款等场景下填写结算银行卡信息。 | ||
* 示例值:102290072311 | ||
* </pre> | ||
*/ | ||
@SerializedName("bank_branch_id") | ||
private String bankBranchId; | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/CitiesResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
package com.github.binarywang.wxpay.bean.bank; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 城市列表 | ||
* | ||
* @author hupeng | ||
**/ | ||
@Data | ||
public class CitiesResult implements Serializable { | ||
|
||
private static final long serialVersionUID = -6089905695087974693L; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:查询数据总条数 | ||
* 变量名:total_count | ||
* 是否必填:是 | ||
* 类型:int | ||
* 描述: | ||
* 查询到的省份数据总条数 | ||
* 示例值:10 | ||
* </pre> | ||
*/ | ||
@SerializedName("total_count") | ||
private Integer totalCount; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:城市列表 | ||
* 变量名:data | ||
* 是否必填:否 | ||
* 类型:array | ||
* 描述: | ||
* 查询返回的城市列表结果 | ||
* </pre> | ||
*/ | ||
@SerializedName("data") | ||
private List<CityInfo> data; | ||
|
||
@Getter | ||
@Setter | ||
public static class CityInfo { | ||
/** | ||
* <pre> | ||
* 字段名:城市名称 | ||
* 变量名:city_name | ||
* 是否必填:是 | ||
* 类型:string[1, 256] | ||
* 描述: | ||
* 城市名称 | ||
* 示例值:北京市 | ||
* </pre> | ||
*/ | ||
@SerializedName("city_name") | ||
private String cityName; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:城市编码 | ||
* 变量名:city_code | ||
* 是否必填:是 | ||
* 类型:int | ||
* 描述: | ||
* 城市编码,唯一标识一座城市,用于结合银行别名编码查询支行列表 | ||
* 示例值:10 | ||
* </pre> | ||
*/ | ||
@SerializedName("city_code") | ||
private Integer cityCode; | ||
} | ||
|
||
} |
62 changes: 62 additions & 0 deletions
62
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/bank/PageLink.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.github.binarywang.wxpay.bean.bank; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 支行列表 | ||
* | ||
* @author hupeng | ||
**/ | ||
@Data | ||
public class PageLink implements Serializable { | ||
|
||
private static final long serialVersionUID = -2624233403271204837L; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:下一页链接 | ||
* 变量名:next | ||
* 是否必填:否 | ||
* 类型:string[1, 2048] | ||
* 描述: | ||
* 使用同样的limit进行下一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果已经到最后时,为空 | ||
* 示例值:/v3/capital/capitallhh/banks/1001/branches?offset=10&limit=5 | ||
* </pre> | ||
*/ | ||
@SerializedName("next") | ||
private String next; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:上一页链接 | ||
* 变量名:prev | ||
* 是否必填:否 | ||
* 类型:string[1, 2048] | ||
* 描述: | ||
* 使用同样的limit进行上一页查询时的相对请求链接,使用方需要自行根据当前域名进行拼接。如果是第一页,为空 | ||
* 示例值:/v3/capital/capitallhh/banks/1001/branchesoffset=0&limit=5 | ||
* </pre> | ||
*/ | ||
@SerializedName("prev") | ||
private String prev; | ||
|
||
/** | ||
* <pre> | ||
* 字段名:当前链接 | ||
* 变量名:self | ||
* 是否必填:否 | ||
* 类型:string[1, 2048] | ||
* 描述: | ||
* 当前的相对请求链接,使用方需要自行根据当前域名进行拼接 | ||
* 示例值:/v3/capital/capitallhh/banks/1001/branches?offset=5&limit=5 | ||
* </pre> | ||
*/ | ||
@SerializedName("self") | ||
private String self; | ||
} |
Oops, something went wrong.