mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-04 03:30:36 +00:00
feat 分账同步
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package cn.bootx.platform.daxpay.code;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 分账状态枚举
|
||||
* @author xxm
|
||||
* @since 2024/4/7
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum AllocationStatusEnum {
|
||||
|
||||
// 待分账
|
||||
WAITING("waiting", "待分账"),
|
||||
PARTIAL_PROCESSING("partial_processing", "分账处理中"),
|
||||
PARTIAL_SUCCESS("partial_success", "部分分账完成"),
|
||||
FINISH_PROCESSING("finish_processing", "分账完结处理中"),
|
||||
FINISH_SUCCESS("finish_success", "分账完成"),
|
||||
PARTIAL_FAILED("partial_failed", "部分分账完成"),
|
||||
FINISH_FAILED("finish_failed", "分账失败"),
|
||||
CLOSED("closed", "分账关闭"),
|
||||
UNKNOWN("unknown", "分账状态未知");
|
||||
|
||||
final String code;
|
||||
final String name;
|
||||
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
package cn.bootx.platform.daxpay.param.pay;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 分账同步请求参数
|
||||
* @author xxm
|
||||
* @since 2024/4/12
|
||||
*/
|
||||
@Data
|
||||
@Schema(title = "分账同步请求参数")
|
||||
public class AllocationSyncParam {
|
||||
|
||||
@Schema(description = "分账单ID")
|
||||
private Long allocationId;
|
||||
|
||||
@Schema(description = "分账单号")
|
||||
private String allocationNo;
|
||||
}
|
@@ -1,28 +0,0 @@
|
||||
package cn.bootx.platform.daxpay.result.pay;
|
||||
|
||||
import cn.bootx.platform.daxpay.result.CommonResult;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 退款同步结果
|
||||
* @author xxm
|
||||
* @since 2024/1/29
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "退款同步结果")
|
||||
public class RefundSyncResult extends CommonResult {
|
||||
|
||||
@Schema(description = "是否进行了修复")
|
||||
private boolean repair;
|
||||
|
||||
@Schema(description = "支付单修复ID")
|
||||
private Long repairId;
|
||||
|
||||
@Schema(description = "失败原因")
|
||||
private String errorMsg;
|
||||
}
|
@@ -1,5 +1,6 @@
|
||||
package cn.bootx.platform.daxpay.result.pay;
|
||||
|
||||
import cn.bootx.platform.daxpay.code.AllocationStatusEnum;
|
||||
import cn.bootx.platform.daxpay.code.RefundSyncStatusEnum;
|
||||
import cn.bootx.platform.daxpay.code.PaySyncStatusEnum;
|
||||
import cn.bootx.platform.daxpay.result.CommonResult;
|
||||
@@ -11,7 +12,7 @@ import lombok.experimental.Accessors;
|
||||
import static cn.bootx.platform.daxpay.code.PaySyncStatusEnum.FAIL;
|
||||
|
||||
/**
|
||||
* 支付单同步结果
|
||||
* 各种单据同步结果
|
||||
* @author xxm
|
||||
* @since 2023/12/27
|
||||
*/
|
||||
@@ -25,6 +26,7 @@ public class SyncResult extends CommonResult {
|
||||
* 支付网关同步状态
|
||||
* @see PaySyncStatusEnum
|
||||
* @see RefundSyncStatusEnum
|
||||
* @see AllocationStatusEnum
|
||||
*/
|
||||
@Schema(description = "支付网关同步状态")
|
||||
private String gatewayStatus = FAIL.getCode();
|
||||
|
Reference in New Issue
Block a user