mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 #2903 【微信支付】优化服务商模式的微信支付分相关代码
1.优化请求参数赋值逻辑 2.新增服务商模式的”授权/解除授权服务回调通知结果“实体类
This commit is contained in:
@@ -3,20 +3,19 @@ package com.github.binarywang.wxpay.bean.payscore;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
/**
|
||||
* @author hallkk
|
||||
* created on 2022/05/18
|
||||
*/
|
||||
|
||||
@Data
|
||||
@SuperBuilder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxPartnerPayScoreRequest extends WxPayScoreRequest {
|
||||
private static final long serialVersionUID = 6269843192878112955L;
|
||||
|
||||
@@ -24,15 +23,27 @@ public class WxPartnerPayScoreRequest extends WxPayScoreRequest {
|
||||
return WxGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* 子商户appid
|
||||
*/
|
||||
@SerializedName("sub_appid")
|
||||
private String subAppid;
|
||||
|
||||
/**
|
||||
* 子商户mchid
|
||||
*/
|
||||
@SerializedName("sub_mchid")
|
||||
private String subMchid;
|
||||
|
||||
/**
|
||||
* [收付通子商户申请绑定支付分服务]的商户系统内部服务订单号
|
||||
*/
|
||||
@SerializedName("out_apply_no")
|
||||
private String outApplyNo;
|
||||
|
||||
/**
|
||||
* [收付通子商户申请绑定支付分服务]的绑定结果通知地址
|
||||
*/
|
||||
@SerializedName("result_notify_url")
|
||||
private String resultNotifyUrl;
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.github.binarywang.wxpay.bean.payscore;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 授权/解除授权服务回调通知结果
|
||||
* <pre>
|
||||
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter6_2_23.shtml
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class WxPartnerUserAuthorizationStatusNotifyResult extends UserAuthorizationStatusNotifyResult implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8809250065540275783L;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 字段名:子商户应用ID
|
||||
* 变量名:sub_appid
|
||||
* 是否必填:是
|
||||
* 类型:string[1,32]
|
||||
* 描述:
|
||||
* 子商户申请的公众号或移动应用APPID。
|
||||
* 示例值:wxd678efh567hg6787
|
||||
* </pre>
|
||||
*/
|
||||
@SerializedName(value = "sub_appid")
|
||||
private String subAppId;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 字段名:子商户的商户号
|
||||
* 变量名:sub_mchid
|
||||
* 是否必填:是
|
||||
* 类型:string[1,32]
|
||||
* 描述:
|
||||
* 子商户商户号,由微信支付生成并下发。
|
||||
* 示例值:1230000109
|
||||
* </pre>
|
||||
*/
|
||||
@SerializedName(value = "sub_mchid")
|
||||
private String subMchId;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 字段名:子商户公众号下openid
|
||||
* 变量名:sub_mchid
|
||||
* 是否必填:是
|
||||
* 类型:string[1,32]
|
||||
* 描述:
|
||||
* 微信用户在商户对应sub_appid下的唯一标识。(传了sub_appid的情况下则只返回sub_openid)。
|
||||
* 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o
|
||||
* </pre>
|
||||
*/
|
||||
@SerializedName(value = "sub_openid")
|
||||
private String subOpenid;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user