mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 #2653 【微信支付】支付分相关接口增加服务商支持
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.github.binarywang.wxpay.bean.ecommerce;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@@ -17,7 +19,9 @@ import java.util.List;
|
||||
* @author cloudX
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class PartnerTransactionsRequest implements Serializable {
|
||||
private static final long serialVersionUID = -1550405819444680465L;
|
||||
|
||||
@@ -277,6 +281,7 @@ public class PartnerTransactionsRequest implements Serializable {
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class Amount implements Serializable {
|
||||
private static final long serialVersionUID = -4967636398225864273L;
|
||||
|
||||
@@ -312,6 +317,7 @@ public class PartnerTransactionsRequest implements Serializable {
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public static class Payer implements Serializable {
|
||||
private static final long serialVersionUID = -3946401119476159971L;
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.github.binarywang.wxpay.bean.ecommerce;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@@ -10,7 +12,9 @@ import java.io.Serializable;
|
||||
* 文档地址: https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-yan-zheng
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SignatureHeader implements Serializable {
|
||||
private static final long serialVersionUID = -6958015499416059949L;
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.github.binarywang.wxpay.bean.notify;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@@ -10,7 +12,9 @@ import java.io.Serializable;
|
||||
* 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_1.shtml
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class SignatureHeader implements Serializable {
|
||||
private static final long serialVersionUID = -1L;
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.github.binarywang.wxpay.bean.payscore;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
/**
|
||||
* @author hallkk
|
||||
* @date 2022/05/18
|
||||
*/
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
public class WxPartnerPayScoreRequest extends WxPayScoreRequest {
|
||||
private static final long serialVersionUID = 6269843192878112955L;
|
||||
|
||||
public String toJson() {
|
||||
return WxGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
@SerializedName("sub_appid")
|
||||
private String subAppid;
|
||||
|
||||
@SerializedName("sub_mchid")
|
||||
private String subMchid;
|
||||
|
||||
@SerializedName("out_apply_no")
|
||||
private String outApplyNo;
|
||||
|
||||
@SerializedName("result_notify_url")
|
||||
private String resultNotifyUrl;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.github.binarywang.wxpay.bean.payscore;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
/**
|
||||
* @author hallkk
|
||||
* @date 2022/05/18
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
public class WxPartnerPayScoreResult extends WxPayScoreResult {
|
||||
private static final long serialVersionUID = 718267574622164410L;
|
||||
|
||||
public static WxPartnerPayScoreResult fromJson(String json) {
|
||||
return WxGsonBuilder.create().fromJson(json, WxPartnerPayScoreResult.class);
|
||||
}
|
||||
|
||||
@SerializedName("sub_appid")
|
||||
private String subAppid;
|
||||
|
||||
@SerializedName("sub_mchid")
|
||||
private String subMchid;
|
||||
|
||||
@SerializedName("sub_openid")
|
||||
private String subOpenId;
|
||||
|
||||
@SerializedName("out_apply_no")
|
||||
private String outApplyNo;
|
||||
|
||||
@SerializedName("result_notify_url")
|
||||
private String resultNotifyUrl;
|
||||
|
||||
@SerializedName("apply_state")
|
||||
private String applyState;
|
||||
|
||||
@SerializedName("reject_reason")
|
||||
private String rejectReason;
|
||||
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
/**
|
||||
@@ -17,7 +18,7 @@ import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
* @date 2020/5/12 16:36
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@@ -82,6 +83,6 @@ public class WxPayScoreRequest implements Serializable {
|
||||
@SerializedName("detail")
|
||||
private Detail detail;
|
||||
@SerializedName("authorization_code")
|
||||
private String authorizationCode;
|
||||
private String authorizationCode;
|
||||
|
||||
}
|
||||
|
||||
@@ -85,20 +85,23 @@ public class WxPayScoreResult implements Serializable {
|
||||
@SerializedName("payScoreSignInfo")
|
||||
private Map<String, String> payScoreSignInfo;
|
||||
|
||||
@SerializedName("openid")
|
||||
private String openId;
|
||||
|
||||
@SerializedName("apply_permissions_token")
|
||||
private String applyPermissionsToken;
|
||||
private String applyPermissionsToken;
|
||||
|
||||
@SerializedName("authorization_code")
|
||||
private String authorizationCode;
|
||||
private String authorizationCode;
|
||||
|
||||
@SerializedName("authorization_state")
|
||||
private String authorizationState;
|
||||
private String authorizationState;
|
||||
|
||||
@SerializedName("cancel_authorization_time")
|
||||
private String cancelAuthorizationTime;
|
||||
private String cancelAuthorizationTime;
|
||||
|
||||
@SerializedName("authorization_success_time")
|
||||
private String authorizationSuccessTime;
|
||||
private String authorizationSuccessTime;
|
||||
|
||||
@SerializedName("openid")
|
||||
private String openid;
|
||||
|
||||
Reference in New Issue
Block a user