mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-03 11:06:46 +00:00
feat 转账订单调试
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.daxpay.single.core.code;
|
||||
|
||||
import cn.daxpay.single.core.exception.UnsupportedAbilityException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@@ -41,7 +42,7 @@ public enum AllocReceiverTypeEnum {
|
||||
return Arrays.stream(AllocReceiverTypeEnum.values())
|
||||
.filter(e -> e.getCode().equals(code))
|
||||
.findFirst()
|
||||
.orElseThrow(() -> new IllegalArgumentException("未找到对应的分账接收方类型"));
|
||||
.orElseThrow(() -> new UnsupportedAbilityException("未找到对应的分账接收方类型"));
|
||||
}
|
||||
|
||||
/** 微信支持类型 */
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package cn.daxpay.single.core.code;
|
||||
|
||||
import cn.daxpay.single.core.exception.UnsupportedAbilityException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@@ -16,13 +17,13 @@ import java.util.List;
|
||||
@AllArgsConstructor
|
||||
public enum TransferPayeeTypeEnum {
|
||||
/** 微信 个人 */
|
||||
WX_PERSONAL("wx_personal","openid", "个人"),
|
||||
WX_PERSONAL("wx_personal","openid", "OpenId"),
|
||||
/** 支付宝 userId 以2088开头的纯16位数字 */
|
||||
ALI_USER_ID("ali_user_id","ALIPAY_USERID", "用户ID"),
|
||||
ALI_USER_ID("ali_user_id","ALIPAY_USER_ID", "用户ID"),
|
||||
/** 支付宝 openId */
|
||||
ALI_OPEN_ID("ali_open_id","ALIPAY_OPENID", "openId"),
|
||||
ALI_OPEN_ID("ali_open_id","ALIPAY_OPEN_ID", "OpenId"),
|
||||
/** 支付宝 账号 支持邮箱和手机号格式 */
|
||||
ALI_LOGIN_NAME("ali_login_name","ALIPAY_LOGONID", "账号");
|
||||
ALI_LOGIN_NAME("ali_login_name","ALIPAY_LOGON_ID", "账号");
|
||||
|
||||
/** 编码 */
|
||||
private final String code;
|
||||
@@ -38,7 +39,7 @@ public enum TransferPayeeTypeEnum {
|
||||
return Arrays.stream(TransferPayeeTypeEnum.values())
|
||||
.filter(e -> e.getCode().equals(code))
|
||||
.findFirst()
|
||||
.orElseThrow(() -> new IllegalArgumentException("未找到对应的分账接收方类型"));
|
||||
.orElseThrow(() -> new UnsupportedAbilityException("未找到对应的分账接收方类型"));
|
||||
}
|
||||
|
||||
/** 微信支持类型 */
|
||||
|
@@ -14,8 +14,7 @@ public enum TransferStatusEnum {
|
||||
|
||||
TRANSFERRING("transferring", "转账中"),
|
||||
SUCCESS("success", "转账成功"),
|
||||
FAIL("fail", "转账失败"),
|
||||
;
|
||||
FAIL("fail", "转账失败"),;
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
@@ -4,7 +4,7 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 转账类型注解
|
||||
* 转账类型 微信使用
|
||||
* @author xxm
|
||||
* @since 2024/6/6
|
||||
*/
|
||||
|
@@ -1,11 +1,17 @@
|
||||
package cn.daxpay.single.core.result.order;
|
||||
|
||||
import cn.daxpay.single.core.code.PayChannelEnum;
|
||||
import cn.daxpay.single.core.code.TransferPayeeTypeEnum;
|
||||
import cn.daxpay.single.core.code.TransferStatusEnum;
|
||||
import cn.daxpay.single.core.code.TransferTypeEnum;
|
||||
import cn.daxpay.single.core.result.PaymentCommonResult;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 转账订单数据
|
||||
* @author xxm
|
||||
@@ -16,4 +22,80 @@ import lombok.experimental.Accessors;
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "转账订单数据")
|
||||
public class TransferOrderResult extends PaymentCommonResult {
|
||||
|
||||
/** 商户转账号 */
|
||||
@Schema(description = "商户转账号")
|
||||
private String bizTransferNo;
|
||||
|
||||
/** 转账号 */
|
||||
@Schema(description = "转账号")
|
||||
private String transferNo;
|
||||
|
||||
/** 通道转账号 */
|
||||
@Schema(description = "通道转账号")
|
||||
private String outTransferNo;
|
||||
|
||||
/**
|
||||
* 支付通道
|
||||
* @see PayChannelEnum
|
||||
*/
|
||||
@Schema(description = "支付通道")
|
||||
private String channel;
|
||||
|
||||
/** 转账金额 */
|
||||
@Schema(description = "转账金额")
|
||||
private Integer amount;
|
||||
|
||||
/** 标题 */
|
||||
@Schema(description = "标题")
|
||||
private String title;
|
||||
|
||||
/** 转账原因/备注 */
|
||||
@Schema(description = "转账原因/备注")
|
||||
private String reason;
|
||||
|
||||
/**
|
||||
* 转账类型, 微信使用
|
||||
* @see TransferTypeEnum
|
||||
*/
|
||||
@Schema(description = "转账类型, 微信使用")
|
||||
private String transferType;
|
||||
|
||||
/**
|
||||
* 收款人类型
|
||||
* @see TransferPayeeTypeEnum
|
||||
*/
|
||||
@Schema(description = "收款人类型")
|
||||
private String payeeType;
|
||||
|
||||
/** 收款人账号 */
|
||||
@Schema(description = "收款人账号")
|
||||
private String payeeAccount;
|
||||
|
||||
/** 收款人姓名 */
|
||||
@Schema(description = "收款人姓名")
|
||||
private String payeeName;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
* @see TransferStatusEnum
|
||||
*/
|
||||
@Schema(description = "状态")
|
||||
private String status;
|
||||
|
||||
/** 成功时间 */
|
||||
@Schema(description = "成功时间")
|
||||
private LocalDateTime successTime;
|
||||
|
||||
/**
|
||||
* 错误码
|
||||
*/
|
||||
@Schema(description = "错误码")
|
||||
private String errorCode;
|
||||
|
||||
/**
|
||||
* 错误原因
|
||||
*/
|
||||
@Schema(description = "错误原因")
|
||||
private String errorMsg;
|
||||
}
|
||||
|
Reference in New Issue
Block a user