Skip to content

Commit

Permalink
🆕 #2188 【微信支付】增加v3合单支付和账单相关接口
Browse files Browse the repository at this point in the history
  • Loading branch information
thinsstar authored Jul 3, 2021
1 parent dc7bcc0 commit fb0460e
Show file tree
Hide file tree
Showing 15 changed files with 2,370 additions and 113 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static class DecryptNotifyResult implements Serializable {
* SUCCESS:退款成功
* CLOSE:退款关闭
* ABNORMAL:退款异常,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往【商户平台—>交易中心】,手动处理此笔退款
* 示例值:SUCCESS
* 示例值:SUCCESS
* </pre>
*/
@SerializedName(value = "refund_status")
Expand Down Expand Up @@ -158,6 +158,7 @@ public static class DecryptNotifyResult implements Serializable {
@Data
@NoArgsConstructor
public static class Amount implements Serializable {
private static final long serialVersionUID = 1L;
/**
* <pre>
* 字段名:订单金额
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
package com.github.binarywang.wxpay.bean.request;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
* <pre>
* 合单支付订单只能使用此合单关单api完成关单。
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_12.shtml
* </pre>
*
* @author thinsstar
*/
@Data
@NoArgsConstructor
public class CombineCloseRequest implements Serializable {
private static final long serialVersionUID = 1L;
/**
* <pre>
* 字段名:合单商户appid
* 变量名:combine_appid
* 是否必填:是
* 类型:string[1,32]
* 描述:
* 合单发起方的appid。
* 示例值:wxd678efh567hg6787
* </pre>
*/
@SerializedName(value = "combine_appid")
private String combineAppid;
/**
* <pre>
* 字段名:合单商户订单号
* 变量名:combine_out_trade_no
* 是否必填:是
* 类型:string[1,32]
* 描述:
* 合单支付总订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一。
* 示例值:P20150806125346
* </pre>
*/
private transient String combineOutTradeNo;
/**
* <pre>
* 字段名:子单信息
* 变量名:sub_orders
* 是否必填:是
* 类型:array
* 描述:
* 最多支持子单条数:10
* </pre>
*/
@SerializedName(value = "sub_orders")
private List<SubOrders> subOrders;

@Data
@NoArgsConstructor
public static class SubOrders implements Serializable {
private static final long serialVersionUID = 1L;
/**
* <pre>
* 字段名:子单商户号
* 变量名:mchid
* 是否必填:是
* 类型:string[1,32]
* 描述:
* 子单发起方商户号,必须与发起方appid有绑定关系。
* 示例值:1900000109
* </pre>
*/
@SerializedName(value = "mchid")
private String mchid;
/**
* <pre>
* 字段名:子单商户订单号
* 变量名:out_trade_no
* 是否必填:是
* 类型:string[6,32]
* 描述:
* 商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一。
* 示例值:20150806125346
* </pre>
*/
@SerializedName(value = "out_trade_no")
private String outTradeNo;
}
}
Loading

0 comments on commit fb0460e

Please sign in to comment.