mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-04 03:30:36 +00:00
feat 分账功能开发
This commit is contained in:
@@ -17,6 +17,10 @@ public interface PaymentApiCode {
|
||||
|
||||
String CLOSE = "close";
|
||||
|
||||
String ALLOCATION = "allocation";
|
||||
|
||||
String ALLOCATION_FINISH = "allocationFinish";
|
||||
|
||||
String SYNC_PAY = "syncPay";
|
||||
|
||||
String SYNC_REFUND = "syncRefund";
|
||||
|
@@ -0,0 +1,23 @@
|
||||
package cn.bootx.platform.daxpay.param.pay.allocation;
|
||||
|
||||
import cn.bootx.platform.daxpay.param.PaymentCommonParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 分账完结参数
|
||||
* @author xxm
|
||||
* @since 2024/4/7
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Schema(title = "分账请求参数")
|
||||
public class AllocationFinishParam extends PaymentCommonParam {
|
||||
|
||||
@Schema(description = "分账订单ID")
|
||||
private Long orderId;
|
||||
|
||||
@Schema(description = "分账单号")
|
||||
private String allocationNo;
|
||||
}
|
@@ -1,23 +1,19 @@
|
||||
package cn.bootx.platform.daxpay.param.pay;
|
||||
package cn.bootx.platform.daxpay.param.pay.allocation;
|
||||
|
||||
import cn.bootx.platform.daxpay.param.PaymentCommonParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 分账请求参数
|
||||
* 开始分账请求参数
|
||||
* @author xxm
|
||||
* @since 2024/4/6
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "分账请求参数")
|
||||
public class AllocationParam extends PaymentCommonParam {
|
||||
@Schema(title = "开始分账请求参数")
|
||||
public class AllocationStartParam extends PaymentCommonParam {
|
||||
|
||||
@Schema(description = "支付单ID")
|
||||
private Long paymentId;
|
||||
@@ -25,8 +21,16 @@ public class AllocationParam extends PaymentCommonParam {
|
||||
@Schema(description = "业务号")
|
||||
private String businessNo;
|
||||
|
||||
@Schema(description = "分账单号(保证唯一)")
|
||||
private String allocationNo;
|
||||
|
||||
@Schema(description = "分账描述")
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 不传输分账组使用默认分账组进行分账
|
||||
*/
|
||||
@Schema(description = "分账组ID")
|
||||
@NotNull(message = "分账组ID不可为空")
|
||||
private Long allocationGroupId;
|
||||
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
package cn.bootx.platform.daxpay.param.pay.allocation;
|
||||
|
||||
import cn.bootx.platform.daxpay.param.PaymentCommonParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 分账订单查询参数
|
||||
* @author xxm
|
||||
* @since 2024/4/7
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Schema(title = "支付订单查询参数")
|
||||
public class QueryAllocationOrderParam extends PaymentCommonParam {
|
||||
|
||||
@Schema(description = "分账订单ID")
|
||||
private Long orderId;
|
||||
|
||||
@Schema(description = "分账单号")
|
||||
private String allocationNo;
|
||||
}
|
@@ -0,0 +1,28 @@
|
||||
package cn.bootx.platform.daxpay.result.allocation;
|
||||
|
||||
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/4/7
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "分账请求结果")
|
||||
public class AllocationResult extends CommonResult {
|
||||
|
||||
@Schema(description = "分账订单ID")
|
||||
private Long orderId;
|
||||
|
||||
@Schema(description = "分账订单号, 如果请求时未传, 则默认使用分账订单ID")
|
||||
private String allocationNo;
|
||||
|
||||
@Schema(description = "分账状态")
|
||||
private String status;
|
||||
}
|
@@ -1,7 +1,9 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
@@ -9,12 +11,11 @@ import lombok.experimental.Accessors;
|
||||
* @author xxm
|
||||
* @since 2024/1/29
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "退款同步结果")
|
||||
public class RefundSyncResult {
|
||||
|
||||
|
||||
public class RefundSyncResult extends CommonResult {
|
||||
|
||||
@Schema(description = "是否进行了修复")
|
||||
private boolean repair;
|
||||
|
Reference in New Issue
Block a user