mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #2644 【微信支付】新增微信支付银行组件模块
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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 zhongjun
|
||||
**/
|
||||
@Data
|
||||
public class BankAccountResult implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -8226859146533243501L;
|
||||
|
||||
/**
|
||||
* 根据卡号查询到的银行列表数据的总条数,未查询到对应银行列表时默认返回0,最大不超过两百条。
|
||||
*/
|
||||
@SerializedName("total_count")
|
||||
private Integer totalCount;
|
||||
|
||||
@SerializedName("data")
|
||||
private List<BankInfo> data;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.github.binarywang.wxpay.bean.bank;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 银行信息
|
||||
*
|
||||
* @author zhongjun
|
||||
* @date 2022/5/12
|
||||
**/
|
||||
@Data
|
||||
public class BankInfo {
|
||||
/**
|
||||
* 银行别名
|
||||
*/
|
||||
@SerializedName("bank_alias")
|
||||
private String bankAlias;
|
||||
/**
|
||||
* 银行别名编码
|
||||
*/
|
||||
@SerializedName("bank_alias_code")
|
||||
private String bankAliasCode;
|
||||
/**
|
||||
* 开户银行
|
||||
*/
|
||||
@SerializedName("account_bank")
|
||||
private String accountBank;
|
||||
/**
|
||||
* 开户银行编码
|
||||
*/
|
||||
@SerializedName("account_bank_code")
|
||||
private Integer accountBankCode;
|
||||
/**
|
||||
* 是否需要填写支行
|
||||
*/
|
||||
@SerializedName("need_bank_branch")
|
||||
private Boolean needBankBranch;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
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 zhongjun
|
||||
**/
|
||||
@Data
|
||||
public class BankingResult implements Serializable {
|
||||
private static final long serialVersionUID = -8372812998971715894L;
|
||||
|
||||
/**
|
||||
* 银行列表数据的总条数,调用方需要根据总条数分页查询
|
||||
*/
|
||||
@SerializedName("total_count")
|
||||
private Integer totalCount;
|
||||
|
||||
/**
|
||||
* 本次查询银行列表返回的数据条数
|
||||
*/
|
||||
@SerializedName("count")
|
||||
private Integer count;
|
||||
|
||||
/**
|
||||
* 该次请求资源的起始位置,请求中包含偏移量时应答消息返回相同偏移量,否则返回默认值0。
|
||||
*/
|
||||
@SerializedName("offset")
|
||||
private Integer offset;
|
||||
|
||||
@SerializedName("data")
|
||||
private List<BankInfo> data;
|
||||
|
||||
@SerializedName("links")
|
||||
private Link links;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public static class Link {
|
||||
/**
|
||||
* 下一页链接
|
||||
*/
|
||||
@SerializedName("next")
|
||||
private String next;
|
||||
/**
|
||||
* 上一页链接
|
||||
*/
|
||||
@SerializedName("prev")
|
||||
private String prev;
|
||||
/**
|
||||
* 当前链接
|
||||
*/
|
||||
@SerializedName("self")
|
||||
private String self;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user