feat:第三方流水查询
This commit is contained in:
1 parent
f178ff2889
commit
02c011a732
23 files changed
+450
-70
No files matched your search
+1
@@ -15,6 +15,7 @@ public enum ThirdPayApiBizTypeEnum {
|
||||
PAY("10", "支付"),
|
||||
REFUND("20", "退款"),
|
||||
WALLET_INFO("30", "钱包详情"),
|
||||
WATER("40", "流水"),
|
||||
;
|
||||
|
||||
private final String type;
|
||||
|
||||
+2
@@ -20,6 +20,8 @@ public enum ThirdPayVoStatusEnum {
|
||||
ORDER_EXIST(502, "订单不存在"),
|
||||
MCH_EXIST(503, "第三方商户未配置"),
|
||||
BALANCE_NOT_ENOUGH(505, "用户余额不足"),
|
||||
ORDER_HAVE_PAY(506, "订单已支付"),
|
||||
ORDER_HAVE_REFUND(507, "订单已退款"),
|
||||
UNKNOWN_ERROR(599, "未知错误,请联系管理员"),
|
||||
;
|
||||
|
||||
|
||||
+6
-6
@@ -1,28 +1,28 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto.pay;
|
||||
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class RefundDto {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 平台唯一订单号
|
||||
*/
|
||||
@NotEmpty(message = "平台唯一订单号不能为空")
|
||||
private String platformOrderId;
|
||||
|
||||
/**
|
||||
* 第三方退款单号
|
||||
* 第三方退款流水号
|
||||
*/
|
||||
@NotEmpty(message = "第三方退款流水号不能为空")
|
||||
private String thirdRefundId;
|
||||
|
||||
/**
|
||||
* 退款金额(单位分)
|
||||
*/
|
||||
@NotNull(message = "退款金额不能为空")
|
||||
private Integer price;
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.bsd.pjcloud.thirdparty.dto.pay;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class WaterDto {
|
||||
|
||||
/**
|
||||
* 当前页号(默认1)
|
||||
*/
|
||||
private Long current;
|
||||
|
||||
/**
|
||||
* 当前页数据条数(默认100,最大200)
|
||||
*/
|
||||
private Long size;
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
* 1创建订单(未支付)
|
||||
* 5已经支付
|
||||
* 10退款
|
||||
*/
|
||||
private String orderStatus;
|
||||
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.bsd.pjcloud.thirdparty.vo.pay;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PayGetWalletInfoVo {
|
||||
|
||||
/**
|
||||
* sm4加密后的手机号
|
||||
*/
|
||||
private String signPhone;
|
||||
|
||||
/**
|
||||
* 用户真实姓名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 用户余额(分)
|
||||
*/
|
||||
private int balance;
|
||||
|
||||
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.bsd.pjcloud.thirdparty.vo.pay;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class PayWaterVo {
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 用户真实姓名
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* sm4加密后的手机号
|
||||
*/
|
||||
private String signPhone;
|
||||
|
||||
/**
|
||||
* 平台订单id
|
||||
*/
|
||||
private String platformOrderId;
|
||||
|
||||
/**
|
||||
* 平台退款id
|
||||
*/
|
||||
private String platformRefundId;
|
||||
|
||||
/**
|
||||
* 第三方订单id
|
||||
*/
|
||||
private String thirdOrderId;
|
||||
|
||||
/**
|
||||
* 第三方退款id
|
||||
*/
|
||||
private String thirdRefundId;
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
* 1创建订单(未支付)
|
||||
* 5已经支付
|
||||
* 10退款
|
||||
*/
|
||||
private String orderStatus;
|
||||
|
||||
/**
|
||||
* 订单价格(分)
|
||||
*/
|
||||
private Integer orderPrice;
|
||||
|
||||
/**
|
||||
* 退款金额(分)
|
||||
*/
|
||||
private Integer refundPrice;
|
||||
|
||||
/**
|
||||
* 支付时间(yyyy-MM-dd HH:mm:ss格式)
|
||||
*/
|
||||
private String payTime;
|
||||
|
||||
/**
|
||||
* 退款时间(yyyy-MM-dd HH:mm:ss格式)
|
||||
*/
|
||||
private String refundTime;
|
||||
|
||||
}
|
||||
+1
-1
@@ -32,7 +32,7 @@ public class RefundVo {
|
||||
private Integer price;
|
||||
|
||||
/**
|
||||
* 退款时间
|
||||
* 退款时间(yyyy-MM-dd HH:mm:ss格式)
|
||||
*/
|
||||
private String refundTime;
|
||||
|
||||
|
||||
Reference in new issue
Block a user