feat 退款同步+退款修复策略

This commit is contained in:
bootx
2024-01-30 22:06:25 +08:00
parent d2680b3dfd
commit 56d7236011
28 changed files with 511 additions and 148 deletions

View File

@@ -15,13 +15,13 @@ import lombok.EqualsAndHashCode;
public class RefundSyncParam extends PayCommonParam {
/**
* 部分退款时 refundIdrefundNo 必传一个, 同时传输时,以 refundId 为准
* 退款订单IDrefundIdrefundNo 必传一个, 同时传输时,以 refundId 为准
*/
@Schema(description = "退款订单ID")
private Long refundId;
/**
* 退款订单号,部分退款时 refundIdrefundNo 必传一个,同时传输时,以 refundId 为准
* 退款订单号refundIdrefundNo 必传一个,同时传输时,以 refundId 为准
*/
@Schema(description = "退款订单号")
private String refundNo;

View File

@@ -1,5 +1,6 @@
package cn.bootx.platform.daxpay.result.pay;
import cn.bootx.platform.daxpay.code.PayRefundSyncStatusEnum;
import cn.bootx.platform.daxpay.code.PaySyncStatusEnum;
import cn.bootx.platform.daxpay.result.CommonResult;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -17,12 +18,13 @@ import static cn.bootx.platform.daxpay.code.PaySyncStatusEnum.FAIL;
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@Schema(title = "支付单同步结果")
public class PaySyncResult extends CommonResult {
@Schema(title = "同步结果")
public class SyncResult extends CommonResult {
/**
* 支付网关同步状态
* @see PaySyncStatusEnum
* @see PayRefundSyncStatusEnum
*/
@Schema(description = "支付网关同步状态")
private String gatewayStatus = FAIL.getCode();