mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-10-13 21:30:25 +00:00
feat: 新增支付宝分账和微信服务
This commit is contained in:
@@ -2,6 +2,7 @@ package org.dromara.daxpay.service.bo.allocation;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.dromara.daxpay.core.enums.AllocationStatusEnum;
|
||||
|
||||
/**
|
||||
* 分账操作结果
|
||||
@@ -14,4 +15,9 @@ public class AllocStartResultBo {
|
||||
|
||||
/** 通道分账号 */
|
||||
private String outAllocNo;
|
||||
/**
|
||||
* 分账状态
|
||||
* @see AllocationStatusEnum
|
||||
*/
|
||||
private String status;
|
||||
}
|
||||
|
@@ -18,25 +18,27 @@ import java.util.List;
|
||||
@Getter
|
||||
@Setter
|
||||
public abstract class AbsAllocationStrategy implements PaymentStrategy{
|
||||
private AllocOrder transaction;
|
||||
private AllocOrder order;
|
||||
|
||||
private List<AllocDetail> details;
|
||||
|
||||
/**
|
||||
* 初始化参数
|
||||
*/
|
||||
public void initParam(AllocOrder transaction, List<AllocDetail> details) {
|
||||
this.transaction = transaction;
|
||||
public void initParam(AllocOrder order, List<AllocDetail> details) {
|
||||
this.order = order;
|
||||
this.details = details;
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作前处理, 校验和初始化支付配置
|
||||
*/
|
||||
public abstract void doBeforeHandler();
|
||||
public void doBeforeHandler(){
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* 分账启动
|
||||
* 开始分账
|
||||
*/
|
||||
public abstract AllocStartResultBo start();
|
||||
|
||||
|
Reference in New Issue
Block a user