支付
订单列表
This commit is contained in:
@@ -22,7 +22,6 @@ public class CzgRefundNotifyDTO {
|
||||
private String mchRefundNo;
|
||||
/**
|
||||
* 平台退款订单号 String(30)
|
||||
*
|
||||
*/
|
||||
private String refundOrderId;
|
||||
/**
|
||||
@@ -62,7 +61,7 @@ public class CzgRefundNotifyDTO {
|
||||
*/
|
||||
private String ifCode;
|
||||
/**
|
||||
* 备注 String(30)
|
||||
* 备注 String(30)
|
||||
*/
|
||||
private String note;
|
||||
/**
|
||||
@@ -72,6 +71,10 @@ public class CzgRefundNotifyDTO {
|
||||
private String refundTime;
|
||||
/**
|
||||
* 自定义扩展参数 String(256)
|
||||
* * 扩展参数
|
||||
* * {
|
||||
* * "pay_type": "order/vip"
|
||||
* * }
|
||||
*/
|
||||
private String extParam;
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.czg.entity.req;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.NonNull;
|
||||
|
||||
/**
|
||||
* @author ww
|
||||
@@ -28,10 +29,13 @@ public class CzgBaseReq {
|
||||
/**
|
||||
* 商户订单号 String(30)
|
||||
* 操作方式+雪花算法
|
||||
* 如 h5雪花ID
|
||||
* 如 js雪花ID
|
||||
* 如 lt雪花ID
|
||||
* 如 refund雪花ID
|
||||
* 收银机客户端 PC+雪花ID
|
||||
* 微信小程序 WX+雪花ID
|
||||
* 支付宝小程序 ALI+雪花ID
|
||||
* PC管理端 WEB+雪花ID
|
||||
* APP管理端 APP+雪花ID
|
||||
* <p>
|
||||
* 退款 re+雪花ID
|
||||
*/
|
||||
private String mchOrderNo;
|
||||
/**
|
||||
@@ -73,6 +77,10 @@ public class CzgBaseReq {
|
||||
/**
|
||||
* 扩展参数 String(512)
|
||||
* 商户扩展参数,回调时会原样返回
|
||||
* * 扩展参数
|
||||
* * {
|
||||
* * "pay_type": "order/vip"
|
||||
* * }
|
||||
*/
|
||||
private String extParam;
|
||||
|
||||
@@ -99,15 +107,18 @@ public class CzgBaseReq {
|
||||
|
||||
}
|
||||
|
||||
public CzgBaseReq(String storeId, String mchOrderNo, Long amount, String subject, String body,
|
||||
String buyerRemark, String notifyUrl, String extParam) {
|
||||
this.storeId = storeId;
|
||||
public CzgBaseReq(String mchOrderNo, Long amount, String body,
|
||||
String buyerRemark, String extParam) {
|
||||
this.mchOrderNo = mchOrderNo;
|
||||
this.subject = subject;
|
||||
this.body = body;
|
||||
this.amount = amount;
|
||||
this.buyerRemark = buyerRemark;
|
||||
this.notifyUrl = notifyUrl;
|
||||
this.extParam = extParam;
|
||||
}
|
||||
|
||||
public void assignMerchant(@NonNull String storeId, @NonNull String subject, @NonNull String notifyUrl) {
|
||||
this.storeId = storeId;
|
||||
this.subject = subject;
|
||||
this.notifyUrl = notifyUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,11 +7,12 @@ import lombok.NonNull;
|
||||
|
||||
/**
|
||||
* h5支付请求参数
|
||||
*
|
||||
* @author ww
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class CzgH5PayReq extends CzgBaseReq{
|
||||
public class CzgH5PayReq extends CzgBaseReq {
|
||||
//必填范围
|
||||
/**
|
||||
* 用户IP 支付的用户IP
|
||||
@@ -26,11 +27,9 @@ public class CzgH5PayReq extends CzgBaseReq{
|
||||
private String returnUrl;
|
||||
|
||||
|
||||
public CzgH5PayReq(@NonNull String storeId, @NonNull String mchOrderNo,
|
||||
@NonNull String subject, @NonNull Long amount, String body,
|
||||
@NonNull String clientIp, @NonNull String notifyUrl,
|
||||
String returnUrl, String buyerRemark, String extParam) {
|
||||
super(subject, body, amount, mchOrderNo, storeId, buyerRemark, notifyUrl, extParam);
|
||||
public CzgH5PayReq(@NonNull String mchOrderNo, @NonNull Long amount, String body, @NonNull String clientIp,
|
||||
String returnUrl, String buyerRemark, @NonNull String extParam) {
|
||||
super(mchOrderNo, amount, body, buyerRemark, extParam);
|
||||
this.clientIp = clientIp;
|
||||
this.returnUrl = returnUrl;
|
||||
}
|
||||
|
||||
@@ -52,14 +52,13 @@ public class CzgJsPayReq extends CzgBaseReq {
|
||||
*/
|
||||
private String frontFailUrl;
|
||||
|
||||
public CzgJsPayReq(@NonNull String storeId, @NonNull String subAppid, @NonNull String mchOrderNo,
|
||||
@NonNull String subject, @NonNull Long amount, String body,
|
||||
@NonNull String userId, @NonNull String clientIp, @NonNull String notifyUrl,
|
||||
String returnUrl, String buyerRemark, String extParam) {
|
||||
super(subject, body, amount, mchOrderNo, storeId, buyerRemark, notifyUrl, extParam);
|
||||
this.userId = userId;
|
||||
public CzgJsPayReq(@NonNull String mchOrderNo,
|
||||
@NonNull Long amount, String body,
|
||||
@NonNull String openId, @NonNull String clientIp,
|
||||
String returnUrl, String buyerRemark,@NonNull String extParam) {
|
||||
super(mchOrderNo, amount, body, buyerRemark, extParam);
|
||||
this.userId = openId;
|
||||
this.clientIp = clientIp;
|
||||
this.subAppid = subAppid;
|
||||
this.returnUrl = returnUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,14 +50,12 @@ public class CzgLtPayReq extends CzgBaseReq {
|
||||
*/
|
||||
private boolean isScreen;
|
||||
|
||||
public CzgLtPayReq(@NonNull String storeId, @NonNull String subAppid, @NonNull String mchOrderNo,
|
||||
@NonNull String subject, @NonNull Long amount, String body,
|
||||
@NonNull String userId, @NonNull String clientIp, @NonNull String notifyUrl,
|
||||
String returnUrl, String buyerRemark, String extParam) {
|
||||
super(storeId, mchOrderNo, amount, subject, body, buyerRemark, notifyUrl, extParam);
|
||||
this.userId = userId;
|
||||
public CzgLtPayReq(@NonNull String mchOrderNo, @NonNull Long amount,
|
||||
String body, @NonNull String openId, @NonNull String clientIp,
|
||||
String returnUrl, String buyerRemark, @NonNull String extParam) {
|
||||
super(mchOrderNo, amount, body, buyerRemark, extParam);
|
||||
this.userId = openId;
|
||||
this.clientIp = clientIp;
|
||||
this.returnUrl = returnUrl;
|
||||
this.subAppid = subAppid;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,12 +29,9 @@ public class CzgMicroPayReq extends CzgBaseReq {
|
||||
*/
|
||||
private String subAppid;
|
||||
|
||||
public CzgMicroPayReq(@NonNull String storeId, @NonNull String subAppid, @NonNull String mchOrderNo,
|
||||
@NonNull String subject, @NonNull Long amount, String body,
|
||||
@NonNull String authCode, @NonNull String notifyUrl,
|
||||
String buyerRemark, String extParam) {
|
||||
super(storeId, mchOrderNo, amount, subject, body, buyerRemark, notifyUrl, extParam);
|
||||
public CzgMicroPayReq(@NonNull String mchOrderNo, @NonNull Long amount, String body,
|
||||
@NonNull String authCode, String buyerRemark, @NonNull String extParam) {
|
||||
super(mchOrderNo, amount, body, buyerRemark, extParam);
|
||||
this.authCode = authCode;
|
||||
this.subAppid = subAppid;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,10 @@ public class CzgRefundReq {
|
||||
private String mchOrderNo;
|
||||
/**
|
||||
* 扩展参数
|
||||
* * 扩展参数
|
||||
* * {
|
||||
* * "pay_type": "order/vip"
|
||||
* * }
|
||||
*/
|
||||
private String extParam;
|
||||
/**
|
||||
@@ -47,13 +51,11 @@ public class CzgRefundReq {
|
||||
* payOrderId和mchOrderNo 二选一 必填
|
||||
*/
|
||||
public CzgRefundReq(@NonNull String mchRefundNo, @NonNull String refundReason, @NonNull Long refundAmount,
|
||||
@NonNull String notifyUrl, String payOrderId, String mchOrderNo, String extParam) {
|
||||
String mchOrderNo, String extParam) {
|
||||
this.mchRefundNo = mchRefundNo;
|
||||
this.refundReason = refundReason;
|
||||
this.refundAmount = refundAmount;
|
||||
this.payOrderId = payOrderId;
|
||||
this.mchOrderNo = mchOrderNo;
|
||||
this.extParam = extParam;
|
||||
this.notifyUrl = notifyUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,11 +26,9 @@ public class CzgScanPayReq extends CzgBaseReq {
|
||||
*/
|
||||
private String returnUrl;
|
||||
|
||||
public CzgScanPayReq(@NonNull String storeId, @NonNull String mchOrderNo,
|
||||
@NonNull String subject, @NonNull Long amount, String body,
|
||||
@NonNull String clientIp, @NonNull String notifyUrl,
|
||||
String returnUrl, String buyerRemark, String extParam) {
|
||||
super(storeId, mchOrderNo, amount, subject, body, buyerRemark, notifyUrl, extParam);
|
||||
public CzgScanPayReq(@NonNull String mchOrderNo, @NonNull Long amount, String body,
|
||||
@NonNull String clientIp, String returnUrl, String buyerRemark, @NonNull String extParam) {
|
||||
super(mchOrderNo, amount, body, buyerRemark, extParam);
|
||||
this.clientIp = clientIp;
|
||||
this.returnUrl = returnUrl;
|
||||
}
|
||||
|
||||
@@ -68,6 +68,9 @@ public class CzgBaseResp {
|
||||
private String channelTradeNo;
|
||||
/**
|
||||
* 扩展参数
|
||||
* {
|
||||
* "pay_type": "order/vip"
|
||||
* }
|
||||
*/
|
||||
private String extParam;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user