Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信支付v3合单支付接口和v3账单接口 #2188

Merged
merged 1 commit into from
Jul 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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