-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb7efb7
commit 10b1e4d
Showing
7 changed files
with
208 additions
and
37 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
...c/main/java/com/github/binarywang/wxpay/bean/request/WxPayPartnerOrderCloseV3Request.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,61 @@ | ||
package com.github.binarywang.wxpay.bean.request; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.experimental.Accessors; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 服务商关闭订单请求对象类 | ||
* 文档见:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_1_3.shtml | ||
* | ||
* @author Guo Shuai | ||
* @version 1.0 | ||
* @date 2023/3/2 | ||
*/ | ||
@Data | ||
@NoArgsConstructor | ||
@Accessors(chain = true) | ||
public class WxPayPartnerOrderCloseV3Request implements Serializable { | ||
private static final long serialVersionUID = 1L; | ||
/** | ||
* <pre> | ||
* 字段名:服务商商户号 | ||
* 变量名:sp_mchid | ||
* 是否必填:是 | ||
* 类型:string[1,32] | ||
* 描述: | ||
* 服务商商户号,由微信支付生成并下发。 | ||
* 示例值:1230000109 | ||
* </pre> | ||
*/ | ||
@SerializedName(value = "sp_mchid") | ||
private String spMchId; | ||
/** | ||
* <pre> | ||
* 字段名:特约商户商户号 | ||
* 变量名:sp_mchid | ||
* 是否必填:是 | ||
* 类型:string[1,32] | ||
* 描述: | ||
* 特约商户商户号,由微信支付生成并下发。 | ||
* 示例值:1230000109 | ||
* </pre> | ||
*/ | ||
@SerializedName(value = "sub_mchid") | ||
private String subMchId; | ||
/** | ||
* <pre> | ||
* 字段名:商户订单号 | ||
* 变量名:out_trade_no | ||
* 是否必填:是 | ||
* 类型:string[6,32] | ||
* 描述: | ||
* 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一 | ||
* 示例值:1217752501201407033233368018 | ||
* </pre> | ||
*/ | ||
private transient String outTradeNo; | ||
} |
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
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
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
40 changes: 40 additions & 0 deletions
40
...pay/src/main/java/com/github/binarywang/wxpay/bean/result/enums/PartnerTradeTypeEnum.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,40 @@ | ||
package com.github.binarywang.wxpay.bean.result.enums; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* 支付方式 | ||
* | ||
* @author thinsstar | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public enum PartnerTradeTypeEnum { | ||
/** | ||
* APP | ||
*/ | ||
APP("/v3/pay/partner/transactions/app", "/v3/combine-transactions/app"), | ||
/** | ||
* JSAPI 或 小程序 | ||
*/ | ||
JSAPI("/v3/pay/partner/transactions/jsapi", "/v3/combine-transactions/jsapi"), | ||
/** | ||
* NATIVE | ||
*/ | ||
NATIVE("/v3/pay/partner/transactions/native", "/v3/combine-transactions/native"), | ||
/** | ||
* H5 | ||
*/ | ||
H5("/v3/pay/partner/transactions/h5", "/v3/combine-transactions/h5"); | ||
|
||
/** | ||
* 单独下单url | ||
*/ | ||
private final String partnerUrl; | ||
|
||
/** | ||
* 合并下单url | ||
*/ | ||
private final String combineUrl; | ||
} |
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
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