:new:【微信支付】增加查询结算账户、查询分账结果、查询分账回退结果和申请分账账单等V3接口

This commit is contained in:
NotePlus
2022-12-25 14:38:26 +00:00
committed by binarywang
parent 87c33ac776
commit 0d1320a48f
7 changed files with 220 additions and 6 deletions

View File

@@ -11,6 +11,8 @@ import java.io.Serializable;
/**
* 查询结算账户返回对象信息
*
* @see <a href="https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_4.shtml">查询结算账户</a>
*/
@Data
@Builder
@@ -51,4 +53,12 @@ public class SettlementInfoResult implements Serializable {
*/
@SerializedName("verify_result")
private String verifyResult;
/**
* 汇款验证失败原因
*
* @since 4.4.0
* @date 2022.12.09
*/
@SerializedName("verify_fail_reason")
private String verifyFailReason;
}

View File

@@ -0,0 +1,55 @@
package com.github.binarywang.wxpay.bean.profitsharingV3;
import java.io.Serializable;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 微信V3接口-申请分账账单请求类
*
* @author 狂龙骄子
* @since 4.4.0
* @date 2022-12-09
*/
@Data
@Builder(builderMethodName = "newBuilder")
@NoArgsConstructor
@AllArgsConstructor
public class ProfitSharingBillRequest implements Serializable {
private static final long serialVersionUID = 5200819754873844593L;
/**
* <pre>
* 字段名:子商户号
* 是否必填:否
* 描述:不填则默认返回服务商下的所有分账账单。如需下载某个子商户下的分账账单,则填指定的子商户号。
* </pre>
*/
@SerializedName("sub_mchid")
private String subMchId;
/**
* <pre>
* 字段名:账单日期
* 是否必填:是
* 描述格式yyyy-MM-DD仅支持三个月内的账单下载申请。
* </pre>
*/
@SerializedName("bill_date")
private String billDate;
/**
* <pre>
* 字段名:压缩类型
* 是否必填:否
* 描述不填则默认是数据流。枚举值GZIP返回格式为.gzip的压缩包账单。
* </pre>
*/
@SerializedName("tar_type")
private String tarType;
}

View File

@@ -0,0 +1,62 @@
package com.github.binarywang.wxpay.bean.profitsharingV3;
import java.io.Serializable;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 微信V3接口-申请分账账单结果类
*
* @author 狂龙骄子
* @since 4.4.0
* @date 2022-12-09
*/
@Data
@NoArgsConstructor
public class ProfitSharingBillResult implements Serializable {
private static final long serialVersionUID = -704896948531566657L;
/**
* <pre>
* 字段名:账单下载地址
* 变量名download_url
* 是否必填:是
* 类型string[1,2048]
* 描述:
* 供下一步请求账单文件的下载地址该地址30s内有效。
* 示例值https://api.mch.weixin.qq.com/v3/bill/downloadurl?token=xxx
* </pre>
*/
@SerializedName(value = "download_url")
private String downloadUrl;
/**
* <pre>
* 字段名:哈希类型
* 变量名hash_type
* 是否必填:是
* 类型string[1, 32]
* 描述:
* 原始账单gzip需要解压缩的摘要值用于校验文件的完整性。
* 示例值SHA1
* </pre>
*/
@SerializedName(value = "hash_type")
private String hashType;
/**
* <pre>
* 字段名:哈希值
* 变量名hash_value
* 是否必填:是
* 类型string[1,1024]
* 描述:
* 原始账单gzip需要解压缩的摘要值用于校验文件的完整性。
* 示例值79bb0f45fc4c42234a918000b2668d689e2bde04
* </pre>
*/
@SerializedName(value = "hash_value")
private String hashValue;
}